org.iids.aos.hostmanager
Class AgentRegistrationModule
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.systemservices.module.AbstractRunnableModule
org.iids.aos.hostmanager.AgentRegistrationModule
- All Implemented Interfaces:
- java.lang.Runnable, Module
public class AgentRegistrationModule
- extends AbstractRunnableModule
- Author:
- michel@cs.vu.nl
module responsible for keeping track of agents, including (de)registration
with the lookupserver.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentRegistrationModule
public AgentRegistrationModule(AgentScapeConfig config,
AsLookupService ls,
Communicator communicator)
throws java.lang.NoSuchMethodException,
CommunicatorException
- Throws:
java.lang.NoSuchMethodException
CommunicatorException
shutdown
public void shutdown()
- Description copied from class:
AbstractRunnableModule
- Each abstract RUNNABLE module implementation must implement the shutdown
method, which is called whenever the module is stopped (by
AbstractRunnableModule.stop())
from the superclass.
- Specified by:
shutdown in class AbstractRunnableModule
pulse
public void pulse()
- Specified by:
pulse in class AbstractRunnableModule
getAgentServer
public Address getAgentServer(AgentID agentId)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
getAgentStatus
public HostManager.AgentStatus getAgentStatus(AgentID agentId)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
listAgents
public java.util.List<AgentID> listAgents()
hostsAgent
public boolean hostsAgent(AgentID id)
addAgent
public void addAgent(AgentID id,
AgentInfo agent)
addAgentHandle
public void addAgentHandle(AgentID id,
AgentHandle handle)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
removeAgentHandle
public void removeAgentHandle(AgentID id,
AgentHandle handle)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
getAgentHandles
public java.util.Vector<AgentHandle> getAgentHandles(AgentID agentID)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
getAgent
public AgentInfo getAgent(AgentID id)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
removeAgent
public void removeAgent(AgentID id)
throws AgentIDUnknownException
- Throws:
AgentIDUnknownException
containsAgent
public boolean containsAgent(AgentID id)
Copyright ? 2003, 2004 IIDS Group. All Rights Reserved.