Package org.apache.flink.core.execution
Interface JobListener
-
@PublicEvolving public interface JobListenerA listener that is notified on specific job status changed, which should be firstly registered by#registerJobListenerof execution environments.It is highly recommended NOT to perform any blocking operation inside the callbacks. If you block the thread the invoker of environment execute methods is possibly blocked.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonJobExecuted(JobExecutionResult jobExecutionResult, Throwable throwable)Callback on job execution finished, successfully or unsuccessfully.voidonJobSubmitted(JobClient jobClient, Throwable throwable)Callback on job submission.
-
-
-
Method Detail
-
onJobSubmitted
void onJobSubmitted(@Nullable JobClient jobClient, @Nullable Throwable throwable)
Callback on job submission. This is called whenexecute()orexecuteAsync()is called.Exactly one of the passed parameters is null, respectively for failure or success.
- Parameters:
jobClient- aJobClientfor the submitted Flink jobthrowable- the cause if submission failed
-
onJobExecuted
void onJobExecuted(@Nullable JobExecutionResult jobExecutionResult, @Nullable Throwable throwable)
Callback on job execution finished, successfully or unsuccessfully. It is only called back when you callexecute()instead ofexecuteAsync()methods of execution environments.Exactly one of the passed parameters is null, respectively for failure or success.
-
-