public static enum Neighbor.State extends Enum<Neighbor.State> implements Enumeration
Enum Constant and Description |
---|
Delay
The neighbor is no longer known to be reachable, andtraffic has recently been
sent to the neighbor.Rather than probe the neighbor immediately, however,delay
sending probes for a short while in order togive upper-layer protocols a chance
to providereachability confirmation.
|
Incomplete
Address resolution is in progress, and the link-layeraddress of the neighbor has
not yet beendetermined.
|
Probe
The neighbor is no longer known to be reachable, andunicast Neighbor
Solicitation probes are being sentto verify reachability.
|
Reachable
Roughly speaking, the neighbor is known to have beenreachable recently (within
tens of seconds ago).
|
Stale
The neighbor is no longer known to be reachable, butuntil traffic is sent to the
neighbor no attemptshould be made to verify its reachability.
|
Modifier and Type | Method and Description |
---|---|
static Optional<Neighbor.State> |
forName(String name)
Return the enumeration member whose
getName() matches specified value. |
static Neighbor.State |
forValue(int intValue)
Return the enumeration member whose
getIntValue() matches specified value. |
int |
getIntValue()
Returns the assigned value of the enumeration item as it is specified in the input YANG.
|
String |
getName()
Returns the assigned name of the enumeration item as it is specified in the input YANG.
|
static Neighbor.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Neighbor.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Neighbor.State Incomplete
public static final Neighbor.State Reachable
public static final Neighbor.State Stale
public static final Neighbor.State Delay
public static final Neighbor.State Probe
public static Neighbor.State[] values()
for (Neighbor.State c : Neighbor.State.values()) System.out.println(c);
public static Neighbor.State 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 String getName()
Enumeration
getName
in interface Enumeration
public int getIntValue()
Enumeration
getIntValue
in interface Enumeration
public static Optional<Neighbor.State> forName(String name)
getName()
matches specified value.name
- YANG assigned nameNullPointerException
- if name is nullpublic static Neighbor.State forValue(int intValue)
getIntValue()
matches specified value.intValue
- integer valueCopyright © 2019 OpenDaylight. All rights reserved.