com.groupbyinc.flux.cluster.routing.allocation.AbstractAllocationDecision.class Maven / Gradle / Ivy
???? 45 Icom/groupbyinc/flux/cluster/routing/allocation/AbstractAllocationDecision java/lang/Object 6com/groupbyinc/flux/common/xcontent/ToXContentFragment .com/groupbyinc/flux/common/io/stream/Writeable AbstractAllocationDecision.java java/util/Map$Entry
java/util/Map Entry 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 5com/groupbyinc/flux/common/io/stream/Writeable$Reader Reader %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
targetNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; %Lcom/groupbyinc/flux/common/Nullable;
nodeDecisions Ljava/util/List; WLjava/util/List; C(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/util/List;)V ()V " $
% ' sortNodeDecisions "(Ljava/util/List;)Ljava/util/List; ) *
+ .com/groupbyinc/flux/cluster/node/DiscoveryNode - java/util/List / 1 this KLcom/groupbyinc/flux/cluster/routing/allocation/AbstractAllocationDecision; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 6 "java/lang/invoke/LambdaMetafactory 8 metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; : ;
9 < = F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; ? " 5
. A B d(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; D read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; F G H 0com/groupbyinc/flux/common/io/stream/StreamInput J readOptionalWriteable i(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Lcom/groupbyinc/flux/common/io/stream/Writeable; L M
K N readBoolean ()Z P Q
K R Ccom/groupbyinc/flux/cluster/routing/allocation/NodeAllocationResult T
U A V y(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/routing/allocation/NodeAllocationResult; X H readList I(Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)Ljava/util/List; [ \
K ] java/util/Collections _ unmodifiableList a *
` b in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; isDecisionTaken
getTargetNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; checkDecisionState i $
j getNodeDecisions ()Ljava/util/List; getExplanation ()Ljava/lang/String; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput r writeOptionalWriteable 3(Lcom/groupbyinc/flux/common/io/stream/Writeable;)V t u
s v writeBoolean (Z)V x y
s z writeList (Ljava/util/List;)V | }
s ~ out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; f Q
? java/lang/IllegalStateException ? Cdecision was not taken, individual object fields cannot be accessed ? (Ljava/lang/String;)V " ?
? ? discoveryNodeToXContent ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;ZLcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; id ? 3com/groupbyinc/flux/common/xcontent/XContentBuilder ? node_id ? java/lang/String ? getId ? o
. ? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? name ? node_name ? getName ? o
. ? transport_address ?
getAddress 9()Lcom/groupbyinc/flux/common/transport/TransportAddress; ? ?
. ? 5com/groupbyinc/flux/common/transport/TransportAddress ? toString ? o
? ?
getAttributes ()Ljava/util/Map; ? ?
. ? isEmpty ? Q
?
attributes ? node_attributes ? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? entrySet ()Ljava/util/Set; ? ?
?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? Q ? ? next ()Ljava/lang/Object; ? ? ? ? getKey ? ? ? getValue ? ? ? endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? entry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; node outerObjectWritten Z builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; stream ()Ljava/util/stream/Stream; ? ? 0 ? java/util/stream/Stream ? sorted ? ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? nodeDecisionsToXContent ?(Ljava/util/List;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 0 ? node_allocation_decisions ?
startArray ? ?
? ? 0 ?
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
U endArray ?
? explanation ELcom/groupbyinc/flux/cluster/routing/allocation/NodeAllocationResult; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; atLeastOneNodeWithYesDecision getNodeDecision E()Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationDecision;
U Acom/groupbyinc/flux/cluster/routing/allocation/AllocationDecision YES CLcom/groupbyinc/flux/cluster/routing/allocation/AllocationDecision; result equals (Ljava/lang/Object;)Z java/util/Objects '(Ljava/lang/Object;Ljava/lang/Object;)Z
other Ljava/lang/Object; that hashCode ()I hash ([Ljava/lang/Object;)I!"
# RuntimeVisibleAnnotations Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/util/List;)V "RuntimeVisibleParameterAnnotations
Exceptions Y()Ljava/util/List; ?(Ljava/util/List;)Ljava/util/List; ?(Ljava/util/List;Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; BootstrapMethods
SourceFile InnerClasses! % &