com.metamatrix.common.pooling.impl
Class BasicResourcePoolStatistics

java.lang.Object
  extended by com.metamatrix.common.pooling.impl.BasicResourcePoolStatistics
All Implemented Interfaces:
ResourcePoolStatistics, java.io.Serializable

public class BasicResourcePoolStatistics
extends java.lang.Object
implements ResourcePoolStatistics, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
BasicResourcePoolStatistics(ResourcePool pool)
           
 
Method Summary
 void addStatistic(PoolStatistic statistic)
          Add a PoolStatistic to be monitored
 void decrement(java.lang.String statName)
           
 void decrement(java.lang.String statName, long value)
           
 ComponentTypeID getComponentTypeID()
          Returns the com.metamatrix.common.config.ComponentTypeID that identifies the type of pool these statistics represent.
 ResourceDescriptorID getResourceDescriptorID()
          Returns the descriptor id for the resource pool.
 PoolStatistic getStatistic(java.lang.String statName)
          Returns the value of the monitored statistic object This is a Double, or Long
 java.util.Collection getStatisticNames()
          Returns a collection of all the statistics being gather for this pool
 java.util.Map getStatistics()
          Returns the map of the PoolStatistics keyed by the statistic name
 void increment(java.lang.String statName)
           
 void increment(java.lang.String statName, long value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicResourcePoolStatistics

public BasicResourcePoolStatistics(ResourcePool pool)
Method Detail

addStatistic

public void addStatistic(PoolStatistic statistic)
Description copied from interface: ResourcePoolStatistics
Add a PoolStatistic to be monitored

Specified by:
addStatistic in interface ResourcePoolStatistics

getResourceDescriptorID

public ResourceDescriptorID getResourceDescriptorID()
Description copied from interface: ResourcePoolStatistics
Returns the descriptor id for the resource pool.

Specified by:
getResourceDescriptorID in interface ResourcePoolStatistics
Returns:
ResourceDescriptorID pool ID

getComponentTypeID

public ComponentTypeID getComponentTypeID()
Description copied from interface: ResourcePoolStatistics
Returns the com.metamatrix.common.config.ComponentTypeID that identifies the type of pool these statistics represent.

Specified by:
getComponentTypeID in interface ResourcePoolStatistics
Returns:
ComponentTypeID is the type id

getStatisticNames

public java.util.Collection getStatisticNames()
Description copied from interface: ResourcePoolStatistics
Returns a collection of all the statistics being gather for this pool

Specified by:
getStatisticNames in interface ResourcePoolStatistics
Returns:
Collection of statistic names

getStatistics

public java.util.Map getStatistics()
Description copied from interface: ResourcePoolStatistics
Returns the map of the PoolStatistics keyed by the statistic name

Specified by:
getStatistics in interface ResourcePoolStatistics
Returns:
Map of PoolStatistics

getStatistic

public PoolStatistic getStatistic(java.lang.String statName)
Returns the value of the monitored statistic object This is a Double, or Long

Specified by:
getStatistic in interface ResourcePoolStatistics
Returns:
Number value of the monitor statistic value

increment

public void increment(java.lang.String statName)

increment

public void increment(java.lang.String statName,
                      long value)

decrement

public void decrement(java.lang.String statName)

decrement

public void decrement(java.lang.String statName,
                      long value)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009. All Rights Reserved.