Class JdbcConnPoolProbeProvider

java.lang.Object
com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
org.glassfish.jdbc.pool.monitor.JdbcConnPoolProbeProvider

public class JdbcConnPoolProbeProvider extends com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
Probe provider interface for JDBC connection pool related events to provide information related to the various objects on jdbc pool monitoring.
Author:
Shalini M
  • Constructor Details

    • JdbcConnPoolProbeProvider

      public JdbcConnPoolProbeProvider()
  • Method Details

    • connectionValidationFailedEvent

      public void connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a connection validation failed event.
      Overrides:
      connectionValidationFailedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which connection validation has failed
      increment - number of times the validation failed
    • connectionTimedOutEvent

      public void connectionTimedOutEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a jdbc connection pool with the given name poolName has got a connection timed out event.
      Overrides:
      connectionTimedOutEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - that has got a connection timed-out event
    • potentialConnLeakEvent

      public void potentialConnLeakEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the pool with the given name poolName is having a potentialConnLeak event.
      Overrides:
      potentialConnLeakEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • decrementNumConnFreeEvent

      public void decrementNumConnFreeEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a decrement free connections size event.
      Overrides:
      decrementNumConnFreeEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which decrement numConnFree is got
      steadyPoolSize -
    • incrementNumConnFreeEvent

      public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment free connections size event.
      Overrides:
      incrementNumConnFreeEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which increment numConnFree is got
      beingDestroyed - if connection is destroyed due to error
      steadyPoolSize -
    • decrementConnectionUsedEvent

      public void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a decrement connections used event.
      Overrides:
      decrementConnectionUsedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which decrement numConnUsed is got
    • connectionUsedEvent

      public void connectionUsedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment connections used event.
      Overrides:
      connectionUsedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which increment numConnUsed is got
    • connectionsFreedEvent

      public void connectionsFreedEvent(String poolName, String appName, String moduleName, int count)
      Emits probe event/notification that the given jdbc connection pool poolNamehas got a increment connections free event.
      Overrides:
      connectionsFreedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName - for which increment numConnFree is got
      count - number of connections freed to pool
    • connectionRequestServedEvent

      public void connectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)
      Emits probe event/notification that a connection request is served in the time timeTakenInMillis for the given jdbc connection pool poolName
      Overrides:
      connectionRequestServedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
      timeTakenInMillis - time taken to serve a connection
    • connectionDestroyedEvent

      public void connectionDestroyedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a connection is destroyed for the given jdbc connection pool poolName
      Overrides:
      connectionDestroyedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionAcquiredEvent

      public void connectionAcquiredEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a connection is acquired by application for the given jdbc connection pool poolName
      Overrides:
      connectionAcquiredEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionReleasedEvent

      public void connectionReleasedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a connection is released for the given jdbc connection pool poolName
      Overrides:
      connectionReleasedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionCreatedEvent

      public void connectionCreatedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a new connection is created for the given jdbc connection pool poolName
      Overrides:
      connectionCreatedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • toString

      public void toString(String poolName, String appName, String moduleName, StringBuffer stackTrace)
      Overrides:
      toString in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
    • connectionMatchedEvent

      public void connectionMatchedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a connection under test matches the current request for the given jdbc connection pool poolName
      Overrides:
      connectionMatchedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionNotMatchedEvent

      public void connectionNotMatchedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that a connection under test does not match the current request for the given jdbc connection pool poolName
      Overrides:
      connectionNotMatchedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionRequestQueuedEvent

      public void connectionRequestQueuedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the wait queue length has increased for the given jdbc connection pool poolName
      Overrides:
      connectionRequestQueuedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -
    • connectionRequestDequeuedEvent

      public void connectionRequestDequeuedEvent(String poolName, String appName, String moduleName)
      Emits probe event/notification that the wait queue length has decreased for the given jdbc connection pool poolName
      Overrides:
      connectionRequestDequeuedEvent in class com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
      Parameters:
      poolName -