com.groupbyinc.flux.gateway.Gateway.class Maven / Gradle / Ivy
???? 4 #com/groupbyinc/flux/gateway/Gateway 6com/groupbyinc/flux/common/component/AbstractComponent /com/groupbyinc/flux/cluster/ClusterStateApplier Gateway.java Acom/groupbyinc/flux/gateway/Gateway$GatewayStateRecoveredListener GatewayStateRecoveredListener Scom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState$NodeGatewayMetaState >com/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState
NodeGatewayMetaState Tcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState$NodesGatewayMetaState NodesGatewayMetaState 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData Builder 0com/groupbyinc/flux/cluster/ClusterState$Builder (com/groupbyinc/flux/cluster/ClusterState java/util/Map$Entry
java/util/Map Entry 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State ! 2com/groupbyinc/flux/cluster/metadata/IndexMetaData # State :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder & %java/lang/invoke/MethodHandles$Lookup ( java/lang/invoke/MethodHandles * Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; metaState .Lcom/groupbyinc/flux/gateway/GatewayMetaState; listGatewayMetaState @Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState; minimumMasterNodes I indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/gateway/GatewayMetaState;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayMetaState;Lcom/groupbyinc/flux/indices/IndicesService;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 9 ;
< 5 6 > - . @ / 0 B 1 2 D 4com/groupbyinc/flux/discovery/zen/ElectMasterService F *DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; H I G J +com/groupbyinc/flux/common/settings/Setting L get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; N O
M P java/lang/Integer R intValue ()I T U
S V 3 4 X 2com/groupbyinc/flux/cluster/service/ClusterService Z addLowPriorityApplier 4(Lcom/groupbyinc/flux/cluster/ClusterStateApplier;)V \ ]
[ ^ this %Lcom/groupbyinc/flux/gateway/Gateway; settings .Lcom/groupbyinc/flux/common/settings/Settings; performStateRecovery F(Lcom/groupbyinc/flux/gateway/Gateway$GatewayStateRecoveredListener;)V ,com/groupbyinc/flux/gateway/GatewayException f java/lang/Exception h state ,()Lcom/groupbyinc/flux/cluster/ClusterState; j k
[ l nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; n o
p /com/groupbyinc/flux/cluster/node/DiscoveryNodes r getMasterNodes 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; t u
s v 3com/groupbyinc/flux/common/collect/ImmutableOpenMap x keys F()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer; z {
y | java/lang/String ~ Bcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer ? toArray &(Ljava/lang/Class;)[Ljava/lang/Object; ? ? ? ? [Ljava/lang/String; ? logger !Lorg/apache/logging/log4j/Logger; ? ? ? !performing state recovery from {} ? java/util/Arrays ? toString '([Ljava/lang/Object;)Ljava/lang/String; ? ?
? ? org/apache/logging/log4j/Logger ? trace '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? list i([Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/ActionFuture; ? ?
? 'com/groupbyinc/flux/action/ActionFuture ? actionGet ()Ljava/lang/Object; ? ? ? ? java/lang/Math ? max (II)I ? ?
? ? hasFailures ()Z ? ?
? failures ()Ljava/util/List; ? ?
? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ? ? ? ? .com/groupbyinc/flux/action/FailedNodeException ? failed to fetch state from node ? warn *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? ? ? ?com/groupbyinc/flux/common/carrotsearch/hppc/ObjectFloatHashMap ? ()V 9 ?
? ? getNodes ? ?
? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? version ()J ? ?
? indices ? u
? values @()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer; ? ?
y ?