Inheritance diagram for fr.dyade.aaa.agent.AgentAdmin:


Public Member Functions | |
| AgentAdmin (short maxId) | |
| void | react (AgentId from, Notification not) throws Exception |
| Short | getSid () |
Static Public Member Functions | |
| static AgentId | getDefault (short serverId) |
| static AgentId | getDefault () |
| static void | init (String args, boolean firstTime) throws Exception |
| static void | stopService () |
Static Public Attributes | |
| static final int | NONE = 0 |
| static final int | CONFIGURED = 1 |
| static final int | STOPED = 2 |
| static final int | STARTED = 3 |
Protected Member Functions | |
| void | agentInitialize (boolean firstTime) throws Exception |
Static Package Attributes | |
| static Logger | logmon |
| static String[] | statusName = {"NONE", "CONFIGURED", "STOPED", "STARTED"} |
AgentAdmin allows the administration of the AgentServer through scripts.
Definition at line 38 of file AgentAdmin.java.
| fr.dyade.aaa.agent.AgentAdmin.AgentAdmin | ( | short | maxId | ) |
Creates a local administration agent.
Definition at line 131 of file AgentAdmin.java.
Referenced by fr.dyade.aaa.agent.AgentAdmin.init().
| static AgentId fr.dyade.aaa.agent.AgentAdmin.getDefault | ( | short | serverId | ) | [static] |
Get default AgentId of AgentAdmin for specified AgentServer.
| serverId | the id of specified AgentServer. |
Definition at line 70 of file AgentAdmin.java.
| static AgentId fr.dyade.aaa.agent.AgentAdmin.getDefault | ( | ) | [static] |
Get default AgentId of AgentAdmin for local AgentServer.
Definition at line 79 of file AgentAdmin.java.
| static void fr.dyade.aaa.agent.AgentAdmin.init | ( | String | args, | |
| boolean | firstTime | |||
| ) | throws Exception [static] |
Initializes the package as a well known service.
Creates a AgentAdmin agent with the well known stamp AgentId.AdminIdStamp.
| args | parameters from the configuration file | |
| firstTime | true when agent server starts anew |
| Exception | unspecialized exception |
Definition at line 95 of file AgentAdmin.java.
References fr.dyade.aaa.agent.AgentAdmin.AgentAdmin(), fr.dyade.aaa.agent.Agent.deploy(), and fr.dyade.aaa.agent.AgentAdmin.logmon.
Here is the call graph for this function:

| void fr.dyade.aaa.agent.AgentAdmin.agentInitialize | ( | boolean | firstTime | ) | throws Exception [protected] |
Gives this agent an opportunity to initialize after having been deployed, and each time it is loaded into memory.
This 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 just registers the JMS MBean.
| firstTime | true when first called by the factory |
| Exception | unspecialized exception |
Reimplemented from fr.dyade.aaa.agent.Agent.
Definition at line 124 of file AgentAdmin.java.
| void fr.dyade.aaa.agent.AgentAdmin.react | ( | AgentId | from, | |
| Notification | not | |||
| ) | throws Exception |
Reacts to 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
| from | agent sending notification | |
| not | notification to react to |
| Exception | unspecialized exception |
Reimplemented from fr.dyade.aaa.agent.Agent.
Definition at line 151 of file AgentAdmin.java.
References fr.dyade.aaa.agent.AgentAdmin.logmon.
1.5.0