Class SavepointRestoreSettings
- java.lang.Object
-
- org.apache.flink.runtime.jobgraph.SavepointRestoreSettings
-
- All Implemented Interfaces:
Serializable
public class SavepointRestoreSettings extends Object implements Serializable
Savepoint restore settings.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowNonRestoredState()Returns whether non restored state is allowed if the savepoint contains state that cannot be mapped back to the job.booleanequals(Object o)static SavepointRestoreSettingsforPath(String savepointPath)static SavepointRestoreSettingsforPath(String savepointPath, boolean allowNonRestoredState)static 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.RecoveryClaimModegetRecoveryClaimMode()Tells how to restore from the given savepoint.StringgetRestorePath()Returns the path to the savepoint to restore from.inthashCode()static SavepointRestoreSettingsnone()booleanrestoreSavepoint()Returns whether to restore from savepoint.static voidtoConfiguration(SavepointRestoreSettings savepointRestoreSettings, org.apache.flink.configuration.Configuration configuration)StringtoString()
-
-
-
Method Detail
-
restoreSavepoint
public boolean restoreSavepoint()
Returns whether to restore from savepoint.- Returns:
trueif 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
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.
-
none
public static SavepointRestoreSettings none()
-
forPath
public static SavepointRestoreSettings forPath(String savepointPath)
-
forPath
public static SavepointRestoreSettings forPath(String savepointPath, boolean allowNonRestoredState)
-
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)
-
-