Class SendTask

java.lang.Object
cz.metacentrum.perun.taskslib.model.SendTask
All Implemented Interfaces:
Serializable

public class SendTask extends Object implements Serializable
Sending part of original Task. Task is usually split between multiple SendTasks, each of them associated with one Destination. Results are then grouped and used to determine state of a whole Task.
See Also:
  • Constructor Details

    • SendTask

      public SendTask(Task task, Destination destination)
      Create new SendTask for Task and Destination
      Parameters:
      task -
      destination -
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getDestination

      public Destination getDestination()
      Get Destination associated with this SendTask
      Returns:
      Destination associated with this SendTask
    • setDestination

      public void setDestination(Destination destination)
      Set Destination associated with this SendTask
      Parameters:
      destination - Destination associated with this SendTask
    • getEndTime

      public Date getEndTime()
      Get time when sending of Task ended.
      Returns:
      Time when sending ended
    • setEndTime

      public void setEndTime(Date endTime)
      Set time when sending of Task ended.
      Parameters:
      endTime - Time when sending ended
    • getId

      public Pair<Integer,Destination> getId()
      Get ID of SendTask as a pair of Task ID and Destination
      Returns:
      ID of SendTask
    • getReturnCode

      public Integer getReturnCode()
      Get return code of sending script
      Returns:
      Return code of sending script
    • setReturnCode

      public void setReturnCode(Integer returnCode)
      Set return code of sending script
      Parameters:
      returnCode - Return code of sending script
    • getStartTime

      public Date getStartTime()
      Get time when sending of Task started.
      Returns:
      Time when sending started
    • setStartTime

      public void setStartTime(Date startTime)
      Set time when sending of Task started.
      Parameters:
      startTime - Time when sending started
    • getStatus

      public SendTask.SendTaskStatus getStatus()
      Get Status of SendTask
      Returns:
      Status of SendTask
    • setStatus

      public void setStatus(SendTask.SendTaskStatus status)
      Set Status of SendTask
      Parameters:
      status - Status of SendTask
    • getStderr

      public String getStderr()
      Get STDERR of sending script
      Returns:
      STDERR of sending script
    • setStderr

      public void setStderr(String stderr)
      Set STDERR of sending script
      Parameters:
      stderr - STDERR of sending script
    • getStdout

      public String getStdout()
      Get STDOUT of sending script
      Returns:
      STDOUT of sending script
    • setStdout

      public void setStdout(String stdout)
      Set STDOUT of sending script
      Parameters:
      stdout - STDOUT of sending script
    • getTask

      public Task getTask()
      Get Task associated with this SendTask
      Returns:
      Task associated with this SendTask
    • setTask

      public void setTask(Task task)
      Set Task associated with this SendTask
      Parameters:
      task - Task associated with this SendTask
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setId

      public void setId()
      Set SendTask ID as a pair of Task ID and Destination
    • toString

      public String toString()
      Overrides:
      toString in class Object