FileDocCategorySizeDatePackage
BoundedRangeStatisticMock.javaAPI DocGlassfish v2 API3472Fri May 04 22:25:54 BST 2007com.sun.enterprise.admin.monitor.registry.spi

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;