All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.index.reindex.TransportReindexAction.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4w8com/groupbyinc/flux/index/reindex/TransportReindexAction?Lcom/groupbyinc/flux/action/support/HandledTransportAction;9com/groupbyinc/flux/action/support/HandledTransportActionTransportReindexAction.javaQcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchActionAsyncIndexBySearchActionjava/util/Map$Entry

java/util/MapEntryCcom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder;com/groupbyinc/flux/common/http/client/config/RequestConfigBuilder4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingPropertyBcom/groupbyinc/flux/client/RestClientBuilder$RequestConfigCallback,com/groupbyinc/flux/client/RestClientBuilderRequestConfigCallbackEcom/groupbyinc/flux/client/RestClientBuilder$HttpClientConfigCallbackHttpClientConfigCallbackHcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig$Builder!@com/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig#%java/lang/invoke/MethodHandles$Lookup%java/lang/invoke/MethodHandles'LookupREMOTE_CLUSTER_WHITELIST-Lcom/groupbyinc/flux/common/settings/Setting;SLcom/groupbyinc/flux/common/settings/Setting;>;clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;
scriptService*Lcom/groupbyinc/flux/script/ScriptService;autoCreateIndex4Lcom/groupbyinc/flux/action/support/AutoCreateIndex;client#Lcom/groupbyinc/flux/client/Client;remoteWhitelistOLcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/transport/TransportService;)V*Lcom/groupbyinc/flux/common/inject/Inject;indices:data/write/reindex:"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;>?
=@A()Ljava/lang/Object;C0com/groupbyinc/flux/index/reindex/ReindexRequestE()V7G
FHI4()Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Kget()Ljava/util/function/Supplier;MNO/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V7Q
R-.	T/0	V12	X34	Z*+	\B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;M^
_java/util/ListabuildRemoteWhitelista(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton;cd
e56	gthis:Lcom/groupbyinc/flux/index/reindex/TransportReindexAction;settings.Lcom/groupbyinc/flux/common/settings/Settings;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters2Lcom/groupbyinc/flux/action/support/ActionFilters;indexNameExpressionResolverBLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;transportService0Lcom/groupbyinc/flux/transport/TransportService;	doExecute?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
getRemoteInfo0()Lcom/groupbyinc/flux/index/reindex/RemoteInfo;wx
FycheckRemoteWhitelist?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton;Lcom/groupbyinc/flux/index/reindex/RemoteInfo;)V{|
}2com/groupbyinc/flux/cluster/service/ClusterServicestate,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??getSearchRequest3()Lcom/groupbyinc/flux/action/search/SearchRequest;??
F?getDestination1()Lcom/groupbyinc/flux/action/index/IndexRequest;??
F?qr	?validateAgainstAliases1(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/index/reindex/RemoteInfo;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;Lcom/groupbyinc/flux/cluster/ClusterState;)V??
?2com/groupbyinc/flux/index/reindex/BulkByScrollTask?/com/groupbyinc/flux/index/reindex/ReindexAction?INSTANCE1Lcom/groupbyinc/flux/index/reindex/ReindexAction;??	??	localNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;??
??Glambda$doExecute$0?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V??
??run(Lcom/groupbyinc/flux/index/reindex/TransportReindexAction;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)Ljava/lang/Runnable;???Ccom/groupbyinc/flux/index/reindex/BulkByScrollParallelizationHelper?startSlicedAction+(Lcom/groupbyinc/flux/index/reindex/AbstractBulkByScrollRequest;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/action/Action;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Runnable;)V??
??task Lcom/groupbyinc/flux/tasks/Task;request2Lcom/groupbyinc/flux/index/reindex/ReindexRequest;listenereLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;*Lcom/groupbyinc/flux/cluster/ClusterState;bulkByScrollTask4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;`(Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V'java/lang/UnsupportedOperationException?
task required?(Ljava/lang/String;)V7?
??java/lang/StringBuilder?
?H,com/groupbyinc/flux/index/reindex/RemoteInfo?getHost()Ljava/lang/String;??
??append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??(C)Ljava/lang/StringBuilder;??
??getPort()I??
??(I)Ljava/lang/StringBuilder;??
??toString??
??Mcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton?(Ljava/lang/String;)Z??
??java/lang/String?"java/lang/IllegalArgumentException?] not whitelisted in ?getKey??
?
??	whitelist
remoteInfo.Lcom/groupbyinc/flux/index/reindex/RemoteInfo;checkLjava/lang/String;isEmpty()Z??b?@com/groupbyinc/flux/common/apache/lucene/util/automaton/Automata?	makeEmptyE()Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;??
??F(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)V7?
??"com/groupbyinc/flux/common/Strings?EMPTY_ARRAY[Ljava/lang/String;??	?toArray(([Ljava/lang/Object;)[Ljava/lang/Object;b?&com/groupbyinc/flux/common/regex/RegexsimpleMatchToAutomatonX([Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;	

Ncom/groupbyinc/flux/common/apache/lucene/util/automaton/MinimizationOperations
minimize?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;I)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;
Bcom/groupbyinc/flux/common/apache/lucene/util/automaton/OperationsisTotalF(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)Z
$Refusing to start because whitelist -(Ljava/lang/Object;)Ljava/lang/StringBuilder;?
?? accepts all addresses. This would allow users to reindex-from-remote any URL they like effectively having Elasticsearch make HTTP GETs for them.Acom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton $Ljava/util/List;Ljava/util/List;	automatonCLcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;-com/groupbyinc/flux/action/index/IndexRequest&index(?
')2com/groupbyinc/flux/action/support/AutoCreateIndex+shouldAutoCreate?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z-.
,/@com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver1concreteIndexNamesj(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Ljava/lang/String;34
25equals(Ljava/lang/Object;)Z78
?9;com/groupbyinc/flux/action/ActionRequestValidationException;
<H5reindex cannot write into an index its reading from [>addValidationError@?
<Ae=Lcom/groupbyinc/flux/action/ActionRequestValidationException;sourceIndexsource1Lcom/groupbyinc/flux/action/search/SearchRequest;destination/Lcom/groupbyinc/flux/action/index/IndexRequest;clusterStatetargetbuildRestClienth(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;JLjava/util/List;)Lcom/groupbyinc/flux/client/RestClient;
getHeaders()Ljava/util/Map;NO
?PsizeR?
S&com/groupbyinc/flux/common/http/HeaderUentrySet()Ljava/util/Set;WX
Y
java/util/Set[iterator()Ljava/util/Iterator;]^\_)[Lcom/groupbyinc/flux/common/http/Header;ajava/util/IteratorchasNexte?dfnexthCdi3com/groupbyinc/flux/common/http/message/BasicHeaderk?CmgetValueoCp'(Ljava/lang/String;Ljava/lang/String;)V7r
ls(com/groupbyinc/flux/common/http/HttpHostu	getSchemew?
?x((Ljava/lang/String;ILjava/lang/String;)V7z
v{%com/groupbyinc/flux/client/RestClient}builder[([Lcom/groupbyinc/flux/common/http/HttpHost;)Lcom/groupbyinc/flux/client/RestClientBuilder;?
~?setDefaultHeadersY([Lcom/groupbyinc/flux/common/http/Header;)Lcom/groupbyinc/flux/client/RestClientBuilder;??
??(Lcom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder;)Lcom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder;?lambda$buildRestClient$1?(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;Lcom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder;)Lcom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder;??
??customizeRequestConfigt(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;)Lcom/groupbyinc/flux/client/RestClientBuilder$RequestConfigCallback;???setRequestConfigCallbackt(Lcom/groupbyinc/flux/client/RestClientBuilder$RequestConfigCallback;)Lcom/groupbyinc/flux/client/RestClientBuilder;??
??(Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;)Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;?lambda$buildRestClient$3?(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;JLjava/util/List;Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;)Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;??
??customizeHttpClient?(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;JLjava/util/List;)Lcom/groupbyinc/flux/client/RestClientBuilder$HttpClientConfigCallback;???setHttpClientConfigCallbackw(Lcom/groupbyinc/flux/client/RestClientBuilder$HttpClientConfigCallback;)Lcom/groupbyinc/flux/client/RestClientBuilder;??
?
getPathPrefix??
??	hasLength??
??/?
setPathPrefixB(Ljava/lang/String;)Lcom/groupbyinc/flux/client/RestClientBuilder;??
?build)()Lcom/groupbyinc/flux/client/RestClient;??
?header;Ljava/util/Map$Entry;Ljava/util/Map$Entry;taskIdJthreadCollector$Ljava/util/List;
clientHeadersiI.Lcom/groupbyinc/flux/client/RestClientBuilder;X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Vu?
?x(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Vuv
?getUsername??
??@com/groupbyinc/flux/common/http/auth/UsernamePasswordCredentials?getPassword??
??
?sDcom/groupbyinc/flux/common/http/impl/client/BasicCredentialsProvider?
?H.com/groupbyinc/flux/common/http/auth/AuthScope?ANY0Lcom/groupbyinc/flux/common/http/auth/AuthScope;??	??:com/groupbyinc/flux/common/http/client/CredentialsProvider?setCredentialse(Lcom/groupbyinc/flux/common/http/auth/AuthScope;Lcom/groupbyinc/flux/common/http/auth/Credentials;)V????Fcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder?setDefaultCredentialsProvider?(Lcom/groupbyinc/flux/common/http/client/CredentialsProvider;)Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;??
??)java/util/concurrent/atomic/AtomicInteger?
?H((Ljava/lang/Runnable;)Ljava/lang/Thread;?lambda$buildRestClient$2d(JLjava/util/concurrent/atomic/AtomicInteger;Ljava/util/List;Ljava/lang/Runnable;)Ljava/lang/Thread;??
??	newThreadb(JLjava/util/concurrent/atomic/AtomicInteger;Ljava/util/List;)Ljava/util/concurrent/ThreadFactory;???setThreadFactoryn(Ljava/util/concurrent/ThreadFactory;)Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;??
??customL()Lcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig$Builder;??
$?setIoThreadCountM(I)Lcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig$Builder;??
"?D()Lcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig;??
"?setDefaultIOReactorConfig?(Lcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig;)Lcom/groupbyinc/flux/common/http/impl/nio/client/HttpAsyncClientBuilder;
?credsBLcom/groupbyinc/flux/common/http/auth/UsernamePasswordCredentials;credentialsProviderreindex.remote.whitelistSjava/util/CollectionsU	emptyList()Ljava/util/List;WX
VYjava/util/function/Function[identity()Ljava/util/function/Function;]^\_	NodeScope6Lcom/groupbyinc/flux/common/settings/Setting$Property;ab	clistSetting?(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;ef
g	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTable?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTableu(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton;|(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;JLjava/util/List;)Lcom/groupbyinc/flux/client/RestClient;BootstrapMethods
SourceFileInnerClasses!*+i,-./012345678j?
<*+;,	-?P?S*?U*?W*?Y*?[*?]+?`?b?f?h?kf
<ij<kl<mn<op<qr<-.</0<12<34<st	liklm$n*o;pm9uvj?U*?h,?z?~*?U??:,??,??,?z*??*?Y??+??:,??-*?[*?U??*,-?????k>UijU??U??U??A??3"??nU??l"tuv-y3{B|Q{T?iou?jZ
??Y????k 
ij
??
??n
??l?ip{|j?U+????Y??+?ɶ?:??+?Զ׶?M*,?ߙ???Y??Y??[??,???Ͳ]??Ͷڷ?k U?6U??#2??l???#?+?,?q	?&?cdj?^*?????Y?????*????L+'?L+??%??Y??Y????*??Ͷڷ鿻?Y+???k^?#$:$%n^?"l?	??$?,?3?U?q	?@!ir??jA~,??+?*:?0?-+?62:-*?6:?66		?E	2:

?:?.?"l*
????!?-?5?>?M?]?q5
??j?<??<<?#< #!?0"#l?#?0?9?
??j\ +*?'?-?3?7W+*?:?-?3?=W+?k ?? 	>l?????j?
3?@Y*?[*?U??+?C:?Y+*?G*?I,*?W-?L?O?k>3ij3??3??3??3??PQl~?/?2?RGj:T?Z?`?Y?dS?h?]?l\]\t4BDJLB???B???B???B???iuvB	
		@	 	"$	&()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy