public enum RecoveryMode extends Enum<RecoveryMode>
Enum Constant and Description |
---|
STANDALONE |
ZOOKEEPER |
Modifier and Type | Method and Description |
---|---|
static RecoveryMode |
fromConfig(Configuration config)
Return the configured
RecoveryMode . |
static boolean |
isHighAvailabilityModeActivated(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(Configuration config)
RecoveryMode
.config
- The config to parseConfigConstants.DEFAULT_RECOVERY_MODE
if not
configured.public static boolean isHighAvailabilityModeActivated(Configuration configuration)
configuration
- Configuration which contains the recovery modeCopyright © 2014–2017 The Apache Software Foundation. All rights reserved.