org.iids.aos.hostmanager.negotiationmodule
Class AgentScapeHMNegotiationModule

java.lang.Object
  extended by org.iids.aos.systemservices.module.AbstractModule
      extended by org.iids.aos.hostmanager.negotiationmodule.AgentScapeHMNegotiationModule
All Implemented Interfaces:
AgentScapeHMNegotiationInterface, Module

public class AgentScapeHMNegotiationModule
extends AbstractModule
implements AgentScapeHMNegotiationInterface

Main class for the negotiation module of the Host Manager Middleware Service. Its main tasks are: -acting as a container for the subcomponents implementing the actual negotiation functionality: -template management component -lease management component -request processing component -routing the incoming negotiation related calls to the correct components: -requestLease -requestTemplates -requestLeaseStatus -acceptLease See method declarations for more info on each of the calls


Constructor Summary
AgentScapeHMNegotiationModule(AgentScapeConfig config, Communicator comm)
           
 
Method Summary
 AgreementOffer acceptLease(java.lang.String leaseIdentifier)
           
 AgentScapeHMLeaseManagement getLm()
           
 java.lang.String getProviderName()
           
 ResourceHandlerManager getRhm()
           
 AgentScapeHMRequestProcessor getRp()
           
 AgentScapeHMTemplateManagement getTm()
           
 boolean isStarted()
           
 java.lang.String pingString()
           
 void pingVoid()
           
 void rejectLease(java.lang.String leaseIdentifier)
           
 AgreementOffer requestLease(AgreementOffer leaseRequest)
          Store request in queue for processing in the next 'pulse'.
 AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
           
 TemplateList requestTemplates()
           
 void setLm(AgentScapeHMLeaseManagement lm)
           
 void setProviderName(java.lang.String name)
           
 void setRp(AgentScapeHMRequestProcessor rp)
           
 void setTm(AgentScapeHMTemplateManagement tm)
           
 void start()
           
 void 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

AgentScapeHMNegotiationModule

public AgentScapeHMNegotiationModule(AgentScapeConfig config,
                                     Communicator comm)
Parameters:
config - The agentscape configuration info datastructure. Contains info on current runtime situation such as paths etc.
comm - The communicator allowing communication to other middleware services. The three main components are instantiated (template management;request processor;lease management). A ResourceHandlerManager is instantiated, containing information on actual providers of resources subject to negotiation.
Method Detail

start

public void start()
Specified by:
start in interface Module

isStarted

public boolean isStarted()
Specified by:
isStarted in interface Module

setLm

public void setLm(AgentScapeHMLeaseManagement lm)

setRp

public void setRp(AgentScapeHMRequestProcessor rp)

setTm

public void setTm(AgentScapeHMTemplateManagement tm)

setProviderName

public void setProviderName(java.lang.String name)

getProviderName

public java.lang.String getProviderName()

getRhm

public ResourceHandlerManager getRhm()

getLm

public AgentScapeHMLeaseManagement getLm()

getRp

public AgentScapeHMRequestProcessor getRp()

getTm

public AgentScapeHMTemplateManagement getTm()

requestTemplates

public TemplateList requestTemplates()
Specified by:
requestTemplates in interface AgentScapeHMNegotiationInterface

requestLease

public AgreementOffer requestLease(AgreementOffer leaseRequest)
Store request in queue for processing in the next 'pulse'.

Specified by:
requestLease in interface AgentScapeHMNegotiationInterface
Parameters:
leaseRequest -

acceptLease

public AgreementOffer acceptLease(java.lang.String leaseIdentifier)
Specified by:
acceptLease in interface AgentScapeHMNegotiationInterface

rejectLease

public void rejectLease(java.lang.String leaseIdentifier)

requestLeaseStatus

public AgreementOffer requestLeaseStatus(java.lang.String leaseIdentifier)
Specified by:
requestLeaseStatus in interface AgentScapeHMNegotiationInterface

stop

public void stop()
Specified by:
stop in interface Module

pingVoid

public void pingVoid()

pingString

public java.lang.String pingString()


Copyright ? 2003, 2004 IIDS Group. All Rights Reserved.