1 22 package org.jboss.management.j2ee.statistics; 23 24 import javax.management.j2ee.statistics.EntityBeanStats ; 25 import javax.management.j2ee.statistics.RangeStatistic ; 26 27 33 public class EntityBeanStatsImpl extends EJBStatsImpl 34 implements EntityBeanStats 35 { 36 38 39 private static final long serialVersionUID = 568715454355570891L; 40 41 43 private RangeStatisticImpl methodReadyCount; 44 private RangeStatisticImpl pooledCount; 45 46 48 public EntityBeanStatsImpl() 49 { 50 methodReadyCount = new RangeStatisticImpl("ReadyCount", "1", 51 "The count of beans in the ready state"); 52 pooledCount = new RangeStatisticImpl("PooledCount", "1", 53 "The count of beans in the pooled state"); 54 addStatistic("ReadyCount", methodReadyCount); 55 addStatistic("PooledCount", pooledCount); 56 } 57 58 60 public RangeStatistic getReadyCount() 61 { 62 return methodReadyCount; 63 } 64 65 public RangeStatistic getPooledCount() 66 { 67 return pooledCount; 68 } 69 70 } 72 | Popular Tags |