Package org.glassfish.jdbc.pool.monitor
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.ConnectionPoolProbeProviderProbe provider interface for JDBC connection pool related events to provide information related to the various objects on jdbc pool monitoring.- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description JdbcConnPoolProbeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectionAcquiredEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection is acquired by application for the given jdbc connection poolpoolNamevoidconnectionCreatedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a new connection is created for the given jdbc connection poolpoolNamevoidconnectionDestroyedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection is destroyed for the given jdbc connection poolpoolNamevoidconnectionMatchedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection under test matches the current request for the given jdbc connection poolpoolNamevoidconnectionNotMatchedEvent(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 poolpoolNamevoidconnectionReleasedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection is released for the given jdbc connection poolpoolNamevoidconnectionRequestDequeuedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the wait queue length has decreased for the given jdbc connection poolpoolNamevoidconnectionRequestQueuedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the wait queue length has increased for the given jdbc connection poolpoolNamevoidconnectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)Emits probe event/notification that a connection request is served in the timetimeTakenInMillisfor the given jdbc connection poolpoolNamevoidconnectionsFreedEvent(String poolName, String appName, String moduleName, int count)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a increment connections free event.voidconnectionTimedOutEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a jdbc connection pool with the given namepoolNamehas got a connection timed out event.voidconnectionUsedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a increment connections used event.voidconnectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a connection validation failed event.voiddecrementConnectionUsedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a decrement connections used event.voiddecrementNumConnFreeEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a decrement free connections size event.voidincrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)Emits probe event/notification that the given jdbc connection poolpoolNamehas got a increment free connections size event.voidpotentialConnLeakEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the pool with the given namepoolNameis having a potentialConnLeak event.voidtoString(String poolName, String appName, String moduleName, StringBuffer stackTrace)
-
-
-
Method Detail
-
connectionValidationFailedEvent
public void connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
Emits probe event/notification that the given jdbc connection poolpoolNamehas got a connection validation failed event.- Overrides:
connectionValidationFailedEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName- for which connection validation has failedincrement- 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 namepoolNamehas got a connection timed out event.- Overrides:
connectionTimedOutEventin classcom.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 namepoolNameis having a potentialConnLeak event.- Overrides:
potentialConnLeakEventin classcom.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 poolpoolNamehas got a decrement free connections size event.- Overrides:
decrementNumConnFreeEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName- for which decrement numConnFree is gotsteadyPoolSize-
-
incrementNumConnFreeEvent
public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
Emits probe event/notification that the given jdbc connection poolpoolNamehas got a increment free connections size event.- Overrides:
incrementNumConnFreeEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName- for which increment numConnFree is gotbeingDestroyed- if connection is destroyed due to errorsteadyPoolSize-
-
decrementConnectionUsedEvent
public void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given jdbc connection poolpoolNamehas got a decrement connections used event.- Overrides:
decrementConnectionUsedEventin classcom.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 poolpoolNamehas got a increment connections used event.- Overrides:
connectionUsedEventin classcom.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 poolpoolNamehas got a increment connections free event.- Overrides:
connectionsFreedEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName- for which increment numConnFree is gotcount- 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 timetimeTakenInMillisfor the given jdbc connection poolpoolName- Overrides:
connectionRequestServedEventin classcom.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 poolpoolName- Overrides:
connectionDestroyedEventin classcom.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 poolpoolName- Overrides:
connectionAcquiredEventin classcom.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 poolpoolName- Overrides:
connectionReleasedEventin classcom.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 poolpoolName- Overrides:
connectionCreatedEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName-
-
toString
public void toString(String poolName, String appName, String moduleName, StringBuffer stackTrace)
- Overrides:
toStringin classcom.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 poolpoolName- Overrides:
connectionMatchedEventin classcom.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 poolpoolName- Overrides:
connectionNotMatchedEventin classcom.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 poolpoolName- Overrides:
connectionRequestQueuedEventin classcom.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 poolpoolName- Overrides:
connectionRequestDequeuedEventin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider- Parameters:
poolName-
-
-