All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nodeos.SimpleFlowDispatcher

java.lang.Object
   |
   +----nodeos.SimpleFlowDispatcher

public class SimpleFlowDispatcher
extends Object
implements FlowDispatcher
A simple flow dispatcher. This dispatcher maintains a list of flow dispatchers. Upon dispatch, it will simply pass the buffer on to every member of that list. If the list contains flow handles, it will only dispatch the buffers to them after invoking checkBuffer, which identifies a buffer as belonging to a certain flow.

See Also:
FlowDispatcher, FlowHandle

Constructor Index

 o SimpleFlowDispatcher()
Class constructor

Method Index

 o dispatchBuffer(Buffer, int)
Dispatch a given buffer.
 o registerHandle(FlowDispatcher)
Register a flow dispatcher with this dispatcher.

Constructors

 o SimpleFlowDispatcher
 public SimpleFlowDispatcher()
Class constructor

Methods

 o registerHandle
 public void registerHandle(FlowDispatcher sub)
Register a flow dispatcher with this dispatcher. This has the effect that flow handle sub will only be presented with packets dispatched to us. We require the object implementing the flow dispatcher to be of type Linkable (XXX).

Parameters:
sub - FlowDispatcher to be added.
 o dispatchBuffer
 public Buffer dispatchBuffer(Buffer buf,
                              int offset)
Dispatch a given buffer. Dispatches the buffer to all registered dispatchers

See Also:
dispatchBuffer

All Packages  Class Hierarchy  This Package  Previous  Next  Index