Joram 5.2.5

org.objectweb.joram.mom.dest
Class Topic

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.Topic
All Implemented Interfaces:
fr.dyade.aaa.agent.AgentMBean, java.io.Serializable, AdminDestinationItf
Direct Known Subclasses:
AdminTopic, JMSBridgeTopic, MonitoringTopic

public class Topic
extends Destination

A Topic agent is an agent hosting a MOM topic, and which behaviour is provided by a TopicImpl instance.

See Also:
TopicImpl, 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
  Topic()
          Empty constructor for newInstance().
protected Topic(java.lang.String name, boolean fixed, int stamp)
          Constructor with parameters for fixing the topic and specifying its identifier.
 
Method Summary
 DestinationImpl createsImpl(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties prop)
          Creates the TopicImpl.
 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.
 
Methods inherited from class org.objectweb.joram.mom.dest.Destination
agentFinalize, agentInitialize, init, setNoSave, setSave
 
Methods inherited from class fr.dyade.aaa.agent.Agent
delete, 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

Topic

public Topic()
Empty constructor for newInstance().


Topic

protected Topic(java.lang.String name,
                boolean fixed,
                int stamp)
Constructor with parameters for fixing the topic and specifying its identifier. It is uniquely used by the AdminTopic agent.

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 TopicImpl.

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

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

Joram 5.2.5

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