@PublicEvolving public interface JobListener
#registerJobListener
of 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.
Modifier and Type | Method and Description |
---|---|
void |
onJobExecuted(JobExecutionResult jobExecutionResult,
Throwable throwable)
Callback on job execution finished, successfully or unsuccessfully.
|
void |
onJobSubmitted(JobClient jobClient,
Throwable throwable)
Callback on job submission.
|
void onJobSubmitted(@Nullable JobClient jobClient, @Nullable Throwable throwable)
execute()
or executeAsync()
is called.
Exactly one of the passed parameters is null, respectively for failure or success.
jobClient
- a JobClient
for the submitted Flink jobthrowable
- the cause if submission failedvoid onJobExecuted(@Nullable JobExecutionResult jobExecutionResult, @Nullable Throwable throwable)
execute()
instead of executeAsync()
methods of execution
environments.
Exactly one of the passed parameters is null, respectively for failure or success.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.