com.groupbyinc.flux.cluster.metadata.MetaDataIndexAliasesService.class Maven / Gradle / Ivy
???? 4v @com/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService 6com/groupbyinc/flux/common/component/AbstractComponent MetaDataIndexAliasesService.java Bcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService$1 Bcom/groupbyinc/flux/cluster/metadata/AliasAction$NewAliasValidator 0com/groupbyinc/flux/cluster/metadata/AliasAction
NewAliasValidator 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 Ocom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService AllocatedIndices bcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason IndexRemovalReason :com/groupbyinc/flux/index/mapper/MapperService$MergeReason .com/groupbyinc/flux/index/mapper/MapperService MergeReason %java/lang/invoke/MethodHandles$Lookup # java/lang/invoke/MethodHandles % Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; aliasValidator 5Lcom/groupbyinc/flux/cluster/metadata/AliasValidator; deleteIndexService ALcom/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; B(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Lcom/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V 2 5
6 ( ) 8 * + : , - < . / > 0 1 @ this BLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService; settings .Lcom/groupbyinc/flux/common/settings/Settings; indicesAliases ?(Lcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
index-aliases H #com/groupbyinc/flux/common/Priority J URGENT %Lcom/groupbyinc/flux/common/Priority; L M K N(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest;)V 2 P
Q 2com/groupbyinc/flux/cluster/service/ClusterService S submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V U V
T W request XLcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest; listener iLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; innerExecute j(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/Iterable;)Lcom/groupbyinc/flux/cluster/ClusterState; java/util/ArrayList ` ()V 2 b
a c java/util/HashMap e
f c java/util/HashSet h
i c java/lang/Iterable k iterator ()Ljava/util/Iterator; m n l o java/util/List q
java/util/Map s
java/util/Set u java/util/Iterator w hasNext ()Z y z x { next ()Ljava/lang/Object; } ~ x removeIndex ? z
? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
?
getIndices 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ? ?
? getIndex ()Ljava/lang/String; ? ?
? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? 0com/groupbyinc/flux/index/IndexNotFoundException ? (Ljava/lang/String;)V 2 ?
? ? #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? add (Ljava/lang/Object;)Z ? ? v ? ?com/groupbyinc/flux/cluster/metadata/MetaDataDeleteIndexService ?
deleteIndices e(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? builder h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
? H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? "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; ? ?
? ? ? L(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V ? lambda$innerExecute$2(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;Lcom/groupbyinc/flux/cluster/metadata/AliasAction;Ljava/util/Map;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Boolean;)V ? ?
? ? validateD(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService;Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;Lcom/groupbyinc/flux/cluster/metadata/AliasAction;Ljava/util/Map;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/metadata/AliasAction$NewAliasValidator; ? ? ? apply ?(Lcom/groupbyinc/flux/cluster/metadata/AliasAction$NewAliasValidator;Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Z ? ?
? ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? k(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? build ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
?
equalsAliases 2(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Z ? ?
? r o com/groupbyinc/flux/index/Index ? NO_LONGER_ASSIGNED dLcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason; ? ? ? created for alias processing ? *com/groupbyinc/flux/indices/IndicesService ? ?(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason;Ljava/lang/String;)V ? ?
? ? java/lang/Throwable ? index 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; action 2Lcom/groupbyinc/flux/cluster/metadata/AliasAction; newAliasValidator DLcom/groupbyinc/flux/cluster/metadata/AliasAction$NewAliasValidator; !Lcom/groupbyinc/flux/index/Index; updatedState *Lcom/groupbyinc/flux/cluster/ClusterState; changed Z indicesToDelete 2Ljava/util/Set; Ljava/util/Set; metadata 7Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; currentState actions HLjava/lang/Iterable; Ljava/lang/Iterable; indicesToClose 3Ljava/util/List; Ljava/util/List; indices KLjava/util/Map; Ljava/util/Map; java/io/IOException ? ? lambda$innerExecute$0 (Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
? V(Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;)Ljava/util/function/Function; ? 3com/groupbyinc/flux/cluster/metadata/AliasValidator
validateAlias V(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;)V
"com/groupbyinc/flux/common/Strings hasLength (Ljava/lang/String;)Z
getName ?
? t ? &com/groupbyinc/flux/index/IndexService indexService K(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/index/IndexService;
? java/util/Collections! emptyList ()Ljava/util/List;#$
"% createIndex n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/util/List;)Lcom/groupbyinc/flux/index/IndexService;'(
?) r ? java/lang/String, java/lang/Boolean. java/util/function/Function0 *com/groupbyinc/flux/ElasticsearchException2 6Failed to create temporary index for parsing the alias4 java/lang/Object6 =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V 28
39
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;;<
= MAPPING_RECOVERY