public class RoutingService extends AbstractLifecycleComponent
RoutingService
listens to clusters state. When this service
receives a ClusterChangedEvent
the cluster state will be verified and
the routing tables might be updated.
Note: The RoutingService
is responsible for cluster wide operations
that include modifications to the cluster state. Such an operation can only
be performed on the clusters master node. Unless the local node this service
is running on is the clusters master node this service will not perform any
actions.
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
RoutingService(Settings settings,
ClusterService clusterService,
AllocationService allocationService) |
Modifier and Type | Method and Description |
---|---|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
performReroute(java.lang.String reason) |
void |
reroute(java.lang.String reason)
Initiates a reroute.
|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public RoutingService(Settings settings, ClusterService clusterService, AllocationService allocationService)
protected void doStart()
doStart
in class AbstractLifecycleComponent
protected void doStop()
doStop
in class AbstractLifecycleComponent
protected void doClose()
doClose
in class AbstractLifecycleComponent
public final void reroute(java.lang.String reason)
protected void performReroute(java.lang.String reason)