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.StatelessSessionBeanStats ; 37 38 41 public class StatelessSessionBean 42 extends EJB 43 implements StatisticsProvider<StatelessSessionBeanStats > 44 { 45 public StatelessSessionBean(EjbSessionBean ejbBean) 46 { 47 super(ejbBean); 48 } 49 50 public StatelessSessionBeanStats getStats() 51 { 52 return new StatelessSessionBeanStatsImpl(this); 53 } 54 55 57 class StatelessSessionBeanStatsImpl 58 extends StatsSupport 59 implements StatelessSessionBeanStats 60 { 61 public StatelessSessionBeanStatsImpl(J2EEManagedObject j2eeManagedObject) 62 { 63 super(j2eeManagedObject); 64 } 65 66 public RangeStatistic getMethodReadyCount() 67 { 68 return new UnimplementedRangeStatistic("MethodReadyCount"); 69 } 70 71 public RangeStatistic getPooledCount() 72 { 73 return new UnimplementedRangeStatistic("PooledCount"); 74 } 75 76 public CountStatistic getCreateCount() 77 { 78 return new UnimplementedCountStatistic("CreateCount"); 79 } 80 81 public CountStatistic getRemoveCount() 82 { 83 return new UnimplementedCountStatistic("RemoveCount"); 84 } 85 } 86 } 87 | Popular Tags |