protected List<PoolConfiguration> getMatchingPoolConfigs(String poolName, ManagementRepository repository) { ArrayList<PoolConfiguration> result = new ArrayList<PoolConfiguration>(repository.getDataSources().size()); if (repository.getDataSources() != null) { for (DataSource ds : repository.getDataSources()) { if (poolName.equalsIgnoreCase(ds.getPool().getName())) { result.add(ds.getPoolConfiguration()); } } } result.trimToSize(); return result; }
public List<Pool> match(String jndiName, ManagementRepository repository) { ArrayList<org.jboss.jca.core.api.connectionmanager.pool.Pool> result = new ArrayList<Pool>(repository .getDataSources().size()); if (repository.getDataSources() != null) { for (DataSource ds : repository.getDataSources()) { if (jndiName.equalsIgnoreCase(ds.getJndiName()) && ds.getPool() != null) { result.add(ds.getPool()); } } } result.trimToSize(); return result; } }
protected List<PoolConfiguration> getMatchingPoolConfigs(String poolName, ManagementRepository repository) { ArrayList<PoolConfiguration> result = new ArrayList<PoolConfiguration>(repository.getDataSources().size()); if (repository.getDataSources() != null) { for (DataSource ds : repository.getDataSources()) { if (poolName.equalsIgnoreCase(ds.getPool().getName())) { result.add(ds.getPoolConfiguration()); } } } result.trimToSize(); return result; }
StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); jdbcStats.setEnabled(statsEnabled); poolStats.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(); } }
public List<Pool> match(String jndiName, ManagementRepository repository) { ArrayList<org.jboss.jca.core.api.connectionmanager.pool.Pool> result = new ArrayList<Pool>(repository .getDataSources().size()); if (repository.getDataSources() != null) { for (DataSource ds : repository.getDataSources()) { if (jndiName.equalsIgnoreCase(ds.getJndiName()) && ds.getPool() != null) { result.add(ds.getPool()); } } } result.trimToSize(); return result; } }
if (mgtDs.getPool() != null) DynamicMBean dsPDMB = JMX.createMBean(mgtDs.getPool(), "Pool"); ObjectName dsPON = new ObjectName(dsPName); if (mgtDs.getPool().getStatistics() != null) excludeOperations.add("delta(.)*"); DynamicMBean dsPSDMB = JMX.createMBean(mgtDs.getPool().getStatistics(), "PoolStatistics", writeAttributes, null, excludeAttributes, excludeOperations);
public List<Pool> match(String jndiName, ManagementRepository repository) { ArrayList<org.jboss.jca.core.api.connectionmanager.pool.Pool> result = new ArrayList<Pool>(repository .getDataSources().size()); if (repository.getDataSources() != null) { for (DataSource ds : repository.getDataSources()) { if (jndiName.equalsIgnoreCase(ds.getJndiName()) && ds.getPool() != null) { result.add(ds.getPool()); } } } result.trimToSize(); return result; } }
StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); jdbcStats.setEnabled(statsEnabled); poolStats.setEnabled(statsEnabled);
StatisticsPlugin poolStats = deploymentMD.getDataSources()[0].getPool().getStatistics(); int jdbcStatsSize = jdbcStats.getNames().size(); int poolStatsSize = poolStats.getNames().size();