public class SavepointRestoreSettings extends Object implements Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
allowNonRestoredState()
Returns whether non restored state is allowed if the savepoint contains state that cannot be
mapped back to the job.
|
boolean |
equals(Object o) |
static SavepointRestoreSettings |
forPath(String savepointPath) |
static SavepointRestoreSettings |
forPath(String savepointPath,
boolean allowNonRestoredState) |
static SavepointRestoreSettings |
forPath(String savepointPath,
boolean allowNonRestoredState,
RestoreMode restoreMode) |
static SavepointRestoreSettings |
fromConfiguration(ReadableConfig configuration) |
RestoreMode |
getRestoreMode()
Tells how to restore from the given savepoint.
|
String |
getRestorePath()
Returns the path to the savepoint to restore from.
|
int |
hashCode() |
static SavepointRestoreSettings |
none() |
boolean |
restoreSavepoint()
Returns whether to restore from savepoint.
|
static void |
toConfiguration(SavepointRestoreSettings savepointRestoreSettings,
Configuration configuration) |
String |
toString() |
public boolean restoreSavepoint()
true
if should restore from savepoint.public String getRestorePath()
null
if should not restore.public boolean allowNonRestoredState()
true
if non restored state is allowed if the savepoint contains state
that cannot be mapped back to the job.@Nonnull public RestoreMode getRestoreMode()
public static SavepointRestoreSettings none()
public static SavepointRestoreSettings forPath(String savepointPath)
public static SavepointRestoreSettings forPath(String savepointPath, boolean allowNonRestoredState)
public static SavepointRestoreSettings forPath(String savepointPath, boolean allowNonRestoredState, @Nonnull RestoreMode restoreMode)
public static void toConfiguration(SavepointRestoreSettings savepointRestoreSettings, Configuration configuration)
public static SavepointRestoreSettings fromConfiguration(ReadableConfig configuration)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.