Package org.glassfish.jdbcruntime
Class JdbcPoolMonitoringExtension
- java.lang.Object
-
- org.glassfish.jdbcruntime.JdbcPoolMonitoringExtension
-
- All Implemented Interfaces:
com.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
@Service public class JdbcPoolMonitoringExtension extends Object implements com.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description JdbcPoolMonitoringExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JdbcConnPoolProbeProvidercreateProbeProvider()com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProviderUtilgetProbeProviderUtil()com.sun.enterprise.resource.pool.monitor.ConnectionPoolAppProbeProviderregisterConnectionPool(org.glassfish.resourcebase.resources.api.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(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)Register jdbc connection pool to the StatsProviderManager.voidunRegisterConnectionPool()Unregister the AppStatsProviders registered for this connection pool.voidunregisterPool(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)Unregister Jdbc Connection pool from the StatsProviderManager.
-
-
-
Method Detail
-
getProbeProviderUtil
public com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProviderUtil getProbeProviderUtil()
-
registerPool
public void registerPool(org.glassfish.resourcebase.resources.api.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 interfacecom.sun.enterprise.connectors.ConnectionPoolMonitoringExtension- Parameters:
poolInfo-
-
unregisterPool
public void unregisterPool(org.glassfish.resourcebase.resources.api.PoolInfo poolInfo)
Unregister Jdbc Connection pool from the StatsProviderManager. Remove the pool lifecycle listeners associated with this pool.- Specified by:
unregisterPoolin interfacecom.sun.enterprise.connectors.ConnectionPoolMonitoringExtension- Parameters:
poolInfo-
-
registerConnectionPool
public com.sun.enterprise.resource.pool.monitor.ConnectionPoolAppProbeProvider registerConnectionPool(org.glassfish.resourcebase.resources.api.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 interfacecom.sun.enterprise.connectors.ConnectionPoolMonitoringExtension- Parameters:
appName-- Returns:
-
unRegisterConnectionPool
public void unRegisterConnectionPool()
Unregister the AppStatsProviders registered for this connection pool.- Specified by:
unRegisterConnectionPoolin interfacecom.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
-
createProbeProvider
public JdbcConnPoolProbeProvider createProbeProvider()
- Specified by:
createProbeProviderin interfacecom.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
-
-