public class JdbcConnPoolProbeProvider extends ConnectionPoolProbeProvider
Constructor and Description |
---|
JdbcConnPoolProbeProvider() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
void |
connectionDestroyedEvent(String poolName,
String appName,
String moduleName)
Emits probe event/notification that a connection is destroyed for the
given jdbc connection pool
poolName |
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 |
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 |
void |
connectionReleasedEvent(String poolName,
String appName,
String moduleName)
Emits probe event/notification that a connection is released for the given
jdbc connection pool
poolName |
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 |
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 |
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 |
void |
connectionsFreedEvent(String poolName,
String appName,
String moduleName,
int count)
Emits probe event/notification that the given jdbc connection pool
poolName has got a increment connections free event. |
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. |
void |
connectionUsedEvent(String poolName,
String appName,
String moduleName)
Emits probe event/notification that the given jdbc connection pool
poolName has got a increment connections used event. |
void |
connectionValidationFailedEvent(String poolName,
String appName,
String moduleName,
int increment)
Emits probe event/notification that the given jdbc connection pool
poolName has got a connection validation failed event. |
void |
decrementConnectionUsedEvent(String poolName,
String appName,
String moduleName)
Emits probe event/notification that the given jdbc connection pool
poolName has got a decrement connections used event. |
void |
decrementNumConnFreeEvent(String poolName,
String appName,
String moduleName)
Emits probe event/notification that the given jdbc connection pool
poolName has got a decrement free connections size event. |
void |
incrementNumConnFreeEvent(String poolName,
String appName,
String moduleName,
boolean beingDestroyed,
int steadyPoolSize)
Emits probe event/notification that the given jdbc connection pool
poolName has got a increment free connections size event. |
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. |
void |
toString(String poolName,
String appName,
String moduleName,
StringBuilder stackTrace) |
public void connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
poolName
has got a connection validation failed event.connectionValidationFailedEvent
in class ConnectionPoolProbeProvider
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 definedpublic void connectionTimedOutEvent(String poolName, String appName, String moduleName)
poolName
has got a connection timed out event.connectionTimedOutEvent
in class ConnectionPoolProbeProvider
poolName
- that has got a connection timed-out eventappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void potentialConnLeakEvent(String poolName, String appName, String moduleName)
poolName
is having a potentialConnLeak event.potentialConnLeakEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void decrementNumConnFreeEvent(String poolName, String appName, String moduleName)
poolName
has got a decrement free connections size event.decrementNumConnFreeEvent
in class ConnectionPoolProbeProvider
poolName
- for which decrement numConnFree is gotsteadyPoolSize
- public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
poolName
has got a increment free connections size event.incrementNumConnFreeEvent
in class ConnectionPoolProbeProvider
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 definedpublic void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
poolName
has got a decrement connections used event.decrementConnectionUsedEvent
in class ConnectionPoolProbeProvider
poolName
- for which decrement numConnUsed is gotappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionUsedEvent(String poolName, String appName, String moduleName)
poolName
has got a increment connections used event.connectionUsedEvent
in class ConnectionPoolProbeProvider
poolName
- for which increment numConnUsed is gotappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionsFreedEvent(String poolName, String appName, String moduleName, int count)
poolName
has got a increment connections free event.connectionsFreedEvent
in class ConnectionPoolProbeProvider
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 definedpublic void connectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)
timeTakenInMillis
for the given jdbc connection pool
poolName
connectionRequestServedEvent
in class ConnectionPoolProbeProvider
poolName
- timeTakenInMillis
- time taken to serve a connectionappName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionDestroyedEvent(String poolName, String appName, String moduleName)
poolName
connectionDestroyedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionAcquiredEvent(String poolName, String appName, String moduleName)
poolName
connectionAcquiredEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionReleasedEvent(String poolName, String appName, String moduleName)
poolName
connectionReleasedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionCreatedEvent(String poolName, String appName, String moduleName)
poolName
connectionCreatedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void toString(String poolName, String appName, String moduleName, StringBuilder stackTrace)
toString
in class ConnectionPoolProbeProvider
public void connectionMatchedEvent(String poolName, String appName, String moduleName)
poolName
connectionMatchedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionNotMatchedEvent(String poolName, String appName, String moduleName)
poolName
connectionNotMatchedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionRequestQueuedEvent(String poolName, String appName, String moduleName)
poolName
connectionRequestQueuedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedpublic void connectionRequestDequeuedEvent(String poolName, String appName, String moduleName)
poolName
connectionRequestDequeuedEvent
in class ConnectionPoolProbeProvider
poolName
- appName
- application-name in which the pool is definedmoduleName
- module-name in which the pool is definedCopyright © 2020. All rights reserved.