Interface ExecutionPlanWriter
- All Superinterfaces:
GloballyCleanableResource,LocallyCleanableResource
- All Known Subinterfaces:
ExecutionPlanStore
- All Known Implementing Classes:
DefaultExecutionPlanStore,StandaloneExecutionPlanStore,ThrowingExecutionPlanWriter
Allows to store and remove execution plans.
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<Void>globalCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor) globalCleanupAsyncis expected to be called from the main thread.default CompletableFuture<Void>localCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor) localCleanupAsyncis expected to be called from the main thread.voidputExecutionPlan(ExecutionPlan executionPlan) Adds theExecutionPlaninstance.voidputJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements) Persistjob resource requirementsfor the given job.
-
Method Details
-
putExecutionPlan
Adds theExecutionPlaninstance.If a execution plan with the same
JobIDexists, it is replaced.- Throws:
Exception
-
putJobResourceRequirements
void putJobResourceRequirements(org.apache.flink.api.common.JobID jobId, JobResourceRequirements jobResourceRequirements) throws Exception Persistjob resource requirementsfor the given job.- Parameters:
jobId- job the given requirements belong tojobResourceRequirements- requirements to persist- Throws:
Exception- in case we're not able to persist the requirements for some reason
-
localCleanupAsync
default CompletableFuture<Void> localCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor) Description copied from interface:LocallyCleanableResourcelocalCleanupAsyncis expected to be called from the main thread. Heavy IO tasks should be outsourced into the passedcleanupExecutor. Thread-safety must be ensured.- Specified by:
localCleanupAsyncin interfaceLocallyCleanableResource- Parameters:
jobId- TheJobIDof the job for which the local data should be cleaned up.executor- The fallback executor for IO-heavy operations.- Returns:
- The cleanup result future.
-
globalCleanupAsync
default CompletableFuture<Void> globalCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor executor) Description copied from interface:GloballyCleanableResourceglobalCleanupAsyncis expected to be called from the main thread. Heavy IO tasks should be outsourced into the passedcleanupExecutor. Thread-safety must be ensured.- Specified by:
globalCleanupAsyncin interfaceGloballyCleanableResource- Parameters:
jobId- TheJobIDof the job for which the local data should be cleaned up.executor- The fallback executor for IO-heavy operations.- Returns:
- The cleanup result future.
-