|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iids.aos.hostmanager.negotiationmodule.hostpolicies.HostPolicy
org.iids.aos.hostmanager.negotiationmodule.hostpolicies.CPUtimeHostPolicy
public class CPUtimeHostPolicy
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 |
|---|
public CPUtimeHostPolicy()
| Method Detail |
|---|
public AgreementOffer applyPolicy(AgreementOffer incomingRequest)
throws PolicyException
applyPolicy in class HostPolicyPolicyException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||