@AMXMetadata(type="jdbc-connection-pool-mon", group="monitoring") @ManagedObject @Description(value="JDBC Statistics") public class JdbcConnPoolStatsProvider extends Object
Constructor and Description |
---|
JdbcConnPoolStatsProvider(PoolInfo poolInfo,
Logger logger) |
Modifier and Type | Method and Description |
---|---|
void |
connectionAcquiredEvent(String poolName,
String appName,
String moduleName)
When a connection is acquired increment counter
|
void |
connectionCreatedEvent(String poolName,
String appName,
String moduleName)
When a connection is created increment counter
|
void |
connectionDestroyedEvent(String poolName,
String appName,
String moduleName)
When connection destroyed event is got increment numConnDestroyed.
|
void |
connectionMatchedEvent(String poolName,
String appName,
String moduleName)
When connection under test matches the current request ,
increment numConnSuccessfullyMatched.
|
void |
connectionNotMatchedEvent(String poolName,
String appName,
String moduleName)
When a connection under test does not match the current request,
increment numConnNotSuccessfullyMatched.
|
void |
connectionReleasedEvent(String poolName,
String appName,
String moduleName)
When a connection is released increment counter
|
void |
connectionRequestDequeuedEvent(String poolName,
String appName,
String moduleName)
When an object is removed from the wait queue, decrement the waitQueueLength.
|
void |
connectionRequestQueuedEvent(String poolName,
String appName,
String moduleName)
When an object is added to wait queue, increment the waitQueueLength.
|
void |
connectionRequestServedEvent(String poolName,
String appName,
String moduleName,
long timeTakenInMillis)
Event that a connection request is served in timeTakenInMillis.
|
void |
connectionsFreedEvent(String poolName,
String appName,
String moduleName,
int count)
Connections freed event
|
void |
connectionTimedOutEvent(String poolName,
String appName,
String moduleName)
Whenever connection timed-out event occurs, increment numConnTimedOut
|
void |
connectionUsedEvent(String poolName,
String appName,
String moduleName)
Connection used event
|
void |
connectionValidationFailedEvent(String poolName,
String appName,
String moduleName,
int increment)
Whenever connection leak happens, increment numConnFailedValidation
|
void |
decrementConnectionUsedEvent(String poolName,
String appName,
String moduleName)
Decrement numConnUsed event
|
void |
decrementNumConnFreeEvent(String poolName,
String appName,
String moduleName)
Decrement numconnfree event
|
org.glassfish.external.statistics.CountStatistic |
getAverageConnWaitTime() |
org.glassfish.external.statistics.RangeStatistic |
getConnRequestWaitTime() |
org.glassfish.external.statistics.CountStatistic |
getNumConnAcquired() |
org.glassfish.external.statistics.CountStatistic |
getNumConnCreated() |
org.glassfish.external.statistics.CountStatistic |
getNumConnDestroyed() |
org.glassfish.external.statistics.CountStatistic |
getNumConnFailedValidation() |
org.glassfish.external.statistics.RangeStatistic |
getNumConnFree() |
org.glassfish.external.statistics.CountStatistic |
getNumConnNotSuccessfullyMatched() |
org.glassfish.external.statistics.CountStatistic |
getNumConnReleased() |
org.glassfish.external.statistics.CountStatistic |
getNumConnSuccessfullyMatched() |
org.glassfish.external.statistics.CountStatistic |
getNumConnTimedOut() |
org.glassfish.external.statistics.RangeStatistic |
getNumConnUsed() |
org.glassfish.external.statistics.CountStatistic |
getNumPotentialConnLeakCount()
When a connection leak is observed, the monitoring statistics are displayed
to the server.log.
|
PoolInfo |
getPoolInfo() |
PoolLifeCycleListenerRegistry |
getPoolRegistry() |
org.glassfish.external.statistics.CountStatistic |
getWaitQueueLength() |
void |
incrementNumConnFreeEvent(String poolName,
String appName,
String moduleName,
boolean beingDestroyed,
int steadyPoolSize)
Increment numconnfree event
|
void |
potentialConnLeakEvent(String poolName,
String appName,
String moduleName)
Whenever connection leak happens, increment numPotentialConnLeak
|
void |
reset()
Reset pool statistics.
|
void |
setPoolRegistry(PoolLifeCycleListenerRegistry poolRegistry) |
public void potentialConnLeakEvent(String poolName, String appName, String moduleName)
pool
- JdbcConnectionPool that got a connLeakEventpublic void connectionTimedOutEvent(String poolName, String appName, String moduleName)
pool
- JdbcConnectionPool that got a connTimedOutEventpublic void decrementNumConnFreeEvent(String poolName, String appName, String moduleName)
poolName
- steadyPoolSize
- public void incrementNumConnFreeEvent(String poolName, String appName, String moduleName, boolean beingDestroyed, int steadyPoolSize)
poolName
- steadyPoolSize
- public void decrementConnectionUsedEvent(String poolName, String appName, String moduleName)
poolName
- beingDestroyed
- if the connection is destroyed due to errorsteadyPoolSize
- public void connectionsFreedEvent(String poolName, String appName, String moduleName, int count)
poolName
- count
- number of connections freed to the poolpublic void connectionUsedEvent(String poolName, String appName, String moduleName)
poolName
- public void connectionValidationFailedEvent(String poolName, String appName, String moduleName, int increment)
pool
- JdbcConnectionPool that got a failed validation eventpublic void connectionRequestServedEvent(String poolName, String appName, String moduleName, long timeTakenInMillis)
poolName
- timeTakenInMillis
- public void connectionDestroyedEvent(String poolName, String appName, String moduleName)
public void connectionAcquiredEvent(String poolName, String appName, String moduleName)
public void connectionReleasedEvent(String poolName, String appName, String moduleName)
public void connectionCreatedEvent(String poolName, String appName, String moduleName)
public void reset()
public void connectionMatchedEvent(String poolName, String appName, String moduleName)
public void connectionNotMatchedEvent(String poolName, String appName, String moduleName)
public void connectionRequestQueuedEvent(String poolName, String appName, String moduleName)
public void connectionRequestDequeuedEvent(String poolName, String appName, String moduleName)
public PoolInfo getPoolInfo()
public void setPoolRegistry(PoolLifeCycleListenerRegistry poolRegistry)
public PoolLifeCycleListenerRegistry getPoolRegistry()
@ManagedAttribute(id="numpotentialconnleak") public org.glassfish.external.statistics.CountStatistic getNumPotentialConnLeakCount()
poolName
- stackTrace
- @ManagedAttribute(id="numconnfailedvalidation") public org.glassfish.external.statistics.CountStatistic getNumConnFailedValidation()
@ManagedAttribute(id="numconntimedout") public org.glassfish.external.statistics.CountStatistic getNumConnTimedOut()
@ManagedAttribute(id="numconnused") public org.glassfish.external.statistics.RangeStatistic getNumConnUsed()
@ManagedAttribute(id="numconnfree") public org.glassfish.external.statistics.RangeStatistic getNumConnFree()
@ManagedAttribute(id="connrequestwaittime") public org.glassfish.external.statistics.RangeStatistic getConnRequestWaitTime()
@ManagedAttribute(id="numconndestroyed") public org.glassfish.external.statistics.CountStatistic getNumConnDestroyed()
@ManagedAttribute(id="numconnacquired") public org.glassfish.external.statistics.CountStatistic getNumConnAcquired()
@ManagedAttribute(id="numconncreated") public org.glassfish.external.statistics.CountStatistic getNumConnCreated()
@ManagedAttribute(id="numconnreleased") public org.glassfish.external.statistics.CountStatistic getNumConnReleased()
@ManagedAttribute(id="numconnsuccessfullymatched") public org.glassfish.external.statistics.CountStatistic getNumConnSuccessfullyMatched()
@ManagedAttribute(id="numconnnotsuccessfullymatched") public org.glassfish.external.statistics.CountStatistic getNumConnNotSuccessfullyMatched()
@ManagedAttribute(id="averageconnwaittime") public org.glassfish.external.statistics.CountStatistic getAverageConnWaitTime()
@ManagedAttribute(id="waitqueuelength") public org.glassfish.external.statistics.CountStatistic getWaitQueueLength()
Copyright © 2020. All rights reserved.