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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.joda.time.DateTime
getCompletionDate()
java.lang.String
getDescription()
int
getFailureCount()
java.lang.String
getId()
java.util.Map<java.lang.String,java.lang.String>
getMetadata()
java.lang.String
getOwner()
java.util.List<TaskPackageDependency>
getPackageDependencies()
org.joda.time.DateTime
getScheduledDate()
org.joda.time.DateTime
getStartDate()
TaskExecutionState
getState()
java.lang.Integer
getWorkerId()
-
-
-
Method Detail
-
getState
TaskExecutionState getState()
- Returns:
- The execution state of a task.
-
getId
java.lang.String getId()
- Returns:
- The task id.
-
getDescription
java.lang.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
java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Returns:
- Map with metadata (custom properties) for this task.
-
getFailureCount
int getFailureCount()
- Returns:
- The number of times this task has failed.
-
getOwner
java.lang.String getOwner()
- Returns:
- The id of the user that is the owner of this task.
-
getPackageDependencies
java.util.List<TaskPackageDependency> getPackageDependencies()
- Returns:
- The list of dependent packages of this task
-
getWorkerId
java.lang.Integer getWorkerId()
- Returns:
- The (technical) id of the worker that is handling this task.
-
-