public enum ControllerRole extends Enum<ControllerRole> implements OfpCodeBasedEnum
Enum Constant and Description |
---|
EQUAL
Default role, full access; Since 1.2.
|
MASTER
Full access, at most one master; Since 1.2.
|
NO_CHANGE
Don't change the current role; Since 1.2.
|
SLAVE
Read-only access; Since 1.2.
|
Modifier and Type | Method and Description |
---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static ControllerRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ControllerRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControllerRole NO_CHANGE
public static final ControllerRole EQUAL
public static final ControllerRole MASTER
public static final ControllerRole SLAVE
public static ControllerRole[] values()
for (ControllerRole c : ControllerRole.values()) System.out.println(c);
public static ControllerRole 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 int getCode(ProtocolVersion pv)
OfpCodeBasedEnum
getCode
in interface OfpCodeBasedEnum
pv
- the protocol versionCopyright © 2015. All Rights Reserved.