|
||||||||||
| 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.AgentAdmin
| Field Summary | |
static int |
CONFIGURED
|
static int |
NONE
|
static int |
STARTED
|
static int |
STOPED
|
| Fields inherited from class fr.dyade.aaa.agent.Agent |
fixed, name |
| Constructor Summary | |
AgentAdmin(short maxId)
Creates a local administration 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. |
static AgentId |
getDefault()
get AgentId of AgentServer |
static AgentId |
getDefault(short serverId)
get default AgentId of AgentAdmin |
java.lang.Short |
getSid()
|
static void |
init(java.lang.String args,
boolean firstTime)
Initializes the package as a well known service. |
void |
react(AgentId from,
Notification not)
Reacts to AgentAdmin specific notifications. |
static void |
stopService()
|
| 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 |
public static final int NONE
public static final int CONFIGURED
public static final int STOPED
public static final int STARTED
| Constructor Detail |
public AgentAdmin(short maxId)
| Method Detail |
public static AgentId getDefault(short serverId)
public static AgentId getDefault()
public static void init(java.lang.String args,
boolean firstTime)
throws java.lang.Exception
Creates a AgentAdmin agent with the well known stamp
AgentId.AdminIdStamp.
args - parameters from the configuration filefirstTime - true when agent server starts anew
java.lang.Exception - unspecialized exceptionpublic static void stopService()
protected void agentInitialize(boolean firstTime)
throws java.lang.Exception
AgentThis function is first called by the factory agent, just after it deploys the agent.
This function is used by agents with a fixed field set to
true to initialize their transient variables, as it is called
each time the agent server is restarted.
This function is not declared final so that derived classes
may change their reload policy. The implementation of this method provided
by the Agent class does nothing.
agentInitialize in class AgentfirstTime - true when first called by the factory
java.lang.Exception - unspecialized exception
public void react(AgentId from,
Notification not)
throws java.lang.Exception
AgentAdmin specific notifications.
Analyzes the notification request code, then do the appropriate
work. By default calls react from base class.
Handled notification types are :
AdminRequest,
AdminStartStopNot
react in class Agentfrom - agent sending notificationnot - notification to react to
java.lang.Exception - unspecialized exceptionpublic java.lang.Short getSid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||