com.groupbyinc.flux.cluster.metadata.MetaDataIndexTemplateService.class Maven / Gradle / Ivy
???? 4> Acom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService 6com/groupbyinc/flux/common/component/AbstractComponent !MetaDataIndexTemplateService.java Pcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveListener RemoveListener Pcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveResponse RemoveResponse Ocom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveRequest
RemoveRequest Mcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutResponse PutResponse Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest
PutRequest Mcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutListener PutListener Ccom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$2 Ccom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$1 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder Bcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder ! :com/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData # java/util/Map$Entry %
java/util/Map ' Entry :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder * 2com/groupbyinc/flux/cluster/metadata/IndexMetaData , :com/groupbyinc/flux/index/mapper/MapperService$MergeReason . .com/groupbyinc/flux/index/mapper/MapperService 0 MergeReason Ocom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices 3 >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService 5 AllocatedIndices bcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason 8 IndexRemovalReason clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; aliasValidator 5Lcom/groupbyinc/flux/cluster/metadata/AliasValidator; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; metaDataCreateIndexService ALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService; indexScopedSettings 9Lcom/groupbyinc/flux/common/settings/IndexScopedSettings; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; {(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/cluster/metadata/AliasValidator;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V G J
K ; < M = > O ? @ Q A B S C D U E F W this CLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService; settings .Lcom/groupbyinc/flux/common/settings/Settings; removeTemplates ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveRequest;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveListener;)V java/lang/StringBuilder _ ()V G a
` b remove-index-template [ d append -(Ljava/lang/String;)Ljava/lang/StringBuilder; f g
` h name Ljava/lang/String; j k
l ] n toString ()Ljava/lang/String; p q
` r #com/groupbyinc/flux/common/Priority t URGENT %Lcom/groupbyinc/flux/common/Priority; v w u x(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveRequest;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveListener;)V G z
{ 2com/groupbyinc/flux/cluster/service/ClusterService } submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V ?
~ ? request QLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveRequest; listener RLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$RemoveListener; putTemplate ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutListener;)V java/lang/Exception ? builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? [ \ ? put f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? index. ? normalizePrefix J(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? build 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ~(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest; [ ?
? l "java/lang/IllegalArgumentException ? "index_template must provide a name ? (Ljava/lang/String;)V G ?
? ? onFailure (Ljava/lang/Exception;)V ? ? ?
indexPatterns Ljava/util/List; ? ? ? &index_template must provide a template ? validate Q(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest;)V ? ?
? X(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder; ? ?
$ ? create-index-template [ ?
], cause [ ? cause ? k ?L(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutListener;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;)V G ?
? e Ljava/lang/Exception; NLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest; OLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutListener; updatedSettingsBuilder 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; templateBuilder DLcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder; validateAndAddTemplate ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexTemplateService$PutRequest;Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;)V com/groupbyinc/flux/common/UUIDs ? randomBase64UUID ? q
? ? $INDEX_ROUTING_PARTITION_SIZE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ? ? - ? +com/groupbyinc/flux/common/settings/Setting ? get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
? ? java/lang/Integer ? intValue ()I ? ?
? ? index.number_of_shards ? *com/groupbyinc/flux/indices/IndicesService ? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry ? com/groupbyinc/flux/index/Index ? java/lang/String ? valueOf (I)Ljava/lang/Integer; ? ?
? ? getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; ? ?
? index.version.created ? com/groupbyinc/flux/Version ? CURRENT Lcom/groupbyinc/flux/Version; ? ? ? ? g(Ljava/lang/String;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? K(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?
index.number_of_replicas
index.uuid \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?
P(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?
- l(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; [
+ 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ?
+ java/util/Collections emptyList ()Ljava/util/List;
createIndex n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/util/List;)Lcom/groupbyinc/flux/index/IndexService;
? &com/groupbyinc/flux/index/IndexService index #()Lcom/groupbyinc/flux/index/Index; !
" order I$% & G(I)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;$(
") version Ljava/lang/Integer;+, - Y(Ljava/lang/Integer;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;+/
"0 patterns V(Ljava/util/List;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;23
"4 t(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder; [6
"7 java/util/HashMap9
: b mappings Ljava/util/Map;<= > entrySet ()Ljava/util/Set;@A (B
java/util/SetD iterator ()Ljava/util/Iterator;FGEH java/util/IteratorJ hasNext ()ZLMKN next ()Ljava/lang/Object;PQKR getKeyTQ &U getValueWQ &X
putMapping j(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexTemplateMetaData$Builder;Z[
"\ 7com/groupbyinc/flux/index/mapper/MapperParsingException^ Failed to parse mapping [{}]: {}` java/lang/Objectb
getMessaged q
?e =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V Gg
_h parseMapping ^(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Ljava/lang/String;)Ljava/util/Map;jk
1l 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ?n (o
mapperService 2()Lcom/groupbyinc/flux/index/mapper/MapperService;qr
s MAPPING_UPDATE