public class SavepointRestoreSettings extends Object implements Serializable
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
fromConfiguration(org.apache.flink.configuration.ReadableConfig configuration) |
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,
org.apache.flink.configuration.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.public static SavepointRestoreSettings none()
public static SavepointRestoreSettings forPath(String savepointPath)
public static SavepointRestoreSettings forPath(String savepointPath, boolean allowNonRestoredState)
public static void toConfiguration(SavepointRestoreSettings savepointRestoreSettings, org.apache.flink.configuration.Configuration configuration)
public static SavepointRestoreSettings fromConfiguration(org.apache.flink.configuration.ReadableConfig configuration)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.