
com.groupbyinc.flux.cluster.metadata.MetaDataUpdateSettingsService.class Maven / Gradle / Ivy
???? 3? Bcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService 6com/groupbyinc/flux/common/component/AbstractComponent 0com/groupbyinc/flux/cluster/ClusterStateListener "MetaDataUpdateSettingsService.java Dcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$3 Dcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$2
Dcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService$1 java/util/Map$Entry
java/util/Map Entry 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings Builder ALL_NODES_VALUE Ljava/lang/String; all clusterService ,Lcom/groupbyinc/flux/cluster/ClusterService; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; dynamicSettings 6Lcom/groupbyinc/flux/cluster/settings/DynamicSettings; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; (Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/cluster/settings/DynamicSettings;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; 9Lcom/groupbyinc/flux/index/settings/IndexDynamicSettings; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V $ (
) + " # - *com/groupbyinc/flux/cluster/ClusterService / add 5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V 1 2 0 3 5 ! 7 this DLcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService; settings .Lcom/groupbyinc/flux/common/settings/Settings; clusterChanged 4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V java/lang/NumberFormatException ? java/lang/Exception A /com/groupbyinc/flux/cluster/ClusterChangedEvent C state ,()Lcom/groupbyinc/flux/cluster/ClusterState; E F
D G (com/groupbyinc/flux/cluster/ClusterState I nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; K L
J M /com/groupbyinc/flux/cluster/node/DiscoveryNodes O localNodeMaster ()Z Q R
P S dataNodes 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; U V
P W 3com/groupbyinc/flux/common/collect/ImmutableOpenMap Y size ()I [ \
Z ] java/util/HashMap _ ()V $ a
` b metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; d e
J f -com/groupbyinc/flux/cluster/metadata/MetaData h iterator I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator; j k
i l java/util/Iterator n hasNext p R o q next ()Ljava/lang/Object; s t o u 2com/groupbyinc/flux/cluster/metadata/IndexMetaData w getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; y z
x { index.auto_expand_replicas } get &(Ljava/lang/String;)Ljava/lang/String; ?
? #com/groupbyinc/flux/common/Booleans ? parseBoolean (Ljava/lang/String;Z)Z ? ?
? ? java/lang/String ? indexOf (I)I ? ?
? ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? Cfailed to set [{}] for index [{}], it should be dash delimited [{}] ? java/lang/Object ? getIndex ()Ljava/lang/String; ? ?
x ? +com/groupbyinc/flux/common/logging/ESLogger ? warn ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? substring (II)Ljava/lang/String; ? ?
? ? java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ?
? ? Efailed to set [{}] for index [{}], minimum value is not a number [{}] ? =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ? ? ? ? (I)Ljava/lang/String; ? ?
? ? equals (Ljava/lang/Object;)Z ? ?
? ? Rfailed to set [{}] for index [{}], maximum value is neither [{}] nor a number [{}] ? getNumberOfReplicas ? \
x ? valueOf (I)Ljava/lang/Integer; ? ?
? ? containsKey ? ? ? java/util/ArrayList ?
? b put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? java/util/List ? 1 ? ? ? )[{}] failed to parse auto expand replicas ? ] keySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ()Ljava/util/Iterator; j ? ? ? settingsBuilder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? index.number_of_replicas ? intValue ? \
? ? K(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? build ? z
? ]com/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest ?
? b ? ] toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? [Ljava/lang/String; ? indices W([Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ack/IndicesClusterStateUpdateRequest; ? ?
? ? ?(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest; ; ?
? ? )com/groupbyinc/flux/common/unit/TimeValue ? timeValueMillis .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ?
?
ackTimeout h(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/cluster/ack/ClusterStateUpdateRequest;
?
timeValueMinutes
?
masterNodeTimeout
?
j(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;Ljava/util/List;Ljava/lang/Integer;)V $
updateSettings ?(Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
min I e !Ljava/lang/NumberFormatException; max dash sMin sMax numberOfReplicas Ljava/lang/Exception; autoExpandReplicas
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; $Ljava/util/List; Ljava/util/List;
updateRequest _Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest; fNumberOfReplicas Ljava/lang/Integer; event 1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;
dataNodeCount nrReplicasChanged HLjava/util/Map;>; Ljava/util/Map; ; z
?/ f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?1
2 index.4 normalizePrefix J(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;67
8 internalMap ()Ljava/util/Map;:;
< index.number_of_shards> "java/lang/IllegalArgumentException@ .can't change the number of shards for an indexB (Ljava/lang/String;)V $D
AE )com/groupbyinc/flux/action/ActionListenerG onFailure (Ljava/lang/Throwable;)VIJHK 5com/groupbyinc/flux/common/google/common/collect/SetsM
newHashSet ()Ljava/util/HashSet;OP
NQ entrySetS ? T getKeyV t W 4com/groupbyinc/flux/cluster/settings/DynamicSettingsY hasDynamicSetting (Ljava/lang/String;)Z[\
Z] ? ? getValue` t a 0 G validateDynamicSetting b(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Ljava/lang/String;de
Zf java/lang/StringBuilderh
i b [k append -(Ljava/lang/String;)Ljava/lang/StringBuilder;mn
io ] - q toStrings ?
it isEmptyv R ?w can't process the settings: y
?t remove| ?
} update-settings #com/groupbyinc/flux/common/Priority? URGENT %Lcom/groupbyinc/flux/common/Priority;?? ???(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Set;Lcom/groupbyinc/flux/common/settings/Settings;)V $?
? submitStateUpdateTask I(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateUpdateTask;)V?? 0? key error setting ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; removedSetting request listener iLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; updatedSettingsBuilder 6Lcom/groupbyinc/flux/common/settings/Settings$Builder;
closeSettings removedSettings #Ljava/util/Set; Ljava/util/Set; errors openSettings upgradeIndexSettings ?(Lcom/groupbyinc/flux/action/admin/indices/upgrade/post/UpgradeSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V #update-index-compatibility-versions?%(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/cluster/ack/AckedRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/admin/indices/upgrade/post/UpgradeSettingsClusterStateUpdateRequest;)V $?
? `Lcom/groupbyinc/flux/action/admin/indices/upgrade/post/UpgradeSettingsClusterStateUpdateRequest;
access$000 s(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/common/logging/ESLogger; x0
access$100
access$200 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;
access$300
access$400 ?(Lcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;
ConstantValue Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations "RuntimeVisibleParameterAnnotations LocalVariableTypeTable
StackMapTable Signature ?(Lcom/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Lcom/groupbyinc/flux/action/admin/indices/upgrade/post/UpgradeSettingsClusterStateUpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
SourceFile InnerClasses ! ? ! " # $ % ? ? &*+? **,? ,*? .*? ,*? 4 *-? 6*? 8? ? > &