org.jboss.jca.core.connectionmanager.pool
Class PoolStatisticsImpl

java.lang.Object
  extended by org.jboss.jca.core.connectionmanager.pool.PoolStatisticsImpl
All Implemented Interfaces:
Serializable, org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics, org.jboss.jca.core.spi.statistics.StatisticsPlugin

public class PoolStatisticsImpl
extends Object
implements org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

Pool statistics

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
PoolStatisticsImpl(int maxPoolSize, ConcurrentMap<Object,ManagedConnectionPool> mcpPools)
          Constructor
 
Method Summary
 void clear()
          
 int getActiveCount()
          
 int getAvailableCount()
          
 long getAverageBlockingTime()
          
 long getAverageCreationTime()
          
 int getCreatedCount()
          
 String getDescription(String name)
          
 String getDescription(String name, Locale locale)
          
 int getDestroyedCount()
          
 int getInUseCount()
          
 long getMaxCreationTime()
          
 int getMaxUsedCount()
          Get max used count
 int getMaxWaitCount()
          Get max wait count
 long getMaxWaitTime()
          
 Set<String> getNames()
          
 int getTimedOut()
          
 long getTotalBlockingTime()
          
 long getTotalCreationTime()
          
 Class getType(String name)
          
 Object getValue(String name)
          
 boolean isEnabled()
          
 void setEnabled(boolean v)
          
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PoolStatisticsImpl

public PoolStatisticsImpl(int maxPoolSize,
                          ConcurrentMap<Object,ManagedConnectionPool> mcpPools)
Constructor

Parameters:
maxPoolSize - The maximum pool size
mcpPools - The pool map
Method Detail

getNames

public Set<String> getNames()

Specified by:
getNames in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getType

public Class getType(String name)

Specified by:
getType in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getDescription

public String getDescription(String name)

Specified by:
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getDescription

public String getDescription(String name,
                             Locale locale)

Specified by:
getDescription in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getValue

public Object getValue(String name)

Specified by:
getValue in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

isEnabled

public boolean isEnabled()

Specified by:
isEnabled in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

setEnabled

public void setEnabled(boolean v)

Specified by:
setEnabled in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

getActiveCount

public int getActiveCount()

Specified by:
getActiveCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getAvailableCount

public int getAvailableCount()

Specified by:
getAvailableCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getAverageBlockingTime

public long getAverageBlockingTime()

Specified by:
getAverageBlockingTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getAverageCreationTime

public long getAverageCreationTime()

Specified by:
getAverageCreationTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getCreatedCount

public int getCreatedCount()

Specified by:
getCreatedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getDestroyedCount

public int getDestroyedCount()

Specified by:
getDestroyedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getInUseCount

public int getInUseCount()

Specified by:
getInUseCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getMaxCreationTime

public long getMaxCreationTime()

Specified by:
getMaxCreationTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getMaxUsedCount

public int getMaxUsedCount()
Get max used count

Specified by:
getMaxUsedCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics
Returns:
The value

getMaxWaitCount

public int getMaxWaitCount()
Get max wait count

Specified by:
getMaxWaitCount in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics
Returns:
The value

getMaxWaitTime

public long getMaxWaitTime()

Specified by:
getMaxWaitTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getTimedOut

public int getTimedOut()

Specified by:
getTimedOut in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getTotalBlockingTime

public long getTotalBlockingTime()

Specified by:
getTotalBlockingTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

getTotalCreationTime

public long getTotalCreationTime()

Specified by:
getTotalCreationTime in interface org.jboss.jca.core.api.connectionmanager.pool.PoolStatistics

clear

public void clear()

Specified by:
clear in interface org.jboss.jca.core.spi.statistics.StatisticsPlugin

toString

public String toString()
toString

Overrides:
toString in class Object
Returns:
The value


Copyright © 2012 JBoss, by Red Hat (http://www.jboss.org/ironjacamar)