Package org.opensearch.tasks
Class TaskCancellationMonitoringSettings
java.lang.Object
org.opensearch.tasks.TaskCancellationMonitoringSettings
Settings related to task cancellation monitoring service.
-
Field Summary
FieldsModifier and TypeFieldDescriptionSetting which defines the duration threshold(in millis) of current running cancelled tasks above which they are tracked as part of stats.static final long
Defines the interval(in millis) at which task cancellation service monitors and gather stats.static final long
Setting to enable/disable monitoring service.static final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionTaskCancellationMonitoringSettings
(Settings settings, ClusterSettings clusterSettings) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.common.unit.TimeValue
org.opensearch.common.unit.TimeValue
boolean
void
setDurationMillis
(long durationMillis) void
setIsEnabled
(boolean isEnabled)
-
Field Details
-
INTERVAL_MILLIS_SETTING_DEFAULT_VALUE
public static final long INTERVAL_MILLIS_SETTING_DEFAULT_VALUE- See Also:
-
DURATION_MILLIS_SETTING_DEFAULT_VALUE
public static final long DURATION_MILLIS_SETTING_DEFAULT_VALUE- See Also:
-
IS_ENABLED_SETTING_DEFAULT_VALUE
public static final boolean IS_ENABLED_SETTING_DEFAULT_VALUE- See Also:
-
INTERVAL_MILLIS_SETTING
Defines the interval(in millis) at which task cancellation service monitors and gather stats. -
DURATION_MILLIS_SETTING
Setting which defines the duration threshold(in millis) of current running cancelled tasks above which they are tracked as part of stats. -
IS_ENABLED_SETTING
Setting to enable/disable monitoring service.
-
-
Constructor Details
-
TaskCancellationMonitoringSettings
-
-
Method Details
-
getInterval
public org.opensearch.common.unit.TimeValue getInterval() -
getDuration
public org.opensearch.common.unit.TimeValue getDuration() -
setDurationMillis
public void setDurationMillis(long durationMillis) -
isEnabled
public boolean isEnabled() -
setIsEnabled
public void setIsEnabled(boolean isEnabled)
-