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.


Method Summary
 ReservationSet getRedeeming(long cycle)
          Returns a set of reservations that must be redeemed.
 void leaseSatisfies(ResourceSet requestedResources, ResourceSet actualResources, Term requestedTerm, Term actualTerm)
          Checks if the resources and term received in a lease are in compliance with what was initially requested.
 
Methods inherited from interface orca.shirako.api.IClientPolicy
demand, formulateBids, getHoldings, getHoldings, ticketSatisfies, updateTicketComplete
 
Methods inherited from interface orca.shirako.api.IPolicy
close, closed, extend, finish, getClosing, getGuid, prepare, query, remove, reset, revisit, setActor, setLogger
 
Methods inherited from interface orca.shirako.api.IInitialize
initialize
 
Methods inherited from interface orca.shirako.api.ISerialize
reset, save, save
 
Methods inherited from interface orca.shirako.api.IRecover
revisit
 

Method Detail

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 authority
actualResources - resources received from site authority
requestedTerm - term requested from site authority
actualTerm - term received from site authority
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.