public enum ECodeRoleRequestFailed extends Enum<ECodeRoleRequestFailed> implements ErrorCode
ErrorType.ROLE_REQUEST_FAILED error type.| Enum Constant and Description |
|---|
BAD_ROLE
Invalid role; Since 1.2.
|
STALE
Stale Message: old generation ID; Since 1.2.
|
UNSUP
Controller role change unsupported; Since 1.2.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
ErrorType |
parentType()
Returns the parent error type for this error code.
|
static void |
validate(ECodeRoleRequestFailed code,
ProtocolVersion pv)
Validates the given error code against the specified protocol version,
silently returning if all is well, throwing an exception otherwise.
|
static ECodeRoleRequestFailed |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECodeRoleRequestFailed[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECodeRoleRequestFailed STALE
public static final ECodeRoleRequestFailed UNSUP
public static final ECodeRoleRequestFailed BAD_ROLE
public static ECodeRoleRequestFailed[] values()
for (ECodeRoleRequestFailed c : ECodeRoleRequestFailed.values()) System.out.println(c);
public static ECodeRoleRequestFailed 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 ErrorType parentType()
ErrorCodeparentType in interface ErrorCodepublic int getCode(ProtocolVersion pv)
OfpCodeBasedEnumgetCode in interface OfpCodeBasedEnumpv - the protocol versionpublic static void validate(ECodeRoleRequestFailed code, ProtocolVersion pv)
code - the codepv - the protocol versionVersionMismatchException - if the code is not defined in the
given protocol versionCopyright © 2014. All Rights Reserved.