if (cf.getManagedConnectionFactory() != null && cf.getManagedConnectionFactory().getStatistics() != null) { StatisticsPlugin extendStats = cf.getManagedConnectionFactory().getStatistics(); extendStats.setEnabled(statsEnabled); if (extendStats.getNames().size() != 0) {
for (ConnectionFactory cf : connectionFactories) { ManagedConnectionFactory mcf = cf.getManagedConnectionFactory(); StatisticsPlugin extendStats = mcf == null ? null : mcf.getStatistics(); if (extendStats != null) { extendStats.setEnabled(statsEnabled);
/** * String representation * @return The string */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("ManagedConnectionFactory@").append(Integer.toHexString(System.identityHashCode(this))); sb.append("[instance=").append(getManagedConnectionFactory()); sb.append(" configProperties=").append(configProperties); sb.append(" statistics=").append(getStatistics()); sb.append("]"); return sb.toString(); } }
if (mgtMcf.getStatistics() != null) excludeStatOperations.add("delta(.)*"); DynamicMBean mcfSDMB = JMX.createMBean(mgtMcf.getStatistics(), "Managed connection factory statistics", writeStatAttributes, null,
if (cf.getManagedConnectionFactory() != null && cf.getManagedConnectionFactory().getStatistics() != null) { StatisticsPlugin extendStats = cf.getManagedConnectionFactory().getStatistics(); extendStats.setEnabled(statsEnabled); if (extendStats.getNames().size() != 0) {
for (ConnectionFactory cf : connectionFactories) { ManagedConnectionFactory mcf = cf.getManagedConnectionFactory(); StatisticsPlugin extendStats = mcf == null ? null : mcf.getStatistics(); if (extendStats != null) { extendStats.setEnabled(statsEnabled);