Package com.exoscale.sdk.model
Class SearchTaskSettings
java.lang.Object
com.exoscale.sdk.model.SearchTaskSettings
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class SearchTaskSettings
extends Object
SearchTaskSettings
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancellationBurst
(BigDecimal cancellationBurst) cancellationRate
(BigDecimal cancellationRate) cancellationRatio
(BigDecimal cancellationRatio) cpuTimeMillisThreshold
(Integer cpuTimeMillisThreshold) elapsedTimeMillisThreshold
(Integer elapsedTimeMillisThreshold) boolean
Return true if this Search_task_settings object is equal to o.The maximum number of search tasks to cancel in a single iteration of the observer thread.The maximum number of search tasks to cancel per millisecond of elapsed time.The maximum number of search tasks to cancel, as a percentage of successful search task completions.The CPU usage threshold (in milliseconds) required for an individual parent task before it is considered for cancellation.The elapsed time threshold (in milliseconds) required for an individual parent task before it is considered for cancellation.The window size used to calculate the rolling average of the heap usage for the completed parent tasks.The heap usage threshold (as a percentage) required for an individual parent task before it is considered for cancellation.The heap usage variance required for an individual parent task before it is considered for cancellation.The heap usage threshold (as a percentage) required for the sum of heap usages of all search tasks before cancellation is applied.int
hashCode()
heapMovingAverageWindowSize
(Integer heapMovingAverageWindowSize) heapPercentThreshold
(BigDecimal heapPercentThreshold) heapVariance
(BigDecimal heapVariance) void
setCancellationBurst
(BigDecimal cancellationBurst) void
setCancellationRate
(BigDecimal cancellationRate) void
setCancellationRatio
(BigDecimal cancellationRatio) void
setCpuTimeMillisThreshold
(Integer cpuTimeMillisThreshold) void
setElapsedTimeMillisThreshold
(Integer elapsedTimeMillisThreshold) void
setHeapMovingAverageWindowSize
(Integer heapMovingAverageWindowSize) void
setHeapPercentThreshold
(BigDecimal heapPercentThreshold) void
setHeapVariance
(BigDecimal heapVariance) void
setTotalHeapPercentThreshold
(BigDecimal totalHeapPercentThreshold) toString()
totalHeapPercentThreshold
(BigDecimal totalHeapPercentThreshold) Convert the instance into URL query string.toUrlQueryString
(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_TOTAL_HEAP_PERCENT_THRESHOLD
- See Also:
-
JSON_PROPERTY_ELAPSED_TIME_MILLIS_THRESHOLD
- See Also:
-
JSON_PROPERTY_CANCELLATION_RATE
- See Also:
-
JSON_PROPERTY_HEAP_VARIANCE
- See Also:
-
JSON_PROPERTY_HEAP_MOVING_AVERAGE_WINDOW_SIZE
- See Also:
-
JSON_PROPERTY_CANCELLATION_RATIO
- See Also:
-
JSON_PROPERTY_HEAP_PERCENT_THRESHOLD
- See Also:
-
JSON_PROPERTY_CPU_TIME_MILLIS_THRESHOLD
- See Also:
-
JSON_PROPERTY_CANCELLATION_BURST
- See Also:
-
-
Constructor Details
-
SearchTaskSettings
public SearchTaskSettings()
-
-
Method Details
-
totalHeapPercentThreshold
-
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
-
elapsedTimeMillisThreshold
-
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
-
cancellationRate
-
getCancellationRate
The maximum number of search tasks to cancel per millisecond of elapsed time. Default is 0.003 minimum: 0.0- Returns:
- cancellationRate
-
setCancellationRate
-
heapVariance
-
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
-
heapMovingAverageWindowSize
-
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
-
cancellationRatio
-
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
-
heapPercentThreshold
-
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
-
cpuTimeMillisThreshold
-
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
-
cancellationBurst
-
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
-
equals
Return true if this Search_task_settings object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-