Joram 5.2.6

org.objectweb.joram.client.jms
Interface QueueMBean

All Superinterfaces:
DestinationMBean
All Known Implementing Classes:
DeadMQueue, Queue, TemporaryQueue

public interface QueueMBean
extends DestinationMBean


Method Summary
 void clear()
           
 void deleteMessage(java.lang.String msgId)
           
 java.lang.String getMessageDigest(java.lang.String msgId)
           
 java.util.Properties getMessageHeader(java.lang.String msgId)
           
 java.lang.String[] getMessageIds()
           
 java.util.Properties getMessageProperties(java.lang.String msgId)
           
 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.
 void registerAsDefaultDMQ()
          Sets the current queue as the default DMQ for the local server.
 void registerAsDefaultDMQ(int serverId)
          Sets the current queue as the default DMQ for the given server.
 void setNbMaxMsg(int nbMaxMsg)
           
 void setThreshold(int threshold)
          Admin method setting or unsetting the threshold for this queue.
 
Methods inherited from interface org.objectweb.joram.client.jms.DestinationMBean
addReader, addWriter, delete, getAdminName, getDMQId, getName, getReaderList, getStatistic, getStatistics, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, removeReader, removeWriter, setDMQId, setFreelyReadable, setFreelyWriteable
 

Method Detail

setNbMaxMsg

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

getNbMaxMsg

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

setThreshold

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

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

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

Throws:
java.net.ConnectException
AdminException

getPendingRequests

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

Throws:
java.net.ConnectException
AdminException

getMessageIds

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

getMessageDigest

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

getMessageHeader

java.util.Properties getMessageHeader(java.lang.String msgId)
                                      throws java.net.ConnectException,
                                             AdminException,
                                             javax.jms.JMSException
Throws:
java.net.ConnectException
AdminException
javax.jms.JMSException

getMessageProperties

java.util.Properties getMessageProperties(java.lang.String msgId)
                                          throws java.net.ConnectException,
                                                 AdminException,
                                                 javax.jms.JMSException
Throws:
java.net.ConnectException
AdminException
javax.jms.JMSException

deleteMessage

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

clear

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

registerAsDefaultDMQ

void registerAsDefaultDMQ()
                          throws java.net.ConnectException,
                                 AdminException
Sets the current queue as the default DMQ for the local server.

Throws:
java.net.ConnectException - If the connection fails.
AdminException - Never thrown.

registerAsDefaultDMQ

void registerAsDefaultDMQ(int serverId)
                          throws java.net.ConnectException,
                                 AdminException
Sets the current queue as the default DMQ for the given server.

The request fails if the target server does not belong to the platform.

Parameters:
serverId - The identifier of the server.
Throws:
java.net.ConnectException - If the connection fails.
AdminException - If the request fails.

Joram 5.2.6

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved