|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AgentServer
| Field Summary | |
|---|---|
static java.lang.String |
FINISHED_AGENT
|
static java.lang.String |
LOOKUP_REGISTRATION_NAME
|
| Method Summary | |
|---|---|
java.lang.String |
do_http_request(java.lang.String request)
|
java.util.Vector<AgentID> |
get_agents()
|
int |
getAgentCPUtime(AgentID agentID)
|
void |
remove_agent(AgentID agentId)
Remove agent from the agent server. |
void |
start_agent(AgentID agentId,
java.lang.String[] args)
Start running an agent on this agent server. |
void |
suspend_agent(AgentID agentId)
Suspend the running agent and, if possible, store its state in the container belonging to the agent. |
| Methods inherited from interface org.iids.aos.systemservices.SystemService |
|---|
pingService, shutdown, unbind |
| Field Detail |
|---|
static final java.lang.String LOOKUP_REGISTRATION_NAME
static final java.lang.String FINISHED_AGENT
| Method Detail |
|---|
void start_agent(AgentID agentId,
java.lang.String[] args)
throws AgentIDUnknownException,
AgentStartupException
agentId - The AgentID of the agent to register.
AgentIDUnknownException - If the agent is not known by the host manager.
AgentStartupException - If the agent implementation cannot be loaded or started.
void suspend_agent(AgentID agentId)
throws AgentIDUnknownException,
AgentSuspendException
If the AgentRunner that implements
this function supports this, the agent state is automatically written
to the agent container, though this depends on the implementation of
the agent server.
agentId - The AgentID of the agent to suspend.
AgentIDUnknownException - The AgentID is not known on this agent server.
AgentSuspendException - Problem suspending the agent.
void remove_agent(AgentID agentId)
throws AgentIDUnknownException
agentId - The AgentID of the agent to remove.
AgentIDUnknownException - The AgentID is not known on this agent server.java.util.Vector<AgentID> get_agents()
int getAgentCPUtime(AgentID agentID)
throws AgentIDUnknownException
AgentIDUnknownExceptionjava.lang.String do_http_request(java.lang.String request)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||