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