com.groupbyinc.flux.cluster.routing.allocation.DiskThresholdSettings.class Maven / Gradle / Ivy
???? 4? Dcom/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings java/lang/Object DiskThresholdSettings.java Xcom/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings$FloodStageValidator FloodStageValidator _com/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings$HighDiskWatermarkValidator HighDiskWatermarkValidator ^com/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings$LowDiskWatermarkValidator LowDiskWatermarkValidator 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property 5com/groupbyinc/flux/common/settings/Setting$Validator Validator %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup 9CLUSTER_ROUTING_ALLOCATION_DISK_THRESHOLD_ENABLED_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; BLcom/groupbyinc/flux/common/settings/Setting; 5CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING ALcom/groupbyinc/flux/common/settings/Setting; 6CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING =CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING 6CLUSTER_ROUTING_ALLOCATION_INCLUDE_RELOCATIONS_SETTING 3CLUSTER_ROUTING_ALLOCATION_REROUTE_INTERVAL_SETTING ZLcom/groupbyinc/flux/common/settings/Setting; lowWatermarkRaw Ljava/lang/String; highWatermarkRaw freeDiskThresholdLow Ljava/lang/Double; freeDiskThresholdHigh freeBytesThresholdLow /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; freeBytesThresholdHigh includeRelocations Z enabled rerouteInterval +Lcom/groupbyinc/flux/common/unit/TimeValue;
floodStageRaw freeDiskThresholdFloodStage freeBytesThresholdFloodStage f(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V ()V 7 9
: < get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; > ?
@ java/lang/String B ! D " F setHighWatermark (Ljava/lang/String;)V H I
J setLowWatermark L I
M setFloodStageRaw O I
P # R java/lang/Boolean T booleanValue ()Z V W
U X / 0 Z $ \ )com/groupbyinc/flux/common/unit/TimeValue ^ 2 3 ` b 1 0 d "java/lang/invoke/LambdaMetafactory f 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; h i
g j k (Ljava/lang/Object;)V m N I accept e(Lcom/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings;)Ljava/util/function/Consumer; q r s 3com/groupbyinc/flux/common/settings/ClusterSettings u addSettingsUpdateConsumer M(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V w x
v y K s Q s setIncludeRelocations (Z)V ?
? ? (Ljava/lang/Boolean;)V ? s setRerouteInterval .(Lcom/groupbyinc/flux/common/unit/TimeValue;)V ? ?
? ? ? s
setEnabled ? ?
? ? s this FLcom/groupbyinc/flux/cluster/routing/allocation/DiskThresholdSettings; settings .Lcom/groupbyinc/flux/common/settings/Settings; clusterSettings 5Lcom/groupbyinc/flux/common/settings/ClusterSettings; lowWatermark
highWatermark
floodStage
doValidate 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V /com/groupbyinc/flux/ElasticsearchParseException ? doValidateAsPercentage ? ?
? doValidateAsBytes ? ?
? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? Qunable to consistently parse [%s=%s], [%s=%s], and [%s=%s] as percentage or bytes ? getKey ()Ljava/lang/String; ? ?
? format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
C ? "java/lang/IllegalArgumentException ? *(Ljava/lang/String;Ljava/lang/Throwable;)V 7 ?
? ? message e 1Lcom/groupbyinc/flux/ElasticsearchParseException; low high flood thresholdPercentageFromWatermark (Ljava/lang/String;Z)D ? ?
? java/lang/StringBuilder ?
? : low disk watermark [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? !] more than high disk watermark [ ? ] ? toString ? ?
? ? 7 I
? ? high disk watermark [ ? (] more than flood stage disk watermark [ ? lowWatermarkThreshold D highWatermarkThreshold floodThreshold thresholdBytesFromWatermark V(Ljava/lang/String;Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; ? ?
? -com/groupbyinc/flux/common/unit/ByteSizeValue ? getBytes ()J ? ?
? ? !] less than high disk watermark [ ? (] less than flood stage disk watermark [ ? lowWatermarkBytes highWatermarkBytes floodStageBytes &