Class TaskExecution
java.lang.Object
org.springframework.cloud.task.repository.TaskExecution
Represents the state of the Task for each execution.
- Author:
- Glenn Renfro, Michael Minella, Ilayaperumal Gopinathan
-
Constructor Summary
ConstructorDescriptionTaskExecution
(long executionId, Integer exitCode, String taskName, LocalDateTime startTime, LocalDateTime endTime, String exitMessage, List<String> arguments, String errorMessage, String externalExecutionId) TaskExecution
(long executionId, Integer exitCode, String taskName, LocalDateTime startTime, LocalDateTime endTime, String exitMessage, List<String> arguments, String errorMessage, String externalExecutionId, Long parentExecutionId) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
setArguments
(List<String> arguments) void
setEndTime
(LocalDateTime endTime) void
setErrorMessage
(String errorMessage) void
setExitCode
(Integer exitCode) void
setExitMessage
(String exitMessage) void
setExternalExecutionId
(String externalExecutionId) void
setParentExecutionId
(Long parentExecutionId) void
setStartTime
(LocalDateTime startTime) void
setTaskName
(String taskName) toString()
-
Constructor Details
-
TaskExecution
public TaskExecution() -
TaskExecution
public TaskExecution(long executionId, Integer exitCode, String taskName, LocalDateTime startTime, LocalDateTime endTime, String exitMessage, List<String> arguments, String errorMessage, String externalExecutionId, Long parentExecutionId) -
TaskExecution
public TaskExecution(long executionId, Integer exitCode, String taskName, LocalDateTime startTime, LocalDateTime endTime, String exitMessage, List<String> arguments, String errorMessage, String externalExecutionId)
-
-
Method Details
-
getExecutionId
public long getExecutionId() -
getExitCode
-
setExitCode
-
getTaskName
-
setTaskName
-
getStartTime
-
setStartTime
-
getEndTime
-
setEndTime
-
getExitMessage
-
setExitMessage
-
getArguments
-
setArguments
-
getErrorMessage
-
setErrorMessage
-
getExternalExecutionId
-
setExternalExecutionId
-
getParentExecutionId
-
setParentExecutionId
-
toString
-