Joram 5.2.4

org.objectweb.joram.mom.dest
Class Queue

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

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

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

See Also:
QueueImpl, Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.mom.dest.Destination
destImpl, logger
 
Fields inherited from class fr.dyade.aaa.agent.Agent
fixed, logmon, name, nullName
 
Constructor Summary
Queue()
          Empty constructor for newInstance().
 
Method Summary
protected  void agentInitialize(boolean firstTime)
          Gives this agent an opportunity to initialize after having been deployed, and each time it is loaded into memory.
 DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties prop)
          Creates the QueueImpl.
 byte getType()
          Returns the type of this destination: Queue or Topic.
 void react(fr.dyade.aaa.agent.AgentId from, fr.dyade.aaa.agent.Notification not)
          Distributes the received notifications to the appropriate reactions.
 void readBag(java.io.ObjectInputStream in)
           
 void writeBag(java.io.ObjectOutputStream out)
           
 
Methods inherited from class org.objectweb.joram.mom.dest.Destination
agentFinalize, init, setNoSave, 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
 

Constructor Detail

Queue

public Queue()
Empty constructor for newInstance().

Method Detail

getType

public final byte getType()
Description copied from class: Destination
Returns the type of this destination: Queue or Topic.

Specified by:
getType in class Destination
Returns:
the type of this destination.
See Also:
DestinationConstants#TOPIC_TYPE, DestinationConstants#QUEUE_TYPE

createsImpl

public DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId,
                                   java.util.Properties prop)
Creates the QueueImpl.

Specified by:
createsImpl in class Destination
Parameters:
adminId - Identifier of the queue administrator.
prop - The initial set of properties.

agentInitialize

protected void agentInitialize(boolean firstTime)
                        throws java.lang.Exception
Gives this agent an opportunity to initialize after having been deployed, and each time it is loaded into memory.

Overrides:
agentInitialize in class Destination
Parameters:
firstTime - true when first called by the factory
Throws:
java.lang.Exception - unspecialized exception

react

public void react(fr.dyade.aaa.agent.AgentId from,
                  fr.dyade.aaa.agent.Notification not)
           throws java.lang.Exception
Distributes the received notifications to the appropriate reactions.

Overrides:
react in class Destination
Throws:
java.lang.Exception

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 5.2.4

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved