public class MutableShardRouting extends ImmutableShardRouting
ImmutableShardRouting
this class keeps metadata of the current shard. But unlike
ImmutableShardRouting
the information kept in this class can be modified.
These modifications include changing the primary state, relocating and assigning the shard
represented by this classToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
currentNodeId, index, primary, relocatingNodeId, restoreSource, shardId, state, version
EMPTY_PARAMS
Constructor and Description |
---|
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) |
MutableShardRouting(String index,
int shardId,
String currentNodeId,
String relocatingNodeId,
RestoreSource restoreSource,
boolean primary,
ShardRoutingState state,
long version) |
Modifier and Type | Method and Description |
---|---|
int |
hashCode() |
active, assignedToNode, currentNodeId, equals, getId, getIndex, id, index, initializing, primary, readFrom, readFrom, readFromThin, readShardRoutingEntry, readShardRoutingEntry, relocating, relocatingNodeId, restoreSource, shardId, shardsIt, shortSummary, started, state, targetRoutingIfRelocating, toString, toXContent, unassigned, version, writeTo, writeToThin
public MutableShardRouting(ShardRouting copy)
public MutableShardRouting(ShardRouting copy, long version)
public MutableShardRouting(String index, int shardId, String currentNodeId, boolean primary, ShardRoutingState state, long version)
public MutableShardRouting(String index, int shardId, String currentNodeId, String relocatingNodeId, boolean primary, ShardRoutingState state, long version)
public MutableShardRouting(String index, int shardId, String currentNodeId, String relocatingNodeId, RestoreSource restoreSource, boolean primary, ShardRoutingState state, long version)
public int hashCode()
hashCode
in class ImmutableShardRouting
Copyright © 2009–2015. All rights reserved.