public class TaskExecutionResource extends org.springframework.hateoas.RepresentationModel<TaskExecutionResource>
Modifier and Type | Class and Description |
---|---|
static class |
TaskExecutionResource.Page |
Constructor and Description |
---|
TaskExecutionResource() |
TaskExecutionResource(org.springframework.cloud.task.repository.TaskExecution taskExecution)
Constructor to initialize the TaskExecutionResource using a
TaskExecution . |
TaskExecutionResource(TaskJobExecutionRel taskJobExecutionRel)
Constructor to initialize the TaskExecutionResource using
TaskJobExecutionRel . |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAppProperties() |
List<String> |
getArguments() |
Map<String,String> |
getDeploymentProperties() |
Date |
getEndTime() |
String |
getErrorMessage() |
long |
getExecutionId() |
Integer |
getExitCode() |
String |
getExitMessage() |
String |
getExternalExecutionId() |
List<Long> |
getJobExecutionIds() |
Long |
getParentExecutionId() |
String |
getResourceUrl() |
Date |
getStartTime() |
TaskExecutionStatus |
getTaskExecutionStatus()
Returns the calculated status of this
TaskExecution . |
String |
getTaskName() |
public TaskExecutionResource()
public TaskExecutionResource(TaskJobExecutionRel taskJobExecutionRel)
TaskJobExecutionRel
.taskJobExecutionRel
- contains the TaskExecution
but also a list of
the Job ExecutionIds that were associated with this task if applicable.public TaskExecutionResource(org.springframework.cloud.task.repository.TaskExecution taskExecution)
TaskExecution
.taskExecution
- contains the TaskExecution
public long getExecutionId()
public Integer getExitCode()
public String getTaskName()
public Date getStartTime()
public Date getEndTime()
public String getExitMessage()
public String getErrorMessage()
public String getExternalExecutionId()
public Long getParentExecutionId()
public String getResourceUrl()
public TaskExecutionStatus getTaskExecutionStatus()
TaskExecution
.
If startTime
is
null, the TaskExecution
is considered to be not running (never executed).
If endTime
is
null, the TaskExecution
is considered to be still running:
TaskExecutionStatus.RUNNING
. If the endTime
is defined and the
exitCode
is non-zero, an status of TaskExecutionStatus.ERROR
is assumed,
if exitCode
is zero, TaskExecutionStatus.COMPLETE
is returned.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.