Iterator i = jdbcStatsProviders.iterator();
while (i.hasNext()) {
JdbcConnPoolStatsProvider jdbcPoolStatsProvider = (JdbcConnPoolStatsProvider) i.next();
if (poolInfo.equals(jdbcPoolStatsProvider.getPoolInfo())) {
//Get registry and unregister this pool from the registry
PoolLifeCycleListenerRegistry poolRegistry = jdbcPoolStatsProvider.getPoolRegistry();
poolRegistry.unRegisterPoolLifeCycleListener(poolInfo);
StatsProviderManager.unregister(jdbcPoolStatsProvider);
i.remove();
}
}
}
if(ccStatsProviders != null) {
Iterator i = ccStatsProviders.iterator();
while (i.hasNext()) {
ConnectorConnPoolStatsProvider ccPoolStatsProvider =
(ConnectorConnPoolStatsProvider) i.next();
if (poolInfo.equals(ccPoolStatsProvider.getPoolInfo())) {
//Get registry and unregister this pool from the registry
PoolLifeCycleListenerRegistry poolRegistry = ccPoolStatsProvider.getPoolRegistry();
poolRegistry.unRegisterPoolLifeCycleListener(poolInfo);
StatsProviderManager.unregister(ccPoolStatsProvider);
i.remove();
}