org.apache.hadoop.ha
Enum HAServiceProtocol.RequestSource
java.lang.Object
java.lang.Enum<HAServiceProtocol.RequestSource>
org.apache.hadoop.ha.HAServiceProtocol.RequestSource
- All Implemented Interfaces:
- Serializable, Comparable<HAServiceProtocol.RequestSource>
- Enclosing interface:
- HAServiceProtocol
public static enum HAServiceProtocol.RequestSource
- extends Enum<HAServiceProtocol.RequestSource>
REQUEST_BY_USER
public static final HAServiceProtocol.RequestSource REQUEST_BY_USER
REQUEST_BY_USER_FORCED
public static final HAServiceProtocol.RequestSource REQUEST_BY_USER_FORCED
REQUEST_BY_ZKFC
public static final HAServiceProtocol.RequestSource REQUEST_BY_ZKFC
values
public static HAServiceProtocol.RequestSource[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HAServiceProtocol.RequestSource c : HAServiceProtocol.RequestSource.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HAServiceProtocol.RequestSource valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2013 Apache Software Foundation. All Rights Reserved.