|
||||||||||
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 | |
---|---|
javax.management.openmbean.CompositeData[] |
browse()
|
javax.management.openmbean.CompositeData[] |
browse(java.lang.String selector)
|
javax.management.openmbean.TabularData |
browseAsTable()
|
javax.management.openmbean.TabularData |
browseAsTable(java.lang.String selector)
|
java.util.List |
browseMessages()
Browses the current destination returning a list of messages |
java.util.List |
browseMessages(java.lang.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()
|
java.lang.String |
getName()
Returns the name of this destination |
long |
getQueueSize()
|
void |
resetStatistics()
Resets the managment counters. |
java.lang.String |
sendTextMessage(java.util.Map headers,
java.lang.String body)
Sends a TextMesage to the destination. |
java.lang.String |
sendTextMessage(java.lang.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 java.lang.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 javax.management.openmbean.CompositeData[] browse() throws javax.management.openmbean.OpenDataException
browse
in interface DestinationViewMBean
javax.management.openmbean.OpenDataException
public javax.management.openmbean.CompositeData[] browse(java.lang.String selector) throws javax.management.openmbean.OpenDataException, javax.jms.InvalidSelectorException
browse
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
javax.management.openmbean.OpenDataException
public java.util.List browseMessages() throws javax.jms.InvalidSelectorException
browseMessages
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
public java.util.List browseMessages(java.lang.String selector) throws javax.jms.InvalidSelectorException
browseMessages
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
public javax.management.openmbean.TabularData browseAsTable() throws javax.management.openmbean.OpenDataException
browseAsTable
in interface DestinationViewMBean
javax.management.openmbean.OpenDataException
public javax.management.openmbean.TabularData browseAsTable(java.lang.String selector) throws javax.management.openmbean.OpenDataException, javax.jms.InvalidSelectorException
browseAsTable
in interface DestinationViewMBean
javax.jms.InvalidSelectorException
javax.management.openmbean.OpenDataException
public java.lang.String sendTextMessage(java.lang.String body) throws java.lang.Exception
DestinationViewMBean
sendTextMessage
in interface DestinationViewMBean
body
- the text to send
java.lang.Exception
public java.lang.String sendTextMessage(java.util.Map headers, java.lang.String body) throws java.lang.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
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |