1 23 24 28 29 34 35 package com.sun.enterprise.admin.monitor.util; 36 import javax.management.j2ee.statistics.*; 37 41 public class StatisticFactory { 42 43 44 public static CountStatistic getCountStatistic(long countVal, String name, 45 String unit, String desc, long sampleTime, 46 long startTime){ 47 return new CountStatisticImplMock(countVal, name, unit, desc, sampleTime, 48 startTime); 49 } 50 51 public static BoundedRangeStatistic getBoundedRangeStatistic(long current, 52 long highWater, long lowWater, long upperBound, 53 long lowerBound, String name, String unit, 54 String desc, long sampleTime, long startTime) { 55 return new BoundedRangeStatisticMock(current, highWater, lowWater, upperBound, 56 lowerBound, name, unit, desc, sampleTime, startTime); 57 } 58 } 59 | Popular Tags |