Class TestShardRouting.Builder
java.lang.Object
org.elasticsearch.cluster.routing.TestShardRouting.Builder
- Enclosing class:
TestShardRouting
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder
(ShardId shardId, String currentNodeId, boolean primary, ShardRoutingState state) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
withAllocationId
(AllocationId allocationId) withExpectedShardSize
(Long expectedShardSize) withRecoverySource
(RecoverySource recoverySource) withRelocatingNodeId
(String relocatingNodeId) withRelocationFailureInfo
(RelocationFailureInfo relocationFailureInfo) withRole
(ShardRouting.Role role) withUnassignedInfo
(UnassignedInfo unassignedInfo)
-
Constructor Details
-
Builder
-
-
Method Details
-
withRelocatingNodeId
-
withRecoverySource
-
withUnassignedInfo
-
withRelocationFailureInfo
public TestShardRouting.Builder withRelocationFailureInfo(RelocationFailureInfo relocationFailureInfo) -
withAllocationId
-
withExpectedShardSize
-
withRole
-
build
-