|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.admin.AdministeredObject
org.objectweb.joram.client.jms.Destination
org.objectweb.joram.client.jms.Queue
Implements the javax.jms.Queue
interface and provides
JORAM specific administration and monitoring methods.
Field Summary |
Fields inherited from class org.objectweb.joram.client.jms.Destination |
adminName, agentId |
Constructor Summary | |
|
Queue()
|
|
Queue(java.lang.String name)
|
protected |
Queue(java.lang.String name,
java.lang.String type)
|
Method Summary | |
void |
addClusteredQueue(Queue addedQueue)
Adds a queue into the cluster this queue belongs to. |
void |
clear()
|
static Queue |
create()
Admin method creating and deploying a queue on the local server. |
static Queue |
create(int serverId)
Admin method creating and deploying a queue on a given server. |
static Queue |
create(int serverId,
java.util.Properties prop)
Admin method creating and deploying a queue on a given server. |
static Queue |
create(int serverId,
java.lang.String name)
Admin method creating and deploying (or retrieving) a queue on a given server with a given name. |
static Queue |
create(int serverId,
java.lang.String className,
java.util.Properties prop)
Admin method creating and deploying a queue on a given server. |
static Queue |
create(int serverId,
java.lang.String name,
java.lang.String className,
java.util.Properties prop)
Admin method creating and deploying (or retrieving) a queue on a given server. |
static Queue |
create(java.lang.String name)
Admin method creating and deploying (or retrieving) a queue on the local server. |
void |
deleteMessage(java.lang.String msgId)
|
java.lang.String[] |
getMessageIds()
|
int |
getNbMaxMsg()
Monitoring method returning the nbMaxMsg of this queue, -1 if no limit. |
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. |
java.lang.String[] |
getQueueClusterElements()
Returns the reference of the queues that belong to the cluster. |
java.lang.String |
getQueueName()
API method. |
int |
getThreshold()
Monitoring method returning the threshold of this queue, -1 if not set. |
static boolean |
isQueue(java.lang.String type)
|
javax.jms.Message |
readMessage(java.lang.String msgId)
|
void |
removeClusteredQueue(Queue removedQueue)
Removes a queue from the cluster this queue belongs to. |
void |
setNbMaxMsg(int nbMaxMsg)
Admin method setting nbMaxMsg for this queue. |
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 class org.objectweb.joram.client.jms.Destination |
addReader, addWriter, code, decode, delete, doCreate, equals, getAdminName, getDMQ, getName, getReaderList, getReaders, getReference, getStatistic, getType, getWriterList, getWriters, isAssignableTo, isFreelyReadable, isFreelyWriteable, isQueue, newInstance, removeReader, removeWriter, setDMQ, setFreelyReadable, setFreelyWriteable, setFreeReading, setFreeWriting, setReader, setWriter, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 |
Constructor Detail |
public Queue()
public Queue(java.lang.String name)
protected Queue(java.lang.String name, java.lang.String type)
Method Detail |
public static boolean isQueue(java.lang.String type)
public java.lang.String toString()
toString
in interface javax.jms.Queue
public java.lang.String getQueueName() throws javax.jms.JMSException
getQueueName
in interface javax.jms.Queue
javax.jms.JMSException
- Actually never thrown.public static Queue create(int serverId, java.lang.String name, java.lang.String className, java.util.Properties prop) throws java.net.ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployement fails server side.
serverId
- The identifier of the server where deploying the queue.name
- The name of the queue.className
- The queue class name.prop
- The queue properties.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create(int serverId, java.lang.String className, java.util.Properties prop) throws java.net.ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployement fails server side.
serverId
- The identifier of the server where deploying the queue.className
- The queue class name.prop
- The queue properties.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create(int serverId, java.util.Properties prop) throws java.net.ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployement fails server side.
serverId
- The identifier of the server where deploying the queue.prop
- The queue properties.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create(int serverId, java.lang.String name) throws java.net.ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployement fails server side.
serverId
- The identifier of the server where deploying the queue.name
- The queue name.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create(java.lang.String name) throws java.net.ConnectException, AdminException
The request fails if the destination deployement fails server side.
name
- The queue name.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create(int serverId) throws java.net.ConnectException, AdminException
The request fails if the target server does not belong to the platform, or if the destination deployement fails server side.
serverId
- The identifier of the server where deploying the queue.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static Queue create() throws java.net.ConnectException, AdminException
The request fails if the destination deployement fails server side.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public void setThreshold(int threshold) throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
setThreshold
in interface QueueMBean
threshold
- The threshold value to be set (-1 for unsetting
previous value).
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public int getThreshold() throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
getThreshold
in interface QueueMBean
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public void setNbMaxMsg(int nbMaxMsg) throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
setNbMaxMsg
in interface QueueMBean
nbMaxMsg
- nb Max of Message (-1 no limit).
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public int getNbMaxMsg() throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
getNbMaxMsg
in interface QueueMBean
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public int getPendingMessages() throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
getPendingMessages
in interface QueueMBean
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public int getPendingRequests() throws java.net.ConnectException, AdminException
The request fails if the queue is deleted server side.
getPendingRequests
in interface QueueMBean
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public java.lang.String[] getMessageIds() throws AdminException, java.net.ConnectException
getMessageIds
in interface QueueMBean
AdminException
java.net.ConnectException
public javax.jms.Message readMessage(java.lang.String msgId) throws AdminException, java.net.ConnectException, javax.jms.JMSException
readMessage
in interface QueueMBean
AdminException
java.net.ConnectException
javax.jms.JMSException
public void deleteMessage(java.lang.String msgId) throws AdminException, java.net.ConnectException
deleteMessage
in interface QueueMBean
AdminException
java.net.ConnectException
public void clear() throws AdminException, java.net.ConnectException
clear
in interface QueueMBean
AdminException
java.net.ConnectException
public void addClusteredQueue(Queue addedQueue) throws java.net.ConnectException, AdminException
The request fails if one or both of the queues are deleted, or can't belong to a cluster.
addedQueue
- queue added to the cluster
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public void removeClusteredQueue(Queue removedQueue) throws java.net.ConnectException, AdminException
The request fails if the queue does not exist or is not part of any cluster.
removedQueue
- queue removed from the cluster
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public java.lang.String[] getQueueClusterElements() throws java.net.ConnectException, AdminException
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.
|
Joram ${version} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |