|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LocationManager
| Field Summary | |
|---|---|
static java.lang.String |
HOST_MANAGER_LOCATION
|
static java.lang.String |
LOCATION_MANAGER_ADDRESS
|
static java.lang.String |
LOOKUP_REGISTRATION_NAME
|
| Method Summary | |
|---|---|
AgreementOffer |
acceptLease(java.lang.String leaseIdentifier)
|
AgentID |
create_agentid()
Generate ID for a new agent, which can be used to create an agent on a host in this location. |
AgentScapeID |
create_agentscapeid()
Generate ID for new service. |
boolean |
deregister(AgentScapeID id)
Deregister host manager with location manager. |
Address |
insert_agent(AgentID agentID,
java.lang.String leaseIdentifier)
Finds a suitable host to run the agent on, and return the address where this host manager can be contacted. |
java.util.HashMap<AgentScapeID,java.util.List<AgentID>> |
list_agents()
Obtain list of all agents in this location. |
java.util.HashMap<AgentScapeID,Address> |
list_hosts()
Obtain a list of all the hosts that are part of this location. |
MigrationEndpoint |
local_migration_request(AgentID agentId,
java.lang.String leaseIdentifier,
AgentScapeID requestingAgentServer,
AgentScapeID destLocationId)
Called by a host manager (part of this location) to instruct the location manager to start the migration process by contacting the remote location manager. |
java.lang.String |
pingString()
|
void |
pingVoid()
|
int |
register(AgentScapeID id,
Address address)
Register host manager with location. |
void |
rejectLease(java.lang.String leaseIdentifier)
|
MigrationEndpoint |
remote_migration_request(AgentID agentId,
java.lang.String leaseIdentifier,
Address requestingLocationAddress,
Address requestingHostAddress)
Called by location manager that initiates migration, to request migration of an agent to this location. |
AgreementOffer |
requestLease(AgreementOffer leaseRequest)
|
AgreementOffer |
requestLeaseStatus(java.lang.String leaseIdentifier)
|
TemplateList |
requestTemplates()
|
| Methods inherited from interface org.iids.aos.systemservices.SystemService |
|---|
pingService, shutdown, unbind |
| Field Detail |
|---|
static final java.lang.String LOOKUP_REGISTRATION_NAME
static final java.lang.String LOCATION_MANAGER_ADDRESS
static final java.lang.String HOST_MANAGER_LOCATION
| Method Detail |
|---|
int register(AgentScapeID id,
Address address)
TODO exceptions
id - The AgentScapeID of the host manager to add.address - Address where host manager can be contacted.
boolean deregister(AgentScapeID id)
TODO exceptions
id - The AgentScapeID of the host manager to remove.
AgentID create_agentid()
AgentID.AgentScapeID create_agentscapeid()
Address insert_agent(AgentID agentID,
java.lang.String leaseIdentifier)
throws AgentCreationException
agentID - ID of the agent XXX unused parameter.leaseIdentifier - The lease to extract the host information from.
AgentCreationException - If the agreement provider in the lease cannot be located.
TODO should be NegotiationLibException?
MigrationEndpoint remote_migration_request(AgentID agentId,
java.lang.String leaseIdentifier,
Address requestingLocationAddress,
Address requestingHostAddress)
throws MigrationFailedException
agentId - The AgentID of the agent to be migrated.leaseIdentifier - Identifier of the lease that contains agent placement.requestingLocationAddress - Address of source LocationManager XXX unused?requestingHostAddress - Address of source HostManager.
MigrationFailedException - Error performing migration request.
MigrationEndpoint local_migration_request(AgentID agentId,
java.lang.String leaseIdentifier,
AgentScapeID requestingAgentServer,
AgentScapeID destLocationId)
throws MigrationFailedException
agentId - The AgentID of the agent to be migrated.leaseIdentifier - Identifier of the lease that contains agent placement.requestingAgentServer - The Address of the requesting agent server.destLocationId - Target location for the agent.
MigrationFailedException - Error performing migration request.TemplateList requestTemplates()
AgreementOffer requestLease(AgreementOffer leaseRequest)
AgreementOffer acceptLease(java.lang.String leaseIdentifier)
void rejectLease(java.lang.String leaseIdentifier)
AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
java.util.HashMap<AgentScapeID,java.util.List<AgentID>> list_agents()
Repeatedly queries all host managers for a list of agents that are
running there. The entire collection of all AgentID's that
are running on all hosts in this location, is returned by this method.
java.util.HashMap<AgentScapeID,Address> list_hosts()
java.lang.String pingString()
void pingVoid()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||