public static enum ReplaceDatanodeOnFailure.Policy extends Enum<ReplaceDatanodeOnFailure.Policy>
Enum Constant and Description |
---|
ALWAYS
Always add a new datanode when an existing datanode is removed.
|
DEFAULT |
DISABLE
The feature is disabled in the entire site.
|
NEVER
Never add a new datanode.
|
Modifier and Type | Method and Description |
---|---|
static ReplaceDatanodeOnFailure.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplaceDatanodeOnFailure.Policy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplaceDatanodeOnFailure.Policy DISABLE
public static final ReplaceDatanodeOnFailure.Policy NEVER
public static final ReplaceDatanodeOnFailure.Policy DEFAULT
ReplaceDatanodeOnFailure.CONDITION_DEFAULT
public static final ReplaceDatanodeOnFailure.Policy ALWAYS
public static ReplaceDatanodeOnFailure.Policy[] values()
for (ReplaceDatanodeOnFailure.Policy c : ReplaceDatanodeOnFailure.Policy.values()) System.out.println(c);
public static ReplaceDatanodeOnFailure.Policy 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 nullCopyright © 2018 Apache Software Foundation. All Rights Reserved.