|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Agent
org.objectweb.joram.mom.dest.Destination
A Destination
agent is an agent hosting a MOM destination,
for example a Queue or a Topic.
Its behaviour is provided by a DestinationImpl
instance.
DestinationImpl
,
Serialized FormField Summary | |
protected DestinationImpl |
destImpl
The reference of the DestinationImpl instance providing this
this agent with its Destination behaviour. |
Fields inherited from class fr.dyade.aaa.agent.Agent |
fixed, logmon, name |
Constructor Summary | |
|
Destination()
Empty constructor for newInstance(). |
|
Destination(AgentId adminId)
Constructs a Destination agent. |
protected |
Destination(boolean fixed)
Constructor with parameters for fixing the destination. |
protected |
Destination(java.lang.String name,
boolean fixed,
int stamp)
Constructor with parameters for fixing the destination and specifying its identifier. |
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. |
abstract DestinationImpl |
createsImpl(AgentId adminId)
Creates the specific implementation. |
void |
init(AgentId adminId)
Initializes the destination by creating the DestinationImpl object. |
void |
react(AgentId from,
Notification not)
Reactions to notifications are implemented by the DestinationImpl class. |
void |
setProperties(java.util.Properties prop)
Sets properties for the destination. |
Methods inherited from class fr.dyade.aaa.agent.Agent |
agentFinalize, delete, delete, deploy, deploy, getId, getLogTopic, getName, isDeployed, isFixed, needToBeCommited, save, sendTo, sendTo, sendTo, setNoSave, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected DestinationImpl destImpl
DestinationImpl
instance providing this
this agent with its Destination behaviour.
Constructor Detail |
public Destination()
public Destination(AgentId adminId)
Destination
agent.
adminId
- Identifier of the agent which will be the administrator
of the topic.protected Destination(boolean fixed)
protected Destination(java.lang.String name, boolean fixed, int stamp)
Method Detail |
public final void init(AgentId adminId)
init
in interface AdminDestinationItf
adminId
- Identifier of the destination administrator.public abstract DestinationImpl createsImpl(AgentId adminId)
adminId
- Identifier of the topic administrator.public void setProperties(java.util.Properties prop)
Empty method as no properties may be set for the generic destination.
setProperties
in interface AdminDestinationItf
protected void agentInitialize(boolean firstTime) throws java.lang.Exception
agentInitialize
in class Agent
firstTime
- true when first called by the factory
java.lang.Exception
- unspecialized exceptionpublic void react(AgentId from, Notification not) throws java.lang.Exception
react
in class Agent
from
- agent sending notificationnot
- notification to react to
java.lang.Exception
- unspecialized exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |