Package org.distributeme.core.routing
Class SysOutRouter
java.lang.Object
org.distributeme.core.routing.AbstractRouter
org.distributeme.core.routing.SysOutRouter
- All Implemented Interfaces:
Router
This is an example implementation of a Router which actually do not route anything but simply prints out each call. It is useful
for debugging and demonstration purposes.
- Version:
- $Id: $Id
- Author:
- lrosenberg.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is old style customize.getServiceIdForCall(ClientSideCallContext callContext) Returns the serviceId for this particular call to route to.Methods inherited from class org.distributeme.core.routing.AbstractRouter
customize, getRoutingStats, setServiceId
-
Constructor Details
-
SysOutRouter
public SysOutRouter()
-
-
Method Details
-
customize
This is old style customize. It is called by the 'new' customize.- Overrides:
customizein classAbstractRouter- Parameters:
parameter- aStringobject.
-
getServiceIdForCall
Returns the serviceId for this particular call to route to.- Specified by:
getServiceIdForCallin interfaceRouter- Parameters:
callContext- context of the call with all call related data.- Returns:
- a
Stringobject.
-