orca.shirako.api
Interface IServiceManager

All Superinterfaces:
IActor, IActorIdentity, IActorPublic, IClientActor, IClientPublic, IInitialize, IRecover, IReservationOperations, ISerialize, IServiceManagerPublic, ISliceOperations, ITick
All Known Implementing Classes:
ServiceManager

public interface IServiceManager
extends IClientActor, IServiceManagerPublic

IServiceManager defines the interface for a Shirako actor acting in the service manager role.


Field Summary
 
Fields inherited from interface orca.shirako.api.IActor
PropertyClass, PropertyGuid, PropertyName, TypeAll, TypeBroker, TypeServiceManager, TypeSiteAuthority
 
Method Summary
 void extendLease(ReservationClient reservation)
          Issues an extend lease request for the given reservation.
 void extendLease(ReservationSet set)
          Issues an extend lease request for every reservation in the set.
 java.util.Vector<IController> getControllers()
          Returns all registered controllers.
 ILoadSource getLoadSource()
          Returns the load source.
 void redeem(ReservationClient reservation)
          Issues a redeem request for the given reservation.
 void redeem(ReservationSet set)
          Issues a redeem request for every reservation in the set.
 void setLoadSource(ILoadSource source)
          Sets the load source.
 
Methods inherited from interface orca.shirako.api.IClientActor
addBroker, claim, claim, claim, demand, extendTicket, extendTicket, getBroker, getBrokers, getDefaultBroker, ticket, ticket
 
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
 
Methods inherited from interface orca.shirako.api.IServiceManagerPublic
updateLease
 

Method Detail

redeem

void redeem(ReservationClient reservation)
            throws java.lang.Exception
Issues a redeem request for the given reservation. Note: the reservation must have already been registered with the actor.

Parameters:
reservation - reservation to be redeemed
Throws:
java.lang.Exception
See Also:
IReservationOperations#register(orca.shirako.kernel.Reservation)

redeem

void redeem(ReservationSet set)
Issues a redeem request for every reservation in the set. All exceptions are caught and logged but no exception is propagated. No information will be delivered to indicate that some failure has taken place, e.g., failure to communicate with a broker. Inspect the state of individual reservations to determine whether/what failures have taken place.

Parameters:
set - set of reservations to redeem

extendLease

void extendLease(ReservationClient reservation)
                 throws java.lang.Exception
Issues an extend lease request for the given reservation. Note: the reservation must have already been registered with the actor.

Parameters:
reservation - reservation to be redeemed
Throws:
java.lang.Exception
See Also:
IReservationOperations#register(orca.shirako.kernel.Reservation)

extendLease

void extendLease(ReservationSet set)
                 throws java.lang.Exception
Issues an extend lease request for every reservation in the set. All exceptions are caught and logged but no exception is propagated. No information will be delivered to indicate that some failure has taken place, e.g., failure to communicate with a broker. Inspect the state of individual reservations to determine whether/what failures have taken place.

Parameters:
set - set of reservations to extend the lease for
Throws:
java.lang.Exception

getControllers

java.util.Vector<IController> getControllers()
Returns all registered controllers.

Returns:
an array of registered controllers

setLoadSource

void setLoadSource(ILoadSource source)
Sets the load source.

Parameters:
source - load source to set

getLoadSource

ILoadSource getLoadSource()
Returns the load source.

Returns:
the load source


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