Class SavepointRestoreSettings

    • Method Detail

      • restoreSavepoint

        public boolean restoreSavepoint()
        Returns whether to restore from savepoint.
        Returns:
        true if should restore from savepoint.
      • getRestorePath

        public String getRestorePath()
        Returns the path to the savepoint to restore from.
        Returns:
        Path to the savepoint to restore from or null if should not restore.
      • allowNonRestoredState

        public boolean allowNonRestoredState()
        Returns whether non restored state is allowed if the savepoint contains state that cannot be mapped back to the job.
        Returns:
        true if non restored state is allowed if the savepoint contains state that cannot be mapped back to the job.
      • getRecoveryClaimMode

        @Nonnull
        public org.apache.flink.core.execution.RecoveryClaimMode getRecoveryClaimMode()
        Tells how to restore from the given savepoint.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • forPath

        public static SavepointRestoreSettings forPath​(String savepointPath,
                                                       boolean allowNonRestoredState,
                                                       @Nonnull
                                                       org.apache.flink.core.execution.RecoveryClaimMode recoveryClaimMode)
      • toConfiguration

        public static void toConfiguration​(SavepointRestoreSettings savepointRestoreSettings,
                                           org.apache.flink.configuration.Configuration configuration)
      • fromConfiguration

        public static SavepointRestoreSettings fromConfiguration​(org.apache.flink.configuration.ReadableConfig configuration)