StatisticsPlugin jdbcStats = deploymentMD.getDataSources()[0].getStatistics(); StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); jdbcStats.setEnabled(statsEnabled);
/** * String representation * @return The string */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("DataSource@").append(Integer.toHexString(System.identityHashCode(this))); sb.append(" xa=").append(isXA()); sb.append(" jndiName=").append(getJndiName()); sb.append(" pool=").append(getPool()); sb.append(" poolconfiguration=").append(getPoolConfiguration()); sb.append(" statistics=").append(getStatistics()); sb.append("]"); return sb.toString(); } }
if (mgtDs.getStatistics() != null) excludeOperations.add("delta(.)*"); DynamicMBean dsSDMB = JMX.createMBean(mgtDs.getStatistics(), "Statistics", writeAttributes, null, excludeAttributes, excludeOperations); ObjectName dsSON = new ObjectName(dsSName);
StatisticsPlugin jdbcStats = deploymentMD.getDataSources()[0].getStatistics(); StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); jdbcStats.setEnabled(statsEnabled);
StatisticsPlugin jdbcStats = deploymentMD.getDataSources()[0].getStatistics(); StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); int jdbcStatsSize = jdbcStats.getNames().size();