org.glassfish.external.statistics.impl
Class BoundaryStatisticImpl

java.lang.Object
  extended by org.glassfish.external.statistics.impl.StatisticImpl
      extended by org.glassfish.external.statistics.impl.BoundaryStatisticImpl
All Implemented Interfaces:
java.lang.reflect.InvocationHandler, BoundaryStatistic, Statistic

public final class BoundaryStatisticImpl
extends StatisticImpl
implements BoundaryStatistic, java.lang.reflect.InvocationHandler

Author:
Sreenivas Munnangi

Field Summary
 
Fields inherited from class org.glassfish.external.statistics.impl.StatisticImpl
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND
 
Constructor Summary
BoundaryStatisticImpl(long lower, long upper, java.lang.String name, java.lang.String unit, java.lang.String desc, long startTime, long sampleTime)
           
 
Method Summary
 long getLowerBound()
          The lower limit of the value of this attribute.The upper limit of the value of this attribute.
 java.util.Map getStaticAsMap()
           
 BoundaryStatistic getStatistic()
           
 long getUpperBound()
          The upper limit of the value of this attribute.
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
           
 void reset()
           
 
Methods inherited from class org.glassfish.external.statistics.impl.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.glassfish.external.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
 

Constructor Detail

BoundaryStatisticImpl

public BoundaryStatisticImpl(long lower,
                             long upper,
                             java.lang.String name,
                             java.lang.String unit,
                             java.lang.String desc,
                             long startTime,
                             long sampleTime)
Method Detail

getStatistic

public BoundaryStatistic getStatistic()

getStaticAsMap

public java.util.Map getStaticAsMap()
Overrides:
getStaticAsMap in class StatisticImpl

getLowerBound

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

Specified by:
getLowerBound in interface BoundaryStatistic

getUpperBound

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

Specified by:
getUpperBound in interface BoundaryStatistic

reset

public void reset()
Overrides:
reset in class StatisticImpl

invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable