com.groupbyinc.flux.cluster.health.ClusterIndexHealth.class Maven / Gradle / Ivy
???? 4= 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 Bcom/groupbyinc/flux/common/xcontent/ObjectParser$NamedObjectParser
0com/groupbyinc/flux/common/xcontent/ObjectParser NamedObjectParser 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup STATUS Ljava/lang/String; 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 2 INITIALIZING_SHARDS initializing_shards 5 UNASSIGNED_SHARDS unassigned_shards 8 SHARDS shards ; PARSER >Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ConstructingObjectParser; SHARD_PARSER DLcom/groupbyinc/flux/common/xcontent/ObjectParser$NamedObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ObjectParser$NamedObjectParser; index numberOfShards I numberOfReplicas activeShards relocatingShards initializingShards unassignedShards activePrimaryShards 8Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; Ljava/util/Map; [Ljava/util/Map; n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;)V ()V O Q
R 2com/groupbyinc/flux/cluster/metadata/IndexMetaData T getIndex #()Lcom/groupbyinc/flux/index/Index; V W
U X com/groupbyinc/flux/index/Index Z getName ()Ljava/lang/String; \ ]
[ ^ C " ` getNumberOfShards ()I b c
U d D E f getNumberOfReplicas h c
U i F E k java/util/HashMap m
n R ; M p 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable r iterator ()Ljava/util/Iterator; t u
s v java/util/Iterator x hasNext ()Z z { y | next ()Ljava/lang/Object; ~ y ? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? 'com/groupbyinc/flux/index/shard/ShardId ? id ? c
? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? 5com/groupbyinc/flux/cluster/health/ClusterShardHealth ? @(ILcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V O ?
? ?
java/util/Map ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? 6com/groupbyinc/flux/cluster/health/ClusterHealthStatus ? GREEN ? L ? ? values ()Ljava/util/Collection; ? ? ? ? java/util/Collection ? ? v isPrimaryActive ? {
? ? getActiveShards ? c
? ? getRelocatingShards ? c
? ? getInitializingShards ? c
? ? getUnassignedShards ? c
? ? getStatus :()Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; ? ?
? ? RED ? L ? ? YELLOW ? L ? ? isEmpty ? { ? ? # L ? K E ? G E ? H E ? I E ? J E ? shardRoutingTable