com.caucho.jms.queue
Class QueueAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.jms.queue.QueueAdmin
All Implemented Interfaces:
JmsQueueMXBean, ManagedObjectMXBean

public class QueueAdmin
extends AbstractManagedObject
implements JmsQueueMXBean

Administration for a JMS queue


Constructor Summary
QueueAdmin(AbstractQueue queue)
           
 
Method Summary
 int getConsumerCount()
          Returns the number of active message consumers
 long getListenerFailCountTotal()
          Returns the number of listener failures.
 java.util.Date getListenerFailLastTime()
          Returns the time of the last listener failure
 java.lang.String getName()
          Returns the queue's name
 int getQueueSize()
          Returns the number of active message consumers
 int getReceiverCount()
          Returns the number of receivers.
 java.lang.String getUrl()
          Returns the queue's url
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, toString, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

QueueAdmin

public QueueAdmin(AbstractQueue queue)
Method Detail

getName

public java.lang.String getName()
Returns the queue's name

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getUrl

public java.lang.String getUrl()
Returns the queue's url

Specified by:
getUrl in interface JmsQueueMXBean

getConsumerCount

public int getConsumerCount()
Returns the number of active message consumers

Specified by:
getConsumerCount in interface JmsQueueMXBean

getReceiverCount

public int getReceiverCount()
Returns the number of receivers.

Specified by:
getReceiverCount in interface JmsQueueMXBean
Returns:

getQueueSize

public int getQueueSize()
Returns the number of active message consumers

Specified by:
getQueueSize in interface JmsQueueMXBean

getListenerFailCountTotal

public long getListenerFailCountTotal()
Returns the number of listener failures.

Specified by:
getListenerFailCountTotal in interface JmsQueueMXBean

getListenerFailLastTime

public java.util.Date getListenerFailLastTime()
Returns the time of the last listener failure

Specified by:
getListenerFailLastTime in interface JmsQueueMXBean