org.iids.aos.hostmanager
Class SystemServiceModule

java.lang.Object
  extended by org.iids.aos.systemservices.module.AbstractModule
      extended by org.iids.aos.hostmanager.SystemServiceModule
All Implemented Interfaces:
Module

public class SystemServiceModule
extends AbstractModule

Author:
mobach@cs.vu.nl

Field Summary
protected  java.util.HashMap<AgentScapeID,SystemServiceInfo> serviceMap
           
 
Constructor Summary
SystemServiceModule(Communicator _communicator, AgentScapeConfig _asc, AgentScapeHMNegotiationModule nm)
           
 
Method Summary
 int deregisterSystemService(AgentScapeID serviceId)
           
protected  void finalize()
           
 java.util.Map<AgentScapeID,SystemServiceInfo> getServiceIdList()
           
 java.util.Vector<AgentScapeID> getSuitableAgentServers(Specifications specifications)
          This method will return al list of available agentservers which comply to the agent preferences.
 Address getSystemServiceAddress(AgentScapeID serviceId)
           
 boolean isRegistered(AgentScapeID s)
           
 boolean isStarted()
           
 int registerSystemService(AgentScapeID _id, java.lang.String _type, Address address, Specifications specs)
           
 void setLifeCycleModule(LifeCycleModule lcm)
           
 void start()
           
 int startAgentScapeApi()
           
 int startAgentServer(AgentScapeID agentserverID, Specifications serverSpecifications)
          Start a new agent server.
 void startService(Specifications specifications)
           
 void stop()
           
 
Methods inherited from class org.iids.aos.systemservices.module.AbstractModule
getCommunicator, getModuleName
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serviceMap

protected final java.util.HashMap<AgentScapeID,SystemServiceInfo> serviceMap
Constructor Detail

SystemServiceModule

public SystemServiceModule(Communicator _communicator,
                           AgentScapeConfig _asc,
                           AgentScapeHMNegotiationModule nm)
                    throws java.lang.NoSuchMethodException,
                           CommunicatorException
Throws:
java.lang.NoSuchMethodException
CommunicatorException
Method Detail

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.