Class TestRoutingAllocationFactory.Builder
java.lang.Object
org.elasticsearch.cluster.routing.allocation.TestRoutingAllocationFactory.Builder
- Enclosing class:
TestRoutingAllocationFactory
-
Method Summary
Modifier and TypeMethodDescriptionallocationDeciders(AllocationDecider... allocationDeciders) allocationDeciders(AllocationDeciders allocationDeciders) build()Build either an immutable or a mutableRoutingAllocationrandomlyclusterInfo(ClusterInfo clusterInfo) currentNanoTime(long currentNanoTime) Build an immutableRoutingAllocationmutable()Build a mutableRoutingAllocationroutingNodes(RoutingNodes routingNodes) shardChangesObserver(RoutingChangesObserver shardChangesObserver) shardSizeInfo(SnapshotShardSizeInfo shardSizeInfo)
-
Method Details
-
allocationDeciders
public TestRoutingAllocationFactory.Builder allocationDeciders(AllocationDeciders allocationDeciders) -
allocationDeciders
public TestRoutingAllocationFactory.Builder allocationDeciders(AllocationDecider... allocationDeciders) -
clusterInfo
-
shardSizeInfo
-
routingNodes
-
currentNanoTime
-
shardChangesObserver
public TestRoutingAllocationFactory.Builder shardChangesObserver(RoutingChangesObserver shardChangesObserver) -
build
Build either an immutable or a mutableRoutingAllocationrandomly -
immutable
Build an immutableRoutingAllocation -
mutable
Build a mutableRoutingAllocation
-