Enum ExternalizedCheckpointRetention

    • Enum Constant Detail

      • DELETE_ON_CANCELLATION

        public static final ExternalizedCheckpointRetention DELETE_ON_CANCELLATION
        Delete externalized checkpoints on job cancellation.

        All checkpoint state will be deleted when you cancel the owning job, both the meta data and actual program state. Therefore, you cannot resume from externalized checkpoints after the job has been cancelled.

        Note that checkpoint state is always kept if the job terminates with state JobStatus.FAILED.

      • RETAIN_ON_CANCELLATION

        public static final ExternalizedCheckpointRetention RETAIN_ON_CANCELLATION
        Retain externalized checkpoints on job cancellation.

        All checkpoint state is kept when you cancel the owning job. You have to manually delete both the checkpoint meta data and actual program state after cancelling the job.

        Note that checkpoint state is always kept if the job terminates with state JobStatus.FAILED.

      • NO_EXTERNALIZED_CHECKPOINTS

        public static final ExternalizedCheckpointRetention NO_EXTERNALIZED_CHECKPOINTS
        Externalized checkpoints are disabled completely.
    • Method Detail

      • values

        public static ExternalizedCheckpointRetention[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ExternalizedCheckpointRetention c : ExternalizedCheckpointRetention.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ExternalizedCheckpointRetention valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • deleteOnCancellation

        public boolean deleteOnCancellation()
        Returns whether persistent checkpoints shall be discarded on cancellation of the job.
        Returns:
        true if persistent checkpoints shall be discarded on cancellation of the job.