Class EmbeddedJobClient
java.lang.Object
org.apache.flink.client.deployment.application.EmbeddedJobClient
- All Implemented Interfaces:
org.apache.flink.core.execution.JobClient,org.apache.flink.runtime.operators.coordination.CoordinationRequestGateway
@Internal
public class EmbeddedJobClient
extends Object
implements org.apache.flink.core.execution.JobClient, org.apache.flink.runtime.operators.coordination.CoordinationRequestGateway
A
JobClient with the ability to also submit jobs which uses directly the DispatcherGateway.-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedJobClient(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, org.apache.flink.util.concurrent.ScheduledExecutor retryExecutor, Duration rpcTimeout, ClassLoader classLoader) -
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>CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse>sendCoordinationRequest(String operatorUid, org.apache.flink.runtime.operators.coordination.CoordinationRequest request) 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
-
EmbeddedJobClient
public EmbeddedJobClient(org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.dispatcher.DispatcherGateway dispatcherGateway, org.apache.flink.util.concurrent.ScheduledExecutor retryExecutor, Duration rpcTimeout, ClassLoader classLoader)
-
-
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
-
sendCoordinationRequest
public CompletableFuture<org.apache.flink.runtime.operators.coordination.CoordinationResponse> sendCoordinationRequest(String operatorUid, org.apache.flink.runtime.operators.coordination.CoordinationRequest request) - Specified by:
sendCoordinationRequestin interfaceorg.apache.flink.runtime.operators.coordination.CoordinationRequestGateway
-