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 org.elasticsearch.cluster.routing.ShardRouting
initialize
(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId) static org.elasticsearch.cluster.routing.ShardRouting
initialize
(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId, long expectedSize) static org.elasticsearch.cluster.routing.ShardRouting
initWithSameId
(org.elasticsearch.cluster.routing.ShardRouting copy, org.elasticsearch.cluster.routing.RecoverySource recoverySource) static org.elasticsearch.cluster.routing.ShardRouting
moveToStarted
(org.elasticsearch.cluster.routing.ShardRouting routing) static org.elasticsearch.cluster.routing.ShardRouting
moveToUnassigned
(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.routing.UnassignedInfo info) static org.elasticsearch.cluster.routing.ShardRouting
newWithRestoreSource
(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.routing.RecoverySource.SnapshotRecoverySource recoverySource) static org.elasticsearch.cluster.routing.ShardRouting
static org.elasticsearch.cluster.routing.ShardRouting
relocate
(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId, long expectedByteSize)
-
Constructor Details
-
ShardRoutingHelper
public ShardRoutingHelper()
-
-
Method Details
-
relocate
public static org.elasticsearch.cluster.routing.ShardRouting relocate(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId) -
relocate
public static org.elasticsearch.cluster.routing.ShardRouting relocate(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId, long expectedByteSize) -
moveToStarted
public static org.elasticsearch.cluster.routing.ShardRouting moveToStarted(org.elasticsearch.cluster.routing.ShardRouting routing) -
initialize
public static org.elasticsearch.cluster.routing.ShardRouting initialize(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId) -
initialize
public static org.elasticsearch.cluster.routing.ShardRouting initialize(org.elasticsearch.cluster.routing.ShardRouting routing, String nodeId, long expectedSize) -
initWithSameId
public static org.elasticsearch.cluster.routing.ShardRouting initWithSameId(org.elasticsearch.cluster.routing.ShardRouting copy, org.elasticsearch.cluster.routing.RecoverySource recoverySource) -
moveToUnassigned
public static org.elasticsearch.cluster.routing.ShardRouting moveToUnassigned(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.routing.UnassignedInfo info) -
newWithRestoreSource
public static org.elasticsearch.cluster.routing.ShardRouting newWithRestoreSource(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.routing.RecoverySource.SnapshotRecoverySource recoverySource)
-