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 Modifier and Type Field Description static String
JSON_PROPERTY_CANCELLATION_BURST
static String
JSON_PROPERTY_CANCELLATION_RATE
static String
JSON_PROPERTY_CANCELLATION_RATIO
static String
JSON_PROPERTY_CPU_TIME_MILLIS_THRESHOLD
static String
JSON_PROPERTY_ELAPSED_TIME_MILLIS_THRESHOLD
static String
JSON_PROPERTY_HEAP_MOVING_AVERAGE_WINDOW_SIZE
static String
JSON_PROPERTY_HEAP_PERCENT_THRESHOLD
static String
JSON_PROPERTY_HEAP_VARIANCE
static String
JSON_PROPERTY_TOTAL_HEAP_PERCENT_THRESHOLD
-
Constructor Summary
Constructors Constructor Description SearchTaskSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchTaskSettings
cancellationBurst(BigDecimal cancellationBurst)
SearchTaskSettings
cancellationRate(BigDecimal cancellationRate)
SearchTaskSettings
cancellationRatio(BigDecimal cancellationRatio)
SearchTaskSettings
cpuTimeMillisThreshold(Integer cpuTimeMillisThreshold)
SearchTaskSettings
elapsedTimeMillisThreshold(Integer elapsedTimeMillisThreshold)
boolean
equals(Object o)
Return true if this Search_task_settings object is equal to o.BigDecimal
getCancellationBurst()
The maximum number of search tasks to cancel in a single iteration of the observer thread.BigDecimal
getCancellationRate()
The maximum number of search tasks to cancel per millisecond of elapsed time.BigDecimal
getCancellationRatio()
The maximum number of search tasks to cancel, as a percentage of successful search task completions.Integer
getCpuTimeMillisThreshold()
The CPU usage threshold (in milliseconds) required for an individual parent task before it is considered for cancellation.Integer
getElapsedTimeMillisThreshold()
The elapsed time threshold (in milliseconds) required for an individual parent task before it is considered for cancellation.Integer
getHeapMovingAverageWindowSize()
The window size used to calculate the rolling average of the heap usage for the completed parent tasks.BigDecimal
getHeapPercentThreshold()
The heap usage threshold (as a percentage) required for an individual parent task before it is considered for cancellation.BigDecimal
getHeapVariance()
The heap usage variance required for an individual parent task before it is considered for cancellation.BigDecimal
getTotalHeapPercentThreshold()
The heap usage threshold (as a percentage) required for the sum of heap usages of all search tasks before cancellation is applied.int
hashCode()
SearchTaskSettings
heapMovingAverageWindowSize(Integer heapMovingAverageWindowSize)
SearchTaskSettings
heapPercentThreshold(BigDecimal heapPercentThreshold)
SearchTaskSettings
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)
String
toString()
SearchTaskSettings
totalHeapPercentThreshold(BigDecimal totalHeapPercentThreshold)
String
toUrlQueryString()
Convert the instance into URL query string.String
toUrlQueryString(String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_TOTAL_HEAP_PERCENT_THRESHOLD
public static final String JSON_PROPERTY_TOTAL_HEAP_PERCENT_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ELAPSED_TIME_MILLIS_THRESHOLD
public static final String JSON_PROPERTY_ELAPSED_TIME_MILLIS_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CANCELLATION_RATE
public static final String JSON_PROPERTY_CANCELLATION_RATE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEAP_VARIANCE
public static final String JSON_PROPERTY_HEAP_VARIANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEAP_MOVING_AVERAGE_WINDOW_SIZE
public static final String JSON_PROPERTY_HEAP_MOVING_AVERAGE_WINDOW_SIZE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CANCELLATION_RATIO
public static final String JSON_PROPERTY_CANCELLATION_RATIO
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HEAP_PERCENT_THRESHOLD
public static final String JSON_PROPERTY_HEAP_PERCENT_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CPU_TIME_MILLIS_THRESHOLD
public static final String JSON_PROPERTY_CPU_TIME_MILLIS_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CANCELLATION_BURST
public static final String JSON_PROPERTY_CANCELLATION_BURST
- See Also:
- Constant Field Values
-
-
Method Detail
-
totalHeapPercentThreshold
public SearchTaskSettings totalHeapPercentThreshold(BigDecimal totalHeapPercentThreshold)
-
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)
-
elapsedTimeMillisThreshold
public SearchTaskSettings elapsedTimeMillisThreshold(Integer elapsedTimeMillisThreshold)
-
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)
-
cancellationRate
public SearchTaskSettings cancellationRate(BigDecimal cancellationRate)
-
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)
-
heapVariance
public SearchTaskSettings heapVariance(BigDecimal heapVariance)
-
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)
-
cancellationRatio
public SearchTaskSettings cancellationRatio(BigDecimal cancellationRatio)
-
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)
-
heapPercentThreshold
public SearchTaskSettings heapPercentThreshold(BigDecimal heapPercentThreshold)
-
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)
-
cpuTimeMillisThreshold
public SearchTaskSettings cpuTimeMillisThreshold(Integer cpuTimeMillisThreshold)
-
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)
-
cancellationBurst
public SearchTaskSettings cancellationBurst(BigDecimal cancellationBurst)
-
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.
-
toUrlQueryString
public String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
-