Joram ${version}

org.objectweb.joram.client.jms
Interface QueueMBean

All Superinterfaces:
DestinationMBean
All Known Implementing Classes:
Queue

public interface QueueMBean
extends DestinationMBean


Method Summary
 void clear()
           
 void deleteMessage(java.lang.String msgId)
           
 java.lang.String[] getMessageIds()
           
 int getNbMaxMsg()
           
 int getPendingMessages()
          Monitoring method returning the number of pending messages on this queue.
 int getPendingRequests()
          Monitoring method returning the number of pending requests on this queue.
 int getThreshold()
          Monitoring method returning the threshold of this queue, -1 if not set.
 javax.jms.Message readMessage(java.lang.String msgId)
           
 void setNbMaxMsg(int nbMaxMsg)
           
 void setThreshold(int threshold)
          Admin method setting or unsetting the threshold for this queue.
 java.lang.String toString()
          Returns a String image of the queue.
 
Methods inherited from interface org.objectweb.joram.client.jms.DestinationMBean
addReader, addWriter, delete, getAdminName, getDMQ, getName, getReaderList, getStatistic, getType, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, removeReader, removeWriter, setDMQ, setFreelyReadable, setFreelyWriteable
 

Method Detail

toString

public java.lang.String toString()
Returns a String image of the queue.


setNbMaxMsg

public void setNbMaxMsg(int nbMaxMsg)
                 throws java.net.ConnectException,
                        AdminException
Throws:
java.net.ConnectException
AdminException

getNbMaxMsg

public int getNbMaxMsg()
                throws java.net.ConnectException,
                       AdminException
Throws:
java.net.ConnectException
AdminException

setThreshold

public void setThreshold(int threshold)
                  throws java.net.ConnectException,
                         AdminException
Admin method setting or unsetting the threshold for this queue.

Throws:
java.net.ConnectException
AdminException

getThreshold

public int getThreshold()
                 throws java.net.ConnectException,
                        AdminException
Monitoring method returning the threshold of this queue, -1 if not set.

Throws:
java.net.ConnectException
AdminException

getPendingMessages

public int getPendingMessages()
                       throws java.net.ConnectException,
                              AdminException
Monitoring method returning the number of pending messages on this queue.

Throws:
java.net.ConnectException
AdminException

getPendingRequests

public int getPendingRequests()
                       throws java.net.ConnectException,
                              AdminException
Monitoring method returning the number of pending requests on this queue.

Throws:
java.net.ConnectException
AdminException

getMessageIds

public java.lang.String[] getMessageIds()
                                 throws java.net.ConnectException,
                                        AdminException
Throws:
java.net.ConnectException
AdminException

readMessage

public javax.jms.Message readMessage(java.lang.String msgId)
                              throws java.net.ConnectException,
                                     AdminException,
                                     javax.jms.JMSException
Throws:
java.net.ConnectException
AdminException
javax.jms.JMSException

deleteMessage

public void deleteMessage(java.lang.String msgId)
                   throws java.net.ConnectException,
                          AdminException
Throws:
java.net.ConnectException
AdminException

clear

public void clear()
           throws java.net.ConnectException,
                  AdminException
Throws:
java.net.ConnectException
AdminException

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved