|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClientPolicy
IClientPolicy defines the policy interface for an actor acting
as a client of another actor (broker or a service manager).
| Method Summary | |
|---|---|
void |
demand(ReservationClient reservation)
Injects a new resource demand into the demand stream. |
Bids |
formulateBids(long cycle)
Formulates bids to the upstream broker(s). |
ReservationSet |
getHoldings()
Return the holdings for the actor. |
ReservationSet |
getHoldings(long cycle)
Returns the holdings for the actor at the given time instance. |
void |
ticketSatisfies(ResourceSet requestedResources,
ResourceSet actualResources,
Term requestedTerm,
Term actualTerm)
Checks if the resources and term received in a ticket are in compliance with what was initially requested. |
void |
updateTicketComplete(IReservation reservation)
Notifies the policy that a ticket update operation has completed. |
| 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 |
|---|
void demand(ReservationClient reservation)
reservation - reservation representing resource demandformulateBids(long)
void updateTicketComplete(IReservation reservation)
throws java.lang.Exception
reservation - reservation for which an update ticket operation has
completed
java.lang.ExceptionReservationSet getHoldings()
ReservationSet getHoldings(long cycle)
cycle -
Bids formulateBids(long cycle)
throws java.lang.Exception
Here are some guidelines for implementing this method:
cycle - The current time
java.lang.Exception
void ticketSatisfies(ResourceSet requestedResources,
ResourceSet actualResources,
Term requestedTerm,
Term actualTerm)
throws java.lang.Exception
requestedResources - resources requested from brokeractualResources - resources received from brokerrequestedTerm - term requested from brokeractualTerm - term received from broker
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||