orca.shirako.api
Interface IServiceManagerPolicy
- All Superinterfaces:
- IClientPolicy, IInitialize, IPolicy, IRecover, ISerialize
- All Known Implementing Classes:
- BaseServiceManagerCalendarPolicy, ServiceManagerPolicy, ServiceManagerSimplePolicyPlugin
public interface IServiceManagerPolicy
- extends IClientPolicy
IServiceManagerPolicy defines the policy interface for an
actor acting in the service manager role.
| Methods inherited from interface orca.shirako.api.IPolicy |
close, closed, extend, finish, getClosing, getGuid, prepare, query, remove, reset, revisit, setActor, setLogger |
getRedeeming
ReservationSet getRedeeming(long cycle)
- Returns a set of reservations that must be redeemed. This method is
invoked with the kernel lock on.
- Parameters:
cycle - the current cycle
leaseSatisfies
void leaseSatisfies(ResourceSet requestedResources,
ResourceSet actualResources,
Term requestedTerm,
Term actualTerm)
throws java.lang.Exception
- Checks if the resources and term received in a lease are in compliance
with what was initially requested. The policy can prevent the application
of the incoming update if it disagrees with it. This method is invoked
with the kernel lock on.
- Parameters:
requestedResources - resources requested from site authorityactualResources - resources received from site authorityrequestedTerm - term requested from site authorityactualTerm - term received from site authority
- Throws:
java.lang.Exception
Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.