org.elasticsearch.cluster.routing.allocation
Class ShardsAllocation
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.cluster.routing.allocation.ShardsAllocation
public class ShardsAllocation
- extends AbstractComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShardsAllocation
public ShardsAllocation()
ShardsAllocation
public ShardsAllocation(Settings settings)
ShardsAllocation
@Inject
public ShardsAllocation(Settings settings,
NodeAllocations nodeAllocations)
applyStartedShards
public RoutingAllocation.Result applyStartedShards(ClusterState clusterState,
java.util.List<? extends ShardRouting> startedShards)
- Applies the started shards. Note, shards can be called several times within this method.
If the same instance of the routing table is returned, then no change has been made.
applyFailedShards
public RoutingAllocation.Result applyFailedShards(ClusterState clusterState,
java.util.List<? extends ShardRouting> failedShards)
- Applies the failed shards. Note, shards can be called several times within this method.
If the same instance of the routing table is returned, then no change has been made.
reroute
public RoutingAllocation.Result reroute(ClusterState clusterState)
- Reroutes the routing table based on the live nodes.
If the same instance of the routing table is returned, then no change has been made.