org.elasticsearch.cluster.routing
Interface ShardRouting

All Superinterfaces:
java.io.Serializable, Streamable
All Known Implementing Classes:
ImmutableShardRouting, MutableShardRouting

public interface ShardRouting
extends Streamable, java.io.Serializable


Method Summary
 boolean active()
          Relocating or started.
 boolean assignedToNode()
           
 java.lang.String currentNodeId()
           
 int getId()
           
 java.lang.String getIndex()
           
 int id()
           
 java.lang.String index()
           
 boolean initializing()
           
 boolean primary()
           
 void readFromThin(StreamInput in)
           
 boolean relocating()
           
 java.lang.String relocatingNodeId()
           
 ShardId shardId()
           
 ShardsIterator shardsIt()
          A shard iterator with just this shard in it.
 java.lang.String shortSummary()
           
 boolean started()
           
 ShardRoutingState state()
           
 boolean unassigned()
           
 void writeToThin(StreamOutput out)
          Does not write index name and shard id
 
Methods inherited from interface org.elasticsearch.util.io.stream.Streamable
readFrom, writeTo
 

Method Detail

index

java.lang.String index()

getIndex

java.lang.String getIndex()

id

int id()

getId

int getId()

unassigned

boolean unassigned()

initializing

boolean initializing()

started

boolean started()

relocating

boolean relocating()

active

boolean active()
Relocating or started.


assignedToNode

boolean assignedToNode()

currentNodeId

java.lang.String currentNodeId()

relocatingNodeId

java.lang.String relocatingNodeId()

primary

boolean primary()

state

ShardRoutingState state()

shardId

ShardId shardId()

shortSummary

java.lang.String shortSummary()

shardsIt

ShardsIterator shardsIt()
A shard iterator with just this shard in it.


writeToThin

void writeToThin(StreamOutput out)
                 throws java.io.IOException
Does not write index name and shard id

Throws:
java.io.IOException

readFromThin

void readFromThin(StreamInput in)
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Throws:
java.lang.ClassNotFoundException
java.io.IOException