org.objectweb.joram.client.jms.admin
Class DeadMQueue

java.lang.Object
  extended byorg.objectweb.joram.client.jms.admin.AdministeredObject
      extended byorg.objectweb.joram.client.jms.Destination
          extended byorg.objectweb.joram.client.jms.Queue
              extended byorg.objectweb.joram.client.jms.admin.DeadMQueue
All Implemented Interfaces:
javax.jms.Destination, javax.jms.Queue, javax.naming.Referenceable, java.io.Serializable, SoapObjectItf

public class DeadMQueue
extends Queue

The DeadMQueue class allows administrators to manipulate dead message queues.

See Also:
Serialized Form

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
DeadMQueue(java.lang.String agentId)
          Constructs a DeadMQueue instance.
DeadMQueue(java.lang.String agentId, java.lang.String name)
          Constructs a DeadMQueue instance.
 
Method Summary
static Queue create()
          Admin method creating and deploying a dead message queue on the local server.
static Queue create(int serverId)
          Admin method creating and deploying a dead message queue on a given server.
 java.lang.String toString()
          Returns a String image of the queue.
 
Methods inherited from class org.objectweb.joram.client.jms.Queue
create, create, create, create, create, decode, getPendingMessages, getPendingRequests, getQueueName, getThreshold, setThreshold
 
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

DeadMQueue

public DeadMQueue(java.lang.String agentId)
Constructs a DeadMQueue instance.

Parameters:
agentId - Identifier of the dead message queue agent.

DeadMQueue

public DeadMQueue(java.lang.String agentId,
                  java.lang.String name)
Constructs a DeadMQueue instance.

Parameters:
agentId - Identifier of the dead message queue agent.
name - Name set by administrator.
Method Detail

toString

public java.lang.String toString()
Description copied from class: Queue
Returns a String image of the queue.

Specified by:
toString in interface javax.jms.Queue
Overrides:
toString in class Queue

create

public static Queue create(int serverId)
                    throws java.net.ConnectException,
                           AdminException
Admin method creating and deploying a dead message 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.

Parameters:
serverId - The identifier of the server where deploying the queue.
Throws:
java.net.ConnectException - If the admin connection is closed or broken.
AdminException - If the request fails.

create

public static Queue create()
                    throws java.net.ConnectException,
                           AdminException
Admin method creating and deploying a dead message queue on the local server.

The request fails if the destination deployement fails server side.

Throws:
java.net.ConnectException - If the admin connection is closed or broken.
AdminException - If the request fails.


Copyright ? 2004 Scalagent - All rights reserved