Class ShardRoutingHelper
java.lang.Object
org.elasticsearch.cluster.routing.ShardRoutingHelper
A helper class that allows access to package private APIs for testing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardRoutinginitialize(ShardRouting routing, String nodeId) static ShardRoutinginitialize(ShardRouting routing, String nodeId, long expectedSize) static ShardRoutinginitWithSameId(ShardRouting copy, RecoverySource recoverySource) static ShardRoutingmoveToStarted(ShardRouting routing) static ShardRoutingmoveToStarted(ShardRouting routing, long expectedShardSize) static ShardRoutingmoveToUnassigned(ShardRouting routing, UnassignedInfo info) static ShardRoutingnewWithRestoreSource(ShardRouting routing, RecoverySource.SnapshotRecoverySource recoverySource) static ShardRoutingrelocate(ShardRouting routing, String nodeId) static ShardRoutingrelocate(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)
-