org.iids.aos.hostmanager
Class ResourceRegistry.ResourceRegistryAgent

java.lang.Object
  extended by org.iids.aos.agent.Agent
      extended by org.iids.aos.hostmanager.ResourceRegistry.ResourceRegistryAgent
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ResourceRegistry

public static class ResourceRegistry.ResourceRegistryAgent
extends Agent

See Also:
Serialized Form

Constructor Summary
ResourceRegistry.ResourceRegistryAgent()
           
 
Method Summary
 void cleanUp()
          User definable cleanup of the agent before stopping.
 void run()
          Implementation of the run method of the Agent superclass.
 
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
 

Constructor Detail

ResourceRegistry.ResourceRegistryAgent

public ResourceRegistry.ResourceRegistryAgent()
Method Detail

run

public void run()
Implementation of the run method of the Agent superclass.

Registers this agents primary handle with the REGISTRATION_KEY in the lookup service. Receives messages until it receives a close message from its owner, or -currently- when an exception occurs.

Specified by:
run in class Agent
See Also:
cleanup, move

cleanUp

public void cleanUp()
Description copied from class: Agent
User definable cleanup of the agent before stopping. This method is called by the method Agent.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.

Overrides:
cleanUp in class Agent


Copyright © 2003, 2004 IIDS Group. All Rights Reserved.