orca.shirako.api
Interface ILoadSource

All Superinterfaces:
IInitialize
All Known Subinterfaces:
IController
All Known Implementing Classes:
JawsController, SgeController, SimpleLoadSource

public interface ILoadSource
extends IInitialize

ILoadSource defines a simple interface to enable the interposition of additional logic in the work-flow of an actor. At present, this interface is enabled only on service manager actors. The most prevailing use of the interface is to inject a load signal into a service manager, and hence it name. However, implementors of the interface are not limited to this particular use. While implementations can perform a range of operations, be advised that the proper location for policy choices is inside a policy module.

See Also:
IPolicy

Method Summary
 LoggingTool getLogger()
          Returns the logger associated with the controller.
 void setActor(IActor actor)
          Attach the actor
 void tick(long cycle)
          Informs the load source that another cycle has passed.
 
Methods inherited from interface orca.shirako.api.IInitialize
initialize
 

Method Detail

setActor

void setActor(IActor actor)
Attach the actor

Parameters:
actor - the service manager

tick

void tick(long cycle)
Informs the load source that another cycle has passed. Initiates the formation of demand for the service manager.

Parameters:
cycle - this cycle

getLogger

LoggingTool getLogger()
Returns the logger associated with the controller.

Returns:
logger associated with the controller


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