|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.systemservices.LocalSystemService
org.iids.aos.agentserver.LocalAgentServer
public class LocalAgentServer
Local binding of an agent server interface. Runs directly on top of an AgentRunner for transparency.
| Field Summary |
|---|
| Fields inherited from interface org.iids.aos.systemservices.AgentServer |
|---|
FINISHED_AGENT, LOOKUP_REGISTRATION_NAME |
| Constructor Summary | |
|---|---|
LocalAgentServer(AgentRunner ar)
|
|
| Method Summary | |
|---|---|
java.lang.String |
do_http_request(java.lang.String request)
|
java.util.Vector<AgentID> |
get_agents()
|
static LocalAgentServer |
get(AgentScapeID id)
Returns the local location manager with name id if it
exists in this JVM. |
int |
getAgentCPUtime(AgentID agentID)
|
void |
pingService()
|
void |
remove_agent(AgentID agentId)
Remove agent from the agent server. |
static void |
remove(AgentScapeID id)
Remove static registration of an agent server. |
void |
shutdown()
|
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. |
void |
unbind()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalAgentServer(AgentRunner ar)
| Method Detail |
|---|
public void start_agent(AgentID agentId,
java.lang.String[] args)
throws AgentIDUnknownException,
AgentStartupException
AgentServer
start_agent in interface AgentServeragentId - 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.
public void suspend_agent(AgentID agentId)
throws AgentIDUnknownException,
AgentSuspendException
AgentServer
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.
suspend_agent in interface AgentServeragentId - The AgentID of the agent to suspend.
AgentIDUnknownException - The AgentID is not known on this agent server.
AgentSuspendException - Problem suspending the agent.
public void remove_agent(AgentID agentId)
throws AgentIDUnknownException
AgentServer
remove_agent in interface AgentServeragentId - The AgentID of the agent to remove.
AgentIDUnknownException - The AgentID is not known on this agent server.public java.util.Vector<AgentID> get_agents()
get_agents in interface AgentServer
public int getAgentCPUtime(AgentID agentID)
throws AgentIDUnknownException
getAgentCPUtime in interface AgentServerAgentIDUnknownExceptionpublic void unbind()
unbind in interface SystemServicepublic void shutdown()
shutdown in interface SystemServicepublic static LocalAgentServer get(AgentScapeID id)
id if it
exists in this JVM.
id - The location ID of the LocationManager interface.
null, which also indicates that
the LocationManager for this location runs somewhere else.public static void remove(AgentScapeID id)
public void pingService()
pingService in interface SystemServicepublic java.lang.String do_http_request(java.lang.String request)
do_http_request in interface AgentServer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||