|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.tool.loader.AgentLoader
The Agent Loader will instantiate agents specified in the loader profile in the same java virtual machine.
Constructor Summary | |
AgentLoader(java.lang.String platform_profile_location,
java.lang.String loader_profile_name,
boolean gui)
Constructs the agent loader and instantiates the specified agents. |
Method Summary | |
void |
activate(java.lang.String agent_name)
"Activate" the given Agent |
AgentDescription |
getAgentDescription(java.lang.String agent)
Get AgentDesciption for given Agent |
java.util.List |
getAgents()
Get a list of Agents that can be started |
java.lang.String |
getAgentState(java.lang.String agent_name)
Get the state of the Agent with the given name - returns null if no such agent is alive |
java.util.List |
getAliveAgents()
Get a list of "alive" agents |
static void |
main(java.lang.String[] args)
|
void |
shutdownAgent(java.lang.String agent_name)
Shut down the agent with the given name |
void |
shutdownAgent(java.lang.String agent_name,
boolean async)
Shut down the agent with the given name |
void |
shutdownAgents()
Stops all executing agents |
void |
startAgent(java.lang.String agent_name,
boolean async)
Starts an agent |
void |
startAgent(java.lang.String agent_name,
java.lang.String class_name)
Starts an agent (async) |
void |
startAgent(java.lang.String agent_name,
java.lang.String class_name,
java.lang.String owner,
boolean async)
Starts an agent |
void |
startAgents()
Method that starts all Agent that are marked as startable at AgentLoader initialisation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AgentLoader(java.lang.String platform_profile_location, java.lang.String loader_profile_name, boolean gui)
profile_location
- Directory where the agent loader profile is storedfile_name
- the filename of the profileMethod Detail |
public java.util.List getAliveAgents()
public java.util.List getAgents()
public AgentDescription getAgentDescription(java.lang.String agent)
public java.lang.String getAgentState(java.lang.String agent_name)
public void shutdownAgent(java.lang.String agent_name)
agent
- The agent to be shutdownpublic void shutdownAgent(java.lang.String agent_name, boolean async)
agent
- The agent to be shutdownasync
- Do this asyncronously (with timeout!)public void startAgent(java.lang.String agent_name, boolean async)
agent_name
- Name of the Agent (defined in the Loader Profile) to startasync
- Start the Agent asyncronously?public void startAgent(java.lang.String agent_name, java.lang.String class_name)
agent_name
- Name of the Agent to startclass_name
- Name of the class for this Agentpublic void startAgent(java.lang.String agent_name, java.lang.String class_name, java.lang.String owner, boolean async)
agent_name
- Name of the Agent to startclass_name
- Name of the class for this Agentowner
- Owner of the Agentasync
- Start the Agent asyncronously?public void startAgents()
public void shutdownAgents()
public void activate(java.lang.String agent_name)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |