org.iids.aos.hostmanager.negotiationmodule
Class AgentScapeHMLeaseManagement

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

public class AgentScapeHMLeaseManagement
extends AbstractRunnableModule


Field Summary
static long PROPOSAL_EXPIRATION_TIME
           
 
Constructor Summary
AgentScapeHMLeaseManagement(AgentScapeHMNegotiationModule parent, Communicator comm)
           
 
Method Summary
 AgreementOffer acceptLease(java.lang.String leaseIdentifier)
           
 void addLeaseProposal(AgreementOffer ao)
           
 boolean containsLease(java.lang.String leaseIdentifier)
           
 void expireLeases(AgentID agentID)
          Expire all leases present for agent with id agentID
 AgreementOffer getLease(java.lang.String leaseIdentifier)
           
 AgentScapeHMNegotiationModule getParent()
           
 void pulse()
           
 void rejectLease(java.lang.String leaseIdentifier)
           
 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
 

Field Detail

PROPOSAL_EXPIRATION_TIME

public static final long PROPOSAL_EXPIRATION_TIME
See Also:
Constant Field Values
Constructor Detail

AgentScapeHMLeaseManagement

public AgentScapeHMLeaseManagement(AgentScapeHMNegotiationModule parent,
                                   Communicator comm)
Method Detail

rejectLease

public void rejectLease(java.lang.String leaseIdentifier)

acceptLease

public AgreementOffer acceptLease(java.lang.String leaseIdentifier)
                           throws LeaseManagementException
Throws:
LeaseManagementException

pulse

public void pulse()
Specified by:
pulse in class AbstractRunnableModule

shutdown

public void shutdown()
Description copied from class: AbstractRunnableModule
Each abstract RUNNABLE module implementation must implement the shutdown method, which is called whenever the module is stopped (by AbstractRunnableModule.stop()) from the superclass.

Specified by:
shutdown in class AbstractRunnableModule

getParent

public AgentScapeHMNegotiationModule getParent()

addLeaseProposal

public void addLeaseProposal(AgreementOffer ao)

containsLease

public boolean containsLease(java.lang.String leaseIdentifier)

getLease

public AgreementOffer getLease(java.lang.String leaseIdentifier)
                        throws LeaseManagementException
Throws:
LeaseManagementException

expireLeases

public void expireLeases(AgentID agentID)
Expire all leases present for agent with id agentID

Parameters:
agentID -


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