com.groupbyinc.flux.cluster.metadata.MetaDataUpdateSettingsService.class Maven / Gradle / Ivy
???? 4? 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 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder /com/groupbyinc/flux/cluster/block/ClusterBlocks clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; allocationService BLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService; indexScopedSettings 9Lcom/groupbyinc/flux/common/settings/IndexScopedSettings; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; $assertionsDisabled Z 7(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ( +
, . $ % 0 2com/groupbyinc/flux/cluster/service/ClusterService 2 addListener 5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V 4 5
3 6 8 ! : " # < this DLcom/groupbyinc/flux/cluster/metadata/MetaDataUpdateSettingsService; settings .Lcom/groupbyinc/flux/common/settings/Settings; clusterChanged 4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V /com/groupbyinc/flux/cluster/ClusterChangedEvent D state ,()Lcom/groupbyinc/flux/cluster/ClusterState; F G
E H (com/groupbyinc/flux/cluster/ClusterState J nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; L M
K N /com/groupbyinc/flux/cluster/node/DiscoveryNodes P isLocalNodeElectedMaster ()Z R S
Q T getDataNodes 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; V W
Q X 3com/groupbyinc/flux/common/collect/ImmutableOpenMap Z size ()I \ ]
[ ^ java/util/HashMap ` ()V ( b
a c metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; e f
K g -com/groupbyinc/flux/cluster/metadata/MetaData i iterator ()Ljava/util/Iterator; k l
j m java/util/Iterator o hasNext q S p r next ()Ljava/lang/Object; t u p v 2com/groupbyinc/flux/cluster/metadata/IndexMetaData x "INDEX_AUTO_EXPAND_REPLICAS_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; z { y | getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ~
y ? +com/groupbyinc/flux/common/settings/Setting ? get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; ? ?
? ? 7com/groupbyinc/flux/cluster/metadata/AutoExpandReplicas ? isEnabled ? S
? ? getMinReplicas ? ]
? ? getMaxReplicas (I)I ? ?
? ? getNumberOfReplicas ? ]
y ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? containsKey (Ljava/lang/Object;)Z ? ? ? java/util/ArrayList ?
? c put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? java/util/List ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
y ? add ? ? ? ? ^ keySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? m builder 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 ?
? ]com/groupbyinc/flux/action/admin/indices/settings/put/UpdateSettingsClusterStateUpdateRequest ?
? c ? ^ com/groupbyinc/flux/index/Index ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? "[Lcom/groupbyinc/flux/index/Index; ? indices f([Lcom/groupbyinc/flux/index/Index;)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 max numberOfReplicas autoExpandReplicas 9Lcom/groupbyinc/flux/cluster/metadata/AutoExpandReplicas;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; 3Ljava/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 WLjava/util/Map;>; Ljava/util/Map; @
? 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;
7com/groupbyinc/flux/common/settings/IndexScopedSettings validate +
getAsMap ()Ljava/util/Map;
entrySet ? )com/groupbyinc/flux/action/ActionListener" getKey$ u % java/lang/String' A(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Setting; ?)
* &