Class EnableAssignmentDecider
java.lang.Object
org.opensearch.persistent.decider.EnableAssignmentDecider
EnableAssignmentDecider
is used to allow/disallow the persistent tasks
to be assigned to cluster nodes.
Allocation settings can have the following values (non-casesensitive):
-
NONE
- no persistent tasks can be assigned -
ALL
- all persistent tasks can be assigned to nodes
- See Also:
- Opensearch.internal:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Allocation values or rather their string representation to be used used withCLUSTER_TASKS_ALLOCATION_ENABLE_SETTING
via cluster settings. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final Setting<EnableAssignmentDecider.Allocation>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aAssignmentDecision
whether the given persistent task can be assigned to a node of the cluster.void
setEnableAssignment
(EnableAssignmentDecider.Allocation enableAssignment)
-
Field Details
-
CLUSTER_TASKS_ALLOCATION_ENABLE_SETTING
public static final Setting<EnableAssignmentDecider.Allocation> CLUSTER_TASKS_ALLOCATION_ENABLE_SETTING -
ALLOCATION_NONE_EXPLANATION
- See Also:
-
-
Constructor Details
-
EnableAssignmentDecider
-
-
Method Details
-
setEnableAssignment
-
canAssign
Returns aAssignmentDecision
whether the given persistent task can be assigned to a node of the cluster. The decision depends on the current value of the settingCLUSTER_TASKS_ALLOCATION_ENABLE_SETTING
.- Returns:
- the
AssignmentDecision
-