|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShardRouting
Shard routing represents the state of a shard instance allocated in the cluster.
Method Summary | |
---|---|
boolean |
active()
Relocating or started. |
boolean |
assignedToNode()
The shard is assigned to a node. |
java.lang.String |
currentNodeId()
The current node id the shard is allocated to. |
int |
getId()
The shard id. |
java.lang.String |
getIndex()
The index name. |
int |
id()
The shard id. |
java.lang.String |
index()
The index name. |
boolean |
initializing()
The shard is initializing (usually recovering either from peer shard or from gateway). |
boolean |
primary()
Is this a primary shard. |
void |
readFromThin(StreamInput in)
|
boolean |
relocating()
The shard is in relocating mode. |
java.lang.String |
relocatingNodeId()
The relocating node id the shard is either relocating to or relocating from. |
ShardId |
shardId()
The shard id. |
ShardsIterator |
shardsIt()
A shard iterator with just this shard in it. |
java.lang.String |
shortSummary()
A short description of the shard. |
boolean |
started()
The shard is in started mode. |
ShardRoutingState |
state()
The shard state. |
boolean |
unassigned()
The shard is unassigned (not allocated to any node). |
void |
writeToThin(StreamOutput out)
Does not write index name and shard id |
Methods inherited from interface org.elasticsearch.common.io.stream.Streamable |
---|
readFrom, writeTo |
Method Detail |
---|
ShardId shardId()
java.lang.String index()
java.lang.String getIndex()
int id()
int getId()
ShardRoutingState state()
boolean unassigned()
boolean initializing()
boolean started()
boolean relocating()
boolean active()
boolean assignedToNode()
java.lang.String currentNodeId()
java.lang.String relocatingNodeId()
boolean primary()
java.lang.String shortSummary()
ShardsIterator shardsIt()
void writeToThin(StreamOutput out) throws java.io.IOException
java.io.IOException
void readFromThin(StreamInput in) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |