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.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAcquiredEvent(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)
-
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 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
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
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
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
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
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
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
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
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
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
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
- Overrides:
toStringin classcom.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
-
connectionMatchedEvent
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
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
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
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-
-