public class TestGatewayAllocator
extends org.elasticsearch.gateway.GatewayAllocator
GatewayAllocator
but do
not have all the infrastructure required to use it.Constructor and Description |
---|
TestGatewayAllocator() |
Modifier and Type | Method and Description |
---|---|
void |
addKnownAllocation(org.elasticsearch.cluster.routing.ShardRouting shard)
manually add a specific shard to the allocations the gateway keeps track of
|
void |
allocateUnassigned(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation) |
void |
applyFailedShards(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation,
java.util.List<org.elasticsearch.cluster.routing.allocation.FailedShard> failedShards) |
void |
applyStartedShards(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation,
java.util.List<org.elasticsearch.cluster.routing.ShardRouting> startedShards) |
decideUnassignedShardAllocation, getNumberOfInFlightFetch, innerAllocatedUnassigned
public void applyStartedShards(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation, java.util.List<org.elasticsearch.cluster.routing.ShardRouting> startedShards)
applyStartedShards
in class org.elasticsearch.gateway.GatewayAllocator
public void applyFailedShards(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation, java.util.List<org.elasticsearch.cluster.routing.allocation.FailedShard> failedShards)
applyFailedShards
in class org.elasticsearch.gateway.GatewayAllocator
public void allocateUnassigned(org.elasticsearch.cluster.routing.allocation.RoutingAllocation allocation)
allocateUnassigned
in class org.elasticsearch.gateway.GatewayAllocator
public void addKnownAllocation(org.elasticsearch.cluster.routing.ShardRouting shard)