Class ClusterShardHealth

    • Constructor Detail

      • ClusterShardHealth

        public ClusterShardHealth​(StreamInput in)
    • Method Detail

      • getShardId

        public int getShardId()
      • getRelocatingShards

        public int getRelocatingShards()
      • getActiveShards

        public int getActiveShards()
      • isPrimaryActive

        public boolean isPrimaryActive()
      • getInitializingShards

        public int getInitializingShards()
      • getUnassignedShards

        public int getUnassignedShards()
      • getInactivePrimaryHealth

        public static ClusterHealthStatus getInactivePrimaryHealth​(ShardRouting shardRouting)
        Checks if an inactive primary shard should cause the cluster health to go RED. An inactive primary shard in an index should cause the cluster health to be RED to make it visible that some of the existing data is unavailable. In case of index creation, snapshot restore or index shrinking, which are unexceptional events in the cluster lifecycle, cluster health should not turn RED for the time where primaries are still in the initializing state but go to YELLOW instead. However, in case of exceptional events, for example when the primary shard cannot be assigned to a node or initialization fails at some point, cluster health should still turn RED. NB: this method should *not* be called on active shards nor on non-primary shards.
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object