Joram ${version}

org.objectweb.joram.mom.dest
Class Queue

java.lang.Object
  extended byfr.dyade.aaa.agent.Agent
      extended byorg.objectweb.joram.mom.dest.Destination
          extended byorg.objectweb.joram.mom.dest.Queue
All Implemented Interfaces:
AdminDestinationItf, fr.dyade.aaa.agent.AgentMBean, fr.dyade.aaa.agent.BagSerializer, java.io.Serializable
Direct Known Subclasses:
BridgeQueue, ClusterQueue, DeadMQueue

public class Queue
extends Destination
implements fr.dyade.aaa.agent.BagSerializer

A Queue agent is an agent hosting a MOM queue, and which behaviour is provided by a QueueImpl instance.

See Also:
QueueImpl, Serialized Form

Field Summary
static java.lang.String QUEUE_TYPE
           
 
Fields inherited from class org.objectweb.joram.mom.dest.Destination
destImpl
 
Fields inherited from class fr.dyade.aaa.agent.Agent
fixed, logmon, name, nullName
 
Constructor Summary
protected Queue()
          Empty constructor for newInstance().
  Queue(fr.dyade.aaa.agent.AgentId adminId)
          Constructs a Queue agent.
protected Queue(boolean fixed)
          Constructor with parameter for fixing the queue or not.
 
Method Summary
 DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId)
          Creates the QueueImpl.
static java.lang.String getDestinationType()
           
 void readBag(java.io.ObjectInputStream in)
           
 void writeBag(java.io.ObjectOutputStream out)
           
 
Methods inherited from class org.objectweb.joram.mom.dest.Destination
agentFinalize, agentInitialize, init, react, setNoSave, setProperties, setSave
 
Methods inherited from class fr.dyade.aaa.agent.Agent
delete, delete, deploy, deploy, getAgentId, getId, getLogTopic, getName, isDeployed, isFixed, needToBeCommited, save, sendTo, sendTo, sendTo, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

QUEUE_TYPE

public static final java.lang.String QUEUE_TYPE
See Also:
Constant Field Values
Constructor Detail

Queue

protected Queue()
Empty constructor for newInstance().


Queue

public Queue(fr.dyade.aaa.agent.AgentId adminId)
Constructs a Queue agent.

Parameters:
adminId - Identifier of the agent which will be the administrator of the queue.

Queue

protected Queue(boolean fixed)
Constructor with parameter for fixing the queue or not.

Method Detail

getDestinationType

public static java.lang.String getDestinationType()

createsImpl

public DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId)
Creates the QueueImpl.

Specified by:
createsImpl in class Destination
Parameters:
adminId - Identifier of the queue administrator.

readBag

public void readBag(java.io.ObjectInputStream in)
             throws java.io.IOException,
                    java.lang.ClassNotFoundException
Specified by:
readBag in interface fr.dyade.aaa.agent.BagSerializer
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeBag

public void writeBag(java.io.ObjectOutputStream out)
              throws java.io.IOException
Specified by:
writeBag in interface fr.dyade.aaa.agent.BagSerializer
Throws:
java.io.IOException

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved