1 18 package org.apache.activemq.broker.jmx; 19 20 import javax.jms.InvalidSelectorException ; 21 import javax.management.openmbean.CompositeData ; 22 import javax.management.openmbean.OpenDataException ; 23 import javax.management.openmbean.TabularData ; 24 25 import java.util.List ; 26 import java.util.Map ; 27 28 29 public interface DestinationViewMBean { 30 31 34 public String getName(); 35 36 39 public void resetStatistics(); 40 41 46 public long getEnqueueCount(); 47 48 53 public long getDispatchCount(); 54 55 60 public long getDequeueCount(); 61 62 67 public long getConsumerCount(); 68 69 74 public long getQueueSize(); 75 76 79 public CompositeData [] browse() throws OpenDataException ; 80 81 84 public TabularData browseAsTable() throws OpenDataException ; 85 86 90 public CompositeData [] browse(String selector) throws OpenDataException , InvalidSelectorException ; 91 92 96 public TabularData browseAsTable(String selector) throws OpenDataException , InvalidSelectorException ; 97 98 104 public String sendTextMessage(String body) throws Exception ; 105 106 113 public String sendTextMessage(Map headers, String body) throws Exception ; 114 115 public int getMemoryPercentageUsed(); 116 public long getMemoryLimit(); 117 public void setMemoryLimit(long limit); 118 119 122 public List browseMessages() throws InvalidSelectorException ; 123 124 127 public List browseMessages(String selector) throws InvalidSelectorException ; 128 129 } 130 | Popular Tags |