|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClientActor
IClientActor defines the common functionality for actors
acting as clients of other actors (service managers and brokers). Every
client actor is connected to one or more server actors. Each server actor is
represented as a proxy object. Client actors maintain a registry of proxies
to server actors that they are connected to. Proxies to actors acting in the
broker role are explicitly managed. Proxies for actors acting in the site
authority role are automatically managed as they are embedded in tickets sent
from brokers.
| Field Summary |
|---|
| Fields inherited from interface orca.shirako.api.IActor |
|---|
PropertyClass, PropertyGuid, PropertyName, TypeAll, TypeBroker, TypeServiceManager, TypeSiteAuthority |
| Method Summary | |
|---|---|
void |
addBroker(IBrokerProxy broker)
Registers a broker. |
ReservationClient |
claim(ReservationID reservationID,
ResourceSet resources)
Claims already exported resources from the default upstream broker. |
ReservationClient |
claim(ReservationID reservationID,
ResourceSet resources,
IBrokerProxy broker)
Claims already exported resources from the given broker. |
ReservationClient |
claim(ReservationID reservationID,
ResourceSet resources,
Slice slice,
IBrokerProxy broker)
Claims already exported resources from the given broker. |
void |
demand(ReservationClient reservation)
Injects a new resource demand into the demand stream. |
void |
extendTicket(ReservationClient reservation)
Issues a ticket extend request for the given reservation. |
void |
extendTicket(ReservationSet set)
Issues a ticket request for every reservation in the set. |
IBrokerProxy |
getBroker(java.lang.String name)
Gets the broker proxy with the given name |
IBrokerProxy[] |
getBrokers()
Returns all brokers registered with the actor. |
IBrokerProxy |
getDefaultBroker()
Returns the default broker. |
void |
ticket(ReservationClient reservation)
Issues a ticket request for the given reservation. |
void |
ticket(ReservationSet set)
Issues a ticket request for every reservation in the set. |
| 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 |
| Methods inherited from interface orca.shirako.api.IInitialize |
|---|
initialize |
| Methods inherited from interface orca.shirako.api.IClientPublic |
|---|
updateTicket |
| Method Detail |
|---|
void demand(ReservationClient reservation)
reservation - reservation representing resource demand
void ticket(ReservationClient reservation)
throws java.lang.Exception
reservation - reservation to obtain a ticket for
java.lang.ExceptionIReservationOperations#register(orca.shirako.kernel.Reservation)void ticket(ReservationSet set)
set - set of reservations to obtain tickets for
void extendTicket(ReservationClient reservation)
throws java.lang.Exception
reservation - reservation to extend the ticket for
java.lang.ExceptionIReservationOperations#register(orca.shirako.kernel.Reservation)void extendTicket(ReservationSet set)
set - set of reservations to extend tickets for
ReservationClient claim(ReservationID reservationID,
ResourceSet resources)
throws java.lang.Exception
reservationID - reservation identifier of the exported reservationresources - resource set describing the resources to claim
java.lang.Exception
ReservationClient claim(ReservationID reservationID,
ResourceSet resources,
IBrokerProxy broker)
throws java.lang.Exception
reservationID - reservation identifier of the exported reservationresources - resource set describing the resources to claimbroker - broker proxy
java.lang.Exception
ReservationClient claim(ReservationID reservationID,
ResourceSet resources,
Slice slice,
IBrokerProxy broker)
throws java.lang.Exception
reservationID - reservation identifier of the exported reservationresources - resource set describing the resources to claimslice - slice in which to store the claimed reservation. As of now,
it is assumed that the exported reservation is stored under a
slice with the same name in the upstream broker.
java.lang.Exceptionvoid addBroker(IBrokerProxy broker)
broker - broker to registerIBrokerProxy getBroker(java.lang.String name)
name - broker name
IBrokerProxy getDefaultBroker()
IBrokerProxy[] getBrokers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||