org.jboss.jca.core.connectionmanager.pool.mcp
Class ManagedConnectionPoolStatisticsImpl

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

public class ManagedConnectionPoolStatisticsImpl
extends Object
implements ManagedConnectionPoolStatistics

Core statistics.

Author:
Jesper Pedersen
See Also:
Serialized Form

Constructor Summary
ManagedConnectionPoolStatisticsImpl(int maxPoolSize)
          Constructor
 
Method Summary
 void clear()
          
 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
 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 getTotalBlockingInvocations()
          Get the total number of blocking invocations
 long getTotalBlockingTime()
          
 long getTotalCreationTime()
          
 Class getType(String name)
          
 Object getValue(String name)
          
 boolean isEnabled()
          
 void setEnabled(boolean v)
          
 void setInUsedCount(int v)
          Set in used count
 void setMaxUsedCount(int v)
          Set max used count
 void setMaxWaitCount(int v)
          Set max wait count
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ManagedConnectionPoolStatisticsImpl

public ManagedConnectionPoolStatisticsImpl(int maxPoolSize)
Constructor

Parameters:
maxPoolSize - The maximum pool size
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

deltaCreatedCount

public void deltaCreatedCount()
Delta the created count value


getDestroyedCount

public int getDestroyedCount()

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

deltaDestroyedCount

public void deltaDestroyedCount()
Delta the destroyed count value


getInUseCount

public int getInUseCount()

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

setInUsedCount

public void setInUsedCount(int v)
Set in used count

Parameters:
v - The value

getMaxUsedCount

public int getMaxUsedCount()
Get max used count

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

setMaxUsedCount

public void setMaxUsedCount(int v)
Set max used count

Parameters:
v - 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

setMaxWaitCount

public void setMaxWaitCount(int v)
Set max wait count

Parameters:
v - The value

getMaxCreationTime

public long getMaxCreationTime()

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

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

deltaTimedOut

public void deltaTimedOut()
Delta the timed out value


getTotalBlockingTime

public long getTotalBlockingTime()

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

deltaTotalBlockingTime

public void deltaTotalBlockingTime(long delta)
Add delta to total blocking timeout

Parameters:
delta - The value

getTotalBlockingInvocations

public long getTotalBlockingInvocations()
Get the total number of blocking invocations

Specified by:
getTotalBlockingInvocations in interface ManagedConnectionPoolStatistics
Returns:
The value

getTotalCreationTime

public long getTotalCreationTime()

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

deltaTotalCreationTime

public void deltaTotalCreationTime(long delta)
Add delta to total creation time

Parameters:
delta - The value

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)