@Internal public class EmbeddedJobClient extends Object implements org.apache.flink.core.execution.JobClient, org.apache.flink.runtime.operators.coordination.CoordinationRequestGateway
JobClient with the ability to also submit jobs which uses directly the DispatcherGateway.| Constructor and Description |
|---|
EmbeddedJobClient(org.apache.flink.api.common.JobID jobId,
org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway,
org.apache.flink.runtime.concurrent.ScheduledExecutor retryExecutor,
org.apache.flink.api.common.time.Time rpcTimeout,
ClassLoader classLoader) |
| 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<org.apache.flink.runtime.operators.coordination.CoordinationResponse> |
sendCoordinationRequest(org.apache.flink.runtime.jobgraph.OperatorID operatorId,
org.apache.flink.runtime.operators.coordination.CoordinationRequest request) |
CompletableFuture<String> |
stopWithSavepoint(boolean advanceToEndOfEventTime,
String savepointDirectory) |
CompletableFuture<String> |
triggerSavepoint(String savepointDirectory) |
public EmbeddedJobClient(org.apache.flink.api.common.JobID jobId,
org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway,
org.apache.flink.runtime.concurrent.ScheduledExecutor retryExecutor,
org.apache.flink.api.common.time.Time rpcTimeout,
ClassLoader classLoader)
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.JobClientpublic CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> sendCoordinationRequest(org.apache.flink.runtime.jobgraph.OperatorID operatorId, org.apache.flink.runtime.operators.coordination.CoordinationRequest request)
sendCoordinationRequest in interface org.apache.flink.runtime.operators.coordination.CoordinationRequestGatewayCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.