Module org.elasticsearch.server
Class EnableAssignmentDecider
java.lang.Object
org.elasticsearch.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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Allocation values or rather their string representation to be used used withCLUSTER_TASKS_ALLOCATION_ENABLE_SETTING
via cluster settings. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final Setting<EnableAssignmentDecider.Allocation>
-
Constructor Summary
-
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
-