|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.dyade.aaa.agent.Agent
fr.dyade.aaa.agent.AgentFactory
final class AgentFactory
Agent
used to allow remote agent creation. Every agent
server hosts a factory agent, they all use a predefined stamp identifier
AgentId.factoryId
. The factory must be able to create all
types of objects, actually it is supposed that the corresponding classes
can be reached.
The agent creation process involves the following steps
Agent
object in memory ;
AgentCreateRequest
notification with the resulting string, sending it to the target
Factory agent ;
Field Summary | |
---|---|
private static long |
serialVersionUID
define serialVersionUID for interoperability |
Fields inherited from class fr.dyade.aaa.agent.Agent |
---|
commitTime, deployed, emptyString, fixed, id, last, logmon, name, reactNb, reactTime |
Constructor Summary | |
---|---|
AgentFactory(AgentId factoryId)
Allocates a new AgentFactory agent. |
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. |
protected java.lang.String |
getLogTopic()
Returns log topic for factory agent. |
void |
react(AgentId from,
Notification not)
Reacts to notifications ... . |
Methods inherited from class fr.dyade.aaa.agent.Agent |
---|
agentFinalize, delete, delete, delete, deploy, deploy, getAgentId, getCommitTime, getId, getName, getReactNb, getReactTime, isDeployed, isFixed, load, needToBeCommited, save, sendTo, sendTo, sendTo, setName, setNoSave, setSave, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
Constructor Detail |
---|
AgentFactory(AgentId factoryId)
AgentFactory
agent.
An AgentFactory
agent must be created on every agent
server the first time it runs.
Method Detail |
---|
protected java.lang.String getLogTopic()
getLogTopic
in class Agent
protected void agentInitialize(boolean firstTime) throws java.lang.Exception
fixed
field set to true
.
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 |