org.objectweb.joram.mom.dest
Class AdminTopic

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
              extended by org.objectweb.joram.mom.dest.AdminTopic
All Implemented Interfaces:
AgentMBean, java.io.Serializable, AdminDestinationItf

public class AdminTopic
extends Topic

An AdminTopic agent is a MOM administration service, which Behavior is provided by an AdminTopicImpl instance.

See Also:
AdminTopicImpl, Serialized Form

Field Summary
(package private) static AgentId adminId
           
private static long serialVersionUID
          define serialVersionUID for interoperability
 
Fields inherited from class org.objectweb.joram.mom.dest.Destination
destImpl, logger, task
 
Fields inherited from class fr.dyade.aaa.agent.Agent
emptyString, fixed, logmon
 
Constructor Summary
AdminTopic()
          Constructs an AdminTopic agent.
 
Method Summary
 DestinationImpl createsImpl(AgentId adminId, java.util.Properties prop)
          Creates the TopicImpl.
static AgentId getDefault()
          Gets the identifier of the default administration topic on the current server.
static AgentId getDefault(short serverId)
          Gets the identifier of the default administration topic on a given server.
static boolean isAdminTopicId(AgentId id)
          Returns true if the given AgentId is the unique identifier of an AdminTopic agent.
 void react(AgentId from, Notification not)
          Distributes the received notifications to the appropriate reactions.
 
Methods inherited from class org.objectweb.joram.mom.dest.Topic
getType
 
Methods inherited from class org.objectweb.joram.mom.dest.Destination
agentFinalize, agentInitialize, getMBeanName, init, setFreeReading, setFreeWriting, setNoSave, setSave
 
Methods inherited from class fr.dyade.aaa.agent.Agent
delete, delete, delete, deploy, deploy, getAgentId, getCommitTime, getId, getLogTopic, getName, getReactNb, getReactTime, 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

serialVersionUID

private static final long serialVersionUID
define serialVersionUID for interoperability

See Also:
Constant Field Values

adminId

static AgentId adminId
Constructor Detail

AdminTopic

public AdminTopic()
           throws RequestException
Constructs an AdminTopic agent.

Throws:
RequestException
Method Detail

createsImpl

public DestinationImpl createsImpl(AgentId adminId,
                                   java.util.Properties prop)
Creates the TopicImpl.

Overrides:
createsImpl in class Topic
Parameters:
adminId - Identifier of the topic administrator.
prop - The initial set of properties.

getDefault

public static AgentId getDefault(short serverId)
Gets the identifier of the default administration topic on a given server.


getDefault

public static final AgentId getDefault()
Gets the identifier of the default administration topic on the current server.


isAdminTopicId

public static final boolean isAdminTopicId(AgentId id)
Returns true if the given AgentId is the unique identifier of an AdminTopic agent.

Parameters:
id - the AgentId to verify.
Returns:
true if the given AgentId is the unique identifier of an AdminTopic agent.

react

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

Overrides:
react in class Topic
Parameters:
from - agent sending notification
not - notification to react to
Throws:
java.lang.Exception


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.