@PublicEvolving public class WebSubmissionJobClient extends Object implements org.apache.flink.core.execution.JobClient
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 and Description |
|---|
WebSubmissionJobClient(org.apache.flink.api.common.JobID jobId) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
cancel() |
CompletableFuture<Map<String,Object>> |
getAccumulators() |
CompletableFuture<org.apache.flink.api.common.JobExecutionResult> |
getJobExecutionResult() |
org.apache.flink.api.common.JobID |
getJobID() |
CompletableFuture<org.apache.flink.api.common.JobStatus> |
getJobStatus() |
CompletableFuture<String> |
stopWithSavepoint(boolean advanceToEndOfEventTime,
String savepointDirectory) |
CompletableFuture<String> |
triggerSavepoint(String savepointDirectory) |
public WebSubmissionJobClient(org.apache.flink.api.common.JobID jobId)
public org.apache.flink.api.common.JobID getJobID()
getJobID in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<org.apache.flink.api.common.JobStatus> getJobStatus()
getJobStatus in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<Void> cancel()
cancel in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<String> stopWithSavepoint(boolean advanceToEndOfEventTime, @Nullable String savepointDirectory)
stopWithSavepoint in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<String> triggerSavepoint(@Nullable String savepointDirectory)
triggerSavepoint in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<Map<String,Object>> getAccumulators()
getAccumulators in interface org.apache.flink.core.execution.JobClientpublic CompletableFuture<org.apache.flink.api.common.JobExecutionResult> getJobExecutionResult()
getJobExecutionResult in interface org.apache.flink.core.execution.JobClientCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.