create
public static Queue create()
throws ConnectException,
AdminException
Admin method creating and deploying a queue on the local server.
The request fails if the destination deployement fails server side.
AdminException
- If the request fails.
create
public static Queue create(String name)
throws ConnectException,
AdminException
Admin method creating and deploying (or retrieving) a queue on the
local server.
The request fails if the destination deployement fails server side.
name
- The queue name.
AdminException
- If the request fails.
create
public static Queue create(int serverId)
throws ConnectException,
AdminException
Admin method creating and deploying a queue on a given server.
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.
AdminException
- If the request fails.
create
public static Queue create(int serverId,
Properties prop)
throws ConnectException,
AdminException
Admin method creating and deploying a queue on a given server.
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.
AdminException
- If the request fails.
create
public static Queue create(int serverId,
String name)
throws ConnectException,
AdminException
Admin method creating and deploying (or retrieving) a queue on a given
server with a given name.
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.
AdminException
- If the request fails.
create
public static Queue create(int serverId,
String className,
Properties prop)
throws ConnectException,
AdminException
Admin method creating and deploying a queue on a given server.
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.
AdminException
- If the request fails.
create
public static Queue create(int serverId,
String name,
String className,
Properties prop)
throws ConnectException,
AdminException
Admin method creating and deploying (or retrieving) a queue on a given
server.
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.
AdminException
- If the request fails.
decode
public Object decode(Hashtable h)
Decodes a Queue
which traveled through the SOAP protocol.
- decode in interface SoapObjectItf
getPendingMessages
public int getPendingMessages()
throws ConnectException,
AdminException
Monitoring method returning the number of pending messages on this queue.
The request fails if the queue is deleted server side.
AdminException
- If the request fails.
getPendingRequests
public int getPendingRequests()
throws ConnectException,
AdminException
Monitoring method returning the number of pending requests on this queue.
The request fails if the queue is deleted server side.
AdminException
- If the request fails.
getQueueName
public String getQueueName()
throws JMSException
API method.
getThreshold
public int getThreshold()
throws ConnectException,
AdminException
Monitoring method returning the threshold of this queue, -1 if not set.
The request fails if the queue is deleted server side.
AdminException
- If the request fails.
setThreshold
public void setThreshold(int threshold)
throws ConnectException,
AdminException
Admin method setting or unsetting the threshold for this queue.
The request fails if the queue is deleted server side.
threshold
- The threshold value to be set (-1 for unsetting
previous value).
AdminException
- If the request fails.
toString
public String toString()
Returns a String image of the queue.