public class ConnectionPoolEmitterImpl extends Object implements PoolLifeCycleListener
| Constructor and Description |
|---|
ConnectionPoolEmitterImpl(PoolInfo poolInfo,
ConnectionPoolProbeProvider provider)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectionAcquired(long resourceHandleId)
Fires probe event that a connection has been acquired by the application
for the given jdbc connection pool.
|
void |
connectionCreated()
Fires probe event that a connection is created for the given jdbc
connection pool.
|
void |
connectionDestroyed(long resourceHandleId)
Fires probe event that a connection is destroyed for the
given jdbc connection pool.
|
void |
connectionMatched()
Fires probe event that a connection under test matches the current
request for the given jdbc connection pool.
|
void |
connectionNotMatched()
Fires probe event that a connection under test does not match the
current request for the given jdbc connection pool.
|
void |
connectionReleased(long resourceHandleId)
Fires probe event that a connection is released for the given jdbc
connection pool.
|
void |
connectionRequestDequeued()
Fires probe event related to the fact the given jdbc connection pool's
wait queue length has been decremented.
|
void |
connectionRequestQueued()
Fires probe event related to the fact the given jdbc connection pool's
wait queue length has been incremented
|
void |
connectionRequestServed(long timeTakenInMillis)
Fires probe event related to the fact that a connection request is served
in the time
timeTakenInMillis for the given jdbc connection
pool. |
void |
connectionsFreed(int count)
Fires probe event related to the fact the given jdbc connection pool has
got a connection freed event.
|
void |
connectionTimedOut()
Fires probe event related to the fact that the given jdbc connection pool
has got a connection timed-out event.
|
void |
connectionUsed(long resourceHandleId)
Fires probe event related to the fact the given jdbc connection pool has
got a connection used event.
|
void |
connectionValidationFailed(int count)
Fires probe event related to the fact the given jdbc connection pool has
got a connection validation failed event.
|
void |
decrementConnectionUsed(long resourceHandleId)
Fires probe event related to the fact the given jdbc connection pool has
got a decrement connection used event.
|
void |
decrementNumConnFree()
Fires probe event related to the fact the given jdbc connection pool has
got a decrement free connections size event.
|
void |
foundPotentialConnectionLeak()
Fires probe event related to the fact that the given jdbc connection pool
has got a connection leak event.
|
void |
incrementNumConnFree(boolean beingDestroyed,
int steadyPoolSize)
Fires probe event related to the fact the given jdbc connection pool has
got a decrement free connections size event.
|
void |
toString(StringBuilder stackTrace)
Fires probe event that a stack trace is to be printed on the server.log.
|
void |
unregisterAppStatsProviders()
Unregister the AppStatsProviders registered for this connection pool.
|
public ConnectionPoolEmitterImpl(PoolInfo poolInfo, ConnectionPoolProbeProvider provider)
poolInfo - connection pool on whose behalf this emitter emits pool related
probe eventsprovider - public void toString(StringBuilder stackTrace)
toString in interface PoolLifeCycleListenerstackTrace - public void connectionAcquired(long resourceHandleId)
connectionAcquired in interface PoolLifeCycleListenerpublic void connectionRequestServed(long timeTakenInMillis)
timeTakenInMillis for the given jdbc connection
pool.connectionRequestServed in interface PoolLifeCycleListenertimeTakenInMillis - time taken to serve a connectionpublic void connectionTimedOut()
connectionTimedOut in interface PoolLifeCycleListenerpublic void connectionNotMatched()
connectionNotMatched in interface PoolLifeCycleListenerpublic void connectionMatched()
connectionMatched in interface PoolLifeCycleListenerpublic void connectionDestroyed(long resourceHandleId)
connectionDestroyed in interface PoolLifeCycleListenerpublic void connectionReleased(long resourceHandleId)
connectionReleased in interface PoolLifeCycleListenerpublic void connectionCreated()
connectionCreated in interface PoolLifeCycleListenerpublic void foundPotentialConnectionLeak()
foundPotentialConnectionLeak in interface PoolLifeCycleListenerpublic void connectionValidationFailed(int count)
connectionValidationFailed in interface PoolLifeCycleListenercount - number of times the validation failedpublic void connectionUsed(long resourceHandleId)
connectionUsed in interface PoolLifeCycleListenerpublic void connectionsFreed(int count)
connectionsFreed in interface PoolLifeCycleListenercount - number of connections freed to poolpublic void decrementConnectionUsed(long resourceHandleId)
decrementConnectionUsed in interface PoolLifeCycleListenerpublic void decrementNumConnFree()
decrementNumConnFree in interface PoolLifeCycleListenerpublic void incrementNumConnFree(boolean beingDestroyed,
int steadyPoolSize)
incrementNumConnFree in interface PoolLifeCycleListenerbeingDestroyed - if the connection is destroyed due to errorsteadyPoolSize - public void connectionRequestQueued()
connectionRequestQueued in interface PoolLifeCycleListenerpublic void connectionRequestDequeued()
connectionRequestDequeued in interface PoolLifeCycleListenerpublic void unregisterAppStatsProviders()
Copyright © 2019. All rights reserved.