
com.groupbyinc.flux.cluster.health.ClusterStateHealth.class Maven / Gradle / Ivy
???? 4? 5com/groupbyinc/flux/cluster/health/ClusterStateHealth ?Ljava/lang/Object;Ljava/lang/Iterable;Lcom/groupbyinc/flux/common/io/stream/Writeable; java/lang/Object java/lang/Iterable .com/groupbyinc/flux/common/io/stream/Writeable ClusterStateHealth.java
numberOfNodes I numberOfDataNodes activeShards relocatingShards activePrimaryShards initializingShards unassignedShards activeShardsPercent D status 8Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; indices Ljava/util/Map; ZLjava/util/Map; -(Lcom/groupbyinc/flux/cluster/ClusterState;)V (com/groupbyinc/flux/cluster/ClusterState metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;
-com/groupbyinc/flux/cluster/metadata/MetaData " getConcreteAllIndices ()[Ljava/lang/String; $ %
# & @(Lcom/groupbyinc/flux/cluster/ClusterState;[Ljava/lang/String;)V (
) this 7Lcom/groupbyinc/flux/cluster/health/ClusterStateHealth; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; ()V /
0 nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; 2 3
4 /com/groupbyinc/flux/cluster/node/DiscoveryNodes 6 getSize ()I 8 9
7 : < getDataNodes 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; > ?
7 @ 3com/groupbyinc/flux/common/collect/ImmutableOpenMap B size D 9
C E
G java/util/HashMap I
J 0 L [Ljava/lang/String; N routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; P Q
R 0com/groupbyinc/flux/cluster/routing/RoutingTable T index K(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; V W
U X H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; V Z
# [ java/lang/String ] 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable _ 2com/groupbyinc/flux/cluster/metadata/IndexMetaData a 5com/groupbyinc/flux/cluster/health/ClusterIndexHealth c n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;)V e
d f getIndex ()Ljava/lang/String; h i
d j
java/util/Map l put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; n o m p 6com/groupbyinc/flux/cluster/health/ClusterHealthStatus r GREEN t s u values ()Ljava/util/Collection; w x m y java/util/Collection { iterator ()Ljava/util/Iterator; } ~ | java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getActivePrimaryShards ? 9
d ? getActiveShards ? 9
d ? getRelocatingShards ? 9
d ? getInitializingShards ? 9
d ? getUnassignedShards ? 9
d ? getStatus :()Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; ? ?
d ? RED ? s ? YELLOW ? s ? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
? #com/groupbyinc/flux/rest/RestStatus ? SERVICE_UNAVAILABLE %Lcom/groupbyinc/flux/rest/RestStatus; ? ? ? ? /com/groupbyinc/flux/cluster/block/ClusterBlocks ? hasGlobalBlock ((Lcom/groupbyinc/flux/rest/RestStatus;)Z ? ?
? ? ? ? ? ? ? ? equals (Ljava/lang/Object;)Z ? ?
s ?@Y ? getRoutingTable ? Q
? allShards ()Ljava/util/List; ? ?
U ? java/util/List ? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? active ? ?
? ? indexRoutingTable 7Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; indexHealth 7Lcom/groupbyinc/flux/cluster/health/ClusterIndexHealth; Ljava/lang/String; shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
shardRoutings DLjava/util/List; Ljava/util/List; activeShardCount totalShardCount concreteIndices
computeStatus computeActivePrimaryShards computeActiveShards computeRelocatingShards computeInitializingShards computeUnassignedShards 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readVInt ? 9
? ? readByte ()B ? ?
? ? fromValue ;(B)Lcom/groupbyinc/flux/cluster/health/ClusterHealthStatus; ? ?
s ? (I)V ?
J ? ?
d ?
readDouble ()D
? i in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; R(IIIIIIIDLcom/groupbyinc/flux/cluster/health/ClusterHealthStatus;Ljava/util/Map;)V getNumberOfNodes getNumberOfDataNodes
getIndices ()Ljava/util/Map; java/util/Collections
unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;
getActiveShardsPercent writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput writeVInt ?
value ?
s writeByte (B)V
m E
d$ writeDouble (D)V&'
( out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; toString java/lang/StringBuilder-
. 0 !ClusterStateHealth{numberOfNodes=0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder;23
.4 (I)Ljava/lang/StringBuilder;26
.7 , numberOfDataNodes=9 , activeShards=; , relocatingShards== , activePrimaryShards=? , initializingShards=A , unassignedShards=C , activeShardsPercent=E (D)Ljava/lang/StringBuilder;2G
.H , status=J -(Ljava/lang/Object;)Ljava/lang/StringBuilder;2L
.M , indices.size=O nullQ java/lang/IntegerS valueOf (I)Ljava/lang/Integer;UV
TW java/io/SerializableY (C)Ljava/lang/StringBuilder;2[
.\, i
.^ getClass ()Ljava/lang/Class;`a
b java/lang/Doubled compare (DD)Ifg
eh java/util/Objectsj '(Ljava/lang/Object;Ljava/lang/Object;)Z ?l
km o Ljava/lang/Object; that hashCode (D)Ljava/lang/Double;Us
et hash ([Ljava/lang/Object;)Ivw
kx Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions ?(IIIIIIIDLcom/groupbyinc/flux/cluster/health/ClusterHealthStatus;Ljava/util/Map;)V \()Ljava/util/Map; O()Ljava/util/Iterator;
SourceFile 1
z { E
*++? !? '? *? |
+ ,
- . }
: ; ( { ? ?*? 1*+? 5? ;? =*+? 5? A? F? H*? JY? K? M,N-?66? K-2:+? S? Y:+? !? \:? ? !? dY? g: *? M ? k ? q W????? vN66666*? M? z ? ? : ? ? ? l ? ? ? d:
? ?`6
? ?`6
? ?`6
? ?`6
? ?`6
? ?? ??
? ?N?
? ?? ?? -? ?? ? ?N???+? ?? ?? ?? ? ?N*-? ?*? ?*? ?*? ?*? ?*? ?-? v? Ù
* ĵ ǧ Q+? ʶ ?: 6
6 ? ? :? ? ? ? ? ? ?:
? ֙ ?
????*
??o ?k? DZ | ? I 1 ? ? T &