public enum RecoveryMode extends Enum<RecoveryMode>
| Enum Constant and Description |
|---|
STANDALONE |
ZOOKEEPER |
| Modifier and Type | Method and Description |
|---|---|
static RecoveryMode |
fromConfig(org.apache.flink.configuration.Configuration config)
Return the configured
RecoveryMode. |
static boolean |
isHighAvailabilityModeActivated(org.apache.flink.configuration.Configuration configuration)
Returns true if the defined recovery mode supports high availability.
|
static RecoveryMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RecoveryMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RecoveryMode STANDALONE
public static final RecoveryMode ZOOKEEPER
public static RecoveryMode[] values()
for (RecoveryMode c : RecoveryMode.values()) System.out.println(c);
public static RecoveryMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static RecoveryMode fromConfig(org.apache.flink.configuration.Configuration config)
RecoveryMode.config - The config to parseConfigConstants.DEFAULT_RECOVERY_MODE if not
configured.public static boolean isHighAvailabilityModeActivated(org.apache.flink.configuration.Configuration configuration)
configuration - Configuration which contains the recovery modeCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.