Interface GloballyCleanableResource

All Known Subinterfaces:
ExecutionPlanStore, ExecutionPlanWriter, HighAvailabilityServices
All Known Implementing Classes:
AbstractHaServices, AbstractNonHaServices, BlobServer, DefaultExecutionPlanStore, EmbeddedHaServices, EmbeddedHaServicesWithLeadershipControl, StandaloneExecutionPlanStore, StandaloneHaServices, ThrowingExecutionPlanWriter, ZooKeeperLeaderElectionHaServices
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GloballyCleanableResource
GloballyCleanableResource is supposed to be implemented by any class that provides artifacts for a given job that need to be cleaned up after the job reached a global terminal state.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    globalCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor cleanupExecutor)
    globalCleanupAsync is expected to be called from the main thread.
  • Method Details

    • globalCleanupAsync

      CompletableFuture<Void> globalCleanupAsync(org.apache.flink.api.common.JobID jobId, Executor cleanupExecutor)
      globalCleanupAsync is expected to be called from the main thread. Heavy IO tasks should be outsourced into the passed cleanupExecutor. Thread-safety must be ensured.
      Parameters:
      jobId - The JobID of the job for which the local data should be cleaned up.
      cleanupExecutor - The fallback executor for IO-heavy operations.
      Returns:
      The cleanup result future.