public class AllocationService extends AbstractComponent
AllocationService
keeps AllocationDeciders
to choose nodes
for shard allocation. This class also manages new nodes joining the cluster
and rerouting of shards.componentSettings, logger, settings
Constructor and Description |
---|
AllocationService(Settings settings,
AllocationDeciders allocationDeciders,
ShardsAllocators shardsAllocators,
ClusterInfoService clusterInfoService) |
nodeName
@Inject public AllocationService(Settings settings, AllocationDeciders allocationDeciders, ShardsAllocators shardsAllocators, ClusterInfoService clusterInfoService)
public RoutingAllocation.Result applyStartedShards(ClusterState clusterState, List<? extends ShardRouting> startedShards)
If the same instance of the routing table is returned, then no change has been made.
public RoutingAllocation.Result applyStartedShards(ClusterState clusterState, List<? extends ShardRouting> startedShards, boolean withReroute)
public RoutingAllocation.Result applyFailedShard(ClusterState clusterState, ShardRouting failedShard)
public RoutingAllocation.Result applyFailedShards(ClusterState clusterState, List<FailedRerouteAllocation.FailedShard> failedShards)
If the same instance of the routing table is returned, then no change has been made.
public RoutingAllocation.Result reroute(ClusterState clusterState, AllocationCommands commands)
public RoutingAllocation.Result reroute(ClusterState clusterState, AllocationCommands commands, boolean explain) throws ElasticsearchException
ElasticsearchException
public RoutingAllocation.Result reroute(ClusterState clusterState)
If the same instance of the routing table is returned, then no change has been made.
public RoutingAllocation.Result reroute(ClusterState clusterState, boolean debug)
If the same instance of the routing table is returned, then no change has been made.
Copyright © 2009–2016. All rights reserved.