|
||||||||||
| 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 DestinationViewMBeanpublic void resetStatistics()
DestinationViewMBean
resetStatistics in interface DestinationViewMBeanpublic long getEnqueueCount()
getEnqueueCount in interface DestinationViewMBeanpublic long getDequeueCount()
getDequeueCount in interface DestinationViewMBeanpublic long getDispatchCount()
getDispatchCount in interface DestinationViewMBeanpublic long getConsumerCount()
getConsumerCount in interface DestinationViewMBeanpublic long getQueueSize()
getQueueSize in interface DestinationViewMBeanpublic long getMessagesCached()
public int getMemoryPercentageUsed()
getMemoryPercentageUsed in interface DestinationViewMBeanpublic long getMemoryLimit()
getMemoryLimit in interface DestinationViewMBeanpublic void setMemoryLimit(long limit)
setMemoryLimit in interface DestinationViewMBean
public javax.management.openmbean.CompositeData[] browse()
throws javax.management.openmbean.OpenDataException
browse in interface DestinationViewMBeanjavax.management.openmbean.OpenDataException
public javax.management.openmbean.CompositeData[] browse(java.lang.String selector)
throws javax.management.openmbean.OpenDataException,
javax.jms.InvalidSelectorException
browse in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
javax.management.openmbean.OpenDataException
public java.util.List browseMessages()
throws javax.jms.InvalidSelectorException
browseMessages in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
public java.util.List browseMessages(java.lang.String selector)
throws javax.jms.InvalidSelectorException
browseMessages in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
public javax.management.openmbean.TabularData browseAsTable()
throws javax.management.openmbean.OpenDataException
browseAsTable in interface DestinationViewMBeanjavax.management.openmbean.OpenDataException
public javax.management.openmbean.TabularData browseAsTable(java.lang.String selector)
throws javax.management.openmbean.OpenDataException,
javax.jms.InvalidSelectorException
browseAsTable in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
javax.management.openmbean.OpenDataException
public java.lang.String sendTextMessage(java.lang.String body)
throws java.lang.Exception
DestinationViewMBean
sendTextMessage in interface DestinationViewMBeanbody - 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 DestinationViewMBeanheaders - 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 | |||||||||