org.iids.aos.hostmanager.negotiationmodule.hostpolicies
Class CPUtimeHostPolicy

java.lang.Object
  extended by org.iids.aos.hostmanager.negotiationmodule.hostpolicies.HostPolicy
      extended by org.iids.aos.hostmanager.negotiationmodule.hostpolicies.CPUtimeHostPolicy

public class CPUtimeHostPolicy
extends HostPolicy

This class specifies how requests for the cpu-time resource are handled by the hosts. Current policy is very simple: -if requested value for resource is less or equal to MAX allowed: allocate requested. -if requested value is more than MAX allowed: allocate MAX allowed. Future versions of this policy should probably maintain a dynamic value for MAX allowed, based on monitoring of CPU load or no. of agents or something


Constructor Summary
CPUtimeHostPolicy()
           
 
Method Summary
 AgreementOffer applyPolicy(AgreementOffer incomingRequest)
           
 
Methods inherited from class org.iids.aos.hostmanager.negotiationmodule.hostpolicies.HostPolicy
getResourceHandlerManager, setResourceHandlerManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPUtimeHostPolicy

public CPUtimeHostPolicy()
Method Detail

applyPolicy

public AgreementOffer applyPolicy(AgreementOffer incomingRequest)
                           throws PolicyException
Specified by:
applyPolicy in class HostPolicy
Throws:
PolicyException


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