Class SearchTaskSettings


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

      • SearchTaskSettings

        public SearchTaskSettings()
    • Method Detail

      • getTotalHeapPercentThreshold

        @Nullable
        public BigDecimal getTotalHeapPercentThreshold()
        The heap usage threshold (as a percentage) required for the sum of heap usages of all search 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 an individual parent task before it is considered for cancellation. Default is 45000 minimum: 0
        Returns:
        elapsedTimeMillisThreshold
      • setElapsedTimeMillisThreshold

        public void setElapsedTimeMillisThreshold​(Integer elapsedTimeMillisThreshold)
      • getCancellationRate

        @Nullable
        public BigDecimal getCancellationRate()
        The maximum number of search 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 heap usage variance required for an individual parent task before it is considered for cancellation. A task is considered for cancellation when taskHeapUsage is greater than or equal to heapUsageMovingAverage * variance. Default is 2.0 minimum: 0.0
        Returns:
        heapVariance
      • setHeapVariance

        public void setHeapVariance​(BigDecimal heapVariance)
      • heapMovingAverageWindowSize

        public SearchTaskSettings heapMovingAverageWindowSize​(Integer heapMovingAverageWindowSize)
      • getHeapMovingAverageWindowSize

        @Nullable
        public Integer getHeapMovingAverageWindowSize()
        The window size used to calculate the rolling average of the heap usage for the completed parent tasks. Default is 10 minimum: 0
        Returns:
        heapMovingAverageWindowSize
      • setHeapMovingAverageWindowSize

        public void setHeapMovingAverageWindowSize​(Integer heapMovingAverageWindowSize)
      • getCancellationRatio

        @Nullable
        public BigDecimal getCancellationRatio()
        The maximum number of search tasks to cancel, as a percentage of successful search 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 an individual parent task before it is considered for cancellation. Default is 0.2 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 an individual parent task before it is considered for cancellation. Default is 30000 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 5.0 minimum: 1.0
        Returns:
        cancellationBurst
      • setCancellationBurst

        public void setCancellationBurst​(BigDecimal cancellationBurst)
      • equals

        public boolean equals​(Object o)
        Return true if this Search_task_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