org.iids.aos.hostmanager.negotiationmodule
Class AgentScapeHMLeaseManagement
java.lang.Object
org.iids.aos.systemservices.module.AbstractModule
org.iids.aos.systemservices.module.AbstractRunnableModule
org.iids.aos.hostmanager.negotiationmodule.AgentScapeHMLeaseManagement
- All Implemented Interfaces:
- java.lang.Runnable, Module
public class AgentScapeHMLeaseManagement
- extends AbstractRunnableModule
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPOSAL_EXPIRATION_TIME
public static final long PROPOSAL_EXPIRATION_TIME
- See Also:
- Constant Field Values
AgentScapeHMLeaseManagement
public AgentScapeHMLeaseManagement(AgentScapeHMNegotiationModule parent,
Communicator comm)
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.