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.dataflow.schema.AggregateTaskExecution taskExecution,
TaskJobExecution composedTaskJobExecution)
Constructor to initialize the TaskExecutionResource using a
TaskExecution . |
TaskExecutionResource(org.springframework.cloud.dataflow.schema.AggregateTaskExecution taskExecution,
TaskManifest taskManifest,
TaskJobExecution composedTaskJobExecution)
Constructor to initialize the TaskExecutionResource using a
TaskExecution and TaskManifest . |
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 |
getPlatformName() |
String |
getResourceUrl() |
String |
getSchemaTarget() |
Date |
getStartTime() |
TaskExecutionStatus |
getTaskExecutionStatus()
Returns the calculated status of this
TaskExecution . |
String |
getTaskName() |
void |
setPlatformName(String platformName) |
void |
setSchemaTarget(String schemaTarget) |
void |
setTaskExecutionStatus(String taskExecutionStatus) |
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.dataflow.schema.AggregateTaskExecution taskExecution, TaskJobExecution composedTaskJobExecution)
TaskExecution
.taskExecution
- contains the TaskExecution
composedTaskJobExecution
- the optional composed task execution.public TaskExecutionResource(org.springframework.cloud.dataflow.schema.AggregateTaskExecution taskExecution, TaskManifest taskManifest, TaskJobExecution composedTaskJobExecution)
TaskExecution
and TaskManifest
.taskExecution
- contains the TaskExecution
taskManifest
- contains the (@link TaskManifest}composedTaskJobExecution
- The optional composed task execution.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 String getPlatformName()
public void setPlatformName(String platformName)
public String getSchemaTarget()
public void setSchemaTarget(String schemaTarget)
public void setTaskExecutionStatus(String taskExecutionStatus)
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 © 2024 Pivotal Software, Inc.. All rights reserved.