Package gov.nasa.pds.tools.validate.task
Interface TaskAdvisor
-
public interface TaskAdvisorDefines an interface that a task may use to find out whether it should exit early.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancelRequested()Tests whether the task is being asked to cancel early.voidsetStatus(Task.Status status)Sets the status of the task.
-
-
-
Method Detail
-
cancelRequested
boolean cancelRequested()
Tests whether the task is being asked to cancel early.- Returns:
- true, if the task should cancel itself
-
setStatus
void setStatus(Task.Status status)
Sets the status of the task.- Parameters:
status- the new status
-
-