
public class PoolStatisticsImpl extends java.lang.Object implements PoolStatistics, XAResourceStatistics
| Constructor and Description |
|---|
PoolStatisticsImpl(int maxPoolSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all statistics
|
void |
deltaBlockingFailureCount()
Delta the blocking failure count value
|
void |
deltaCommit(long time)
Delta commit
|
void |
deltaCreatedCount()
Delta the created count value
|
void |
deltaDestroyedCount()
Delta the destroyed count value
|
void |
deltaEnd(long time)
Delta end
|
void |
deltaForget(long time)
Delta forget
|
void |
deltaPrepare(long time)
Delta prepare
|
void |
deltaRecover(long time)
Delta recover
|
void |
deltaRollback(long time)
Delta rollback
|
void |
deltaStart(long time)
Delta start
|
void |
deltaTimedOut()
Delta the timed out value
|
void |
deltaTotalBlockingTime(long delta)
Add delta to total blocking timeout
|
void |
deltaTotalCreationTime(long delta)
Add delta to total creation time
|
void |
deltaTotalGetTime(long delta)
Add delta to total get time
|
void |
deltaTotalPoolTime(long delta)
Add delta to total pool time
|
void |
deltaTotalUsageTime(long delta)
Add delta to total usage time
|
void |
deltaWaitCount()
Add delta wait count
|
int |
getActiveCount()
Get active count
|
int |
getAvailableCount()
Get the available count
|
long |
getAverageBlockingTime()
Get the average time spent waiting on a connection (milliseconds)
|
long |
getAverageCreationTime()
Get the average time spent creating a connection (milliseconds)
|
long |
getAverageGetTime()
Get the average time spent obtaining a connection (milliseconds)
|
long |
getAveragePoolTime()
Get the average time for a connection in the pool (milliseconds)
|
long |
getAverageUsageTime()
Get the average time spent using a connection (milliseconds)
|
int |
getBlockingFailureCount()
Get the blocking failure count
|
long |
getCommitAverageTime()
Get the commit average time (milliseconds)
|
long |
getCommitCount()
Get the commit count
|
long |
getCommitMaxTime()
Get the commit max time (milliseconds)
|
long |
getCommitTotalTime()
Get the commit total time (milliseconds)
|
int |
getCreatedCount()
Get created count
|
java.lang.String |
getDescription(java.lang.String name)
Get the description
|
java.lang.String |
getDescription(java.lang.String name,
java.util.Locale locale)
Get the description
|
int |
getDestroyedCount()
Get destroyed count
|
long |
getEndAverageTime()
Get the end average time (milliseconds)
|
long |
getEndCount()
Get the end count
|
long |
getEndMaxTime()
Get the end max time (milliseconds)
|
long |
getEndTotalTime()
Get the end total time (milliseconds)
|
long |
getForgetAverageTime()
Get the forget average time (milliseconds)
|
long |
getForgetCount()
Get the forget count
|
long |
getForgetMaxTime()
Get the forget max time (milliseconds)
|
long |
getForgetTotalTime()
Get the forget total time (milliseconds)
|
int |
getIdleCount()
Get idle count
|
int |
getInUseCount()
Get in use count
|
long |
getMaxCreationTime()
Get max creation time (milliseconds)
|
long |
getMaxGetTime()
Get max get time (milliseconds)
|
long |
getMaxPoolTime()
Get max pool time (milliseconds)
|
long |
getMaxUsageTime()
Get max usage time (milliseconds)
|
int |
getMaxUsedCount()
Get max used count
|
int |
getMaxWaitCount()
Get max wait count
|
long |
getMaxWaitTime()
Get max wait time (milliseconds)
|
java.util.Set<java.lang.String> |
getNames()
Get the statistics names
|
long |
getPrepareAverageTime()
Get the prepare average time (milliseconds)
|
long |
getPrepareCount()
Get the prepare count
|
long |
getPrepareMaxTime()
Get the prepare max time (milliseconds)
|
long |
getPrepareTotalTime()
Get the prepare total time (milliseconds)
|
long |
getRecoverAverageTime()
Get the recover average time (milliseconds)
|
long |
getRecoverCount()
Get the recover count
|
long |
getRecoverMaxTime()
Get the recover max time (milliseconds)
|
long |
getRecoverTotalTime()
Get the recover total time (milliseconds)
|
long |
getRollbackAverageTime()
Get the rollback average time (milliseconds)
|
long |
getRollbackCount()
Get the rollback count
|
long |
getRollbackMaxTime()
Get the rollback max time (milliseconds)
|
long |
getRollbackTotalTime()
Get the rollback total time (milliseconds)
|
long |
getStartAverageTime()
Get the start average time (milliseconds)
|
long |
getStartCount()
Get the start count
|
long |
getStartMaxTime()
Get the start max time (milliseconds)
|
long |
getStartTotalTime()
Get the start total time (milliseconds)
|
int |
getTimedOut()
Get timed out
|
long |
getTotalBlockingTime()
Get the total time spent waiting on connections (milliseconds)
|
long |
getTotalCreationTime()
Get the total time spent creating connections (milliseconds)
|
long |
getTotalGetTime()
Get the total time spent obtaining connections (milliseconds)
|
long |
getTotalPoolTime()
Get the total time for connections in the pool (milliseconds)
|
long |
getTotalUsageTime()
Get the total time spent using connections (milliseconds)
|
java.lang.Class |
getType(java.lang.String name)
Get the type
|
java.lang.Object |
getValue(java.lang.String name)
Get the value of the statistics
|
int |
getWaitCount()
Get wait count
|
boolean |
isEnabled()
Is the statistics module enabled
|
void |
setEnabled(boolean v)
Set the statistics module enabled
|
void |
setInUsedCount(int v)
Set in used count
|
void |
setMaxWaitCount(int v)
Set max wait count
|
java.lang.String |
toString()
toString
|
public PoolStatisticsImpl(int maxPoolSize)
maxPoolSize - The maximum pool sizepublic java.util.Set<java.lang.String> getNames()
getNames in interface StatisticsPluginpublic java.lang.Class getType(java.lang.String name)
getType in interface StatisticsPluginname - The name of the statisticspublic java.lang.String getDescription(java.lang.String name)
getDescription in interface StatisticsPluginname - The name of the statisticspublic java.lang.String getDescription(java.lang.String name,
java.util.Locale locale)
getDescription in interface StatisticsPluginname - The name of the statisticslocale - The localepublic java.lang.Object getValue(java.lang.String name)
getValue in interface StatisticsPluginname - The name of the statisticspublic boolean isEnabled()
isEnabled in interface StatisticsPluginpublic void setEnabled(boolean v)
setEnabled in interface StatisticsPluginv - The valuepublic int getActiveCount()
getActiveCount in interface PoolStatisticspublic int getAvailableCount()
getAvailableCount in interface PoolStatisticspublic long getAverageBlockingTime()
getAverageBlockingTime in interface PoolStatisticspublic long getAverageCreationTime()
getAverageCreationTime in interface PoolStatisticspublic long getAverageGetTime()
getAverageGetTime in interface PoolStatisticspublic long getAverageUsageTime()
getAverageUsageTime in interface PoolStatisticspublic long getAveragePoolTime()
getAveragePoolTime in interface PoolStatisticspublic int getBlockingFailureCount()
getBlockingFailureCount in interface PoolStatisticspublic void deltaBlockingFailureCount()
public int getCreatedCount()
getCreatedCount in interface PoolStatisticspublic void deltaCreatedCount()
public int getDestroyedCount()
getDestroyedCount in interface PoolStatisticspublic void deltaDestroyedCount()
public int getIdleCount()
getIdleCount in interface PoolStatisticspublic int getInUseCount()
getInUseCount in interface PoolStatisticspublic void setInUsedCount(int v)
v - The valuepublic int getMaxUsedCount()
getMaxUsedCount in interface PoolStatisticspublic long getMaxCreationTime()
getMaxCreationTime in interface PoolStatisticspublic long getMaxGetTime()
getMaxGetTime in interface PoolStatisticspublic long getMaxPoolTime()
getMaxPoolTime in interface PoolStatisticspublic long getMaxUsageTime()
getMaxUsageTime in interface PoolStatisticspublic int getMaxWaitCount()
getMaxWaitCount in interface PoolStatisticspublic void setMaxWaitCount(int v)
v - The valuepublic long getMaxWaitTime()
getMaxWaitTime in interface PoolStatisticspublic int getTimedOut()
getTimedOut in interface PoolStatisticspublic void deltaTimedOut()
public long getTotalBlockingTime()
getTotalBlockingTime in interface PoolStatisticspublic void deltaTotalBlockingTime(long delta)
delta - The valuepublic long getTotalCreationTime()
getTotalCreationTime in interface PoolStatisticspublic void deltaTotalCreationTime(long delta)
delta - The valuepublic long getTotalGetTime()
getTotalGetTime in interface PoolStatisticspublic void deltaTotalGetTime(long delta)
delta - The valuepublic long getTotalPoolTime()
getTotalPoolTime in interface PoolStatisticspublic void deltaTotalPoolTime(long delta)
delta - The valuepublic long getTotalUsageTime()
getTotalUsageTime in interface PoolStatisticspublic void deltaTotalUsageTime(long delta)
delta - The valuepublic int getWaitCount()
getWaitCount in interface PoolStatisticspublic void deltaWaitCount()
public long getCommitCount()
getCommitCount in interface XAResourceStatisticspublic long getCommitTotalTime()
getCommitTotalTime in interface XAResourceStatisticspublic long getCommitAverageTime()
getCommitAverageTime in interface XAResourceStatisticspublic long getCommitMaxTime()
getCommitMaxTime in interface XAResourceStatisticspublic void deltaCommit(long time)
deltaCommit in interface XAResourceStatisticstime - The millisecondspublic long getEndCount()
getEndCount in interface XAResourceStatisticspublic long getEndTotalTime()
getEndTotalTime in interface XAResourceStatisticspublic long getEndAverageTime()
getEndAverageTime in interface XAResourceStatisticspublic long getEndMaxTime()
getEndMaxTime in interface XAResourceStatisticspublic void deltaEnd(long time)
deltaEnd in interface XAResourceStatisticstime - The millisecondspublic long getForgetCount()
getForgetCount in interface XAResourceStatisticspublic long getForgetTotalTime()
getForgetTotalTime in interface XAResourceStatisticspublic long getForgetAverageTime()
getForgetAverageTime in interface XAResourceStatisticspublic long getForgetMaxTime()
getForgetMaxTime in interface XAResourceStatisticspublic void deltaForget(long time)
deltaForget in interface XAResourceStatisticstime - The millisecondspublic long getPrepareCount()
getPrepareCount in interface XAResourceStatisticspublic long getPrepareTotalTime()
getPrepareTotalTime in interface XAResourceStatisticspublic long getPrepareAverageTime()
getPrepareAverageTime in interface XAResourceStatisticspublic long getPrepareMaxTime()
getPrepareMaxTime in interface XAResourceStatisticspublic void deltaPrepare(long time)
deltaPrepare in interface XAResourceStatisticstime - The millisecondspublic long getRecoverCount()
getRecoverCount in interface XAResourceStatisticspublic long getRecoverTotalTime()
getRecoverTotalTime in interface XAResourceStatisticspublic long getRecoverAverageTime()
getRecoverAverageTime in interface XAResourceStatisticspublic long getRecoverMaxTime()
getRecoverMaxTime in interface XAResourceStatisticspublic void deltaRecover(long time)
deltaRecover in interface XAResourceStatisticstime - The millisecondspublic long getRollbackCount()
getRollbackCount in interface XAResourceStatisticspublic long getRollbackTotalTime()
getRollbackTotalTime in interface XAResourceStatisticspublic long getRollbackAverageTime()
getRollbackAverageTime in interface XAResourceStatisticspublic long getRollbackMaxTime()
getRollbackMaxTime in interface XAResourceStatisticspublic void deltaRollback(long time)
deltaRollback in interface XAResourceStatisticstime - The millisecondspublic long getStartCount()
getStartCount in interface XAResourceStatisticspublic long getStartTotalTime()
getStartTotalTime in interface XAResourceStatisticspublic long getStartAverageTime()
getStartAverageTime in interface XAResourceStatisticspublic long getStartMaxTime()
getStartMaxTime in interface XAResourceStatisticspublic void deltaStart(long time)
deltaStart in interface XAResourceStatisticstime - The millisecondspublic void clear()
clear in interface StatisticsPluginpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014 IronJacamar (http://www.ironjacamar.org)