Interface TaskStatus
- 
 public interface TaskStatusCreated by colby.clegg on 3/30/2015.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetCurrentCompletionPercent()Returns a value, 0-100.0java.lang.StringgetCurrentMessage()Returns a message that will be displayed for the current state.java.lang.LonggetId()Returns an ID that refers to a single task.java.lang.StringgetName()Returns the user defined name of the taskjava.util.Optional<TaskState>getPreviousState()Indicates the state of a task before it got suspended.java.util.DategetStartTime()Returns the time that the task started, if it is currently running (or was running), or the next time the task will run.TaskStategetState()Indicates the current state of the task, and to some degree, indicates how getStartTime() should be interpreted.TaskTypegetTaskType()booleanisOneShot()If true, this indicates that the task will be run exactly once.
 
- 
- 
- 
Method Detail- 
getIdjava.lang.Long getId() Returns an ID that refers to a single task. The task type might be defined multiple times, and a task with this id might run multiple times, but there will never be more than one instance of it running at a time.
 - 
getTaskTypeTaskType getTaskType() 
 - 
getStateTaskState getState() Indicates the current state of the task, and to some degree, indicates how getStartTime() should be interpreted. If the state is not Running, but start time is in the past, then it is a one-shot task that has finished.
 - 
getPreviousStatejava.util.Optional<TaskState> getPreviousState() Indicates the state of a task before it got suspended. If this state was set, it will likely be Running, Waiting, or Scheduled.
 - 
getNamejava.lang.String getName() Returns the user defined name of the task
 - 
getCurrentMessagejava.lang.String getCurrentMessage() Returns a message that will be displayed for the current state.
 - 
getCurrentCompletionPercentdouble getCurrentCompletionPercent() Returns a value, 0-100.0
 - 
getStartTimejava.util.Date getStartTime() Returns the time that the task started, if it is currently running (or was running), or the next time the task will run.
 - 
isOneShotboolean isOneShot() If true, this indicates that the task will be run exactly once. Scheduled recurring tasks will return false.
 
- 
 
-