org.jboss.mq.server.jmx
Interface QueueMBean

All Superinterfaces:
DestinationMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
Queue

public interface QueueMBean
extends DestinationMBean

MBean interface.


Field Summary
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 int getQueueDepth()
          Gets the QueueDepth attribute of the BasicQueue object
 String getQueueName()
          Get the queue name
 int getReceiversCount()
          Get the number of active receivers
 int getScheduledMessageCount()
          Gets the ScheduledMessageCount attribute of the BasicQueue object
 int getSubscribersCount()
          Get the number of active subscribers
 List listMessages()
          List the messages
 List listMessages(String selector)
          List the messages matching a selector
 List listReceivers()
          List the active receivers
 Collection listSubscribers()
          List the active subscribers
 
Methods inherited from interface org.jboss.mq.server.jmx.DestinationMBean
getDestinationManager, getExpiryDestination, getInMemory, getJNDIName, getMaxDepth, getMessageCounter, getMessageCounterHistoryDayLimit, getMessageStatistics, getReceiversImpl, getRecoveryRetries, getRedeliveryDelay, getRedeliveryLimit, listMessageCounter, listMessageCounterHistory, removeAllMessages, resetMessageCounter, resetMessageCounterHistory, setDestinationManager, setExpiryDestination, setInMemory, setJNDIName, setMaxDepth, setMessageCounterHistoryDayLimit, setReceiversImpl, setRecoveryRetries, setRedeliveryDelay, setRedeliveryLimit, setSecurityConf, setSecurityManager
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

getQueueName

String getQueueName()
Get the queue name

Returns:
the queue name

getQueueDepth

int getQueueDepth()
                  throws Exception
Gets the QueueDepth attribute of the BasicQueue object

Returns:
The QueueDepth value
Throws:
Exception - Description of Exception

getScheduledMessageCount

int getScheduledMessageCount()
                             throws Exception
Gets the ScheduledMessageCount attribute of the BasicQueue object

Returns:
The ScheduledMessageCount value
Throws:
Exception - Description of Exception

getReceiversCount

int getReceiversCount()
Get the number of active receivers

Returns:
the number of receivers

listReceivers

List listReceivers()
List the active receivers

Returns:
the receivers

listMessages

List listMessages()
                  throws Exception
List the messages

Returns:
the messages
Throws:
Exception - for any error

listMessages

List listMessages(String selector)
                  throws Exception
List the messages matching a selector

Parameters:
selector - the selector
Returns:
the messages
Throws:
Exception - for any error

getSubscribersCount

int getSubscribersCount()
Get the number of active subscribers

Returns:
the number of subscribers

listSubscribers

Collection listSubscribers()
List the active subscribers

Returns:
the subscribers


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.