Package org.glassfish.jdbcruntime
Class JdbcPoolMonitoringExtension
- java.lang.Object
-
- org.glassfish.jdbcruntime.JdbcPoolMonitoringExtension
-
- All Implemented Interfaces:
ConnectionPoolMonitoringExtension
@Service public class JdbcPoolMonitoringExtension extends Object implements ConnectionPoolMonitoringExtension
- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description JdbcPoolMonitoringExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcConnPoolProbeProvidercreateProbeProvider()ConnectionPoolProbeProviderUtilgetProbeProviderUtil()ConnectionPoolAppProbeProviderregisterConnectionPool(PoolInfo poolInfo, String appName)Register the jdbc connection pool Stats Provider object to the monitoring framework under the specific application name monitoring sub tree.voidregisterPool(PoolInfo poolInfo)Register jdbc connection pool to the StatsProviderManager.voidunRegisterConnectionPool()Unregister the AppStatsProviders registered for this connection pool.voidunregisterPool(PoolInfo poolInfo)Unregister Jdbc Connection pool from the StatsProviderManager.
-
-
-
Method Detail
-
getProbeProviderUtil
public ConnectionPoolProbeProviderUtil getProbeProviderUtil()
-
registerPool
public void registerPool(PoolInfo poolInfo)
Register jdbc connection pool to the StatsProviderManager. Add the pool lifecycle listeners for the pool to receive events on change of any of the monitoring attribute values. Finally, add this provider to the list of jdbc providers maintained.- Specified by:
registerPoolin interfaceConnectionPoolMonitoringExtension- Parameters:
poolInfo-
-
unregisterPool
public void unregisterPool(PoolInfo poolInfo)
Unregister Jdbc Connection pool from the StatsProviderManager. Remove the pool lifecycle listeners associated with this pool.- Specified by:
unregisterPoolin interfaceConnectionPoolMonitoringExtension- Parameters:
poolInfo-
-
registerConnectionPool
public ConnectionPoolAppProbeProvider registerConnectionPool(PoolInfo poolInfo, String appName)
Register the jdbc connection pool Stats Provider object to the monitoring framework under the specific application name monitoring sub tree.- Specified by:
registerConnectionPoolin interfaceConnectionPoolMonitoringExtension- Parameters:
appName-- Returns:
-
unRegisterConnectionPool
public void unRegisterConnectionPool()
Unregister the AppStatsProviders registered for this connection pool.- Specified by:
unRegisterConnectionPoolin interfaceConnectionPoolMonitoringExtension
-
createProbeProvider
public JdbcConnPoolProbeProvider createProbeProvider()
- Specified by:
createProbeProviderin interfaceConnectionPoolMonitoringExtension
-
-