1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.ejb.cfg.EjbMessageBean; 33 34 import javax.management.j2ee.statistics.CountStatistic ; 35 import javax.management.j2ee.statistics.MessageDrivenBeanStats ; 36 37 40 public class MessageDrivenBean 41 extends EJB 42 implements StatisticsProvider<MessageDrivenBeanStats > 43 { 44 public MessageDrivenBean(EjbMessageBean ejbMessageBean) 45 { 46 super(ejbMessageBean); 47 } 48 49 public MessageDrivenBeanStats getStats() 50 { 51 return new MessageDrivenBeanStatsImpl(this); 52 } 53 54 56 class MessageDrivenBeanStatsImpl 57 extends StatsSupport 58 implements MessageDrivenBeanStats 59 { 60 public MessageDrivenBeanStatsImpl(J2EEManagedObject j2eeManagedObject) 61 { 62 super(j2eeManagedObject); 63 } 64 65 public CountStatistic getMessageCount() 66 { 67 return new UnimplementedCountStatistic("MessageCount"); 68 } 69 70 public CountStatistic getCreateCount() 71 { 72 return new UnimplementedCountStatistic("CreateCount"); 73 } 74 75 public CountStatistic getRemoveCount() 76 { 77 return new UnimplementedCountStatistic("RemoveCount"); 78 } 79 } 80 } 81 | Popular Tags |