Class ConnectionPoolProbeProvider
- java.lang.Object
-
- com.sun.enterprise.resource.pool.monitor.ConnectionPoolProbeProvider
-
- Direct Known Subclasses:
ConnectorConnPoolProbeProvider,JdbcConnPoolProbeProvider
public abstract class ConnectionPoolProbeProvider extends Object
An abstract class that houses the common implementations of various probe providers. All probe providers extend this implementation.- Author:
- Shalini M
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolProbeProvider()
-
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 connection poolpoolNamevoidconnectionCreatedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a new connection is created for the given connection poolpoolNamevoidconnectionDestroyedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection is destroyed for the given connection poolpoolNamevoidconnectionMatchedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection under test matches the current request for the given 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 connection poolpoolNamevoidconnectionReleasedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a connection is released for the given connection poolpoolNamevoidconnectionRequestDequeuedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the wait queue length has decreased for the given connection poolpoolNamevoidconnectionRequestQueuedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the wait queue length has increased for the given 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 connection poolpoolNamevoidconnectionsFreedEvent(String poolName, String appName, String moduleName, int count)Emits probe event/notification that the given connection poolpoolNamehas got a increment connections free event.voidconnectionTimedOutEvent(String poolName, String appName, String moduleName)Emits probe event/notification that a 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 connection poolpoolNamehas got a increment connections used event.voidconnectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)Emits probe event/notification that the given connection poolpoolNamehas got a connection validation failed event.voiddecrementConnectionUsedEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the given connection poolpoolNamehas got a decrement connections used event.voiddecrementNumConnFreeEvent(String poolName, String appName, String moduleName)Emits probe event/notification that the given 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 connection poolpoolNamehas got a decrement 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 connection poolpoolNamehas got a connection validation failed event.- Parameters:
poolName- for which connection validation has failedappName- application-name in which the pool is definedmoduleName- module-name in which the pool is definedincrement- number of times the validation failed
-
connectionTimedOutEvent
public void connectionTimedOutEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that a connection pool with the given namepoolNamehas got a connection timed out event.- 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.- 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 connection poolpoolNamehas got a decrement free connections size event.- Parameters:
poolName- for which decrement numConnFree is gotappName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
incrementNumConnFreeEvent
public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
Emits probe event/notification that the given connection poolpoolNamehas got a decrement free connections size event.- Parameters:
poolName- for which decrement numConnFree is gotappName- application-name in which the pool is definedmoduleName- module-name in which the pool is definedbeingDestroyed- if the connection is destroyed due to errorsteadyPoolSize-
-
decrementConnectionUsedEvent
public void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
Emits probe event/notification that the given connection poolpoolNamehas got a decrement connections used event.- 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 connection poolpoolNamehas got a increment connections used event.- 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 connection poolpoolNamehas got a increment connections free event.- Parameters:
poolName- for which increment numConnFree is gotappName- application-name in which the pool is definedmoduleName- module-name in which the pool is definedcount- 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 connection poolpoolName- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is definedtimeTakenInMillis- 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 connection poolpoolName- 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 connection poolpoolName- 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 connection poolpoolName- 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 connection poolpoolName- 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)
-
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 connection poolpoolName- 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 connection poolpoolName- 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 connection poolpoolName- 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 connection poolpoolName- Parameters:
poolName-appName- application-name in which the pool is definedmoduleName- module-name in which the pool is defined
-
-