1 23 24 31 package com.sun.enterprise.admin.monitor.types; 32 33 44 public class Counter extends MonitoredAttributeType { 45 46 50 public static final Counter BYTE = new Counter(Byte.TYPE, 51 new Byte (Byte.MAX_VALUE)); 52 53 57 public static final Counter SHORT = new Counter(Short.TYPE, 58 new Short (Short.MAX_VALUE)); 59 60 64 public static final Counter INTEGER = new Counter(Integer.TYPE, 65 new Integer (Integer.MAX_VALUE)); 66 67 71 public static final Counter LONG = new Counter(Long.TYPE, 72 new Long (Long.MAX_VALUE)); 73 74 77 private Number maxValue; 78 79 85 protected Counter(Class type, Number maxVal) { 86 super(type); 87 maxValue = maxVal; 88 } 89 90 94 public Number getMaxValue() { 95 return maxValue; 96 } 97 } 98 | Popular Tags |