public class PoolStatisticsImpl extends java.lang.Object implements PoolStatistics
| Constructor and Description |
|---|
PoolStatisticsImpl(int maxPoolSize,
java.util.concurrent.ConcurrentMap<java.lang.Object,ManagedConnectionPool> mcpPools)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all statistics
|
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)
|
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 |
getMaxCreationTime()
Get max creation 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 |
getTotalBlockingTime()
Get the total time spent waiting on connections (milliseconds)
|
long |
getTotalCreationTime()
Get the total time spent creating 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
|
boolean |
isEnabled()
Is the statistics module enabled
|
void |
setEnabled(boolean v)
Set the statistics module enabled
|
java.lang.String |
toString()
toString
|
public PoolStatisticsImpl(int maxPoolSize,
java.util.concurrent.ConcurrentMap<java.lang.Object,ManagedConnectionPool> mcpPools)
maxPoolSize - The maximum pool sizemcpPools - The pool mappublic 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 int getCreatedCount()
getCreatedCount in interface PoolStatisticspublic int getDestroyedCount()
getDestroyedCount in interface PoolStatisticspublic long getMaxCreationTime()
getMaxCreationTime in interface PoolStatisticspublic int getMaxUsedCount()
getMaxUsedCount in interface PoolStatisticspublic int getMaxWaitCount()
getMaxWaitCount in interface PoolStatisticspublic long getMaxWaitTime()
getMaxWaitTime in interface PoolStatisticspublic int getTimedOut()
getTimedOut in interface PoolStatisticspublic long getTotalBlockingTime()
getTotalBlockingTime in interface PoolStatisticspublic long getTotalCreationTime()
getTotalCreationTime in interface PoolStatisticspublic void clear()
clear in interface StatisticsPluginpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2008-2009 Red Hat Middleware LLC (http://www.jboss.com/)