public class CheckpointResourcesCleanupRunner extends Object implements JobManagerRunner
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.| 构造器和说明 |
|---|
CheckpointResourcesCleanupRunner(JobResult jobResult,
CheckpointRecoveryFactory checkpointRecoveryFactory,
SharedStateRegistryFactory sharedStateRegistryFactory,
org.apache.flink.configuration.Configuration jobManagerConfiguration,
Executor cleanupExecutor,
long initializationTimestamp) |
| 限定符和类型 | 方法和说明 |
|---|---|
CompletableFuture<Acknowledge> |
cancel(org.apache.flink.api.common.time.Time timeout)
Cancels the currently executed job.
|
CompletableFuture<Void> |
closeAsync() |
org.apache.flink.api.common.JobID |
getJobID()
Get the job id of the executed job.
|
CompletableFuture<JobMasterGateway> |
getJobMasterGateway()
Get the
JobMasterGateway of the JobMaster. |
CompletableFuture<JobManagerRunnerResult> |
getResultFuture()
Get the result future of this runner.
|
boolean |
isInitialized()
Flag indicating if the JobManagerRunner has been initialized.
|
CompletableFuture<ExecutionGraphInfo> |
requestJob(org.apache.flink.api.common.time.Time timeout)
Requests the
ExecutionGraphInfo of the executed job. |
CompletableFuture<JobDetails> |
requestJobDetails(org.apache.flink.api.common.time.Time timeout)
Request the details of the executed job.
|
CompletableFuture<org.apache.flink.api.common.JobStatus> |
requestJobStatus(org.apache.flink.api.common.time.Time timeout)
Requests the current job status.
|
void |
start()
Start the execution of the
JobMaster. |
public CheckpointResourcesCleanupRunner(JobResult jobResult, CheckpointRecoveryFactory checkpointRecoveryFactory, SharedStateRegistryFactory sharedStateRegistryFactory, org.apache.flink.configuration.Configuration jobManagerConfiguration, Executor cleanupExecutor, long initializationTimestamp)
public CompletableFuture<Void> closeAsync()
closeAsync 在接口中 org.apache.flink.util.AutoCloseableAsyncpublic void start()
throws Exception
JobManagerRunnerJobMaster.start 在接口中 JobManagerRunnerException - if the JobMaster cannot be startedpublic CompletableFuture<JobMasterGateway> getJobMasterGateway()
JobManagerRunnerJobMasterGateway of the JobMaster. The future is only completed if
the JobMaster becomes leader.getJobMasterGateway 在接口中 JobManagerRunnerpublic CompletableFuture<JobManagerRunnerResult> getResultFuture()
JobManagerRunnerJobMaster fails. If the
result future is completed exceptionally via JobNotFinishedException, 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.getResultFuture 在接口中 JobManagerRunnerpublic org.apache.flink.api.common.JobID getJobID()
JobManagerRunnergetJobID 在接口中 JobManagerRunnerpublic CompletableFuture<Acknowledge> cancel(org.apache.flink.api.common.time.Time timeout)
JobManagerRunnercancel 在接口中 JobManagerRunnertimeout - of this operationpublic CompletableFuture<org.apache.flink.api.common.JobStatus> requestJobStatus(org.apache.flink.api.common.time.Time timeout)
JobManagerRunnerrequestJobStatus 在接口中 JobManagerRunnertimeout - for the rpc callpublic CompletableFuture<JobDetails> requestJobDetails(org.apache.flink.api.common.time.Time timeout)
JobManagerRunnerrequestJobDetails 在接口中 JobManagerRunnertimeout - for the rpc callpublic CompletableFuture<ExecutionGraphInfo> requestJob(org.apache.flink.api.common.time.Time timeout)
JobManagerRunnerExecutionGraphInfo of the executed job.requestJob 在接口中 JobManagerRunnertimeout - for the rpc callExecutionGraphInfo of the executed jobpublic boolean isInitialized()
JobManagerRunnerisInitialized 在接口中 JobManagerRunnerCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.