1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.ejb.cfg.EjbSessionBean; 33 34 import javax.management.j2ee.statistics.CountStatistic ; 35 import javax.management.j2ee.statistics.RangeStatistic ; 36 import javax.management.j2ee.statistics.StatefulSessionBeanStats ; 37 38 41 public class StatefulSessionBean 42 extends SessionBean 43 implements StatisticsProvider<StatefulSessionBeanStats > 44 { 45 public StatefulSessionBean(EjbSessionBean ejbBean) 46 { 47 super(ejbBean); 48 } 49 50 public StatefulSessionBeanStats getStats() 51 { 52 return new StatefulSessionBeanStatsImpl(this); 53 } 54 55 57 class StatefulSessionBeanStatsImpl 58 extends StatsSupport 59 implements StatefulSessionBeanStats 60 { 61 public StatefulSessionBeanStatsImpl(J2EEManagedObject j2eeManagedObject) 62 { 63 super(j2eeManagedObject); 64 } 65 66 public RangeStatistic getPassiveCount() 67 { 68 return new UnimplementedRangeStatistic("PassiveCount"); 69 } 70 71 public RangeStatistic getMethodReadyCount() 72 { 73 return new UnimplementedRangeStatistic("MethodReadyCount"); 74 } 75 76 public RangeStatistic getPooledCount() 77 { 78 return new UnimplementedRangeStatistic("PooledCount"); 79 } 80 81 public CountStatistic getCreateCount() 82 { 83 return new UnimplementedCountStatistic("CreateCount"); 84 } 85 86 public CountStatistic getRemoveCount() 87 { 88 return new UnimplementedCountStatistic("RemoveCount"); 89 } 90 } 91 } 92 | Popular Tags |