Class AsyncCheckpointCreator

  • All Implemented Interfaces:
    Runnable

    public class AsyncCheckpointCreator
    extends Object
    implements Runnable
    This class is responsible for creating and deleting checkpoints asynchronously. The number of minimum concurrent checkpoints to keep in the system, along with the default lifetime of a checkpoint can be configured. When executed, this class should create one checkpoint in a single run with a configurable name. Following the creation of the checkpoint, it should try to delete checkpoints with the given name, in case the total number of such checkpoints is greater than the configured minimum concurrent checkpoints. By default, this task is registered using AsyncCheckpointService
    • Constructor Detail

      • AsyncCheckpointCreator

        public AsyncCheckpointCreator​(@NotNull
                                      @NotNull NodeStore store,
                                      @NotNull
                                      @NotNull String name,
                                      long checkpointLifetimeInSeconds,
                                      long minConcurrentCheckpoints,
                                      long maxConcurrentCheckpoints)
    • Method Detail

      • getName

        public String getName()
      • getCheckpointLifetimeInSeconds

        protected long getCheckpointLifetimeInSeconds()
      • getMinConcurrentCheckpoints

        protected long getMinConcurrentCheckpoints()
      • getMaxConcurrentCheckpoints

        protected long getMaxConcurrentCheckpoints()
      • run

        public void run()
        Specified by:
        run in interface Runnable