Class CheckpointResourcesCleanupRunner
java.lang.Object
org.apache.flink.runtime.dispatcher.cleanup.CheckpointResourcesCleanupRunner
- All Implemented Interfaces:
AutoCloseable,JobManagerRunner,org.apache.flink.util.AutoCloseableAsync
CheckpointResourcesCleanupRunner implements JobManagerRunner in a way, that only
the checkpoint-related resources are instantiated. It triggers any job-specific cleanup that's
usually performed by the JobMaster without rebuilding the corresponding ExecutionGraph.-
Constructor Summary
ConstructorsConstructorDescriptionCheckpointResourcesCleanupRunner(JobResult jobResult, CheckpointRecoveryFactory checkpointRecoveryFactory, SharedStateRegistryFactory sharedStateRegistryFactory, org.apache.flink.configuration.Configuration jobManagerConfiguration, Executor cleanupExecutor, long initializationTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionCancels the currently executed job.org.apache.flink.api.common.JobIDgetJobID()Get the job id of the executed job.Get theJobMasterGatewayof theJobMaster.Get the result future of this runner.booleanFlag indicating if the JobManagerRunner has been initialized.requestJob(Duration timeout) Requests theExecutionGraphInfoof the executed job.requestJobDetails(Duration timeout) Request the details of the executed job.CompletableFuture<org.apache.flink.api.common.JobStatus>requestJobStatus(Duration timeout) Requests the current job status.voidstart()Start the execution of theJobMaster.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.flink.util.AutoCloseableAsync
close
-
Constructor Details
-
Method Details
-
closeAsync
- Specified by:
closeAsyncin interfaceorg.apache.flink.util.AutoCloseableAsync
-
start
Description copied from interface:JobManagerRunnerStart the execution of theJobMaster.- Specified by:
startin interfaceJobManagerRunner- Throws:
Exception- if the JobMaster cannot be started
-
getJobMasterGateway
Description copied from interface:JobManagerRunnerGet theJobMasterGatewayof theJobMaster. The future is only completed if the JobMaster becomes leader.- Specified by:
getJobMasterGatewayin interfaceJobManagerRunner- Returns:
- Future with the JobMasterGateway once the underlying JobMaster becomes leader
-
getResultFuture
Description copied from interface:JobManagerRunnerGet the result future of this runner. The future is completed once the executed job reaches a globally terminal state or if the initialization of theJobMasterfails. If the result future is completed exceptionally viaJobNotFinishedException, then this signals that the job has not been completed successfully. All other exceptional completions denote an unexpected exception which leads to a process restart.- Specified by:
getResultFuturein interfaceJobManagerRunner- Returns:
- Future which is completed with the job result
-
getJobID
public org.apache.flink.api.common.JobID getJobID()Description copied from interface:JobManagerRunnerGet the job id of the executed job.- Specified by:
getJobIDin interfaceJobManagerRunner- Returns:
- job id of the executed job
-
cancel
Description copied from interface:JobManagerRunnerCancels the currently executed job.- Specified by:
cancelin interfaceJobManagerRunner- Parameters:
timeout- of this operation- Returns:
- Future acknowledge of the operation
-
requestJobStatus
Description copied from interface:JobManagerRunnerRequests the current job status.- Specified by:
requestJobStatusin interfaceJobManagerRunner- Parameters:
timeout- for the rpc call- Returns:
- Future containing the current job status
-
requestJobDetails
Description copied from interface:JobManagerRunnerRequest the details of the executed job.- Specified by:
requestJobDetailsin interfaceJobManagerRunner- Parameters:
timeout- for the rpc call- Returns:
- Future details of the executed job
-
requestJob
Description copied from interface:JobManagerRunnerRequests theExecutionGraphInfoof the executed job.- Specified by:
requestJobin interfaceJobManagerRunner- Parameters:
timeout- for the rpc call- Returns:
- Future which is completed with the
ExecutionGraphInfoof the executed job
-
isInitialized
public boolean isInitialized()Description copied from interface:JobManagerRunnerFlag indicating if the JobManagerRunner has been initialized.- Specified by:
isInitializedin interfaceJobManagerRunner- Returns:
- true if the JobManagerRunner has been initialized.
-