
public class PoolStatisticsImpl extends Object implements org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics
| Constructor and Description |
|---|
PoolStatisticsImpl(int maxPoolSize,
ConcurrentMap<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)
|
long |
getAverageGetTime()
Get the average time spent obtaining a connection (milliseconds)
|
int |
getBlockingFailureCount()
Get the blocking failure count
|
int |
getCreatedCount()
Get created count
|
String |
getDescription(String name)
Get the description
|
String |
getDescription(String name,
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)
|
Set<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)
|
long |
getTotalGetTime()
Get the total time spent obtaining connections (milliseconds)
|
Class |
getType(String name)
Get the type
|
Object |
getValue(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
|
String |
toString()
toString
|
public PoolStatisticsImpl(int maxPoolSize,
ConcurrentMap<Object,ManagedConnectionPool> mcpPools)
maxPoolSize - The maximum pool sizemcpPools - The pool mappublic Set<String> getNames()
getNames in interface org.jboss.jca.core.spi.statistics.StatisticsPluginpublic Class getType(String name)
getType in interface org.jboss.jca.core.spi.statistics.StatisticsPluginname - The name of the statisticspublic String getDescription(String name)
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPluginname - The name of the statisticspublic String getDescription(String name, Locale locale)
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPluginname - The name of the statisticslocale - The localepublic Object getValue(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 int getBlockingFailureCount()
getBlockingFailureCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic int getCreatedCount()
getCreatedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic int getDestroyedCount()
getDestroyedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic 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 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 int getMaxUsedCount()
getMaxUsedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic int getMaxWaitCount()
getMaxWaitCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic 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 long getTotalBlockingTime()
getTotalBlockingTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic long getTotalCreationTime()
getTotalCreationTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic long getTotalGetTime()
getTotalGetTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic int getWaitCount()
getWaitCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatisticspublic void clear()
clear in interface org.jboss.jca.core.spi.statistics.StatisticsPluginCopyright © 2013 IronJacamar (http://www.ironjacamar.org)