org.iids.aos.hostmanager
Class SystemServiceModule
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.hostmanager.SystemServiceModule
- All Implemented Interfaces:
- Module
public class SystemServiceModule
- extends AbstractModule
- Author:
- mobach@cs.vu.nl
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serviceMap
protected final java.util.HashMap<AgentScapeID,SystemServiceInfo> serviceMap
SystemServiceModule
public SystemServiceModule(Communicator _communicator,
AgentScapeConfig _asc,
AgentScapeHMNegotiationModule nm)
throws java.lang.NoSuchMethodException,
CommunicatorException
- Throws:
java.lang.NoSuchMethodException
CommunicatorException
startAgentServer
public int startAgentServer(AgentScapeID agentserverID,
Specifications serverSpecifications)
- Start a new agent server.
startService
public void startService(Specifications specifications)
throws StartupException
- Throws:
StartupException
startAgentScapeApi
public int startAgentScapeApi()
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize in class java.lang.Object
- Throws:
java.lang.Throwable
start
public void start()
stop
public void stop()
isStarted
public boolean isStarted()
registerSystemService
public int registerSystemService(AgentScapeID _id,
java.lang.String _type,
Address address,
Specifications specs)
deregisterSystemService
public int deregisterSystemService(AgentScapeID serviceId)
getServiceIdList
public java.util.Map<AgentScapeID,SystemServiceInfo> getServiceIdList()
getSystemServiceAddress
public Address getSystemServiceAddress(AgentScapeID serviceId)
throws SystemServiceNotFoundException
- Throws:
SystemServiceNotFoundException
isRegistered
public boolean isRegistered(AgentScapeID s)
getSuitableAgentServers
public java.util.Vector<AgentScapeID> getSuitableAgentServers(Specifications specifications)
- This method will return al list of available agentservers which
comply to the agent preferences.
For now this function will just return all available agentservers,
as no checking is being performed.
setLifeCycleModule
public void setLifeCycleModule(LifeCycleModule lcm)
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.