@Internal public interface JobStatusHook extends Serializable
Usage examples:
StreamGraph streamGraph = env.getStreamGraph(); streamGraph.registerJobStatusHook(myJobStatusHook); streamGraph.setJobName("my_flink"); env.execute(streamGraph);
Modifier and Type | Method and Description |
---|---|
void |
onCanceled(JobID jobId)
When job get canceled by users.
|
void |
onCreated(JobID jobId)
When Job becomes
JobStatus.CREATED status, it would only be called one time. |
void |
onFailed(JobID jobId,
Throwable throwable)
When job failed finally.
|
void |
onFinished(JobID jobId)
When job finished successfully.
|
void onCreated(JobID jobId)
JobStatus.CREATED
status, it would only be called one time.void onFinished(JobID jobId)
void onCanceled(JobID jobId)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.