Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
fr.dyade.aaa.agent.Agent
fr.dyade.aaa.agent.AgentAdmin
public final class AgentAdmin
extends Agent
Field Summary | |
static int | |
static int | |
static int | |
static int |
Constructor Summary | |
|
Method Summary | |
protected void |
|
static AgentId |
|
static AgentId |
|
Short |
|
static void |
|
void |
|
static void |
Methods inherited from class fr.dyade.aaa.agent.Agent | |
agentFinalize , agentInitialize , delete , delete , deploy , deploy , getId , getLogTopic , getName , isDeployed , isFixed , needToBeCommited , react , save , sendTo , sendTo , sendTo , setNoSave , toString |
public static final int CONFIGURED
- Field Value:
- 1
public static final int NONE
- Field Value:
- 0
public static final int STARTED
- Field Value:
- 3
public static final int STOPED
- Field Value:
- 2
protected void agentInitialize(boolean firstTime) throws Exception
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 afixed
field set totrue
to initialize their transient variables, as it is called each time the agent server is restarted. This function is not declaredfinal
so that derived classes may change their reload policy. The implementation of this method provided by theAgent
class does nothing.
- Overrides:
- agentInitialize in interface Agent
- Parameters:
firstTime
- true when first called by the factory
public Short getSid()
public static void init(String args, boolean firstTime) throws Exception
Initializes the package as a well known service. Creates aAgentAdmin
agent with the well known stampAgentId.AdminIdStamp
.
- Parameters:
args
- parameters from the configuration filefirstTime
-true
when agent server starts anew
public void react(AgentId from, Notification not) throws Exception
Reacts toAgentAdmin
specific notifications. Analyzes the notification request code, then do the appropriate work. By default callsreact
from base class. Handled notification types are :AdminRequest
,AdminStartStopNot
- Overrides:
- react in interface Agent
- Parameters:
from
- agent sending notificationnot
- notification to react to
public static void stopService()