org.iids.aos.hostmanager.negotiationmodule.hostpolicies
Class runtimeHostPolicy
java.lang.Object
org.iids.aos.hostmanager.negotiationmodule.hostpolicies.HostPolicy
org.iids.aos.hostmanager.negotiationmodule.hostpolicies.runtimeHostPolicy
public class runtimeHostPolicy
- extends HostPolicy
This is a sample host policy for the runtime resource. Hard coded
for now, eventually, host policies should probably be generated for some xml
configuration.
This policy does two things
- check the request to see if the value is nothing other than 'java'.
(only java based agents are allowed)
-checks the available runtime resource handlers, and selects the first
handler which has available capacity
The document is updated to reflect the changes made by the policy.
If no resource handler could be found or no capacity is left, the
term is removed from the document
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
runtimeHostPolicy
public runtimeHostPolicy()
applyPolicy
public AgreementOffer applyPolicy(AgreementOffer incomingRequest)
throws PolicyException
- Specified by:
applyPolicy in class HostPolicy
- Throws:
PolicyException
Copyright © 2003, 2004 IIDS Group. All Rights Reserved.