@Internal public interface JobStatusHook extends Serializable
Usage examples:
StreamGraph streamGraph = env.getStreamGraph();
streamGraph.registerJobStatusHook(myJobStatusHook);
streamGraph.setJobName("my_flink");
env.execute(streamGraph);
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onCanceled(org.apache.flink.api.common.JobID jobId)
When job get canceled by users.
|
void |
onCreated(org.apache.flink.api.common.JobID jobId)
When Job becomes
JobStatus.CREATED status, it would only be called one time. |
void |
onFailed(org.apache.flink.api.common.JobID jobId,
Throwable throwable)
When job failed finally.
|
void |
onFinished(org.apache.flink.api.common.JobID jobId)
When job finished successfully.
|
void onCreated(org.apache.flink.api.common.JobID jobId)
JobStatus.CREATED status, it would only be called one time.void onFinished(org.apache.flink.api.common.JobID jobId)
void onFailed(org.apache.flink.api.common.JobID jobId,
Throwable throwable)
void onCanceled(org.apache.flink.api.common.JobID jobId)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.