com.groupbyinc.flux.action.admin.indices.rollover.TransportRolloverAction.class Maven / Gradle / Ivy
???? 4q Icom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction ?Lcom/groupbyinc/flux/action/support/master/TransportMasterNodeAction; Ccom/groupbyinc/flux/action/support/master/TransportMasterNodeAction TransportRolloverAction.java Kcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction$1 Acom/groupbyinc/flux/action/admin/indices/rollover/Condition$Stats ;com/groupbyinc/flux/action/admin/indices/rollover/Condition Stats Bcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Result Result /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names 4com/groupbyinc/flux/cluster/metadata/AliasAction$Add 0com/groupbyinc/flux/cluster/metadata/AliasAction Add 7com/groupbyinc/flux/cluster/metadata/AliasAction$Remove Remove %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup INDEX_NAME_PATTERN Ljava/util/regex/Pattern; createIndexService ALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService; indexAliasesService BLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService; activeShardsObserver 9Lcom/groupbyinc/flux/action/support/ActiveShardsObserver; client #Lcom/groupbyinc/flux/client/Client; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService;Lcom/groupbyinc/flux/client/Client;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:admin/rollover 2 "java/lang/invoke/LambdaMetafactory 4 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; 6 7
5 8 9 ()Ljava/lang/Object; ; Acom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest = ()V / ?
> @ A E()Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest; C get ()Ljava/util/function/Supplier; E F Gc(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V / I
J % & L ' ( N + , P 7com/groupbyinc/flux/action/support/ActiveShardsObserver R ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V / T
S U ) * W this KLcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction; settings .Lcom/groupbyinc/flux/common/settings/Settings; transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; executor ()Ljava/lang/String; same i newResponse F()Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverResponse; Bcom/groupbyinc/flux/action/admin/indices/rollover/RolloverResponse m
n @
checkBlock ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; r s
> t 1com/groupbyinc/flux/action/support/IndicesOptions v expandWildcardsOpen ()Z x y
w z expandWildcardsClosed | y
w } fromOptions 9(ZZZZ)Lcom/groupbyinc/flux/action/support/IndicesOptions; ?
w ? (com/groupbyinc/flux/cluster/ClusterState ? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
? ? 3com/groupbyinc/flux/cluster/block/ClusterBlockLevel ? METADATA_WRITE 5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; ? ? ? ? e f ? indices ()[Ljava/lang/String; ? ?
> ? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? concreteIndexNames ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Ljava/lang/String; ? ?
? ? /com/groupbyinc/flux/cluster/block/ClusterBlocks ? indicesBlockedException ?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; ? ?
? ? request CLcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest; state *Lcom/groupbyinc/flux/cluster/ClusterState; 3Lcom/groupbyinc/flux/action/support/IndicesOptions; masterOperation ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? validate u(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;)V ? ?
? -com/groupbyinc/flux/cluster/metadata/MetaData ? getAliasAndIndexLookup ()Ljava/util/SortedMap; ? ?
? ? getAlias ? h
> ? java/util/SortedMap ? &(Ljava/lang/Object;)Ljava/lang/Object; E ? ? ? 1com/groupbyinc/flux/cluster/metadata/AliasOrIndex ?
getIndices ()Ljava/util/List; ? ? ? ? java/util/List ? (I)Ljava/lang/Object; E ? ? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? index.provided_name ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? com/groupbyinc/flux/index/Index ? getName ? h
? ? ,com/groupbyinc/flux/common/settings/Settings ? 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; E ?
? ? getNewIndexName ? h
> ? )com/groupbyinc/flux/action/ActionListener ? java/lang/String ? generateRolloverIndexName h(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)Ljava/lang/String; ? ?
? resolveDateMathExpression &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? ?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService ? validateIndexName ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V ? ?
? ? !com/groupbyinc/flux/client/Client ? admin *()Lcom/groupbyinc/flux/client/AdminClient; ? ? ? ? &com/groupbyinc/flux/client/AdminClient ? 1()Lcom/groupbyinc/flux/client/IndicesAdminClient; ? ? ? ? -com/groupbyinc/flux/client/IndicesAdminClient ? prepareStats `([Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder; Icom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder clear M()Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder;
setDocs N(Z)Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder;
!(Lcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction;Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/String;Ljava/lang/String;)V /
execute .(Lcom/groupbyinc/flux/action/ActionListener;)V
rolloverRequest listener qLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; /Lcom/groupbyinc/flux/cluster/metadata/MetaData; aliasOrIndex 3Lcom/groupbyinc/flux/cluster/metadata/AliasOrIndex;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; sourceProvidedName Ljava/lang/String; sourceIndexName unresolvedName rolloverIndexName #prepareRolloverAliasesUpdateRequest ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;)Lcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest; ](Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V /&
' '(Ljava/lang/String;Ljava/lang/String;)V /)
* java/util/Arrays, asList %([Ljava/lang/Object;)Ljava/util/List;./
-0 java/util/Collections2 unmodifiableList "(Ljava/util/List;)Ljava/util/List;45
36 Vcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest8 (Ljava/util/List;)V /:
9;
ackTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue;=>
>? h(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateRequest;=A
9B masterNodeTimeoutD>
>EDA
9G oldIndex newIndex actions DLjava/util/List; Ljava/util/List;
updateRequest XLcom/groupbyinc/flux/action/admin/indices/alias/IndicesAliasesClusterStateUpdateRequest; equals (Ljava/lang/Object;)ZPQ
?R # $ T java/util/regex/PatternV matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;XY
WZ java/util/regex/Matcher\ matches^ y
]_ -a lastIndexOf (Ljava/lang/String;)Icd
?e - . g java/lang/AssertionErrori no separator '-' foundk (Ljava/lang/Object;)V /m
jn length ()Ipq
?r substring (II)Ljava/lang/String;tu
?v java/lang/Integerx parseIntzd
y{ java/lang/StringBuilder}
~ @ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
~? java/util/Locale? ROOT Ljava/util/Locale;?? ?? %06d? java/lang/Object? valueOf (I)Ljava/lang/Integer;??
y? format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;??
?? >? ? toString? h
~? "java/lang/IllegalArgumentException? index name [? #] does not match pattern '^.*-\d+$'? (Ljava/lang/String;)V /?
?? numberIndex I counter newName resolvedName
isDateMath evaluateConditions (Ljava/util/Set;Lcom/groupbyinc/flux/index/shard/DocsStats;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Ljava/util/Set; )com/groupbyinc/flux/index/shard/DocsStats? getCount ()J??
?? getCreationDate??
?? (JJ)V /?
?
java/util/Set? stream ()Ljava/util/stream/Stream;???? ? lambda$evaluateConditions$0 ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Stats;Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition;)Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Result;??
?? ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition;)Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Result;? apply b(Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Stats;)Ljava/util/function/Function;?? ? java/util/stream/Stream? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;???? java/util/stream/Collectors? toSet ()Ljava/util/stream/Collector;??
?? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;????
conditions NLjava/util/Set; Ljava/util/Set; docsStats +Lcom/groupbyinc/flux/index/shard/DocsStats; numDocs J stats CLcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Stats; ?(Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsResponse;)Ljava/util/Set; Ccom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsResponse? getPrimaries >()Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStats;??
?? :com/groupbyinc/flux/action/admin/indices/stats/CommonStats? getDocs -()Lcom/groupbyinc/flux/index/shard/DocsStats;??
????
?
statsResponse ELcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsResponse; source alias does not exist? isAlias? y ?? source alias is a concrete index? size?q ?? %source alias maps to multiple indices prepareCreateIndexRequest ?(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest; getCreateIndexRequest F()Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;
> rollover_index Bcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest
cause X(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;
index
Tcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest j(Lcom/groupbyinc/flux/transport/TransportMessage;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V /
timeout>
B
E
G [ ?
?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest; [
! aliases ()Ljava/util/Set;#$
% g(Ljava/util/Set;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;#'
( 3com/groupbyinc/flux/action/support/ActiveShardCount* NONE 5Lcom/groupbyinc/flux/action/support/ActiveShardCount;,- +. waitForActiveShards ?(Lcom/groupbyinc/flux/action/support/ActiveShardCount;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;01
2 mappings ()Ljava/util/Map;45
6 g(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;48
9 providedIndexName targetIndexName createIndexRequest DLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; ?(Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException; p q
@ ?(Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/ExceptionC ? ?
E -()Lcom/groupbyinc/flux/action/ActionResponse; k l
H evaluate ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Stats;)Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition$Result;JK
L condition =Lcom/groupbyinc/flux/action/admin/indices/rollover/Condition;
access$000 ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService; x0
access$100 ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexAliasesService;
access$200 ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/TransportRolloverAction;)Lcom/groupbyinc/flux/action/support/ActiveShardsObserver; java/lang/ClassX desiredAssertionStatusZ y
Y[ ^.*-\d+$] compile -(Ljava/lang/String;)Ljava/util/regex/Pattern;_`
Wa Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/action/admin/indices/rollover/RolloverRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V(Ljava/util/Set;Lcom/groupbyinc/flux/index/shard/DocsStats;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Ljava/util/Set;(Ljava/util/Set;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsResponse;)Ljava/util/Set;
Exceptions BootstrapMethods
SourceFile InnerClasses ! # $ % &