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)
-
-
-
Method Detail
-
relocate
public static ShardRouting relocate(ShardRouting routing, java.lang.String nodeId)
-
relocate
public static ShardRouting relocate(ShardRouting routing, java.lang.String nodeId, long expectedByteSize)
-
moveToStarted
public static ShardRouting moveToStarted(ShardRouting routing)
-
initialize
public static ShardRouting initialize(ShardRouting routing, java.lang.String nodeId)
-
initialize
public static ShardRouting initialize(ShardRouting routing, java.lang.String nodeId, long expectedSize)
-
initWithSameId
public static ShardRouting initWithSameId(ShardRouting copy, RecoverySource recoverySource)
-
moveToUnassigned
public static ShardRouting moveToUnassigned(ShardRouting routing, UnassignedInfo info)
-
newWithRestoreSource
public static ShardRouting newWithRestoreSource(ShardRouting routing, RecoverySource.SnapshotRecoverySource recoverySource)
-
-