Class 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 Detail

      • JdbcPoolMonitoringExtension

        public JdbcPoolMonitoringExtension()
    • 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:
        registerPool in interface com.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:
        unregisterPool in interface com.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:
        registerConnectionPool in interface com.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
        Parameters:
        appName -
        Returns:
      • unRegisterConnectionPool

        public void unRegisterConnectionPool()
        Unregister the AppStatsProviders registered for this connection pool.
        Specified by:
        unRegisterConnectionPool in interface com.sun.enterprise.connectors.ConnectionPoolMonitoringExtension
      • createProbeProvider

        public JdbcConnPoolProbeProvider createProbeProvider()
        Specified by:
        createProbeProvider in interface com.sun.enterprise.connectors.ConnectionPoolMonitoringExtension