Class WebSubmissionJobClient
java.lang.Object
org.apache.flink.client.deployment.application.WebSubmissionJobClient
- All Implemented Interfaces:
org.apache.flink.core.execution.JobClient
@PublicEvolving
public class WebSubmissionJobClient
extends Object
implements org.apache.flink.core.execution.JobClient
A
JobClient that only allows asking for the job id of the job it is attached to.
This is used in web submission, where we do not want the Web UI to have jobs blocking threads while waiting for their completion.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancel()CompletableFuture<org.apache.flink.api.common.JobExecutionResult>org.apache.flink.api.common.JobIDgetJobID()CompletableFuture<org.apache.flink.api.common.JobStatus>stopWithSavepoint(boolean advanceToEndOfEventTime, String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType) triggerSavepoint(String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.core.execution.JobClient
reportHeartbeat
-
Constructor Details
-
WebSubmissionJobClient
public WebSubmissionJobClient(org.apache.flink.api.common.JobID jobId)
-
-
Method Details
-
getJobID
public org.apache.flink.api.common.JobID getJobID()- Specified by:
getJobIDin interfaceorg.apache.flink.core.execution.JobClient
-
getJobStatus
- Specified by:
getJobStatusin interfaceorg.apache.flink.core.execution.JobClient
-
cancel
- Specified by:
cancelin interfaceorg.apache.flink.core.execution.JobClient
-
stopWithSavepoint
public CompletableFuture<String> stopWithSavepoint(boolean advanceToEndOfEventTime, @Nullable String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType) - Specified by:
stopWithSavepointin interfaceorg.apache.flink.core.execution.JobClient
-
triggerSavepoint
public CompletableFuture<String> triggerSavepoint(@Nullable String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType) - Specified by:
triggerSavepointin interfaceorg.apache.flink.core.execution.JobClient
-
getAccumulators
- Specified by:
getAccumulatorsin interfaceorg.apache.flink.core.execution.JobClient
-
getJobExecutionResult
- Specified by:
getJobExecutionResultin interfaceorg.apache.flink.core.execution.JobClient
-