FileDocCategorySizeDatePackage
BoundedRangeStatisticMock.javaAPI DocGlassfish v2 API3464Fri May 04 22:25:56 BST 2007com.sun.enterprise.admin.monitor.util

BoundedRangeStatisticMock

public class BoundedRangeStatisticMock extends StatisticMock implements BoundedRangeStatistic
Mock BoundedRangeStatistic implementation
author
sg112326

Fields Summary
private long
current
private long
highWater
private long
lowWater
private long
upperBound
private long
lowerBound
Constructors Summary
public BoundedRangeStatisticMock(long current, long highWater, long lowWater, long upperBound, long lowerBound, String name, String unit, String desc, long sampleTime, long startTime)
Creates a new instance of BoundedRangeStatisticImpl

    
           
          
         
         
      
        super(name, unit, desc, startTime, sampleTime);
        this.current=current;
        this.highWater=highWater;
        this.lowWater=lowWater;
        this.upperBound=upperBound;
        this.lowerBound=lowerBound;
    
Methods Summary
public longgetCurrent()

        System.out.println("returning current:"+current);
        return current;
    
public longgetHighWaterMark()

        return highWater;
    
public longgetLowWaterMark()

        return lowWater;
    
public longgetLowerBound()

        return lowerBound;
    
public longgetUpperBound()

        return upperBound;