|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.broker.jmx.DestinationView
public class DestinationView
Field Summary | |
---|---|
protected ManagedRegionBroker |
broker
|
protected Destination |
destination
|
Constructor Summary | |
---|---|
DestinationView(ManagedRegionBroker broker,
Destination destination)
|
Method Summary | |
---|---|
CompositeData[] |
browse()
|
CompositeData[] |
browse(String selector)
|
TabularData |
browseAsTable()
|
TabularData |
browseAsTable(String selector)
|
List |
browseMessages()
Browses the current destination returning a list of messages |
List |
browseMessages(String selector)
Browses the current destination with the given selector returning a list of messages |
void |
gc()
|
long |
getConsumerCount()
|
long |
getDequeueCount()
|
long |
getDispatchCount()
|
long |
getEnqueueCount()
|
long |
getMemoryLimit()
|
int |
getMemoryPercentageUsed()
|
long |
getMessagesCached()
|
String |
getName()
Returns the name of this destination |
long |
getQueueSize()
|
void |
resetStatistics()
Resets the managment counters. |
String |
sendTextMessage(Map headers,
String body)
Sends a TextMesage to the destination. |
String |
sendTextMessage(String body)
Sends a TextMesage to the destination. |
void |
setMemoryLimit(long limit)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Destination destination
protected final ManagedRegionBroker broker
Constructor Detail |
---|
public DestinationView(ManagedRegionBroker broker, Destination destination)
Method Detail |
---|
public void gc()
public String getName()
DestinationViewMBean
getName
in interface DestinationViewMBean
public void resetStatistics()
DestinationViewMBean
resetStatistics
in interface DestinationViewMBean
public long getEnqueueCount()
getEnqueueCount
in interface DestinationViewMBean
public long getDequeueCount()
getDequeueCount
in interface DestinationViewMBean
public long getDispatchCount()
getDispatchCount
in interface DestinationViewMBean
public long getConsumerCount()
getConsumerCount
in interface DestinationViewMBean
public long getQueueSize()
getQueueSize
in interface DestinationViewMBean
public long getMessagesCached()
public int getMemoryPercentageUsed()
getMemoryPercentageUsed
in interface DestinationViewMBean
public long getMemoryLimit()
getMemoryLimit
in interface DestinationViewMBean
public void setMemoryLimit(long limit)
setMemoryLimit
in interface DestinationViewMBean
public CompositeData[] browse() throws OpenDataException
browse
in interface DestinationViewMBean
OpenDataException
public CompositeData[] browse(String selector) throws OpenDataException, javax.jms.InvalidSelectorException
browse
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
OpenDataException
public List browseMessages() throws javax.jms.InvalidSelectorException
browseMessages
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
public List browseMessages(String selector) throws javax.jms.InvalidSelectorException
browseMessages
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
public TabularData browseAsTable() throws OpenDataException
browseAsTable
in interface DestinationViewMBean
OpenDataException
public TabularData browseAsTable(String selector) throws OpenDataException, javax.jms.InvalidSelectorException
browseAsTable
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
OpenDataException
public String sendTextMessage(String body) throws Exception
DestinationViewMBean
sendTextMessage
in interface DestinationViewMBean
body
- the text to send
Exception
public String sendTextMessage(Map headers, String body) throws Exception
DestinationViewMBean
sendTextMessage
in interface DestinationViewMBean
headers
- the message headers and properties to set. Can only container Strings maped to primitive types.body
- the text to send
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |