public class StatusListenerMessenger extends Object implements JobStatusListener, ExecutionStatusListener
JobStatusListener and ExecutionStatusListener that sends an actor message
for each status change.| Constructor and Description |
|---|
StatusListenerMessenger(akka.actor.ActorRef target,
UUID leaderSessionId) |
| Modifier and Type | Method and Description |
|---|---|
void |
executionStatusChanged(org.apache.flink.api.common.JobID jobID,
JobVertexID vertexID,
String taskName,
int taskParallelism,
int subtaskIndex,
ExecutionAttemptID executionID,
ExecutionState newExecutionState,
long timestamp,
String optionalMessage)
Called whenever the execution status of a task changes.
|
void |
jobStatusChanges(org.apache.flink.api.common.JobID jobId,
JobStatus newJobStatus,
long timestamp,
Throwable error)
This method is called whenever the status of the job changes.
|
public StatusListenerMessenger(akka.actor.ActorRef target,
UUID leaderSessionId)
public void jobStatusChanges(org.apache.flink.api.common.JobID jobId,
JobStatus newJobStatus,
long timestamp,
Throwable error)
JobStatusListenerjobStatusChanges in interface JobStatusListenerjobId - The ID of the job.newJobStatus - The status the job switched to.timestamp - The timestamp when the status transition occurred.error - In case the job status switches to a failure state, this is the
exception that caused the failure.public void executionStatusChanged(org.apache.flink.api.common.JobID jobID,
JobVertexID vertexID,
String taskName,
int taskParallelism,
int subtaskIndex,
ExecutionAttemptID executionID,
ExecutionState newExecutionState,
long timestamp,
String optionalMessage)
ExecutionStatusListenerexecutionStatusChanged in interface ExecutionStatusListenerjobID - The ID of the jobvertexID - The ID of the task vertextaskName - The name of the tasktaskParallelism - The parallelism of the tasksubtaskIndex - The subtask's parallel indexexecutionID - The ID of the execution attemptnewExecutionState - The status to which the task switchedtimestamp - The timestamp when the change occurred. Informational only.optionalMessage - An optional message attached to the status change, like an
exception message.Copyright © 2014–2019 The Apache Software Foundation. All rights reserved.