|
||||||||||
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 |
Fields inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject |
id, instancesTable |
Constructor Summary | |
Queue()
Constructs an empty queue. |
|
Queue(java.lang.String agentId)
Constructs a queue. |
|
Queue(java.lang.String agentId,
java.lang.String name)
Constructs a queue. |
Method Summary | |
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. |
java.lang.Object |
decode(java.util.Hashtable h)
Decodes a Queue which traveled through the SOAP protocol. |
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 |
getQueueName()
API method. |
int |
getThreshold()
Monitoring method returning the threshold of this queue, -1 if not set. |
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 |
code, delete, doCreate, equals, getAdminName, getDMQ, getName, getReaders, getReference, getWriters, isFreelyReadable, isFreelyWriteable, isQueue, setDMQ, setFreeReading, setFreeWriting, setReader, setWriter, unsetFreeReading, unsetFreeWriting, unsetReader, unsetWriter |
Methods inherited from class org.objectweb.joram.client.jms.admin.AdministeredObject |
getInstance |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Queue(java.lang.String agentId)
agentId
- Identifier of the queue agent.public Queue(java.lang.String agentId, java.lang.String name)
agentId
- Identifier of the queue agent.name
- Name set by administrator.public Queue()
Method Detail |
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 java.lang.Object decode(java.util.Hashtable h)
Queue
which traveled through the SOAP protocol.
decode
in interface SoapObjectItf
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.
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.
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.
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.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |