Class ShardRoutingHelper
java.lang.Object
org.elasticsearch.cluster.routing.ShardRoutingHelper
A helper class that allows access to package private APIs for testing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShardRouting
initialize
(ShardRouting routing, String nodeId) static ShardRouting
initialize
(ShardRouting routing, String nodeId, long expectedSize) static ShardRouting
initWithSameId
(ShardRouting copy, RecoverySource recoverySource) static ShardRouting
moveToStarted
(ShardRouting routing) static ShardRouting
moveToStarted
(ShardRouting routing, long expectedShardSize) static ShardRouting
moveToUnassigned
(ShardRouting routing, UnassignedInfo info) static ShardRouting
newWithRestoreSource
(ShardRouting routing, RecoverySource.SnapshotRecoverySource recoverySource) static ShardRouting
relocate
(ShardRouting routing, String nodeId) static ShardRouting
relocate
(ShardRouting routing, String nodeId, long expectedByteSize)
-
Constructor Details
-
ShardRoutingHelper
public ShardRoutingHelper()
-
-
Method Details
-
relocate
-
relocate
-
moveToStarted
-
moveToStarted
-
initialize
-
initialize
-
initWithSameId
-
moveToUnassigned
-
newWithRestoreSource
public static ShardRouting newWithRestoreSource(ShardRouting routing, RecoverySource.SnapshotRecoverySource recoverySource)
-