|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.core.Actor
orca.shirako.core.Authority
public class Authority
Authority is the base implementation for a site authority
actor.
| Field Summary |
|---|
| Fields inherited from class orca.shirako.core.Actor |
|---|
clock, currentCycle, DefaultDescription, description, firstTick, fromDB, guid, identity, kernel, logger, monitor, policy, PropertyAuthToken, PropertyDescription, PropertyManager, PropertyMapper, PropertyMapperClass, PropertyPlugin, PropertyPluginClass, PropertyType, recovered, spi, stopped, type, wrapper |
| Fields inherited from interface orca.shirako.api.IActor |
|---|
PropertyClass, PropertyGuid, PropertyName, TypeAll, TypeBroker, TypeServiceManager, TypeSiteAuthority |
| Constructor Summary | |
|---|---|
Authority()
Creates a new default instance. |
|
Authority(AuthToken identity,
ActorClock clock)
Creates a new authority with the given identity and clock factory. |
|
| Method Summary | |
|---|---|
void |
available(ResourceSet resources)
Informs the actor that the following resources are available for allocation. |
void |
claim(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken caller)
Services a request to claim a previously exported ticket. |
void |
close(ResourceReservation reservation,
AuthToken caller)
Closes the reservation. |
protected void |
closeExpiring(long cycle)
Close expiring reservations |
void |
donate(ReservationClient reservation)
Accepts ticketed resources to be used for allocation of client requests. |
void |
donate(ResourceSet resources)
Accepts concrete resources to be used for allocation of client requests. |
void |
eject(ResourceSet resources)
Ejects the specified resources from the inventory. |
void |
export(BrokerReservation reservation,
AuthToken client)
Exports the resources described by the reservation to the client. |
ReservationID |
export(ResourceSet resources,
Term term,
AuthToken authToken)
Exports the specified resources for the given period of time to the client. |
void |
extendLease(AuthorityReservation reservation)
Processes an extend lease request for the reservation. |
void |
extendLease(ResourceReservation reservation,
AuthToken caller)
Extends a lease. |
void |
extendTicket(ResourceReservation reservation,
AuthToken caller)
Services an incoming request to extend an existing ticket. |
void |
freed(ResourceSet resources)
Informs the actor that the given resources are no longer in use and can be considered as free, regardless of the state of the individual units. |
void |
initialize()
Initializes a generic actor. |
void |
redeem(AuthorityReservation reservation)
Processes a redeem request for the reservation. |
void |
redeem(ResourceReservation reservation,
IServiceManagerCallbackProxy callback,
AuthToken caller)
Redeems a lease. |
void |
ticket(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken caller)
Services an incoming request for a new ticket. |
protected void |
tickHandler()
Driven by clock downcalls. |
int |
unavailable(ResourceSet resources)
Informs the actor that previously donated resources are no longer available for allocation. |
void |
updateTicket(IReservation reservation,
UpdateData udd,
AuthToken caller)
|
| Methods inherited from class orca.shirako.core.Actor |
|---|
actorAdded, close, close, close, error, extend, extend, externalTick, getActorClock, getClientSlices, getCurrentCycle, getDescription, getGuid, getIdentity, getInventorySlices, getKernel, getLogger, getName, getName, getPolicy, getReservation, getReservations, getShirakoPlugin, getSlice, getSlices, getType, getType, initializeKeyStore, internalError, isFromDatabase, isRecovered, isStopped, query, recover, register, registerSlice, removeReservation, removeReservation, removeSlice, removeSlice, reregister, reregisterSlice, reset, reset, revisit, save, save, setActorClock, setDescription, setGuid, setIdentity, setLogger, setPolicy, setRecovered, setShirakoPlugin, setStopped, start, stop, toString, unregister, unregister, unregisterSlice, unregisterSlice |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface orca.shirako.api.IActor |
|---|
actorAdded, getActorClock, getCurrentCycle, getDescription, getLogger, getPolicy, getShirakoPlugin, getType, initializeKeyStore, isFromDatabase, isRecovered, isStopped, recover, setActorClock, setDescription, setGuid, setIdentity, setLogger, setPolicy, setRecovered, setShirakoPlugin, start, stop |
| Methods inherited from interface orca.shirako.api.ITick |
|---|
externalTick |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
reset, save, save |
| Methods inherited from interface orca.shirako.api.IRecover |
|---|
revisit |
| Methods inherited from interface orca.shirako.api.IActorPublic |
|---|
query |
| Methods inherited from interface orca.shirako.api.IActorIdentity |
|---|
getGuid, getIdentity, getName |
| Methods inherited from interface orca.shirako.api.ISliceOperations |
|---|
getClientSlices, getInventorySlices, getSlice, getSlices, registerSlice, removeSlice, removeSlice, reregisterSlice, unregisterSlice, unregisterSlice |
| Methods inherited from interface orca.shirako.api.IReservationOperations |
|---|
close, close, close, extend, extend, getReservation, getReservations, register, removeReservation, removeReservation, reregister, unregister, unregister |
| Constructor Detail |
|---|
public Authority()
public Authority(AuthToken identity,
ActorClock clock)
identity - actor identityclock - clock factory| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
Actor
initialize in interface IInitializeinitialize in class Actorjava.lang.Exception - Throws exception of some required fields are missing.
public void donate(ReservationClient reservation)
throws java.lang.Exception
IServerActor
donate in interface IServerActorjava.lang.Exception
public void donate(ResourceSet resources)
throws java.lang.Exception
IAuthority
donate in interface IAuthorityresources - resource set representing resources to be used for
allocation
java.lang.Exception
public void freed(ResourceSet resources)
throws java.lang.Exception
IAuthority
freed in interface IAuthorityresources - resource set representing freed resources
java.lang.Exception
public void eject(ResourceSet resources)
throws java.lang.Exception
IAuthority
eject in interface IAuthorityjava.lang.Exception
public void available(ResourceSet resources)
throws java.lang.Exception
IAuthority
available in interface IAuthorityjava.lang.Exception
public int unavailable(ResourceSet resources)
throws java.lang.Exception
IAuthority
unavailable in interface IAuthorityjava.lang.Exception
public void redeem(AuthorityReservation reservation)
throws java.lang.Exception
IAuthority
redeem in interface IAuthorityreservation - reservation representing a request for a new lease
java.lang.Exception
public void extendLease(AuthorityReservation reservation)
throws java.lang.Exception
IAuthority
extendLease in interface IAuthorityreservation - reservation representing a request for a lease
extension
java.lang.Exception
public ReservationID export(ResourceSet resources,
Term term,
AuthToken authToken)
throws java.lang.Exception
IServerActor
export in interface IServerActorresources - resources to exportterm - period the export will be validauthToken - identity of the client resources will be exported to
java.lang.Exception
public void export(BrokerReservation reservation,
AuthToken client)
throws java.lang.Exception
IServerActor
export in interface IServerActorreservation - reservation describing resources to exportclient - identity of the client resources will be exported to
java.lang.Exception
public void updateTicket(IReservation reservation,
UpdateData udd,
AuthToken caller)
throws java.lang.Exception
java.lang.Exception
public void ticket(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken caller)
throws java.lang.Exception
IBrokerPublic
ticket in interface IBrokerPublicreservation - reservation object describing the requested resourcescallback - callback to use for sending the resultcaller - caller credentials
java.lang.Exception
public void extendTicket(ResourceReservation reservation,
AuthToken caller)
throws java.lang.Exception
IBrokerPublic
extendTicket in interface IBrokerPublicreservation - reservation object describing the reservation to
extendcaller - caller credentials
java.lang.Exception
public void claim(ResourceReservation reservation,
IClientCallbackProxy callback,
AuthToken caller)
throws java.lang.Exception
IBrokerPublic
claim in interface IBrokerPublicreservation - reservation object describing the exported resourcescallback - callback to use for sending the resultcaller - caller credentials
java.lang.Exception
public void redeem(ResourceReservation reservation,
IServiceManagerCallbackProxy callback,
AuthToken caller)
throws java.lang.Exception
IAuthorityPublic
redeem in interface IAuthorityPublicreservation - reservation to redeemcallback - callback objectcaller - owner of the reservation
java.lang.Exception
public void extendLease(ResourceReservation reservation,
AuthToken caller)
throws java.lang.Exception
IAuthorityPublic
extendLease in interface IAuthorityPublicreservation - reservation to extendcaller - owner of the reservation
java.lang.Exception
public void close(ResourceReservation reservation,
AuthToken caller)
throws java.lang.Exception
IAuthorityPublic
close in interface IAuthorityPublicreservation - the reservationcaller - the slice owner
java.lang.Exception
protected void tickHandler()
throws java.lang.Exception
tickHandler in class Actorjava.lang.Exceptionprotected void closeExpiring(long cycle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||