Package org.objectweb.joram.client.jms
Interface QueueMBean
-
- All Superinterfaces:
DestinationMBean
- All Known Implementing Classes:
DeadMQueue,Queue,TemporaryQueue
public interface QueueMBean extends DestinationMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()voiddeleteMessage(String msgId)StringgetMessageDigest(String msgId)PropertiesgetMessageHeader(String msgId)String[]getMessageIds()PropertiesgetMessageProperties(String msgId)intgetNbMaxMsg()intgetPendingMessages()Monitoring method returning the number of pending messages on this queue.intgetPendingRequests()Monitoring method returning the number of pending requests on this queue.intgetThreshold()Monitoring method returning the threshold of this queue, -1 if not set.voidregisterAsDefaultDMQ()Sets the current queue as the default DMQ for the local server.voidregisterAsDefaultDMQ(int serverId)Sets the current queue as the default DMQ for the given server.voidsetNbMaxMsg(int nbMaxMsg)voidsetThreshold(int threshold)Admin method setting or unsetting the threshold for this queue.-
Methods inherited from interface org.objectweb.joram.client.jms.DestinationMBean
addInterceptors, addReader, addWriter, delete, getAdminName, getDMQId, getInterceptors, getName, getReaderList, getStatistic, getStatistics, getWriterList, isFreelyReadable, isFreelyWriteable, isQueue, isTopic, removeInterceptors, removeReader, removeWriter, setDMQId, setFreelyReadable, setFreelyWriteable
-
-
-
-
Method Detail
-
setNbMaxMsg
void setNbMaxMsg(int nbMaxMsg) throws ConnectException, AdminException- Throws:
ConnectExceptionAdminException
-
getNbMaxMsg
int getNbMaxMsg() throws ConnectException, AdminException- Throws:
ConnectExceptionAdminException
-
setThreshold
void setThreshold(int threshold) throws ConnectException, AdminExceptionAdmin method setting or unsetting the threshold for this queue.- Throws:
ConnectExceptionAdminException
-
getThreshold
int getThreshold() throws ConnectException, AdminExceptionMonitoring method returning the threshold of this queue, -1 if not set.- Throws:
ConnectExceptionAdminException
-
getPendingMessages
int getPendingMessages() throws ConnectException, AdminExceptionMonitoring method returning the number of pending messages on this queue.- Throws:
ConnectExceptionAdminException
-
getPendingRequests
int getPendingRequests() throws ConnectException, AdminExceptionMonitoring method returning the number of pending requests on this queue.- Throws:
ConnectExceptionAdminException
-
getMessageIds
String[] getMessageIds() throws ConnectException, AdminException
- Throws:
ConnectExceptionAdminException
-
getMessageDigest
String getMessageDigest(String msgId) throws AdminException, ConnectException, JMSException
-
getMessageHeader
Properties getMessageHeader(String msgId) throws ConnectException, AdminException, JMSException
-
getMessageProperties
Properties getMessageProperties(String msgId) throws ConnectException, AdminException, JMSException
-
deleteMessage
void deleteMessage(String msgId) throws ConnectException, AdminException
- Throws:
ConnectExceptionAdminException
-
clear
void clear() throws ConnectException, AdminException- Throws:
ConnectExceptionAdminException
-
registerAsDefaultDMQ
void registerAsDefaultDMQ() throws ConnectException, AdminExceptionSets the current queue as the default DMQ for the local server.- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
registerAsDefaultDMQ
void registerAsDefaultDMQ(int serverId) throws ConnectException, AdminExceptionSets 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:
ConnectException- If the connection fails.AdminException- If the request fails.
-
-