Class TaskJobExecution

java.lang.Object
org.springframework.cloud.dataflow.rest.job.TaskJobExecution

public class TaskJobExecution extends Object
The relation a JobExecution has with its associated task execution id.
Author:
Glenn Renfro
  • Constructor Details

    • TaskJobExecution

      public TaskJobExecution(long taskId, org.springframework.batch.core.JobExecution jobExecution, boolean isTaskDefined)
    • TaskJobExecution

      public TaskJobExecution(long taskId, org.springframework.batch.core.JobExecution jobExecution, boolean isTaskDefined, int stepExecutionCount)
  • Method Details

    • getTaskId

      public long getTaskId()
      Returns:
      the Task Id that is associated with the JobExecution.
    • getJobExecution

      public org.springframework.batch.core.JobExecution getJobExecution()
      Returns:
      the JobExecution that is associated with the task id.
    • isTaskDefined

      public boolean isTaskDefined()
      Returns:
      true if the Task Definition for the task id exists in the task repository else returns false.
    • getStepExecutionCount

      public int getStepExecutionCount()
      The number of steps executions contained in the job execution.
      Returns:
      int containing the number of step executions.
    • toString

      public String toString()
      Overrides:
      toString in class Object