public interface JobGraphWriter extends LocallyCleanableResource, GloballyCleanableResource
| 限定符和类型 | 方法和说明 |
|---|---|
default CompletableFuture<Void> |
globalCleanupAsync(org.apache.flink.api.common.JobID jobId,
Executor executor)
globalCleanupAsync is expected to be called from the main thread. |
default CompletableFuture<Void> |
localCleanupAsync(org.apache.flink.api.common.JobID jobId,
Executor executor)
localCleanupAsync is expected to be called from the main thread. |
void |
putJobGraph(JobGraph jobGraph)
Adds the
JobGraph instance. |
void putJobGraph(JobGraph jobGraph) throws Exception
JobGraph instance.
If a job graph with the same JobID exists, it is replaced.
Exceptiondefault CompletableFuture<Void> localCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor)
LocallyCleanableResourcelocalCleanupAsync is expected to be called from the main thread. Heavy IO tasks
should be outsourced into the passed cleanupExecutor. Thread-safety must be ensured.localCleanupAsync 在接口中 LocallyCleanableResourcejobId - The JobID of the job for which the local data should be cleaned up.executor - The fallback executor for IO-heavy operations.default CompletableFuture<Void> globalCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor)
GloballyCleanableResourceglobalCleanupAsync is expected to be called from the main thread. Heavy IO tasks
should be outsourced into the passed cleanupExecutor. Thread-safety must be ensured.globalCleanupAsync 在接口中 GloballyCleanableResourcejobId - The JobID of the job for which the local data should be cleaned up.executor - The fallback executor for IO-heavy operations.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.