Class TestRoutingAllocationFactory
java.lang.Object
org.elasticsearch.cluster.routing.allocation.TestRoutingAllocationFactory
A Factory for creating
RoutingAllocation instances for testing. RoutingAllocation instances are usually
created by the AllocationService only. This utility allows us to test the infrastructure that interfaces with them
without needing to create an AllocationService instance.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforClusterState(ClusterState clusterState) Build aRoutingAllocationfor the given cluster state.
-
Constructor Details
-
TestRoutingAllocationFactory
public TestRoutingAllocationFactory()
-
-
Method Details
-
forClusterState
Build aRoutingAllocationfor the given cluster state.
-