Sea 0.4.0

Package gov.lbl.dsd.sea

Framework for Stage Event Architecture (SEA) of LBL Distributed Systems Department.

See:
          Description

Interface Summary
ExceptionHandler Callback invoked if a RuntimeException is raised within EventHandler.handle(Object) of the given source stage.
ExecutorFactory Interface for construction of executors implementing some kind of threading policy.
 

Class Summary
EventHandler The abstract base class of all asynchronous event handlers.
Stage A stage has an input queue into which another stage puts events; A stage has one or more threads, which take events from the input queue and hand them to the stage's event handler which processes the events in a non-blocking asynchronous manner.
StageManager Creates and manages a set of stages; Contains several default factories for commonly used threading policies.
 

Package gov.lbl.dsd.sea Description

Framework for Stage Event Architecture (SEA) of LBL Distributed Systems Department.

The system is composed of several asynchronous non-blocking stages, interconnected in chains via queues holding events. A stage has an input queue into which a client or another stage puts events. A stage has one or more threads (typically: one and only one), which take events from the input queue and hand them to the stage's event handler which processes the events in a non-blocking asynchronous manner. As a result of said processing, the event handler may put new events into the queue of its own stage or other stages.

Typically (but not necessarily) the event handler of a child stage responds to an event by a parent stage by putting the response to the event into the input queue of the parent stage.


Sea 0.4.0