public class SimpleRouterImplementation extends AbstractDaemon implements Router
A simple router implementation providing some basic strategies for building a routing block.
Constructor and Description |
---|
SimpleRouterImplementation(String section)
Default constructor to build class from configuration object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addBlendingLayer(Blender blendingLayer)
Adds a blender layer to the router infrastructure.
|
Accountant |
getAccountant()
Get the currently set accounting layer.
|
List<Blender> |
getAllBlendingLayer()
Get a list of all currently known blender layers.
|
boolean |
gotMessage(VortexMessage message)
This Method is called by the Blending layer if a vmessage has been extracted.
|
boolean |
removeBlendingLayer(Blender blendingLayer)
Removes a previously added blender layer.
|
Accountant |
setAccountant(Accountant accountant)
Sets the accounting layer for the router layer.
|
shutdownDaemon, startDaemon, stopDaemon
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdownDaemon, startDaemon, stopDaemon
public SimpleRouterImplementation(String section)
Default constructor to build class from configuration object.
section
- configuration section to be used for obtaining the setup parameterspublic boolean addBlendingLayer(Blender blendingLayer)
Router
Adds a blender layer to the router infrastructure.
addBlendingLayer
in interface Router
blendingLayer
- the blender layer to be addedpublic boolean removeBlendingLayer(Blender blendingLayer)
Router
Removes a previously added blender layer.
removeBlendingLayer
in interface Router
blendingLayer
- the blender layer to be removedpublic List<Blender> getAllBlendingLayer()
Router
Get a list of all currently known blender layers.
getAllBlendingLayer
in interface Router
public final Accountant setAccountant(Accountant accountant)
Router
Sets the accounting layer for the router layer.
setAccountant
in interface Router
accountant
- the accounting layer to be usedpublic Accountant getAccountant()
Router
Get the currently set accounting layer.
getAccountant
in interface Router
public boolean gotMessage(VortexMessage message)
BlendingReceiver
This Method is called by the Blending layer if a vmessage has been extracted.
gotMessage
in interface BlendingReceiver
message
- the vortex message to be processedCopyright © 2023. All rights reserved.