1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.ejb.cfg.EjbEntityBean; 33 34 import javax.management.j2ee.statistics.CountStatistic ; 35 import javax.management.j2ee.statistics.EntityBeanStats ; 36 import javax.management.j2ee.statistics.RangeStatistic ; 37 38 41 public class EntityBean 42 extends EJB 43 implements StatisticsProvider<EntityBeanStats > 44 { 45 public EntityBean(EjbEntityBean ejbBean) 46 { 47 super(ejbBean); 48 } 49 50 52 public EntityBeanStats getStats() 53 { 54 return new EntityBeanStatsImpl(this); 55 } 56 57 class EntityBeanStatsImpl 58 extends StatsSupport 59 implements EntityBeanStats 60 { 61 public EntityBeanStatsImpl(J2EEManagedObject j2eeManagedObject) 62 { 63 super(j2eeManagedObject); 64 } 65 66 public RangeStatistic getReadyCount() 67 { 68 return new UnimplementedRangeStatistic("ReadyCount"); 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 |