public class TaskExecutionState extends Object implements Serializable
| Constructor and Description |
|---|
TaskExecutionState(org.apache.flink.api.common.JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState)
Creates a new task execution state update, with no attached exception.
|
TaskExecutionState(org.apache.flink.api.common.JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState,
Throwable error)
Creates a new task execution state update, with an attached exception.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Throwable |
getError(ClassLoader usercodeClassloader)
Gets the attached exception.
|
ExecutionState |
getExecutionState()
Returns the new execution state of the task.
|
ExecutionAttemptID |
getID()
Returns the ID of the task this result belongs to
|
org.apache.flink.api.common.JobID |
getJobID()
The ID of the job the task belongs to
|
int |
hashCode() |
String |
toString() |
public TaskExecutionState(org.apache.flink.api.common.JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState)
jobID - the ID of the job the task belongs toexecutionId - the ID of the task execution whose state is to be reportedexecutionState - the execution state to be reportedpublic TaskExecutionState(org.apache.flink.api.common.JobID jobID,
ExecutionAttemptID executionId,
ExecutionState executionState,
Throwable error)
jobID - the ID of the job the task belongs toexecutionId - the ID of the task execution whose state is to be reportedexecutionState - the execution state to be reportederror - an optional errorpublic Throwable getError(ClassLoader usercodeClassloader)
usercodeClassloader - The class loader for the user code of the
job this update refers to.public ExecutionAttemptID getID()
public ExecutionState getExecutionState()
public org.apache.flink.api.common.JobID getJobID()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.