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

com.groupbyinc.flux.action.admin.indices.shrink.TransportShrinkAction.class Maven / Gradle / Ivy

There is a newer version: 129
Show newest version
????4?Ecom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction?Lcom/groupbyinc/flux/action/support/master/TransportMasterNodeAction;Ccom/groupbyinc/flux/action/support/master/TransportMasterNodeActionTransportShrinkAction.javaGcom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction$14com/groupbyinc/flux/common/settings/Settings$Builder	,com/groupbyinc/flux/common/settings/SettingsBuilder/com/groupbyinc/flux/threadpool/ThreadPool$Names)com/groupbyinc/flux/threadpool/ThreadPoolNames%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupcreateIndexServiceALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;client#Lcom/groupbyinc/flux/client/Client;?(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/client/Client;)V*Lcom/groupbyinc/flux/common/inject/Inject;indices:admin/shrink"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;(=com/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest*()V,
+-.A()Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;0get()Ljava/util/function/Supplier;234c(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6
7	9	;thisGLcom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction;settings.Lcom/groupbyinc/flux/common/settings/Settings;transportService0Lcom/groupbyinc/flux/transport/TransportService;clusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;
threadPool+Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters2Lcom/groupbyinc/flux/action/support/ActionFilters;indexNameExpressionResolverBLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;executor()Ljava/lang/String;sameMnewResponseB()Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkResponse;>com/groupbyinc/flux/action/admin/indices/shrink/ShrinkResponseQ
R-
checkBlock?(Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException;(com/groupbyinc/flux/cluster/ClusterStateVblocks3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;XY
WZ3com/groupbyinc/flux/cluster/block/ClusterBlockLevel\METADATA_WRITE5Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;^_	]`getShrinkIndexRequestF()Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;bc
+dBcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequestfindexhL
gi/com/groupbyinc/flux/cluster/block/ClusterBlockskindexBlockedException?(Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException;mn
lorequest?Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;state*Lcom/groupbyinc/flux/cluster/ClusterState;masterOperation?(Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)VIJ	wgetSourceIndexyL
+z@com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver|resolveDateMathExpression&(Ljava/lang/String;)Ljava/lang/String;~
}?!com/groupbyinc/flux/client/Client?admin*()Lcom/groupbyinc/flux/client/AdminClient;????&com/groupbyinc/flux/client/AdminClient?indices1()Lcom/groupbyinc/flux/client/IndicesAdminClient;????java/lang/String?-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?clearM()Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder;??
??setDocsN(Z)Lcom/groupbyinc/flux/action/admin/indices/stats/IndicesStatsRequestBuilder;??
???(Lcom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction;Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Lcom/groupbyinc/flux/action/ActionListener;)V?
?execute.(Lcom/groupbyinc/flux/action/ActionListener;)V??
??
shrinkRequestlistenermLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;sourceIndexLjava/lang/String;prepareCreateIndexRequest#(Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/function/IntFunction;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;metaData1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
W?-com/groupbyinc/flux/cluster/metadata/MetaData?H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;h?
??builder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
?0()Lcom/groupbyinc/flux/common/settings/Settings;??
g?putf(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??

?index.?normalizePrefixJ(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??

?build??

?2com/groupbyinc/flux/cluster/metadata/IndexMetaData?INDEX_NUMBER_OF_SHARDS_SETTING-Lcom/groupbyinc/flux/common/settings/Setting;??	??+com/groupbyinc/flux/common/settings/Setting?exists1(Lcom/groupbyinc/flux/common/settings/Settings;)Z??
??B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;2?
??java/lang/Integer?intValue()I??
??java/util/function/IntFunction?selectShrinkShardsG(ILcom/groupbyinc/flux/cluster/metadata/IndexMetaData;I)Ljava/util/Set;??
??
java/util/Set?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext()Z????next?(??'com/groupbyinc/flux/index/shard/ShardId?id??
??apply(I)Ljava/lang/Object;????)com/groupbyinc/flux/index/shard/DocsStats?getCount()J
??java/lang/IllegalStateExceptionjava/lang/StringBuilder	

-RCan't merge index with more than [2147483519] docs - too many documents in shards append-(Ljava/lang/String;)Ljava/lang/StringBuilder;

-(Ljava/lang/Object;)Ljava/lang/StringBuilder;

toStringL

(Ljava/lang/String;)V
$INDEX_ROUTING_PARTITION_SIZE_SETTING?	?"java/lang/IllegalArgumentExceptionEcannot provide a routing partition size value when shrinking an index 
shrink_index#causeX(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;%&
g'index.number_of_shards)K(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/settings/Settings$Builder;?+

,|(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;?.
g/Tcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest1j(Lcom/groupbyinc/flux/transport/TransportMessage;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V3
24timeout-()Lcom/groupbyinc/flux/common/unit/TimeValue;67
g8
ackTimeouth(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateRequest;:;
2<masterNodeTimeout>7
g?>;
2A?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;?C
2Daliases()Ljava/util/Set;FG
gHg(Ljava/util/Set;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;FJ
2Kcustoms()Ljava/util/Map;MN
gOg(Ljava/util/Map;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;MQ
2RwaitForActiveShards7()Lcom/groupbyinc/flux/action/support/ActiveShardCount;TU
gV?(Lcom/groupbyinc/flux/action/support/ActiveShardCount;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;TX
2YgetIndex#()Lcom/groupbyinc/flux/index/Index;[\
?]
shrinkFromy(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;_`
2a	docsStats+Lcom/groupbyinc/flux/index/shard/DocsStats;)Lcom/groupbyinc/flux/index/shard/ShardId;shardIds:Ljava/util/Set;Ljava/util/Set;countJiIperShardDocStatsMLjava/util/function/IntFunction; Ljava/util/function/IntFunction;targetIndexDLcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest;targetIndexName4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;targetIndexSettings	numShardssettingsBuilder6Lcom/groupbyinc/flux/common/settings/Settings$Builder;?(Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/block/ClusterBlockException;TU
y?(Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)Vjava/lang/Exception|uv
~-()Lcom/groupbyinc/flux/action/ActionResponse;OP
?
access$000?(Lcom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction;)Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;x0
access$100?(Lcom/groupbyinc/flux/action/admin/indices/shrink/TransportShrinkAction;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;CodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTable	Signature?(Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V
StackMapTableP(Lcom/groupbyinc/flux/action/admin/indices/shrink/ShrinkRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/function/IntFunction;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexClusterStateUpdateRequest;
ExceptionsBootstrapMethods
SourceFileInnerClasses!??		!*+ ,-?5?8*?:*?!?@!AB!CD!EF!!GH!IJ!?<>? @?KL?-N??=>?EOP?2?RY?S??=>?JTU?P,?[?a+?e?j?p?? =>qrst?Ouv??A*?x+?{??:*?A?rAstA??
4???A???U
V@m?????!m-*?{??:*?e:-?j??:+????:??????Ķȶ?:6	???י?????ܶ?6	6

	?~
	??:	7??:???W????:,?????:?
?a7?? ?Y?
Y?
?????????
?????י?Y!?"?$?(W????:

*	?-W
?0W?2Y$?j?5?9?=?2?@?B?2???E?I?L?P?S?W?Z?^?b????5cd?E?enjfhqgij\?kl
m?rmstmmomIJ
c??]pqRr?&G?s;2t@>/ul	fvw
?njfgmmn??$r
stu&v3w;x>yIzY|c}n~q?????????????|???????????%?0?;?F?N?V?^?f?l??F?Y
+W?}?g???????4??%????DTx?4
*+?+,?z??
=>?3Du{?5*+?+,-???=>?3?}DO??/*????=>?3???/*?x???>?3???/*?:???>?3?')/1???"

		




© 2015 - 2025 Weber Informatics LLC | Privacy Policy