1 23 24 28 29 34 35 package com.sun.enterprise.admin.monitor.util; 36 import javax.management.j2ee.statistics.*; 37 41 public class StatisticMock implements Statistic { 42 protected String name = null; 43 protected String unit = null; 44 protected String description = null; 45 protected long startTime = 0; 46 protected long sampleTime = 0; 47 48 public StatisticMock(String name, String unit, String desc, long startTime, long sampleTime) { 49 this.name=name; 50 this.unit=unit; 51 this.description=description; 52 this.startTime=startTime; 53 this.sampleTime=sampleTime; 54 } 55 56 public String getDescription() { 57 return description; 58 } 59 60 public long getLastSampleTime() { 61 return sampleTime; 62 } 63 64 public String getName() { 65 return name; 66 } 67 68 public long getStartTime() { 69 return startTime; 70 } 71 72 public String getUnit() { 73 return unit; 74 } 75 } 76 | Popular Tags |