Class SavepointRestoreSettings
java.lang.Object
org.apache.flink.runtime.jobgraph.SavepointRestoreSettings
- All Implemented Interfaces:
Serializable
Savepoint restore settings.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether non restored state is allowed if the savepoint contains state that cannot be mapped back to the job.booleanstatic SavepointRestoreSettingsstatic SavepointRestoreSettingsstatic SavepointRestoreSettingsforPath(String savepointPath, boolean allowNonRestoredState, org.apache.flink.core.execution.RecoveryClaimMode recoveryClaimMode) static SavepointRestoreSettingsfromConfiguration(org.apache.flink.configuration.ReadableConfig configuration) org.apache.flink.core.execution.RecoveryClaimModeTells how to restore from the given savepoint.Returns the path to the savepoint to restore from.inthashCode()static SavepointRestoreSettingsnone()booleanReturns whether to restore from savepoint.static voidtoConfiguration(SavepointRestoreSettings savepointRestoreSettings, org.apache.flink.configuration.Configuration configuration) toString()
-
Method Details
-
restoreSavepoint
public boolean restoreSavepoint()Returns whether to restore from savepoint.- Returns:
trueif should restore from savepoint.
-
getRestorePath
Returns the path to the savepoint to restore from.- Returns:
- Path to the savepoint to restore from or
nullif 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:
trueif 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. -
equals
-
hashCode
public int hashCode() -
toString
-
none
-
forPath
-
forPath
-
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)
-