org.elasticsearch.cluster.routing
Class MutableShardRouting

java.lang.Object
  extended by org.elasticsearch.cluster.routing.ImmutableShardRouting
      extended by org.elasticsearch.cluster.routing.MutableShardRouting
All Implemented Interfaces:
java.io.Serializable, ShardRouting, Streamable

public class MutableShardRouting
extends ImmutableShardRouting

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.elasticsearch.cluster.routing.ImmutableShardRouting
currentNodeId, index, primary, relocatingNodeId, shardId, state
 
Constructor Summary
MutableShardRouting()
           
MutableShardRouting(ShardRouting copy)
           
MutableShardRouting(java.lang.String index, int shardId, java.lang.String currentNodeId, boolean primary, ShardRoutingState state)
           
MutableShardRouting(java.lang.String index, int shardId, java.lang.String currentNodeId, java.lang.String relocatingNodeId, boolean primary, ShardRoutingState state)
           
 
Method Summary
 void assignToNode(java.lang.String nodeId)
           
 void cancelRelocation()
           
 void deassignNode()
           
 void moveFromPrimary()
           
 void moveToPrimary()
           
 void moveToStarted()
           
 void relocate(java.lang.String relocatingNodeId)
           
 
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
 

Constructor Detail

MutableShardRouting

public MutableShardRouting()

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)
Method Detail

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()