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 StatisticsPlugin
public java.lang.Class getType(java.lang.String name)
getType
in interface StatisticsPlugin
name
- The name of the statisticspublic java.lang.String getDescription(java.lang.String name)
getDescription
in interface StatisticsPlugin
name
- The name of the statisticspublic java.lang.String getDescription(java.lang.String name, java.util.Locale locale)
getDescription
in interface StatisticsPlugin
name
- The name of the statisticslocale
- The localepublic java.lang.Object getValue(java.lang.String name)
getValue
in interface StatisticsPlugin
name
- The name of the statisticspublic boolean isEnabled()
isEnabled
in interface StatisticsPlugin
public void setEnabled(boolean v)
setEnabled
in interface StatisticsPlugin
v
- The valuepublic int getActiveCount()
getActiveCount
in interface PoolStatistics
public int getAvailableCount()
getAvailableCount
in interface PoolStatistics
public long getAverageBlockingTime()
getAverageBlockingTime
in interface PoolStatistics
public long getAverageCreationTime()
getAverageCreationTime
in interface PoolStatistics
public long getAverageGetTime()
getAverageGetTime
in interface PoolStatistics
public long getAverageUsageTime()
getAverageUsageTime
in interface PoolStatistics
public long getAveragePoolTime()
getAveragePoolTime
in interface PoolStatistics
public int getBlockingFailureCount()
getBlockingFailureCount
in interface PoolStatistics
public void deltaBlockingFailureCount()
public int getCreatedCount()
getCreatedCount
in interface PoolStatistics
public void deltaCreatedCount()
public int getDestroyedCount()
getDestroyedCount
in interface PoolStatistics
public void deltaDestroyedCount()
public int getIdleCount()
getIdleCount
in interface PoolStatistics
public int getInUseCount()
getInUseCount
in interface PoolStatistics
public void setInUsedCount(int v)
v
- The valuepublic int getMaxUsedCount()
getMaxUsedCount
in interface PoolStatistics
public long getMaxCreationTime()
getMaxCreationTime
in interface PoolStatistics
public long getMaxGetTime()
getMaxGetTime
in interface PoolStatistics
public long getMaxPoolTime()
getMaxPoolTime
in interface PoolStatistics
public long getMaxUsageTime()
getMaxUsageTime
in interface PoolStatistics
public int getMaxWaitCount()
getMaxWaitCount
in interface PoolStatistics
public void setMaxWaitCount(int v)
v
- The valuepublic long getMaxWaitTime()
getMaxWaitTime
in interface PoolStatistics
public int getTimedOut()
getTimedOut
in interface PoolStatistics
public void deltaTimedOut()
public long getTotalBlockingTime()
getTotalBlockingTime
in interface PoolStatistics
public void deltaTotalBlockingTime(long delta)
delta
- The valuepublic long getTotalCreationTime()
getTotalCreationTime
in interface PoolStatistics
public void deltaTotalCreationTime(long delta)
delta
- The valuepublic long getTotalGetTime()
getTotalGetTime
in interface PoolStatistics
public void deltaTotalGetTime(long delta)
delta
- The valuepublic long getTotalPoolTime()
getTotalPoolTime
in interface PoolStatistics
public void deltaTotalPoolTime(long delta)
delta
- The valuepublic long getTotalUsageTime()
getTotalUsageTime
in interface PoolStatistics
public void deltaTotalUsageTime(long delta)
delta
- The valuepublic int getWaitCount()
getWaitCount
in interface PoolStatistics
public void deltaWaitCount()
public long getCommitCount()
getCommitCount
in interface XAResourceStatistics
public long getCommitTotalTime()
getCommitTotalTime
in interface XAResourceStatistics
public long getCommitAverageTime()
getCommitAverageTime
in interface XAResourceStatistics
public long getCommitMaxTime()
getCommitMaxTime
in interface XAResourceStatistics
public void deltaCommit(long time)
deltaCommit
in interface XAResourceStatistics
time
- The millisecondspublic long getEndCount()
getEndCount
in interface XAResourceStatistics
public long getEndTotalTime()
getEndTotalTime
in interface XAResourceStatistics
public long getEndAverageTime()
getEndAverageTime
in interface XAResourceStatistics
public long getEndMaxTime()
getEndMaxTime
in interface XAResourceStatistics
public void deltaEnd(long time)
deltaEnd
in interface XAResourceStatistics
time
- The millisecondspublic long getForgetCount()
getForgetCount
in interface XAResourceStatistics
public long getForgetTotalTime()
getForgetTotalTime
in interface XAResourceStatistics
public long getForgetAverageTime()
getForgetAverageTime
in interface XAResourceStatistics
public long getForgetMaxTime()
getForgetMaxTime
in interface XAResourceStatistics
public void deltaForget(long time)
deltaForget
in interface XAResourceStatistics
time
- The millisecondspublic long getPrepareCount()
getPrepareCount
in interface XAResourceStatistics
public long getPrepareTotalTime()
getPrepareTotalTime
in interface XAResourceStatistics
public long getPrepareAverageTime()
getPrepareAverageTime
in interface XAResourceStatistics
public long getPrepareMaxTime()
getPrepareMaxTime
in interface XAResourceStatistics
public void deltaPrepare(long time)
deltaPrepare
in interface XAResourceStatistics
time
- The millisecondspublic long getRecoverCount()
getRecoverCount
in interface XAResourceStatistics
public long getRecoverTotalTime()
getRecoverTotalTime
in interface XAResourceStatistics
public long getRecoverAverageTime()
getRecoverAverageTime
in interface XAResourceStatistics
public long getRecoverMaxTime()
getRecoverMaxTime
in interface XAResourceStatistics
public void deltaRecover(long time)
deltaRecover
in interface XAResourceStatistics
time
- The millisecondspublic long getRollbackCount()
getRollbackCount
in interface XAResourceStatistics
public long getRollbackTotalTime()
getRollbackTotalTime
in interface XAResourceStatistics
public long getRollbackAverageTime()
getRollbackAverageTime
in interface XAResourceStatistics
public long getRollbackMaxTime()
getRollbackMaxTime
in interface XAResourceStatistics
public void deltaRollback(long time)
deltaRollback
in interface XAResourceStatistics
time
- The millisecondspublic long getStartCount()
getStartCount
in interface XAResourceStatistics
public long getStartTotalTime()
getStartTotalTime
in interface XAResourceStatistics
public long getStartAverageTime()
getStartAverageTime
in interface XAResourceStatistics
public long getStartMaxTime()
getStartMaxTime
in interface XAResourceStatistics
public void deltaStart(long time)
deltaStart
in interface XAResourceStatistics
time
- The millisecondspublic void clear()
clear
in interface StatisticsPlugin
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014 IronJacamar (http://www.ironjacamar.org)