public class QueueMBean extends AMQManagedObject implements ManagedQueue, QueueNotificationListener
| Modifier and Type | Class and Description |
|---|---|
protected static class |
QueueMBean.GetMessageVisitor |
| Modifier and Type | Field and Description |
|---|---|
static String |
JMSTIMESTAMP_DATETIME_FORMAT
Date/time format used for message expiration and message timestamp formatting
|
ATTR_ACTIVE_CONSUMER_COUNT, ATTR_ALT_EXCHANGE, ATTR_AUTODELETE, ATTR_CAPACITY, ATTR_CONSUMER_COUNT, ATTR_DESCRIPTION, ATTR_DURABLE, ATTR_EXCLUSIVE, ATTR_FLOW_OVERFULL, ATTR_FLOW_RESUME_CAPACITY, ATTR_MAX_MSG_AGE, ATTR_MAX_MSG_COUNT, ATTR_MAX_MSG_SIZE, ATTR_MAX_QUEUE_DEPTH, ATTR_MAXIMUM_DELIVERY_COUNT, ATTR_MESSAGE_GROUP_KEY, ATTR_MSG_COUNT, ATTR_NAME, ATTR_OLDEST_MESSAGE_AGE, ATTR_OWNER, ATTR_QUEUE_DEPTH, ATTR_QUEUE_TYPE, ATTR_RCVD_MSG_COUNT, ATTR_SHARED_MESSAGE_GROUP, CONTENT, ENCODING, MIME, MSG_AMQ_ID, MSG_DELIVERY_COUNT, MSG_HEADER, MSG_QUEUE_POS, MSG_REDELIVERED, MSG_SIZE, QUEUE_ATTRIBUTES, TYPE, VIEW_MSG_CONTENT_COMPOSITE_ITEM_NAMES_DESC, VIEW_MSGS_COMPOSITE_ITEM_NAMES_DESC, VIEW_MSGS_TABULAR_UNIQUE_INDEXDOMAIN| Constructor and Description |
|---|
QueueMBean(Queue queue,
VirtualHostMBean virtualHostMBean) |
addNotificationListener, getBroadcaster, incrementAndGetSequenceNumber, removeNotificationListenergetHierarchicalName, getHierarchicalType, getManagementInterface, getMBeanInfo, getObjectName, getObjectNameForSingleInstanceMBean, getRegistry, getType, register, toString, unregistercacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic static final String JMSTIMESTAMP_DATETIME_FORMAT
public QueueMBean(Queue queue, VirtualHostMBean virtualHostMBean) throws JMException
JMExceptionpublic ManagedObject getParentObject()
getParentObject in interface ManagedObjectgetParentObject in class DefaultManagedObjectpublic String getObjectInstanceName()
getObjectInstanceName in interface ManagedObjectpublic String getName()
getName in interface ManagedQueuepublic Integer getMessageCount()
getMessageCount in interface ManagedQueuepublic Integer getMaximumDeliveryCount()
getMaximumDeliveryCount in interface ManagedQueuepublic Long getReceivedMessageCount()
getReceivedMessageCount in interface ManagedQueuepublic Long getQueueDepth()
getQueueDepth in interface ManagedQueuepublic Integer getActiveConsumerCount()
getActiveConsumerCount in interface ManagedQueuepublic Integer getConsumerCount()
getConsumerCount in interface ManagedQueuepublic String getOwner()
getOwner in interface ManagedQueuepublic String getQueueType()
getQueueType in interface ManagedQueuepublic boolean isDurable()
isDurable in interface ManagedQueuepublic boolean isAutoDelete()
isAutoDelete in interface ManagedQueuepublic Long getMaximumMessageAge()
getMaximumMessageAge in interface ManagedQueuepublic void setMaximumMessageAge(Long age)
setMaximumMessageAge in interface ManagedQueuepublic Long getMaximumMessageSize()
getMaximumMessageSize in interface ManagedQueuepublic void setMaximumMessageSize(Long size)
setMaximumMessageSize in interface ManagedQueuepublic Long getMaximumMessageCount()
getMaximumMessageCount in interface ManagedQueuepublic void setMaximumMessageCount(Long value)
setMaximumMessageCount in interface ManagedQueuepublic Long getMaximumQueueDepth()
getMaximumQueueDepth in interface ManagedQueuepublic void setMaximumQueueDepth(Long value)
setMaximumQueueDepth in interface ManagedQueuepublic Long getCapacity()
getCapacity in interface ManagedQueuepublic void setCapacity(Long value)
setCapacity in interface ManagedQueuepublic Long getFlowResumeCapacity()
getFlowResumeCapacity in interface ManagedQueuepublic void setFlowResumeCapacity(Long value)
setFlowResumeCapacity in interface ManagedQueuepublic boolean isFlowOverfull()
isFlowOverfull in interface ManagedQueuepublic boolean isExclusive()
isExclusive in interface ManagedQueuepublic void setExclusive(boolean exclusive)
setExclusive in interface ManagedQueuepublic void setAlternateExchange(String exchangeName) throws OperationsException
setAlternateExchange in interface ManagedQueueOperationsExceptionpublic String getAlternateExchange()
getAlternateExchange in interface ManagedQueue@Deprecated public TabularData viewMessages(int fromIndex, int toIndex) throws IOException, JMException
viewMessages in interface ManagedQueueIOExceptionJMExceptionpublic TabularData viewMessages(long startPosition, long endPosition) throws IOException, JMException
viewMessages in interface ManagedQueueIOExceptionJMExceptionpublic CompositeData viewMessageContent(long messageId) throws IOException, JMException
viewMessageContent in interface ManagedQueueIOExceptionJMException@Deprecated public void deleteMessageFromTop() throws IOException, JMException
deleteMessageFromTop in interface ManagedQueueIOExceptionJMExceptionpublic Long clearQueue() throws IOException, JMException
clearQueue in interface ManagedQueueIOExceptionJMExceptionpublic void moveMessages(long fromMessageId,
long toMessageId,
String toQueue)
throws IOException,
JMException
moveMessages in interface ManagedQueueIOExceptionJMExceptionpublic void deleteMessages(long fromMessageId,
long toMessageId)
throws IOException,
JMException
deleteMessages in interface ManagedQueueIOExceptionJMExceptionpublic void copyMessages(long fromMessageId,
long toMessageId,
String toQueue)
throws IOException,
JMException
copyMessages in interface ManagedQueueIOExceptionJMExceptionpublic void notifyClients(NotificationCheck notification, Queue queue, String notificationMsg)
notifyClients in interface QueueNotificationListenerpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class DefaultManagedObjectpublic String getDescription()
getDescription in interface ManagedQueuepublic void setDescription(String description)
setDescription in interface ManagedQueuepublic String getMessageGroupKey()
getMessageGroupKey in interface ManagedQueuepublic boolean isMessageGroupSharedGroups()
isMessageGroupSharedGroups in interface ManagedQueuepublic Long getOldestMessageAge()
getOldestMessageAge in interface ManagedQueueCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.