org.elasticsearch.action.admin.cluster.health
Class ClusterIndexHealth

java.lang.Object
  extended by org.elasticsearch.action.admin.cluster.health.ClusterIndexHealth
All Implemented Interfaces:
Iterable<ClusterShardHealth>, Streamable

public class ClusterIndexHealth
extends Object
implements Iterable<ClusterShardHealth>, Streamable


Constructor Summary
ClusterIndexHealth(String index, int numberOfShards, int numberOfReplicas, List<String> validationFailures)
           
 
Method Summary
 int activePrimaryShards()
           
 int activeShards()
           
 int getActivePrimaryShards()
           
 int getActiveShards()
           
 String getIndex()
           
 int getInitializingShards()
           
 int getNumberOfReplicas()
           
 int getNumberOfShards()
           
 int getRelocatingShards()
           
 Map<Integer,ClusterShardHealth> getShards()
           
 ClusterHealthStatus getStatus()
           
 int getUnassignedShards()
           
 List<String> getValidationFailures()
           
 String index()
           
 int initializingShards()
           
 Iterator<ClusterShardHealth> iterator()
           
 int numberOfReplicas()
           
 int numberOfShards()
           
static ClusterIndexHealth readClusterIndexHealth(StreamInput in)
           
 void readFrom(StreamInput in)
           
 int relocatingShards()
           
 Map<Integer,ClusterShardHealth> shards()
           
 ClusterHealthStatus status()
           
 int unassignedShards()
           
 List<String> validationFailures()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterIndexHealth

public ClusterIndexHealth(String index,
                          int numberOfShards,
                          int numberOfReplicas,
                          List<String> validationFailures)
Method Detail

index

public String index()

getIndex

public String getIndex()

validationFailures

public List<String> validationFailures()

getValidationFailures

public List<String> getValidationFailures()

numberOfShards

public int numberOfShards()

getNumberOfShards

public int getNumberOfShards()

numberOfReplicas

public int numberOfReplicas()

getNumberOfReplicas

public int getNumberOfReplicas()

activeShards

public int activeShards()

getActiveShards

public int getActiveShards()

relocatingShards

public int relocatingShards()

getRelocatingShards

public int getRelocatingShards()

activePrimaryShards

public int activePrimaryShards()

getActivePrimaryShards

public int getActivePrimaryShards()

initializingShards

public int initializingShards()

getInitializingShards

public int getInitializingShards()

unassignedShards

public int unassignedShards()

getUnassignedShards

public int getUnassignedShards()

status

public ClusterHealthStatus status()

getStatus

public ClusterHealthStatus getStatus()

shards

public Map<Integer,ClusterShardHealth> shards()

getShards

public Map<Integer,ClusterShardHealth> getShards()

iterator

public Iterator<ClusterShardHealth> iterator()
Specified by:
iterator in interface Iterable<ClusterShardHealth>

readClusterIndexHealth

public static ClusterIndexHealth readClusterIndexHealth(StreamInput in)
                                                 throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.