org.objectweb.joram.client.jms.admin

Class DeadMQueue

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(String agentId)
Constructs a DeadMQueue instance.
DeadMQueue(String agentId, 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.
String
toString()
Returns a String image of the queue.

Methods inherited from class org.objectweb.joram.client.jms.Queue

create, create, create, create, create, create, create, decode, getPendingMessages, getPendingRequests, getQueueName, getThreshold, setThreshold, toString

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

code, getInstance, getReference

Constructor Details

DeadMQueue

public DeadMQueue(String agentId)
Constructs a DeadMQueue instance.

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


DeadMQueue

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

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

Method Details

create

public static Queue create()
            throws 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.

Overrides:
create in interface Queue

Throws:
AdminException - If the request fails.


create

public static Queue create(int serverId)
            throws 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.

Overrides:
create in interface Queue

Parameters:
serverId - The identifier of the server where deploying the queue.

Throws:
AdminException - If the request fails.


toString

public String toString()
Returns a String image of the queue.
Overrides:
toString in interface Queue


Copyright B) 2004 Scalagent - All rights reserved