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
AJobClientthat 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 Constructor Description WebSubmissionJobClient(org.apache.flink.api.common.JobID jobId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>cancel()CompletableFuture<Map<String,Object>>getAccumulators()CompletableFuture<org.apache.flink.api.common.JobExecutionResult>getJobExecutionResult()org.apache.flink.api.common.JobIDgetJobID()CompletableFuture<org.apache.flink.api.common.JobStatus>getJobStatus()CompletableFuture<String>stopWithSavepoint(boolean advanceToEndOfEventTime, String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType)CompletableFuture<String>triggerSavepoint(String savepointDirectory, org.apache.flink.core.execution.SavepointFormatType formatType)
-
-
-
Method Detail
-
getJobID
public org.apache.flink.api.common.JobID getJobID()
- Specified by:
getJobIDin interfaceorg.apache.flink.core.execution.JobClient
-
getJobStatus
public CompletableFuture<org.apache.flink.api.common.JobStatus> getJobStatus()
- Specified by:
getJobStatusin interfaceorg.apache.flink.core.execution.JobClient
-
cancel
public CompletableFuture<Void> 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
public CompletableFuture<Map<String,Object>> getAccumulators()
- Specified by:
getAccumulatorsin interfaceorg.apache.flink.core.execution.JobClient
-
getJobExecutionResult
public CompletableFuture<org.apache.flink.api.common.JobExecutionResult> getJobExecutionResult()
- Specified by:
getJobExecutionResultin interfaceorg.apache.flink.core.execution.JobClient
-
-