|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.kernel.KernelWrapper
public class KernelWrapper
One SlicesActor object must exist for each locally instantiated actor, and it handles all operations on the actor. Includes operations for all roles: Service Manager, Agent, or Authority, in both client and server modes. Operations may originate from a local thread (e.g., a main program) or from external clients, e.g., through a SOAP/RPC interface.
"Requests" apply to slices and reservations held by a peer (in an Agent or Service Manager role) and served by this server (in an Agent or Authority role).
"Initiates" apply to slices and reservations held by this actor (in a Service Manager or Agent role).
AccessMonitor encapsulates supplementary access control policy, credentials, payment, etc.
Note: any newly created Slice or Reservation object passed through this interface is taken over by the Kernel.
| Constructor Summary | |
|---|---|
KernelWrapper(IActor actor,
Kernel kernel,
AccessMonitor monitor,
Guard guard)
Creates a new kernel wrapper instance. |
|
| Method Summary | |
|---|---|
void |
claimRequest(BrokerReservation reservation,
AuthToken caller,
IClientCallbackProxy callback)
Processes a request to claim a pre-reserved "will call" ticket. |
void |
close(ReservationID rid)
Closes the reservation, potentially initiating a close request to another actor. |
void |
closeRequest(ResourceReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
Processes an incoming request to close a reservation. |
void |
export(BrokerReservation reservation,
AuthToken client)
Initiates a ticket export. |
void |
extendLease(ReservationClient reservation)
Initiates a request to extend a lease. |
void |
extendLeaseRequest(AuthorityReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
Processes an incoming request for a lease extension. |
int |
extendReservation(ReservationID rid,
ResourceSet resources,
Term term)
Extends the reservation with the given resources and term. |
void |
extendTicket(ReservationClient reservation)
Initiates a request to extend a ticket. |
void |
extendTicketRequest(BrokerReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
Processes an incoming request for a ticket extension. |
void |
redeem(ReservationClient reservation)
Initiates a request to redeem a ticketed reservation. |
void |
redeemRequest(AuthorityReservation reservation,
AuthToken caller,
IServiceManagerCallbackProxy callback,
boolean compareSequenceNumbers)
Processes an incoming request for a new lease. |
protected void |
registerListener(ResourceReservation r)
|
void |
removeReservation(ReservationID rid)
Removes the specified reservation from the kernel data structures. |
void |
ticket(ReservationClient reservation,
IActorIdentity destination)
Initiates a ticket request. |
void |
ticketRequest(BrokerReservation reservation,
AuthToken caller,
IClientCallbackProxy callback,
boolean compareSequenceNumbers)
Processes an incoming request for a new ticket. |
void |
updateLease(ReservationClient reservation,
UpdateData udd,
AuthToken caller)
Handles a lease update from an authority. |
void |
updateTicket(ReservationClient reservation,
UpdateData udd,
AuthToken caller)
Handles a ticket update from upstream broker. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KernelWrapper(IActor actor,
Kernel kernel,
AccessMonitor monitor,
Guard guard)
actor - actorkernel - kernelmonitor - access control monitorguard - source for access control lists| Method Detail |
|---|
public void removeReservation(ReservationID rid)
throws java.lang.Exception
IKernelWrapper
removeReservation in interface IKernelWrapperrid - identifier of reservation to remove
java.lang.Exception
public int extendReservation(ReservationID rid,
ResourceSet resources,
Term term)
throws java.lang.Exception
IKernelWrapper
extendReservation in interface IKernelWrapperrid - identifier of reservation to extendresources - resources for extensionterm - term for extension
java.lang.Exception
public void close(ReservationID rid)
throws java.lang.Exception
IKernelWrapper
close in interface IKernelWrapperrid - identifier of reservation to close
java.lang.Exception
public void ticket(ReservationClient reservation,
IActorIdentity destination)
throws java.lang.Exception
IKernelWrapperRole: Broker or Service Manager.
ticket in interface IKernelWrapperreservation - reservation parameters for ticket requestdestination - identity of the actor the request must be sent to
java.lang.Exception
public void redeem(ReservationClient reservation)
throws java.lang.Exception
IKernelWrapperRole: Service Manager.
redeem in interface IKernelWrapperreservation - the reservation being redeemed
java.lang.Exception
public void extendTicket(ReservationClient reservation)
throws java.lang.Exception
IKernelWrapperRole: Broker or Service Manager
extendTicket in interface IKernelWrapperreservation - reservation describing the ticket extension request
java.lang.Exception
public void extendLease(ReservationClient reservation)
throws java.lang.Exception
IKernelWrapperRole: Service Manager
extendLease in interface IKernelWrapperreservation - reservation describing the extend request
java.lang.Exception
public void updateTicket(ReservationClient reservation,
UpdateData udd,
AuthToken caller)
throws java.lang.Exception
IKernelWrapperRole: Agent or Service Manager.
updateTicket in interface IKernelWrapperreservation - reservation describing the updateudd - status of the updatecaller - identity of the caller
java.lang.Exception
public void updateLease(ReservationClient reservation,
UpdateData udd,
AuthToken caller)
throws java.lang.Exception
IKernelWrapperRole: Service Manager
updateLease in interface IKernelWrapperreservation - reservation describing the updateudd - status of the updatecaller - identity of the caller
java.lang.Exception
public void export(BrokerReservation reservation,
AuthToken client)
throws java.lang.Exception
IKernelWrapperRole: Broker or Authority
Prepare/hold a ticket for "will call" claim by a client.
export in interface IKernelWrapperreservation - reservation to be exportedclient - client identity
java.lang.Exception
public void ticketRequest(BrokerReservation reservation,
AuthToken caller,
IClientCallbackProxy callback,
boolean compareSequenceNumbers)
throws java.lang.Exception
IKernelWrapperRole: Broker
ticketRequest in interface IKernelWrapperreservation - reservation representing the ticket requestcaller - caller identitycallback - callback objectcompareSequenceNumbers - if true, the incoming sequence number will
be compared to the local sequence number to detect fresh
requests, if false, no comparison will be performed.
java.lang.Exception
public void claimRequest(BrokerReservation reservation,
AuthToken caller,
IClientCallbackProxy callback)
throws java.lang.Exception
IKernelWrapperRole: Broker
claimRequest in interface IKernelWrapperreservation - reservation describing the claim requestcaller - caller identitycallback - callback proxy
java.lang.Exception
public void redeemRequest(AuthorityReservation reservation,
AuthToken caller,
IServiceManagerCallbackProxy callback,
boolean compareSequenceNumbers)
throws java.lang.Exception
IKernelWrapperRole: Authority
redeemRequest in interface IKernelWrapperreservation - reservation representing the lease request. Must
contain a valid ticket.caller - caller identitycallback - callback objectcompareSequenceNumbers - if true, the incoming sequence number will
be compared to the local sequence number to detect fresh
requests, if false, no comparison will be performed.
java.lang.Exception
public void extendTicketRequest(BrokerReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
throws java.lang.Exception
IKernelWrapperRole: Broker
extendTicketRequest in interface IKernelWrapperreservation - reservation representing the ticket extension request.caller - caller identitycompareSequenceNumbers - if true, the incoming sequence number will
be compared to the local sequence number to detect fresh
requests, if false, no comparison will be performed.
java.lang.Exception
public void extendLeaseRequest(AuthorityReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
throws java.lang.Exception
IKernelWrapperRole: Authority
extendLeaseRequest in interface IKernelWrapperreservation - reservation representing the lease extension request.caller - caller identitycompareSequenceNumbers - if true, the incoming sequence number will
be compared to the local sequence number to detect fresh
requests, if false, no comparison will be performed.
java.lang.Exception
public void closeRequest(ResourceReservation reservation,
AuthToken caller,
boolean compareSequenceNumbers)
throws java.lang.Exception
IKernelWrapperRole: Authority
closeRequest in interface IKernelWrapperreservation - reservation to close.caller - caller identitycompareSequenceNumbers - if true, the incoming sequence number will
be compared to the local sequence number to detect fresh
requests, if false, no comparison will be performed.
java.lang.Exceptionprotected void registerListener(ResourceReservation r)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||