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