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