Package io.airlift.node
Enum NodeConfig.AddressSource
- java.lang.Object
-
- java.lang.Enum<NodeConfig.AddressSource>
-
- io.airlift.node.NodeConfig.AddressSource
-
- All Implemented Interfaces:
Serializable,Comparable<NodeConfig.AddressSource>
- Enclosing class:
- NodeConfig
public static enum NodeConfig.AddressSource extends Enum<NodeConfig.AddressSource>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FQDNHOSTNAMEIPIP_ENCODED_AS_HOSTNAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NodeConfig.AddressSourcevalueOf(String name)Returns the enum constant of this type with the specified name.static NodeConfig.AddressSource[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOSTNAME
public static final NodeConfig.AddressSource HOSTNAME
-
FQDN
public static final NodeConfig.AddressSource FQDN
-
IP
public static final NodeConfig.AddressSource IP
-
IP_ENCODED_AS_HOSTNAME
public static final NodeConfig.AddressSource IP_ENCODED_AS_HOSTNAME
-
-
Method Detail
-
values
public static NodeConfig.AddressSource[] 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 (NodeConfig.AddressSource c : NodeConfig.AddressSource.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NodeConfig.AddressSource 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 nameNullPointerException- if the argument is null
-
-