public interface ConstraintEvaluator
| Modifier and Type | Interface and Description |
|---|---|
static class |
ConstraintEvaluator.Result
The result of the evaluation of a
ConstraintEvaluator. |
| Modifier and Type | Method and Description |
|---|---|
ConstraintEvaluator.Result |
evaluate(TaskRequest taskRequest,
VirtualMachineCurrentState targetVM,
TaskTrackerState taskTrackerState)
Inspects a target to decide whether or not it meets the constraints appropriate to a particular task.
|
java.lang.String |
getName()
Returns the name of the constraint evaluator.
|
java.lang.String getName()
ConstraintEvaluator.Result evaluate(TaskRequest taskRequest, VirtualMachineCurrentState targetVM, TaskTrackerState taskTrackerState)
taskRequest - a description of the task to be assignedtargetVM - a description of the host that is a potential match for the tasktaskTrackerState - the current status of tasks and task assignments in the system at large