|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.pooling.impl.BasicResourcePoolStatistics
public class BasicResourcePoolStatistics
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 PoolStatistic s 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 |
---|
public BasicResourcePoolStatistics(ResourcePool pool)
Method Detail |
---|
public void addStatistic(PoolStatistic statistic)
ResourcePoolStatistics
PoolStatistic
to be monitored
addStatistic
in interface ResourcePoolStatistics
public ResourceDescriptorID getResourceDescriptorID()
ResourcePoolStatistics
getResourceDescriptorID
in interface ResourcePoolStatistics
public ComponentTypeID getComponentTypeID()
ResourcePoolStatistics
com.metamatrix.common.config.ComponentTypeID
that
identifies the type of pool these statistics represent.
getComponentTypeID
in interface ResourcePoolStatistics
public java.util.Collection getStatisticNames()
ResourcePoolStatistics
getStatisticNames
in interface ResourcePoolStatistics
public java.util.Map getStatistics()
ResourcePoolStatistics
PoolStatistic
s keyed by the statistic name
getStatistics
in interface ResourcePoolStatistics
public PoolStatistic getStatistic(java.lang.String statName)
getStatistic
in interface ResourcePoolStatistics
Number
value of the monitor statistic valuepublic void increment(java.lang.String statName)
public void increment(java.lang.String statName, long value)
public void decrement(java.lang.String statName)
public void decrement(java.lang.String statName, long value)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |