|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.systemservices.module.AbstractModule
org.iids.aos.systemservices.module.AbstractRunnableModule
org.iids.aos.locationmanager.LocationConfigurationModule
public class LocationConfigurationModule
| Constructor Summary | |
|---|---|
LocationConfigurationModule(Communicator _comm,
AgentScapeConfig _asc,
AsLookupService lookupService,
AgentScapeDCNegotiationModule negotiationModule)
|
|
| Method Summary | |
|---|---|
AgentScapeID |
createAgentScapeID()
|
boolean |
deregister(AgentScapeID id)
Deregister host manager from this location. |
java.util.List<AgentScapeID> |
findSuitableHosts(Specifications agentSpecifications)
returns a list of hostmanager id's on which the agent is able to run. |
HostManager |
getHostmanager(AgentScapeID hostManagerId)
|
Address |
getHostmanagerAddress(AgentScapeID hostManagerId)
|
java.util.HashMap<AgentScapeID,HostManagerInfo> |
getHostmanagers()
|
java.util.HashMap<AgentScapeID,Address> |
listHosts()
List all hosts that are not only registered, but also configured by this location manager. |
void |
pulse()
The task of this module is to handle any newly registered hostmanagers that have been started at the host that have announced themselves. |
int |
register(AgentScapeID id,
Address address)
Register host manager at the location manager. |
void |
setLocationServletModule(LocationServletModule lsm)
|
void |
shutdown()
Each abstract RUNNABLE module implementation must implement the shutdown method, which is called whenever the module is stopped (by AbstractRunnableModule.stop())
from the superclass. |
| Methods inherited from class org.iids.aos.systemservices.module.AbstractRunnableModule |
|---|
isStarted, run, start, stop |
| Methods inherited from class org.iids.aos.systemservices.module.AbstractModule |
|---|
getCommunicator, getModuleName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocationConfigurationModule(Communicator _comm,
AgentScapeConfig _asc,
AsLookupService lookupService,
AgentScapeDCNegotiationModule negotiationModule)
| Method Detail |
|---|
public void shutdown()
AbstractRunnableModuleAbstractRunnableModule.stop())
from the superclass.
shutdown in class AbstractRunnableModulepublic void setLocationServletModule(LocationServletModule lsm)
public void pulse()
pulse in class AbstractRunnableModulepublic java.util.HashMap<AgentScapeID,HostManagerInfo> getHostmanagers()
public java.util.HashMap<AgentScapeID,Address> listHosts()
public int register(AgentScapeID id,
Address address)
LocationManager.register(org.iids.aos.systemservices.communicator.structs.AgentScapeID, org.iids.aos.systemservices.communicator.structs.Address).
id - The AgentScapeID of the host manageraddress - The address (kernel endpoint) of the host manager
public boolean deregister(AgentScapeID id)
LocationManager.deregister(org.iids.aos.systemservices.communicator.structs.AgentScapeID).
id - id of the hostmanager that should be deregistered
register(org.iids.aos.systemservices.communicator.structs.AgentScapeID, org.iids.aos.systemservices.communicator.structs.Address)public AgentScapeID createAgentScapeID()
public java.util.List<AgentScapeID> findSuitableHosts(Specifications agentSpecifications)
agentSpecifications -
public HostManager getHostmanager(AgentScapeID hostManagerId)
public Address getHostmanagerAddress(AgentScapeID hostManagerId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||