Class TaskJobExecution
java.lang.Object
org.springframework.cloud.dataflow.rest.job.TaskJobExecution
The relation a
JobExecution
has with its associated task execution id.- Author:
- Glenn Renfro
-
Constructor Summary
ConstructorsConstructorDescriptionTaskJobExecution
(long taskId, org.springframework.batch.core.JobExecution jobExecution, boolean isTaskDefined) TaskJobExecution
(long taskId, org.springframework.batch.core.JobExecution jobExecution, boolean isTaskDefined, int stepExecutionCount) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.batch.core.JobExecution
int
The number of steps executions contained in the job execution.long
boolean
toString()
-
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
-