org.elasticsearch.cluster.routing
Class MutableShardRouting
java.lang.Object
org.elasticsearch.cluster.routing.ImmutableShardRouting
org.elasticsearch.cluster.routing.MutableShardRouting
- All Implemented Interfaces:
- java.io.Serializable, ShardRouting, Streamable
public class MutableShardRouting
- extends ImmutableShardRouting
- See Also:
- Serialized Form
Methods inherited from class org.elasticsearch.cluster.routing.ImmutableShardRouting |
active, assignedToNode, currentNodeId, equals, getId, getIndex, hashCode, id, index, initializing, primary, readFrom, readFrom, readFromThin, readShardRoutingEntry, readShardRoutingEntry, relocating, relocatingNodeId, shardId, shardsIt, shortSummary, started, state, toString, unassigned, writeTo, writeToThin |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MutableShardRouting
public MutableShardRouting(ShardRouting copy)
MutableShardRouting
public MutableShardRouting(java.lang.String index,
int shardId,
java.lang.String currentNodeId,
boolean primary,
ShardRoutingState state)
MutableShardRouting
public MutableShardRouting(java.lang.String index,
int shardId,
java.lang.String currentNodeId,
java.lang.String relocatingNodeId,
boolean primary,
ShardRoutingState state)
assignToNode
public void assignToNode(java.lang.String nodeId)
relocate
public void relocate(java.lang.String relocatingNodeId)
cancelRelocation
public void cancelRelocation()
deassignNode
public void deassignNode()
moveToStarted
public void moveToStarted()
moveToPrimary
public void moveToPrimary()
moveFromPrimary
public void moveFromPrimary()