FileDocCategorySizeDatePackage
BoundaryStatisticImpl.javaAPI DocGlassfish v2 API4001Fri May 04 22:25:48 BST 2007com.sun.enterprise.admin.monitor.stats

BoundaryStatisticImpl

public final class BoundaryStatisticImpl extends StatisticImpl implements javax.management.j2ee.statistics.BoundaryStatistic
An implementation of a BoundaryStatistic. All instances of this class are immutable. Provides all the necessary accessors for properties.
author
Muralidhar Vempaty
author
Kedar Mhaswade
since
S1AS8.0
verison
1.0

Fields Summary
private final long
lowerBound
private final long
upperBound
Constructors Summary
public BoundaryStatisticImpl(long lower, long upper, String name, String unit, String desc, long startTime, long sampleTime)
Constructs the instance of BoundaryStatistic that is immutable.

param
upper The upper limit of this statistic
param
lower The lower limit of this statistic
param
name The name of the statistic
param
unit The unit of measurement for this statistic
param
desc A brief description of the statistic
param
startTime Time in milliseconds at which the measurement was started
param
sampleTime Time at which the last measurement was done.

        
        super(name, unit, desc, startTime, sampleTime);
        upperBound = upper;
        lowerBound = lower;
    
Methods Summary
public longgetLowerBound()
Returns the lowest possible value, that this statistic is permitted to attain

return
long the lowest permissible value

        return lowerBound;
    
public longgetUpperBound()
Return the highest possible value, that this statistic is permitted to attain

return
long the highest permissible value

        return upperBound;