com.groupbyinc.flux.cluster.health.ClusterIndexHealth.class Maven / Gradle / Ivy
???? 4V 5com/groupbyinc/flux/cluster/health/ClusterIndexHealth ?Ljava/lang/Object;Ljava/lang/Iterable;Lcom/groupbyinc/flux/common/io/stream/Writeable;Lcom/groupbyinc/flux/common/xcontent/ToXContentFragment; java/lang/Object java/lang/Iterable .com/groupbyinc/flux/common/io/stream/Writeable 6com/groupbyinc/flux/common/xcontent/ToXContentFragment
ClusterIndexHealth.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params
.com/groupbyinc/flux/common/xcontent/ToXContent Params index Ljava/lang/String; numberOfShards I numberOfReplicas activeShards relocatingShards initializingShards unassignedShards activePrimaryShards status 8Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; shards Ljava/util/Map; [Ljava/util/Map; STATUS NUMBER_OF_SHARDS number_of_shards $ NUMBER_OF_REPLICAS number_of_replicas ' ACTIVE_PRIMARY_SHARDS active_primary_shards *
ACTIVE_SHARDS
active_shards - RELOCATING_SHARDS relocating_shards 0 INITIALIZING_SHARDS initializing_shards 3 UNASSIGNED_SHARDS unassigned_shards 6 SHARDS PRIMARY_ACTIVE primary_active ; n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;)V ()V = ?
@ java/util/HashMap B
C @ E 2com/groupbyinc/flux/cluster/metadata/IndexMetaData G getIndex #()Lcom/groupbyinc/flux/index/Index; I J
H K com/groupbyinc/flux/index/Index M getName ()Ljava/lang/String; O P
N Q S getNumberOfShards ()I U V
H W Y getNumberOfReplicas [ V
H \ ^ 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable ` iterator ()Ljava/util/Iterator; b c
a d java/util/Iterator f hasNext ()Z h i g j next ()Ljava/lang/Object; l m g n :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable p shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; r s
q t 'com/groupbyinc/flux/index/shard/ShardId v id x V
w y java/lang/Integer { valueOf (I)Ljava/lang/Integer; } ~
| 5com/groupbyinc/flux/cluster/health/ClusterShardHealth ? @(ILcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V = ?
? ?
java/util/Map ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? 6com/groupbyinc/flux/cluster/health/ClusterHealthStatus ? GREEN ? ? ? values ()Ljava/util/Collection; ? ? ? ? java/util/Collection ? ? d isPrimaryActive ? i
? ? getActiveShards ? V
? ? getRelocatingShards ? V
? ? getInitializingShards ? V
? ? getUnassignedShards ? V
? ? getStatus :()Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; ? ?
? ? RED ? ? ? YELLOW ? ? ? isEmpty ? i ? ? ? ? ? ? ? ? shardRoutingTable