public class DestinationView extends Object implements DestinationViewMBean
| Modifier and Type | Field and Description |
|---|---|
protected ManagedRegionBroker |
broker |
protected Destination |
destination |
| Constructor and Description |
|---|
DestinationView(ManagedRegionBroker broker,
Destination destination) |
| Modifier and Type | Method and Description |
|---|---|
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() |
long |
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 |
getForwardCount()
Returns the number of messages that have been acknowledged by network subscriptions from the
destination.
|
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) |
protected final Destination destination
protected final ManagedRegionBroker broker
public DestinationView(ManagedRegionBroker broker, Destination destination)
public void gc()
public String getName()
DestinationViewMBeangetName in interface DestinationViewMBeanpublic void resetStatistics()
DestinationViewMBeanresetStatistics in interface DestinationViewMBeanpublic long getEnqueueCount()
DestinationViewMBeangetEnqueueCount in interface DestinationViewMBeanpublic long getDequeueCount()
DestinationViewMBeangetDequeueCount in interface DestinationViewMBeanpublic long getForwardCount()
DestinationViewMBeangetForwardCount in interface DestinationViewMBeanpublic long getDispatchCount()
DestinationViewMBeangetDispatchCount in interface DestinationViewMBeanpublic long getInFlightCount()
DestinationViewMBeangetInFlightCount in interface DestinationViewMBeanpublic long getExpiredCount()
DestinationViewMBeangetExpiredCount in interface DestinationViewMBeanpublic long getConsumerCount()
DestinationViewMBeangetConsumerCount in interface DestinationViewMBeanpublic long getQueueSize()
DestinationViewMBeangetQueueSize 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)
DestinationViewMBeansetMemoryLimit in interface DestinationViewMBeanpublic double getAverageEnqueueTime()
getAverageEnqueueTime in interface DestinationViewMBeanpublic long getMaxEnqueueTime()
getMaxEnqueueTime in interface DestinationViewMBeanpublic long getMinEnqueueTime()
getMinEnqueueTime in interface DestinationViewMBeanpublic long getAverageMessageSize()
getAverageMessageSize in interface DestinationViewMBeanpublic long getMaxMessageSize()
getMaxMessageSize in interface DestinationViewMBeanpublic long getMinMessageSize()
getMinMessageSize in interface DestinationViewMBeanpublic boolean isPrioritizedMessages()
isPrioritizedMessages in interface DestinationViewMBeanpublic CompositeData[] browse() throws OpenDataException
browse in interface DestinationViewMBeanOpenDataExceptionpublic CompositeData[] browse(String selector) throws OpenDataException, InvalidSelectorException
browse in interface DestinationViewMBeanInvalidSelectorExceptionOpenDataExceptionpublic List<Object> browseMessages() throws InvalidSelectorException
browseMessages in interface DestinationViewMBeanInvalidSelectorExceptionpublic List<Object> browseMessages(String selector) throws InvalidSelectorException
browseMessages in interface DestinationViewMBeanInvalidSelectorExceptionpublic TabularData browseAsTable() throws OpenDataException
browseAsTable in interface DestinationViewMBeanOpenDataExceptionpublic TabularData browseAsTable(String selector) throws OpenDataException, InvalidSelectorException
browseAsTable in interface DestinationViewMBeanInvalidSelectorExceptionOpenDataExceptionpublic String sendTextMessageWithProperties(String properties) throws Exception
DestinationViewMBeansendTextMessageWithProperties 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=Queue2Exceptionpublic String sendTextMessage(String body) throws Exception
DestinationViewMBeansendTextMessage in interface DestinationViewMBeanbody - the text to sendExceptionpublic String sendTextMessage(Map headers, String body) throws Exception
DestinationViewMBeansendTextMessage in interface DestinationViewMBeanheaders - the message headers and properties to set. Can only
container Strings maped to primitive types.body - the text to sendExceptionpublic String sendTextMessage(String body, String user, String password) throws Exception
DestinationViewMBeansendTextMessage in interface DestinationViewMBeanbody - the text to sendExceptionpublic 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 sendExceptionpublic 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)
DestinationViewMBeansetMemoryUsagePortion 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 destinationpublic ObjectName[] getSubscriptions() throws IOException, MalformedObjectNameException
DestinationViewMBeangetSubscriptions in interface DestinationViewMBeanIOExceptionMalformedObjectNameExceptionpublic ObjectName getSlowConsumerStrategy() throws IOException, MalformedObjectNameException
DestinationViewMBeangetSlowConsumerStrategy in interface DestinationViewMBeanIOExceptionMalformedObjectNameExceptionpublic 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 DestinationViewMBeanCopyright © 2005–2015 FuseSource, Corp.. All rights reserved.