Class BoundaryStatisticImpl
- java.lang.Object
-
- com.sun.enterprise.admin.monitor.stats.StatisticImpl
-
- com.sun.enterprise.admin.monitor.stats.BoundaryStatisticImpl
-
- All Implemented Interfaces:
Serializable
,BoundaryStatistic
,Statistic
public final class BoundaryStatisticImpl extends StatisticImpl implements BoundaryStatistic
An implementation of a BoundaryStatistic. All instances of this class are immutable. Provides all the necessary accessors for properties.- Since:
- S1AS8.0
- Author:
- Muralidhar Vempaty, Kedar Mhaswade
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.monitor.stats.StatisticImpl
DEFAULT_UNIT, DEFAULT_VALUE, localStrMgr, NEWLINE
-
-
Constructor Summary
Constructors Constructor Description BoundaryStatisticImpl(long lower, long upper, String name, String unit, String desc, long startTime, long sampleTime)
Constructs the instance of BoundaryStatistic that is immutable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLowerBound()
Returns the lowest possible value, that this statistic is permitted to attainlong
getUpperBound()
Return the highest possible value, that this statistic is permitted to attain-
Methods inherited from class com.sun.enterprise.admin.monitor.stats.StatisticImpl
getDescription, getLastSampleTime, getName, getStartTime, getUnit, setDescription, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.j2ee.statistics.Statistic
getDescription, getLastSampleTime, getName, getStartTime, getUnit
-
-
-
-
Constructor Detail
-
BoundaryStatisticImpl
public BoundaryStatisticImpl(long lower, long upper, String name, String unit, String desc, long startTime, long sampleTime)
Constructs the instance of BoundaryStatistic that is immutable.- Parameters:
upper
- The upper limit of this statisticlower
- The lower limit of this statisticname
- The name of the statisticunit
- The unit of measurement for this statisticdesc
- A brief description of the statisticstartTime
- Time in milliseconds at which the measurement was startedsampleTime
- Time at which the last measurement was done.
-
-
Method Detail
-
getLowerBound
public long getLowerBound()
Returns the lowest possible value, that this statistic is permitted to attain- Specified by:
getLowerBound
in interfaceBoundaryStatistic
- Returns:
- long the lowest permissible value
-
getUpperBound
public long getUpperBound()
Return the highest possible value, that this statistic is permitted to attain- Specified by:
getUpperBound
in interfaceBoundaryStatistic
- Returns:
- long the highest permissible value
-
-