orca.shirako.kernel
Class AuthorityPolicyRecoverer

java.lang.Object
  extended by orca.shirako.kernel.AuthorityPolicyRecoverer

public class AuthorityPolicyRecoverer
extends java.lang.Object


Field Summary
protected  IAuthority actor
          Actor the mapper belongs to.
protected  ReservationSet closing
          A set of reservations to be closed after recovery.
protected  ReservationSet extending
          A set of reservations to be serviced for extension after recovery.
protected  LoggingTool logger
          Logger.
protected  IAuthorityPolicy policy
          Mapper to be recovered.
protected  ReservationSet redeeming
          A set of reservations to be serviced for redeeming after recovery.
 
Constructor Summary
AuthorityPolicyRecoverer(IAuthorityPolicy mapper, IAuthority actor)
          Creates a new instance.
 
Method Summary
protected  void issueClosing()
           
protected  void issueExtending()
           
protected  void issueRedeeming()
           
protected  java.lang.String printState(IReservation res)
           
 void reset()
          Post-recovery entry point
protected  void restartActions(AuthorityReservation r)
           
 void revisit(ResourceReservation reservation)
          Reset/restore interface.
protected  void revisitActive(AuthorityReservation r)
           
protected  void revisitAgent(BrokerReservation r)
           
protected  void revisitAuthority(AuthorityReservation r)
           
protected  void revisitClient(ReservationClient r)
           
protected  void revisitTicketed(AuthorityReservation r)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policy

protected IAuthorityPolicy policy
Mapper to be recovered.


actor

protected IAuthority actor
Actor the mapper belongs to.


logger

protected LoggingTool logger
Logger.


closing

protected ReservationSet closing
A set of reservations to be closed after recovery. This field is cleared and set to null after reset() completes.


redeeming

protected ReservationSet redeeming
A set of reservations to be serviced for redeeming after recovery. This field is cleared and set to null after reset() completes.


extending

protected ReservationSet extending
A set of reservations to be serviced for extension after recovery. This field is cleared and set to null after reset() completes.

Constructor Detail

AuthorityPolicyRecoverer

public AuthorityPolicyRecoverer(IAuthorityPolicy mapper,
                                IAuthority actor)
Creates a new instance.

Parameters:
mapper - mapper to recover
actor - actor the mapper belongs to
Method Detail

revisit

public void revisit(ResourceReservation reservation)
             throws java.lang.Exception
Reset/restore interface. Restore mapper state associated with a restored reservation. Called once for each restored reservation.

Parameters:
reservation - the reservation
Throws:
java.lang.Exception

printState

protected java.lang.String printState(IReservation res)

revisitAuthority

protected void revisitAuthority(AuthorityReservation r)
                         throws java.lang.Exception
Throws:
java.lang.Exception

revisitClient

protected void revisitClient(ReservationClient r)
                      throws java.lang.Exception
Throws:
java.lang.Exception

revisitAgent

protected void revisitAgent(BrokerReservation r)
                     throws java.lang.Exception
Throws:
java.lang.Exception

revisitTicketed

protected void revisitTicketed(AuthorityReservation r)
                        throws java.lang.Exception
Throws:
java.lang.Exception

revisitActive

protected void revisitActive(AuthorityReservation r)
                      throws java.lang.Exception
Throws:
java.lang.Exception

restartActions

protected void restartActions(AuthorityReservation r)
                       throws java.lang.Exception
Throws:
java.lang.Exception

reset

public void reset()
           throws java.lang.Exception
Post-recovery entry point

Throws:
java.lang.Exception

issueClosing

protected void issueClosing()

issueRedeeming

protected void issueRedeeming()

issueExtending

protected void issueExtending()


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