Package org.onosproject.net.host
Enum ProbeMode
- java.lang.Object
-
- java.lang.Enum<ProbeMode>
-
- org.onosproject.net.host.ProbeMode
-
- All Implemented Interfaces:
Serializable
,Comparable<ProbeMode>
public enum ProbeMode extends Enum<ProbeMode>
Mode of host location probing.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ProbeMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static ProbeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DISCOVER
public static final ProbeMode DISCOVER
Append probed host location if reply is received before timeout. Otherwise, do nothing. Typically used to discover secondary locations.
-
VERIFY
public static final ProbeMode VERIFY
Remove probed host location if reply is received after timeout. Otherwise, do nothing. Typically used to verify previous locations.
-
-
Method Detail
-
values
public static ProbeMode[] 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 (ProbeMode c : ProbeMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProbeMode 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
-
-