public class ManagedConnectionPoolStatisticsImpl extends java.lang.Object implements ManagedConnectionPoolStatistics
| Constructor and Description |
|---|
ManagedConnectionPoolStatisticsImpl(int maxPoolSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all statistics
|
void |
deltaBlockingFailureCount()
Delta the blocking failure count value
|
void |
deltaCreatedCount()
Delta the created count value
|
void |
deltaDestroyedCount()
Delta the destroyed count value
|
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 |
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)
|
int |
getBlockingFailureCount()
Get the blocking failure count
|
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
|
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)
|
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
|
int |
getTimedOut()
Get timed out
|
long |
getTotalBlockingInvocations()
Get the total number of blocking invocations
|
long |
getTotalBlockingTime()
Get the total time spent waiting on connections (milliseconds)
|
long |
getTotalCreationTime()
Get the total time spent creating connections (milliseconds)
|
long |
getTotalGetInvocations()
Get the total number of get invocations
|
long |
getTotalGetTime()
Get the total time spent obtaining 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 |
setMaxUsedCount(int v)
Set max used count
|
void |
setMaxWaitCount(int v)
Set max wait count
|
java.lang.String |
toString()
toString
|
public ManagedConnectionPoolStatisticsImpl(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 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 void setMaxUsedCount(int v)
v - The valuepublic int getMaxWaitCount()
getMaxWaitCount in interface PoolStatisticspublic void setMaxWaitCount(int v)
v - The valuepublic long getMaxCreationTime()
getMaxCreationTime in interface PoolStatisticspublic long getMaxGetTime()
getMaxGetTime in interface PoolStatisticspublic 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 getTotalBlockingInvocations()
getTotalBlockingInvocations in interface ManagedConnectionPoolStatisticspublic 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 getTotalGetInvocations()
getTotalGetInvocations in interface ManagedConnectionPoolStatisticspublic int getWaitCount()
getWaitCount in interface PoolStatisticspublic void deltaWaitCount()
public void clear()
clear in interface StatisticsPluginpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2013 IronJacamar (http://www.ironjacamar.org)