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(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(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(JobID jobId, JobStatus newJobStatus, long timestamp, Throwable error)
JobStatusListener
jobStatusChanges
in interface JobStatusListener
jobId
- 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(JobID jobID, JobVertexID vertexID, String taskName, int taskParallelism, int subtaskIndex, ExecutionAttemptID executionID, ExecutionState newExecutionState, long timestamp, String optionalMessage)
ExecutionStatusListener
executionStatusChanged
in interface ExecutionStatusListener
jobID
- 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.