public interface ExecutionListener
| Modifier and Type | Method and Description |
|---|---|
void |
executionStateChanged(JobID jobID,
ExecutionVertexID vertexID,
ExecutionState newExecutionState,
String optionalMessage)
Called when the execution state of the associated task has changed.
|
int |
getPriority()
Returns the priority of the execution listener object.
|
void |
userThreadFinished(JobID jobID,
ExecutionVertexID vertexID,
Thread userThread)
Called when a thread spawn by a user task has finished.
|
void |
userThreadStarted(JobID jobID,
ExecutionVertexID vertexID,
Thread userThread)
Called when the user task has started a new thread.
|
int getPriority()
void executionStateChanged(JobID jobID, ExecutionVertexID vertexID, ExecutionState newExecutionState, String optionalMessage)
newExecutionState may be out-dated by the time a particular execution listener is called.
To determine the most recent state of the respective task, it is recommended to store a reference on the
execution that represents it and then call getExecutionState() on the vertex within this method.jobID - the ID of the job the task belongs tovertexID - the ID of the task whose state has changednewExecutionState - the execution state the task has just switched tooptionalMessage - an optional message providing further information on the state changevoid userThreadStarted(JobID jobID, ExecutionVertexID vertexID, Thread userThread)
jobID - the ID of the job the task belongs tovertexID - the ID of the task that started of new threaduserThread - the user thread which has been startedvoid userThreadFinished(JobID jobID, ExecutionVertexID vertexID, Thread userThread)
jobID - the ID of the job the task belongs tovertexID - the ID of the task whose thread has finisheduserThread - the user thread which has finishedCopyright © 2014 The Apache Software Foundation. All rights reserved.