public class RoutingService extends AbstractLifecycleComponent<RoutingService> implements ClusterStateListener
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.
lifecycledeprecationLogger, logger, settings| コンストラクタと説明 |
|---|
RoutingService(Settings settings,
ThreadPool threadPool,
ClusterService clusterService,
AllocationService allocationService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clusterChanged(ClusterChangedEvent event)
Called when cluster state changes.
|
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
AllocationService |
getAllocationService() |
protected void |
performReroute(String reason) |
void |
reroute(String reason)
Initiates a reroute.
|
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stoplogDeprecatedSetting, logRemovedSetting, nodeName@Inject public RoutingService(Settings settings, ThreadPool threadPool, ClusterService clusterService, AllocationService allocationService)
protected void doStart()
doStart クラス内 AbstractLifecycleComponent<RoutingService>protected void doStop()
doStop クラス内 AbstractLifecycleComponent<RoutingService>protected void doClose()
doClose クラス内 AbstractLifecycleComponent<RoutingService>public AllocationService getAllocationService()
public final void reroute(String reason)
public void clusterChanged(ClusterChangedEvent event)
ClusterStateListenerclusterChanged インタフェース内 ClusterStateListenerprotected void performReroute(String reason)
Copyright © 2009–2016. All rights reserved.