public class TaskAssignmentResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Integer> |
getAssignedPorts()
Returns a list of port numbers corresponding to the ports the task was assigned on the host.
|
ConstraintFailure |
getConstraintFailure()
Get the
ConstraintFailure corresponding to the task constraint that the host failed to meet. |
java.util.List<AssignmentFailure> |
getFailures()
Get a list of
AssignmentFailure s corresponding to the reasons why the assignment of this task to
the host did not succeed because of insufficient resources. |
double |
getFitness()
Get the result of the fitness calculation applied to this host for this task.
|
java.lang.String |
getHostname()
Returns the name of the host machine to which this task was attempted to be assigned.
|
TaskRequest |
getRequest()
Returns the
TaskRequest corresponding to the task whose assignment result this is. |
java.util.List<PreferentialNamedConsumableResourceSet.ConsumeResult> |
getrSets() |
java.lang.String |
getTaskId()
Returns the string identifier of the task request for the task whose assignment result this is.
|
boolean |
isSuccessful()
Indicates whether the assignment of this task to the host succeeded.
|
java.lang.String |
toString() |
public java.lang.String getTaskId()
public java.lang.String getHostname()
public java.util.List<java.lang.Integer> getAssignedPorts()
public java.util.List<PreferentialNamedConsumableResourceSet.ConsumeResult> getrSets()
public TaskRequest getRequest()
TaskRequest
corresponding to the task whose assignment result this is.TaskRequest
for this taskpublic boolean isSuccessful()
true
if this assignment succeeded, false
otherwisepublic java.util.List<AssignmentFailure> getFailures()
AssignmentFailure
s corresponding to the reasons why the assignment of this task to
the host did not succeed because of insufficient resources.public ConstraintFailure getConstraintFailure()
ConstraintFailure
corresponding to the task constraint that the host failed to meet.public double getFitness()
public java.lang.String toString()
toString
in class java.lang.Object