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