Module org.elasticsearch.server
Enum Class DataStreamAutoShardingService.WriteLoadMetric
java.lang.Object
java.lang.Enum<DataStreamAutoShardingService.WriteLoadMetric>
org.elasticsearch.action.datastreams.autosharding.DataStreamAutoShardingService.WriteLoadMetric
- All Implemented Interfaces:
Serializable,Comparable<DataStreamAutoShardingService.WriteLoadMetric>,Constable
- Enclosing class:
DataStreamAutoShardingService
public static enum DataStreamAutoShardingService.WriteLoadMetric
extends Enum<DataStreamAutoShardingService.WriteLoadMetric>
Enumerates the different ways of measuring write load which we can choose between to use in the auto-sharding calculations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn unweighted average of the load across the whole time since each shard started (seeIndexingStats.Stats.getWriteLoad()).A measure of the peak value observed for theRECENTmetric (seeIndexingStats.Stats.getPeakWriteLoad()).A weighted average of the load favoring recent load (seeIndexingStats.Stats.getRecentWriteLoad()). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL_TIME
An unweighted average of the load across the whole time since each shard started (seeIndexingStats.Stats.getWriteLoad()). -
RECENT
A weighted average of the load favoring recent load (seeIndexingStats.Stats.getRecentWriteLoad()). -
PEAK
A measure of the peak value observed for theRECENTmetric (seeIndexingStats.Stats.getPeakWriteLoad()).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-