1 18 package org.apache.activemq.broker.jmx; 19 20 import javax.management.ObjectName ; 21 22 import org.apache.activemq.Service; 23 24 public interface BrokerViewMBean extends Service { 25 26 29 public abstract String getBrokerId(); 30 31 37 public void gc() throws Exception ; 38 39 40 public void resetStatistics(); 41 42 public void enableStatistics(); 43 public void disableStatistics(); 44 public boolean isStatisticsEnabled(); 45 46 public long getTotalEnqueueCount(); 47 public long getTotalDequeueCount(); 48 public long getTotalConsumerCount(); 49 public long getTotalMessageCount(); 50 51 public int getMemoryPercentageUsed(); 52 public long getMemoryLimit(); 53 public void setMemoryLimit(long limit); 54 55 59 public void terminateJVM(int exitCode); 60 61 64 public void stop() throws Exception ; 65 66 public ObjectName [] getTopics(); 67 public ObjectName [] getQueues(); 68 public ObjectName [] getTemporaryTopics(); 69 public ObjectName [] getTemporaryQueues(); 70 71 public ObjectName [] getTopicSubscribers(); 72 public ObjectName [] getDurableTopicSubscribers(); 73 public ObjectName [] getInactiveDurableTopicSubscribers(); 74 public ObjectName [] getQueueSubscribers(); 75 public ObjectName [] getTemporaryTopicSubscribers(); 76 public ObjectName [] getTemporaryQueueSubscribers(); 77 78 83 public void addTopic(String name) throws Exception ; 84 85 90 public void addQueue(String name) throws Exception ; 91 92 97 public void removeTopic(String name) throws Exception ; 98 99 104 public void removeQueue(String name) throws Exception ; 105 106 116 public ObjectName createDurableSubscriber(String clientId, String subscriberName, String topicName, String selector) throws Exception ; 117 118 124 public void destroyDurableSubscriber(String clientId, String subscriberName) throws Exception ; 125 126 } 127 | Popular Tags |