1 17 package org.apache.geronimo.management.stats; 18 19 import javax.management.j2ee.statistics.CountStatistic ; 20 21 24 public class CountStatisticImpl extends StatisticImpl implements CountStatistic { 25 private long count; 26 27 public CountStatisticImpl(String name, String unit, String description) { 28 super(name, unit, description); 29 } 30 31 public CountStatisticImpl(String name, String unit, String description, long count) { 32 super(name, unit, description); 33 setCount(count); 34 } 35 36 public long getCount() { 37 return count; 38 } 39 40 public void setCount(long count) { 41 this.count = count; 42 } 43 } 44 | Popular Tags |