1 18 package org.apache.activemq.management; 19 20 21 26 public class BoundaryStatisticImpl extends StatisticImpl { 27 private long lowerBound; 28 private long upperBound; 29 30 public BoundaryStatisticImpl(String name, String unit, String description, long lowerBound, long upperBound) { 31 super(name, unit, description); 32 this.lowerBound = lowerBound; 33 this.upperBound = upperBound; 34 } 35 36 public long getLowerBound() { 37 return lowerBound; 38 } 39 40 public long getUpperBound() { 41 return upperBound; 42 } 43 44 protected void appendFieldDescription(StringBuffer buffer) { 45 buffer.append(" lowerBound: "); 46 buffer.append(Long.toString(lowerBound)); 47 buffer.append(" upperBound: "); 48 buffer.append(Long.toString(upperBound)); 49 super.appendFieldDescription(buffer); 50 } 51 } 52 | Popular Tags |