org.elasticsearch.cluster.routing
Class MutableShardRouting
java.lang.Object
org.elasticsearch.cluster.routing.ImmutableShardRouting
org.elasticsearch.cluster.routing.MutableShardRouting
- All Implemented Interfaces:
- Serializable, ShardRouting, Streamable, ToXContent
public class MutableShardRouting
- extends ImmutableShardRouting
- See Also:
- Serialized Form
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)
|
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 |
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)
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.