com.groupbyinc.flux.cluster.node.DiscoveryNode.class Maven / Gradle / Ivy
???? 4? .com/groupbyinc/flux/cluster/node/DiscoveryNode java/lang/Object .com/groupbyinc/flux/common/io/stream/Writeable 6com/groupbyinc/flux/common/xcontent/ToXContentFragment DiscoveryNode.java 3com/groupbyinc/flux/cluster/node/DiscoveryNode$Role
Role java/util/Map$Entry
java/util/Map Entry 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup nodeName Ljava/lang/String; nodeId ephemeralId hostName hostAddress address 7Lcom/groupbyinc/flux/common/transport/TransportAddress;
attributes Ljava/util/Map; 5Ljava/util/Map; version Lcom/groupbyinc/flux/Version; roles Ljava/util/Set; FLjava/util/Set; $assertionsDisabled Z nodeRequiresLocalStorage 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z com/groupbyinc/flux/node/Node 0 NODE_LOCAL_STORAGE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; 2 3 1 4 +com/groupbyinc/flux/common/settings/Setting 6 get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; 8 9
7 : java/lang/Boolean < booleanValue ()Z > ?
= @ NODE_DATA_SETTING B 3 1 C NODE_MASTER_SETTING E 3 1 F "java/lang/IllegalArgumentException H 5storage can not be disabled for master and data nodes J (Ljava/lang/String;)V L M
I N settings .Lcom/groupbyinc/flux/common/settings/Settings; localStorageEnable isMasterNode
isDataNode isIngestNode NODE_INGEST_SETTING V 3 1 W i(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Lcom/groupbyinc/flux/Version;)V java/util/Collections Z emptyMap ()Ljava/util/Map; \ ]
[ ^ java/util/EnumSet ` allOf &(Ljava/lang/Class;)Ljava/util/EnumSet; b c
a d ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V L f
g this 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; id l ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V L n
o com/groupbyinc/flux/common/UUIDs q randomBase64UUID ()Ljava/lang/String; s t
r u 5com/groupbyinc/flux/common/transport/TransportAddress w ()Ljava/net/InetSocketAddress; " y
x z java/net/InetSocketAddress |
getHostString ~ t
}
getAddress ? t
x ? ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V L ?
? ()V L ?
? java/lang/String ? intern ? t
? ? ?
java/util/Set ? com/groupbyinc/flux/Version ? ? ? ? ! ? " # ? CURRENT ? ( ? ? ' ( ? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ? ?
[ ? $ % ? "java/lang/invoke/LambdaMetafactory ? 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; ? ?
? ? ? (Ljava/lang/Object;)Z ? lambda$new$0 (Ljava/util/Map;)Z ? ?
? ? ? test ()Ljava/util/function/Predicate; ? ? ? , - ? java/util/function/Predicate ? ? ? ? ? java/lang/AssertionError ?
? ? noneOf ? c
a ? addAll (Ljava/util/Collection;)Z ? ? ? ? unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; ? ?
[ ? ) * ? predicate ULjava/util/function/Predicate;>; Ljava/util/function/Predicate; rolesSet createLocal ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; java/util/HashMap ? NODE_ATTRIBUTES ? 3 1 ? ,com/groupbyinc/flux/common/settings/Settings ? getAsMap ? ]
? ? (Ljava/util/Map;)V L ?
? ? getRolesFromSettings ?(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/Set; ? ?
? NODE_NAME_SETTING ? 3 1 ? publishAddress INGEST 5Lcom/groupbyinc/flux/cluster/node/DiscoveryNode$Role; ? ? ? add ? ? ? ? MASTER ? ? ? DATA ? ? ? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 0com/groupbyinc/flux/common/io/stream/StreamInput ?
readString t
?
getVersion ()Lcom/groupbyinc/flux/Version;
? V_5_0_2 ( ? after (Lcom/groupbyinc/flux/Version;)Z
? L ?
x G(Lcom/groupbyinc/flux/common/io/stream/StreamInput;Ljava/lang/String;)V L
x readVInt ()I
? (I)V L
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; readEnum #(Ljava/lang/Class;)Ljava/lang/Enum;
? readVersion Q(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/Version;"#
?$ i I in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; size rolesSize writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput. writeString0 M
/1,-
x3* 5 writeVInt7
/8 entrySet ()Ljava/util/Set;:; < iterator ()Ljava/util/Iterator;>? ?@ java/util/IteratorB hasNextD ?CE next ()Ljava/lang/Object;GHCI getKeyKH L getValueNH O ?5 writeEnum (Ljava/lang/Enum;)VRS
/T writeVersion S(Lcom/groupbyinc/flux/Version;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)VVW
?X entry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; role out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; 9()Lcom/groupbyinc/flux/common/transport/TransportAddress; getId getEphemeralId getName
getAttributes containse ? ?f getRoles getHostName getHostAddress equals getClass ()Ljava/lang/Class;lm
nk ?
?p o Ljava/lang/Object; that hashCodeu
?v toString java/lang/StringBuildery
z ? length|
?} append (C)Ljava/lang/StringBuilder;?
z? -(Ljava/lang/String;)Ljava/lang/StringBuilder;?
z? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
z? isEmpty? ? ?x t
z? sb Ljava/lang/StringBuilder;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;a t
? 3com/groupbyinc/flux/common/xcontent/XContentBuilder? startObject I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? name?c t
? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? ephemeral_id?b t
? transport_address? ?`
?
x? $ endObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; values 8()[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode$Role;??
? 6[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode$Role;? getRoleName? t
? containsKey? ? ? attrs java/lang/Class? desiredAssertionStatus? ?
?? Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V,(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/common/transport/TransportAddress;Ljava/util/Map;Ljava/util/Set;Lcom/groupbyinc/flux/Version;)V v(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/util/Set;
Exceptions 7()Ljava/util/Map; H()Ljava/util/Set; BootstrapMethods
SourceFile InnerClasses !
! " # $ % ? &