com.groupbyinc.flux.cluster.ClusterModule.class Maven / Gradle / Ivy
???? 4% )com/groupbyinc/flux/cluster/ClusterModule 0com/groupbyinc/flux/common/inject/AbstractModule ClusterModule.java /com/groupbyinc/flux/cluster/ClusterState$Custom (com/groupbyinc/flux/cluster/ClusterState Custom Acom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry$Entry ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistry
Entry 0com/groupbyinc/flux/cluster/ClusterState$Builder Builder 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder -com/groupbyinc/flux/cluster/metadata/MetaData ?com/groupbyinc/flux/common/xcontent/NamedXContentRegistry$Entry 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry 5com/groupbyinc/flux/common/io/stream/Writeable$Reader .com/groupbyinc/flux/common/io/stream/Writeable Reader 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom %com/groupbyinc/flux/tasks/Task$Status " com/groupbyinc/flux/tasks/Task $ Status @com/groupbyinc/flux/persistent/PersistentTasksNodeService$Status ' 9com/groupbyinc/flux/persistent/PersistentTasksNodeService ) 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry + /com/groupbyinc/flux/cluster/SnapshotsInProgress - 3com/groupbyinc/flux/cluster/RestoreInProgress$Entry / -com/groupbyinc/flux/cluster/RestoreInProgress 1 4com/groupbyinc/flux/common/settings/Setting$Property 3 +com/groupbyinc/flux/common/settings/Setting 5 Property %java/lang/invoke/MethodHandles$Lookup 8 java/lang/invoke/MethodHandles : Lookup BALANCED_ALLOCATOR Ljava/lang/String; balanced ? SHARDS_ALLOCATOR_TYPE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ALcom/groupbyinc/flux/common/settings/Setting; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; allocationDeciders KLcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; deciderList Ljava/util/Collection; bLjava/util/Collection; shardsAllocator JLcom/groupbyinc/flux/cluster/routing/allocation/allocator/ShardsAllocator; #PRE_6_3_METADATA_CUSTOMS_WHITE_LIST Ljava/util/Set; #Ljava/util/Set; "PRE_6_3_CLUSTER_CUSTOMS_WHITE_LIST ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Ljava/util/List;Lcom/groupbyinc/flux/cluster/ClusterInfoService;)V ()V U W
X 2com/groupbyinc/flux/cluster/service/ClusterService Z getClusterSettings 7()Lcom/groupbyinc/flux/common/settings/ClusterSettings; \ ]
[ ^ createAllocationDeciders ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Ljava/util/List;)Ljava/util/Collection; ` a
b L M d Icom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders f G(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Collection;)V U h
g i H I k createShardsAllocator ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/routing/allocation/allocator/ShardsAllocator; m n
o O P q D E s @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver u 1(Lcom/groupbyinc/flux/common/settings/Settings;)V U w
v x F G z @com/groupbyinc/flux/cluster/routing/allocation/AllocationService | ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDeciders;Lcom/groupbyinc/flux/cluster/routing/allocation/allocator/ShardsAllocator;Lcom/groupbyinc/flux/cluster/ClusterInfoService;)V U ~
} J K ? this +Lcom/groupbyinc/flux/cluster/ClusterModule; settings .Lcom/groupbyinc/flux/common/settings/Settings; clusterPlugins =Ljava/util/List; Ljava/util/List; clusterInfoService 0Lcom/groupbyinc/flux/cluster/ClusterInfoService; getClusterStateCustomSuppliers !(Ljava/util/List;)Ljava/util/Map; java/util/HashMap ?
? X snapshot_deletions ? "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; ? 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress ?
? X ? 3()Lcom/groupbyinc/flux/cluster/ClusterState$Custom; ? get ()Ljava/util/function/Supplier; ? ? ?
java/util/Map ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? restore ? 'lambda$getClusterStateCustomSuppliers$0 ? ?
? ? ? snapshots ? 'lambda$getClusterStateCustomSuppliers$1 ? ?
? ? ? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ? ? ? ? )com/groupbyinc/flux/plugins/ClusterPlugin ? $getInitialClusterStateCustomSupplier ()Ljava/util/Map; ? ? ? ? keySet ()Ljava/util/Set; ? ? ? ?
java/util/Set ? ? ? java/lang/String ? containsKey (Ljava/lang/Object;)Z ? ? ? ? java/lang/IllegalStateException ? java/lang/StringBuilder ?
? X custom supplier key [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] is registered more than once ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V U ?
? ? putAll (Ljava/util/Map;)V ? ? ? ? java/util/Collections ? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ? ?
? ? key initialCustomSupplier sLjava/util/Map;>; Ljava/util/Map; plugin +Lcom/groupbyinc/flux/plugins/ClusterPlugin; customSupplier getNamedWriteables ()Ljava/util/List; java/util/ArrayList
X F(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Ljava/lang/Object; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V U
.
e(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/SnapshotsInProgress; read 9()Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader; readDiffFrom [(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/NamedDiff;
. registerClusterCustom ?(Ljava/util/List;Ljava/lang/String;Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;Lcom/groupbyinc/flux/common/io/stream/Writeable$Reader;)V
2 c(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/RestoreInProgress;
2"
? % m(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/SnapshotDeletionsInProgress;'
?* repositories- 9com/groupbyinc/flux/cluster/metadata/RepositoriesMetaData/
0 1 o(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/metadata/RepositoriesMetaData;3
06
registerMetaDataCustom9
: ingest< )com/groupbyinc/flux/ingest/IngestMetadata>
? @ _(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/ingest/IngestMetadata;B
?E stored_scriptsH )com/groupbyinc/flux/script/ScriptMetaDataJ
K L _(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/script/ScriptMetaData;N
KQ index-graveyardT 3com/groupbyinc/flux/cluster/metadata/IndexGraveyardV
W X i(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/cluster/metadata/IndexGraveyard;Z
W] persistent_tasks`