1 28 29 30 package com.caucho.management.j2ee; 31 32 import com.caucho.jms.ConnectionFactoryImpl; 33 34 import javax.management.j2ee.statistics.JMSConnectionStats ; 35 import javax.management.j2ee.statistics.JMSStats ; 36 37 40 public class JMSResource 41 extends J2EEResource 42 implements StatisticsProvider<JMSStats > 43 { 44 private final ConnectionFactoryImpl _connectionFactory; 45 46 public JMSResource(ConnectionFactoryImpl connectionFactory) 47 { 48 _connectionFactory = connectionFactory; 49 } 50 51 protected String getName() 52 { 53 return _connectionFactory.getName(); 54 } 55 56 public JMSStats getStats() 57 { 58 return new JMSStatsImpl(this); 59 } 60 61 63 class JMSStatsImpl 64 extends StatsSupport 65 implements JMSStats 66 { 67 public JMSStatsImpl(J2EEManagedObject j2eeManagedObject) 68 { 69 super(j2eeManagedObject); 70 } 71 72 public JMSConnectionStats []getConnections() 73 { 74 return new JMSConnectionStats [0]; 76 } 77 } 78 } 79 | Popular Tags |