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
-
SimpleFlowDispatcher()
- Class constructor
-
dispatchBuffer(Buffer, int)
- Dispatch a given buffer.
-
registerHandle(FlowDispatcher)
- Register a flow dispatcher with this dispatcher.
SimpleFlowDispatcher
public SimpleFlowDispatcher()
- Class constructor
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.
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