org.jboss.management.j2ee.statistics
Class BoundaryStatisticImpl

java.lang.Object
  extended byorg.jboss.management.j2ee.statistics.StatisticImpl (src) 
      extended byorg.jboss.management.j2ee.statistics.BoundaryStatisticImpl
All Implemented Interfaces:
BoundaryStatistic (src) , java.io.Serializable, Statistic (src)

public class BoundaryStatisticImpl
extends StatisticImpl (src)
implements BoundaryStatistic (src)

This class is the JBoss specific Boundary Statistics class allowing just to increase and resetStats the instance.

See Also:
Serialized Form

Field Summary
protected  long mLowerBound
           
protected  long mUpperBound
           
 
Fields inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src)
description, lastSampleTime, name, startTime, units
 
Constructor Summary
BoundaryStatisticImpl(java.lang.String pName, java.lang.String pUnit, java.lang.String pDescription, long lowerBound, long upperBound)
          Default (no-args) constructor
 
Method Summary
 long getLowerBound()
          The lower limit of the value of this attribute.The upper limit of the value of this attribute.
 long getUpperBound()
          The upper limit of the value of this attribute.
 java.lang.String toString()
           
 
Methods inherited from class org.jboss.management.j2ee.statistics.StatisticImpl (src)
getDescription, getLastSampleTime, getName, getStartTime, getUnit, reset, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.management.j2ee.statistics.Statistic (src)
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Field Detail

mLowerBound

protected long mLowerBound

mUpperBound

protected long mUpperBound
Constructor Detail

BoundaryStatisticImpl

public BoundaryStatisticImpl(java.lang.String pName,
                             java.lang.String pUnit,
                             java.lang.String pDescription,
                             long lowerBound,
                             long upperBound)
Default (no-args) constructor

Method Detail

getLowerBound

public long getLowerBound()
Description copied from interface: BoundaryStatistic (src)
The lower limit of the value of this attribute.The upper limit of the value of this attribute.

Specified by:
getLowerBound in interface BoundaryStatistic (src)
Returns:
The value of LowerBound

getUpperBound

public long getUpperBound()
Description copied from interface: BoundaryStatistic (src)
The upper limit of the value of this attribute.

Specified by:
getUpperBound in interface BoundaryStatistic (src)
Returns:
The value of UpperBound

toString

public java.lang.String toString()
Overrides:
toString in class StatisticImpl (src)
Returns:
Debug Information about this Instance