@Service @Singleton public class ConnectionPoolStatsProviderBootstrap extends Object implements org.glassfish.hk2.api.PostConstruct, PoolLifeCycle
| Constructor and Description |
|---|
ConnectionPoolStatsProviderBootstrap() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToPoolEmitters(PoolInfo poolInfo,
ConnectionPoolEmitterImpl emitter) |
boolean |
getEnabledValue(String strEnabled)
Find if the monitoring is enabled based on the monitoring level :
strEnabled |
ConnectionPoolProbeProviderUtil |
getProbeProviderUtil() |
Resources |
getResources() |
void |
poolCreated(PoolInfo poolInfo)
When a pool is created (or initialized) the pool should be registered
to the StatsProviderManager.
|
void |
poolDestroyed(PoolInfo poolInfo)
When a pool is destroyed, the pool should be unregistered from the
StatsProviderManager.
|
void |
postConstruct() |
void |
postUnregisterPool(PoolInfo poolInfo) |
PoolLifeCycleListenerRegistry |
registerPool(PoolInfo poolInfo,
ConnectionPoolProbeProvider poolProvider)
Registers the pool lifecycle listener for this pool by creating a
new ConnectionPoolEmitterImpl object for this pool.
|
ConnectionPoolAppProbeProvider |
registerPool(PoolInfo poolInfo,
String appName) |
void |
registerProvider()
All Jdbc Connection pools are added to the pool life cycle listener so as
to listen to creation/destroy events.
|
void |
unRegisterPool() |
void |
unregisterPoolAppProviders(PoolInfo poolInfo) |
protected static final Logger logger
public ConnectionPoolStatsProviderBootstrap()
public void addToPoolEmitters(PoolInfo poolInfo, ConnectionPoolEmitterImpl emitter)
public void registerProvider()
public void postConstruct()
postConstruct in interface org.glassfish.hk2.api.PostConstructpublic PoolLifeCycleListenerRegistry registerPool(PoolInfo poolInfo, ConnectionPoolProbeProvider poolProvider)
poolInfo - public ConnectionPoolAppProbeProvider registerPool(PoolInfo poolInfo, String appName)
public Resources getResources()
public ConnectionPoolProbeProviderUtil getProbeProviderUtil()
public void unRegisterPool()
public void postUnregisterPool(PoolInfo poolInfo)
public void unregisterPoolAppProviders(PoolInfo poolInfo)
public boolean getEnabledValue(String strEnabled)
strEnabled strEnabled - public void poolCreated(PoolInfo poolInfo)
poolCreated in interface PoolLifeCyclepoolInfo - public void poolDestroyed(PoolInfo poolInfo)
poolDestroyed in interface PoolLifeCyclepoolInfo - Copyright © 2017. All rights reserved.