1 23 24 28 29 34 35 package com.sun.enterprise.admin.monitor.stats; 36 import javax.management.j2ee.statistics.RangeStatistic ; 37 38 45 46 public final class RangeStatisticImpl extends StatisticImpl implements RangeStatistic { 47 48 private final long currentVal; 49 private final long highWaterMark; 50 private final long lowWaterMark; 51 52 64 public RangeStatisticImpl(long curVal, long highMark, long lowMark, 65 String name, String unit, String desc, 66 long startTime, long sampleTime) { 67 68 super(name, unit, desc, startTime, sampleTime); 69 currentVal = curVal; 70 highWaterMark = highMark; 71 lowWaterMark = lowMark; 72 } 73 74 78 public long getCurrent() { 79 return currentVal; 80 } 81 82 86 public long getHighWaterMark() { 87 return highWaterMark; 88 } 89 90 94 public long getLowWaterMark() { 95 return lowWaterMark; 96 } 97 } 98 | Popular Tags |