|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.kernel.BrokerPolicyRecoverer
public class BrokerPolicyRecoverer
| Field Summary | |
|---|---|
protected IBroker |
actor
Actor the mapper belongs to. |
protected ReservationSet |
clientExtendingTicket
A set of reservations for which the agent needs to extend tickets. |
protected ReservationSet |
clientTicketing
A set of reservations for which the agent needs to obtain tickets. |
protected ReservationSet |
closing
A set of reservations to be closed after recovery. |
protected ReservationSet |
extending
Recovered reservations that need to extend tickets Populated during revisit. |
protected LoggingTool |
logger
Logger. |
protected IBrokerPolicy |
policy
Mapper to be recovered. |
protected ReservationSet |
ticketing
Recovered reservations that need to obtain tickets. |
| Constructor Summary | |
|---|---|
BrokerPolicyRecoverer(IBrokerPolicy mapper,
IBroker actor)
Creates a new instance. |
|
| Method Summary | |
|---|---|
protected void |
issueClientExtending()
Issues a ticket extend request for all reservations that the recovery process has selected for (re)requesting a ticket extend. |
protected void |
issueClientTicketing()
Issues a tickets request for all reservations that the recovery process has selected for (re)requesting a new ticket. |
protected void |
issueClosing()
Closes all reservations that the recovery process has selected for closing. |
protected void |
issueExtending()
Runs the ticket issuing policy for all reservations that the recovery process has determined that they have been in the process of requesting a new ticket. |
protected void |
issueTicketing()
Runs the ticket issuing policy for all reservations that the recovery process has determined that they have been in the process of requesting a new ticket. |
protected java.lang.String |
printState(IReservation res)
Converts the reservation to a state string. |
void |
reset()
Post-recovery entry point |
void |
revisit(ResourceReservation reservation)
Recovers the state of a single reservation. |
protected void |
revisitClient(ReservationClient r)
Performs recovery for ReservationClients |
protected void |
revisitServer(BrokerReservation r)
Performs recovery for BrokerReservations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IBrokerPolicy policy
protected IBroker actor
protected LoggingTool logger
protected ReservationSet ticketing
protected ReservationSet extending
protected ReservationSet closing
protected ReservationSet clientExtendingTicket
protected ReservationSet clientTicketing
| Constructor Detail |
|---|
public BrokerPolicyRecoverer(IBrokerPolicy mapper,
IBroker actor)
mapper - mapper to recoveractor - actor the mapper belongs to| Method Detail |
|---|
public void revisit(ResourceReservation reservation)
throws java.lang.Exception
reservation - reservation to recover
java.lang.Exceptionprotected java.lang.String printState(IReservation res)
res - reservation
protected void revisitServer(BrokerReservation r)
throws java.lang.Exception
BrokerReservations
r - reservation to recover
java.lang.Exception
protected void revisitClient(ReservationClient r)
throws java.lang.Exception
ReservationClients
r - reservation to recover
java.lang.Exception
public void reset()
throws java.lang.Exception
java.lang.Exceptionprotected void issueTicketing()
protected void issueClientTicketing()
protected void issueClosing()
protected void issueExtending()
protected void issueClientExtending()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||