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:
Serializable, ShardRouting, Streamable, ToXContent

public class MutableShardRouting
extends ImmutableShardRouting

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from class org.elasticsearch.cluster.routing.ImmutableShardRouting
currentNodeId, index, primary, relocatingNodeId, shardId, state, version
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
MutableShardRouting(ShardRouting copy)
           
MutableShardRouting(ShardRouting copy, long version)
           
MutableShardRouting(String index, int shardId, String currentNodeId, boolean primary, ShardRoutingState state, long version)
           
MutableShardRouting(String index, int shardId, String currentNodeId, String relocatingNodeId, boolean primary, ShardRoutingState state, long version)
           
 
Method Summary
 void assignToNode(String nodeId)
           
 void cancelRelocation()
           
 void deassignNode()
           
 void moveFromPrimary()
           
 void moveToPrimary()
           
 void moveToStarted()
           
 void relocate(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, toXContent, unassigned, version, writeTo, writeToThin
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MutableShardRouting

public MutableShardRouting(ShardRouting copy)

MutableShardRouting

public MutableShardRouting(ShardRouting copy,
                           long version)

MutableShardRouting

public MutableShardRouting(String index,
                           int shardId,
                           String currentNodeId,
                           boolean primary,
                           ShardRoutingState state,
                           long version)

MutableShardRouting

public MutableShardRouting(String index,
                           int shardId,
                           String currentNodeId,
                           String relocatingNodeId,
                           boolean primary,
                           ShardRoutingState state,
                           long version)
Method Detail

assignToNode

public void assignToNode(String nodeId)

relocate

public void relocate(String relocatingNodeId)

cancelRelocation

public void cancelRelocation()

deassignNode

public void deassignNode()

moveToStarted

public void moveToStarted()

moveToPrimary

public void moveToPrimary()

moveFromPrimary

public void moveFromPrimary()


Copyright © 2009-2012. All Rights Reserved.