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 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 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, StringBuilder 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 classConnectionPoolProbeProvider- Parameters:
poolName- for which connection validation has failedincrement- number of times the validation failedappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName- that has got a connection timed-out eventappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- 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 classConnectionPoolProbeProvider- Parameters:
poolName- for which increment numConnFree is gotbeingDestroyed- if connection is destroyed due to errorsteadyPoolSize-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName- for which decrement numConnUsed is gotappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName- for which increment numConnUsed is gotappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName- for which increment numConnFree is gotcount- number of connections freed to poolappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-timeTakenInMillis- time taken to serve a connectionappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
toString
public void toString(String poolName, String appName, String moduleName, StringBuilder stackTrace)
- Overrides:
toStringin classConnectionPoolProbeProvider
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
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 classConnectionPoolProbeProvider- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
-