Class SearchShardSettings


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class SearchShardSettings
    extends Object
    SearchShardSettings
    • Constructor Detail

      • SearchShardSettings

        public SearchShardSettings()
    • Method Detail

      • getTotalHeapPercentThreshold

        @Nullable
        public BigDecimal getTotalHeapPercentThreshold()
        The heap usage threshold (as a percentage) required for the sum of heap usages of all search shard tasks before cancellation is applied. Default is 0.5 minimum: 0.0 maximum: 1.0
        Returns:
        totalHeapPercentThreshold
      • setTotalHeapPercentThreshold

        public void setTotalHeapPercentThreshold​(BigDecimal totalHeapPercentThreshold)
      • getElapsedTimeMillisThreshold

        @Nullable
        public Integer getElapsedTimeMillisThreshold()
        The elapsed time threshold (in milliseconds) required for a single search shard task before it is considered for cancellation. Default is 30000 minimum: 0
        Returns:
        elapsedTimeMillisThreshold
      • setElapsedTimeMillisThreshold

        public void setElapsedTimeMillisThreshold​(Integer elapsedTimeMillisThreshold)
      • getCancellationRate

        @Nullable
        public BigDecimal getCancellationRate()
        The maximum number of tasks to cancel per millisecond of elapsed time. Default is 0.003 minimum: 0.0
        Returns:
        cancellationRate
      • setCancellationRate

        public void setCancellationRate​(BigDecimal cancellationRate)
      • getHeapVariance

        @Nullable
        public BigDecimal getHeapVariance()
        The minimum variance required for a single search shard task’s heap usage compared to the rolling average of previously completed tasks before it is considered for cancellation. Default is 2.0 minimum: 0.0
        Returns:
        heapVariance
      • setHeapVariance

        public void setHeapVariance​(BigDecimal heapVariance)
      • getHeapMovingAverageWindowSize

        @Nullable
        public Integer getHeapMovingAverageWindowSize()
        The number of previously completed search shard tasks to consider when calculating the rolling average of heap usage. Default is 100 minimum: 0
        Returns:
        heapMovingAverageWindowSize
      • setHeapMovingAverageWindowSize

        public void setHeapMovingAverageWindowSize​(Integer heapMovingAverageWindowSize)
      • getCancellationRatio

        @Nullable
        public BigDecimal getCancellationRatio()
        The maximum number of tasks to cancel, as a percentage of successful task completions. Default is 0.1 minimum: 0.0 maximum: 1.0
        Returns:
        cancellationRatio
      • setCancellationRatio

        public void setCancellationRatio​(BigDecimal cancellationRatio)
      • getHeapPercentThreshold

        @Nullable
        public BigDecimal getHeapPercentThreshold()
        The heap usage threshold (as a percentage) required for a single search shard task before it is considered for cancellation. Default is 0.5 minimum: 0.0 maximum: 1.0
        Returns:
        heapPercentThreshold
      • setHeapPercentThreshold

        public void setHeapPercentThreshold​(BigDecimal heapPercentThreshold)
      • getCpuTimeMillisThreshold

        @Nullable
        public Integer getCpuTimeMillisThreshold()
        The CPU usage threshold (in milliseconds) required for a single search shard task before it is considered for cancellation. Default is 15000 minimum: 0
        Returns:
        cpuTimeMillisThreshold
      • setCpuTimeMillisThreshold

        public void setCpuTimeMillisThreshold​(Integer cpuTimeMillisThreshold)
      • getCancellationBurst

        @Nullable
        public BigDecimal getCancellationBurst()
        The maximum number of search tasks to cancel in a single iteration of the observer thread. Default is 10.0 minimum: 1.0
        Returns:
        cancellationBurst
      • setCancellationBurst

        public void setCancellationBurst​(BigDecimal cancellationBurst)
      • equals

        public boolean equals​(Object o)
        Return true if this Search_shard_settings object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toUrlQueryString

        public String toUrlQueryString()
        Convert the instance into URL query string.
        Returns:
        URL query string
      • toUrlQueryString

        public String toUrlQueryString​(String prefix)
        Convert the instance into URL query string.
        Parameters:
        prefix - prefix of the query string
        Returns:
        URL query string