|
||||||||||
| 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<Object> |
browseMessages()
Browses the current destination returning a list of messages |
List<Object> |
browseMessages(String selector)
Browses the current destination with the given selector returning a list of messages |
void |
gc()
|
double |
getAverageBlockedTime()
|
double |
getAverageEnqueueTime()
|
double |
getAverageMessageSize()
|
long |
getBlockedProducerWarningInterval()
|
long |
getBlockedSends()
|
long |
getConsumerCount()
Returns the number of consumers subscribed this destination. |
long |
getDequeueCount()
Returns the number of messages that have been acknowledged from the destination. |
long |
getDispatchCount()
Returns the number of messages that have been delivered (potentially not acknowledged) to consumers. |
long |
getEnqueueCount()
Returns the number of messages that have been sent to the destination. |
long |
getExpiredCount()
Returns the number of messages that have expired |
long |
getInFlightCount()
Returns the number of messages that have been dispatched but not acknowledged |
int |
getMaxAuditDepth()
|
long |
getMaxEnqueueTime()
|
long |
getMaxMessageSize()
|
int |
getMaxPageSize()
|
int |
getMaxProducersToAudit()
|
long |
getMemoryLimit()
|
int |
getMemoryPercentUsage()
|
long |
getMemoryUsageByteCount()
|
float |
getMemoryUsagePortion()
|
long |
getMessagesCached()
|
long |
getMinEnqueueTime()
|
long |
getMinMessageSize()
|
String |
getName()
Returns the name of this destination |
String |
getOptions()
|
long |
getProducerCount()
|
long |
getQueueSize()
Returns the number of messages in this destination which are yet to be consumed |
ObjectName |
getSlowConsumerStrategy()
Returns the slow consumer strategy MBean for this destination |
ObjectName[] |
getSubscriptions()
Returns all the current subscription MBeans matching this destination |
long |
getTotalBlockedTime()
|
boolean |
isAlwaysRetroactive()
|
boolean |
isDLQ()
|
boolean |
isEnableAudit()
|
boolean |
isPrioritizedMessages()
|
boolean |
isProducerFlowControl()
|
boolean |
isUseCache()
|
void |
resetStatistics()
Resets the managment counters. |
String |
sendTextMessage(Map<String,String> headers,
String body,
String userName,
String password)
|
String |
sendTextMessage(Map headers,
String body)
Sends a TextMesage to the destination. |
String |
sendTextMessage(String body)
Sends a TextMesage to the destination. |
String |
sendTextMessage(String body,
String user,
String password)
Sends a TextMesage to the destination. |
String |
sendTextMessageWithProperties(String properties)
Sends a TextMessage to the destination. |
void |
setAlwaysRetroactive(boolean alwaysRetroactive)
|
void |
setBlockedProducerWarningInterval(long blockedProducerWarningInterval)
Set's the interval at which warnings about producers being blocked by resource usage will be triggered. |
void |
setEnableAudit(boolean enableAudit)
|
void |
setMaxAuditDepth(int maxAuditDepth)
|
void |
setMaxPageSize(int pageSize)
|
void |
setMaxProducersToAudit(int maxProducersToAudit)
|
void |
setMemoryLimit(long limit)
set the amount of memory allocated to this destination |
void |
setMemoryUsagePortion(float value)
set the portion of memory from the broker memory limit for this destination |
void |
setProducerFlowControl(boolean producerFlowControl)
|
void |
setUseCache(boolean value)
|
| 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 DestinationViewMBeanpublic void resetStatistics()
DestinationViewMBean
resetStatistics in interface DestinationViewMBeanpublic long getEnqueueCount()
DestinationViewMBean
getEnqueueCount in interface DestinationViewMBeanpublic long getDequeueCount()
DestinationViewMBean
getDequeueCount in interface DestinationViewMBeanpublic long getDispatchCount()
DestinationViewMBean
getDispatchCount in interface DestinationViewMBeanpublic long getInFlightCount()
DestinationViewMBean
getInFlightCount in interface DestinationViewMBeanpublic long getExpiredCount()
DestinationViewMBean
getExpiredCount in interface DestinationViewMBeanpublic long getConsumerCount()
DestinationViewMBean
getConsumerCount in interface DestinationViewMBeanpublic long getQueueSize()
DestinationViewMBean
getQueueSize in interface DestinationViewMBeanpublic long getMessagesCached()
public int getMemoryPercentUsage()
getMemoryPercentUsage in interface DestinationViewMBeanpublic long getMemoryUsageByteCount()
getMemoryUsageByteCount in interface DestinationViewMBeanpublic long getMemoryLimit()
getMemoryLimit in interface DestinationViewMBeanpublic void setMemoryLimit(long limit)
DestinationViewMBean
setMemoryLimit in interface DestinationViewMBeanpublic double getAverageEnqueueTime()
getAverageEnqueueTime in interface DestinationViewMBeanpublic long getMaxEnqueueTime()
getMaxEnqueueTime in interface DestinationViewMBeanpublic long getMinEnqueueTime()
getMinEnqueueTime in interface DestinationViewMBeanpublic double getAverageMessageSize()
getAverageMessageSize in interface DestinationViewMBeanpublic long getMaxMessageSize()
getMaxMessageSize in interface DestinationViewMBeanpublic long getMinMessageSize()
getMinMessageSize in interface DestinationViewMBeanpublic boolean isPrioritizedMessages()
isPrioritizedMessages in interface DestinationViewMBean
public CompositeData[] browse()
throws OpenDataException
browse in interface DestinationViewMBeanOpenDataException
public CompositeData[] browse(String selector)
throws OpenDataException,
javax.jms.InvalidSelectorException
browse in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
OpenDataException
public List<Object> browseMessages()
throws javax.jms.InvalidSelectorException
browseMessages in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
public List<Object> browseMessages(String selector)
throws javax.jms.InvalidSelectorException
browseMessages in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
public TabularData browseAsTable()
throws OpenDataException
browseAsTable in interface DestinationViewMBeanOpenDataException
public TabularData browseAsTable(String selector)
throws OpenDataException,
javax.jms.InvalidSelectorException
browseAsTable in interface DestinationViewMBeanjavax.jms.InvalidSelectorException
OpenDataException
public String sendTextMessageWithProperties(String properties)
throws Exception
DestinationViewMBean
sendTextMessageWithProperties in interface DestinationViewMBeanproperties - the message properties to set as a comma sep name=value list. Can only
contain Strings maped to primitive types or JMS properties. eg: body=hi,JMSReplyTo=Queue2
Exception
public String sendTextMessage(String body)
throws Exception
DestinationViewMBean
sendTextMessage in interface DestinationViewMBeanbody - the text to send
Exception
public String sendTextMessage(Map headers,
String body)
throws 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
Exception
public String sendTextMessage(String body,
String user,
String password)
throws Exception
DestinationViewMBean
sendTextMessage in interface DestinationViewMBeanbody - the text to send
Exception
public String sendTextMessage(Map<String,String> headers,
String body,
String userName,
String password)
throws Exception
sendTextMessage in interface DestinationViewMBeanheaders - the message headers and properties to set. Can only
container Strings maped to primitive types.body - the text to send
Exceptionpublic int getMaxAuditDepth()
getMaxAuditDepth in interface DestinationViewMBeanpublic int getMaxProducersToAudit()
getMaxProducersToAudit in interface DestinationViewMBeanpublic boolean isEnableAudit()
public void setEnableAudit(boolean enableAudit)
public void setMaxAuditDepth(int maxAuditDepth)
setMaxAuditDepth in interface DestinationViewMBeanmaxAuditDepth - the maxAuditDepth to setpublic void setMaxProducersToAudit(int maxProducersToAudit)
setMaxProducersToAudit in interface DestinationViewMBeanmaxProducersToAudit - the maxProducersToAudit to setpublic float getMemoryUsagePortion()
getMemoryUsagePortion in interface DestinationViewMBeanpublic long getProducerCount()
getProducerCount in interface DestinationViewMBeanpublic boolean isProducerFlowControl()
isProducerFlowControl in interface DestinationViewMBeanpublic void setMemoryUsagePortion(float value)
DestinationViewMBean
setMemoryUsagePortion in interface DestinationViewMBeanpublic void setProducerFlowControl(boolean producerFlowControl)
setProducerFlowControl in interface DestinationViewMBeanproducerFlowControl - the producerFlowControl to setpublic boolean isAlwaysRetroactive()
isAlwaysRetroactive in interface DestinationViewMBeanpublic void setAlwaysRetroactive(boolean alwaysRetroactive)
setAlwaysRetroactive in interface DestinationViewMBeanalwaysRetroactive - set as always retroActivepublic void setBlockedProducerWarningInterval(long blockedProducerWarningInterval)
setBlockedProducerWarningInterval in interface DestinationViewMBeanblockedProducerWarningInterval - the interval at which warning about
blocked producers will be triggered.public long getBlockedProducerWarningInterval()
getBlockedProducerWarningInterval in interface DestinationViewMBeanpublic int getMaxPageSize()
getMaxPageSize in interface DestinationViewMBeanpublic void setMaxPageSize(int pageSize)
setMaxPageSize in interface DestinationViewMBeanpageSize - Set the maximum number of messages to page into the destinationpublic boolean isUseCache()
isUseCache in interface DestinationViewMBeanpublic void setUseCache(boolean value)
setUseCache in interface DestinationViewMBeanvalue - enable/disable caching on the destination
public ObjectName[] getSubscriptions()
throws IOException,
MalformedObjectNameException
DestinationViewMBean
getSubscriptions in interface DestinationViewMBeanIOException
MalformedObjectNameException
public ObjectName getSlowConsumerStrategy()
throws IOException,
MalformedObjectNameException
DestinationViewMBean
getSlowConsumerStrategy in interface DestinationViewMBeanIOException
MalformedObjectNameExceptionpublic String getOptions()
getOptions in interface DestinationViewMBeanpublic boolean isDLQ()
isDLQ in interface DestinationViewMBeanpublic long getBlockedSends()
getBlockedSends in interface DestinationViewMBeanpublic double getAverageBlockedTime()
getAverageBlockedTime in interface DestinationViewMBeanpublic long getTotalBlockedTime()
getTotalBlockedTime in interface DestinationViewMBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||