|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.common.component.AbstractComponent org.elasticsearch.cluster.routing.allocation.AllocationService
public class AllocationService
Field Summary |
---|
Fields inherited from class org.elasticsearch.common.component.AbstractComponent |
---|
componentSettings, logger, settings |
Constructor Summary | |
---|---|
AllocationService()
|
|
AllocationService(Settings settings)
|
|
AllocationService(Settings settings,
AllocationDeciders allocationDeciders,
ShardsAllocators shardsAllocators)
|
Method Summary | |
---|---|
RoutingAllocation.Result |
applyFailedShard(ClusterState clusterState,
ShardRouting failedShard)
Applies the failed shards. |
RoutingAllocation.Result |
applyStartedShards(ClusterState clusterState,
List<? extends ShardRouting> startedShards)
Applies the started shards. |
RoutingAllocation.Result |
reroute(ClusterState clusterState)
Reroutes the routing table based on the live nodes. |
RoutingAllocation.Result |
rerouteWithNoReassign(ClusterState clusterState)
Only handles reroute but *without* any reassignment of unassigned shards or rebalancing. |
Methods inherited from class org.elasticsearch.common.component.AbstractComponent |
---|
nodeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AllocationService()
public AllocationService(Settings settings)
@Inject public AllocationService(Settings settings, AllocationDeciders allocationDeciders, ShardsAllocators shardsAllocators)
Method Detail |
---|
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 applyFailedShard(ClusterState clusterState, ShardRouting failedShard)
If the same instance of the routing table is returned, then no change has been made.
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 rerouteWithNoReassign(ClusterState clusterState)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |