public interface VMTaskFitnessCalculator
| Modifier and Type | Method and Description |
|---|---|
double |
calculateFitness(TaskRequest taskRequest,
VirtualMachineCurrentState targetVM,
TaskTrackerState taskTrackerState)
Calculates how well the task fits on the host.
|
java.lang.String |
getName()
Get the name of this fitness calculator.
|
java.lang.String getName()
double calculateFitness(TaskRequest taskRequest, VirtualMachineCurrentState targetVM, TaskTrackerState taskTrackerState)
taskRequest - the task whose resource requirements can be met by the Virtual MachinetargetVM - the prospective target host (VM) for given taskRequesttaskTrackerState - state of the task tracker that contains all tasks currently running and assigned