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 Detail

      • 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.