Interface SerializableTask
- All Known Subinterfaces:
TaskState
,TaskWithBlock
,TaskWithSteps
public interface SerializableTask
Represents a task.
A task is an activity in XL Deploy. The task contains a list of steps that must be executed to successfully complete
the task.
-
Method Details
-
getState
TaskExecutionState getState()- Returns:
- The execution state of a task.
-
getId
String getId()- Returns:
- The task id.
-
getDescription
String getDescription()- Returns:
- Textual description of the task.
-
getScheduledDate
org.joda.time.DateTime getScheduledDate()- Returns:
- The scheduled date and time for the execution of the task.
-
getStartDate
org.joda.time.DateTime getStartDate()- Returns:
- The date and time the execution of the steps was started.
-
getCompletionDate
org.joda.time.DateTime getCompletionDate()- Returns:
- The date and time the execution of the steps was completed.
-
getMetadata
- Returns:
- Map with metadata (custom properties) for this task.
-
getFailureCount
int getFailureCount()- Returns:
- The number of times this task has failed.
-
getOwner
String getOwner()- Returns:
- The id of the user that is the owner of this task.
-
getPackageDependencies
List<TaskPackageDependency> getPackageDependencies()- Returns:
- The list of dependent packages of this task
-
getWorkerId
Integer getWorkerId()- Returns:
- The (technical) id of the worker that is handling this task.
-