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(StringBuffer 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(StringBuffer stackTrace)
toString
in interface PoolLifeCycleListener
stackTrace
- public void connectionAcquired(long resourceHandleId)
connectionAcquired
in interface PoolLifeCycleListener
public void connectionRequestServed(long timeTakenInMillis)
timeTakenInMillis
for the given jdbc connection
pool.connectionRequestServed
in interface PoolLifeCycleListener
timeTakenInMillis
- time taken to serve a connectionpublic void connectionTimedOut()
connectionTimedOut
in interface PoolLifeCycleListener
public void connectionNotMatched()
connectionNotMatched
in interface PoolLifeCycleListener
public void connectionMatched()
connectionMatched
in interface PoolLifeCycleListener
public void connectionDestroyed(long resourceHandleId)
connectionDestroyed
in interface PoolLifeCycleListener
public void connectionReleased(long resourceHandleId)
connectionReleased
in interface PoolLifeCycleListener
public void connectionCreated()
connectionCreated
in interface PoolLifeCycleListener
public void foundPotentialConnectionLeak()
foundPotentialConnectionLeak
in interface PoolLifeCycleListener
public void connectionValidationFailed(int count)
connectionValidationFailed
in interface PoolLifeCycleListener
count
- number of times the validation failedpublic void connectionUsed(long resourceHandleId)
connectionUsed
in interface PoolLifeCycleListener
public void connectionsFreed(int count)
connectionsFreed
in interface PoolLifeCycleListener
count
- number of connections freed to poolpublic void decrementConnectionUsed(long resourceHandleId)
decrementConnectionUsed
in interface PoolLifeCycleListener
public void decrementNumConnFree()
decrementNumConnFree
in interface PoolLifeCycleListener
public void incrementNumConnFree(boolean beingDestroyed, int steadyPoolSize)
incrementNumConnFree
in interface PoolLifeCycleListener
beingDestroyed
- if the connection is destroyed due to errorsteadyPoolSize
- public void connectionRequestQueued()
connectionRequestQueued
in interface PoolLifeCycleListener
public void connectionRequestDequeued()
connectionRequestDequeued
in interface PoolLifeCycleListener
public void unregisterAppStatsProviders()
Copyright © 2018. All rights reserved.