public enum OFPortState extends Enum<OFPortState>
| Enum Constant and Description |
|---|
BLOCKED |
LINK_DOWN |
LIVE |
STP_BLOCK |
STP_FORWARD |
STP_LEARN |
STP_LISTEN |
STP_MASK |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isStpState() |
static OFPortState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OFPortState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OFPortState LINK_DOWN
public static final OFPortState STP_LISTEN
public static final OFPortState STP_LEARN
public static final OFPortState STP_FORWARD
public static final OFPortState STP_BLOCK
public static final OFPortState STP_MASK
public static final OFPortState BLOCKED
public static final OFPortState LIVE
public static OFPortState[] values()
for (OFPortState c : OFPortState.values()) System.out.println(c);
public static OFPortState 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 boolean isStpState()
Copyright © 2019. All rights reserved.