fr.dyade.aaa.agent.AgentAdmin Class Reference

Inherits fr.dyade.aaa.agent.Agent.

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

Inheritance graph
[legend]
Collaboration diagram for fr.dyade.aaa.agent.AgentAdmin:

Collaboration graph
[legend]
List of all members.

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"}

Detailed Description

The AgentAdmin allows the administration of the AgentServer through scripts.

Definition at line 38 of file AgentAdmin.java.


Constructor & Destructor Documentation

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().


Member Function Documentation

static AgentId fr.dyade.aaa.agent.AgentAdmin.getDefault ( short  serverId  )  [static]

Get default AgentId of AgentAdmin for specified AgentServer.

Parameters:
serverId the id of specified AgentServer.
Returns:
the default AgentId of AgentAdmin for 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.

Returns:
the 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.

Parameters:
args parameters from the configuration file
firstTime true when agent server starts anew
Exceptions:
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.

Parameters:
firstTime true when first called by the factory
Exceptions:
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

Parameters:
from agent sending notification
not notification to react to
Exceptions:
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.


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:16:14 2008 for joram by  doxygen 1.5.0