|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.agent.Agent
org.iids.aos.agents.GlobeClient
public class GlobeClient
An agent that acts as a web service client to a Globe distributed object. Used for testing/debugging AgentScape web services and WS-based Globe interoperability. See the separate documentation of web services for Globe and web services for AgentScape.
| Field Summary | |
|---|---|
static java.lang.String |
INF_NAME
|
static java.lang.String |
OBJECT_NAME
|
static java.lang.String |
WSDL_URL
|
| Fields inherited from class org.iids.aos.agent.Agent |
|---|
log |
| Constructor Summary | |
|---|---|
GlobeClient()
|
|
| Method Summary | |
|---|---|
protected void |
cleanUp()
User definable cleanup of the agent before stopping. |
void |
run()
To be implemented by the agent. |
| Methods inherited from class org.iids.aos.agent.Agent |
|---|
agentRunning, createAgentHandle, deregister, getAgentCPUtime, getAgentHandles, getApi, getArgs, getContext, getCurrentLocation, getLocations, getLocations, getLog, getOwnerHandle, getPrimaryHandle, getServlet, getServletNames, getToken, initAgent, kill, lookup, lookup, lookupPublished, lookupPublished, move, move, publish, publishServlet, receiveMessage, receiveMessage, receiveMessages, receiveMessages, register, removeAgentHandle, sendMessage, sendMessages, start, stopRunning, waitForCompletion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INF_NAME
public static final java.lang.String OBJECT_NAME
public static final java.lang.String WSDL_URL
| Constructor Detail |
|---|
public GlobeClient()
| Method Detail |
|---|
public void run()
Agent
Once this function finishes, the agent is done. This can be preceded
by a successful call to move(AgentScapeID)
if the agent should continue to
run on another location. If no successful move was done beforehand,
then the agent is removed from the location.
Note that it is assumed that, once an agent moved to another location, this method will finish soon afterwards. There is no protection against this (yet) however.
Any cleanup operations can be done by implementing Agent.cleanUp().
run in class Agentcleanup,
moveprotected void cleanUp()
AgentAgent.stopRunning(), which is
called by AgentScape whenever the agent moves or is (being) killed.
An Agent-developer can override this method to perform any cleanup
necessary before the agent is stopped permanently, such as
stopping any threads this agent has created or removing any
windows that have been put on the screen.
This method may not throw any Exceptions.
cleanUp in class Agent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||