Package org.distributeme.core.routing
Class AbstractRouter
java.lang.Object
org.distributeme.core.routing.AbstractRouter
- All Implemented Interfaces:
Router
- Direct Known Subclasses:
AbstractRouterWithFailOverToNextNode,AbstractRouterWithStickyFailOverToNextNode,Failover,FailoverAndReturn,FairRoundRobinRouter,NoOpRouter,ParameterBasedModRouter,RoundRobinRouter,SysOutRouter
Abstract class for Router. Introduced to be able to handle routing statistics centrally.
- Since:
- 21.09.15 00:45
- Version:
- $Id: $Id
- Author:
- lrosenberg
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis is old style customize.voidCalled shortly after the initialization to customize this router according to the parameter in the annotation.protected RoutingStatsCollectorgetRoutingStats(String serviceId) getRoutingStats.protected voidsetServiceId(String serviceId) Setter for the fieldserviceId.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.distributeme.core.routing.Router
getServiceIdForCall
-
Constructor Details
-
AbstractRouter
public AbstractRouter()
-
-
Method Details
-
customize
Called shortly after the initialization to customize this router according to the parameter in the annotation. -
customize
This is old style customize. It is called by the 'new' customize.- Parameters:
parameter- aStringobject.
-
setServiceId
Setter for the field
serviceId.- Parameters:
serviceId- aStringobject.
-
getRoutingStats
getRoutingStats.
- Parameters:
serviceId- aStringobject.- Returns:
- a
RoutingStatsCollectorobject.
-