Enum RoleRecvStatus
- java.lang.Object
-
- java.lang.Enum<RoleRecvStatus>
-
- org.onosproject.openflow.controller.driver.RoleRecvStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<RoleRecvStatus>
public enum RoleRecvStatus extends java.lang.Enum<RoleRecvStatus>
When we remove a pending role request we use this enum to indicate how we arrived at the decision. When we send a role request to the switch, we also use this enum to indicate what we expect back from the switch, so the role changer can match the reply to our expectation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHED_CURRENT_ROLEThe reply's role matched the role that this controller set in the request message - invoked either initially at startup or to reassert current role.MATCHED_SET_ROLEThe reply's role matched the role that this controller set in the request message - this is the result of a callback from the global registry, followed by a role request sent to the switch.NO_REPLYThe request timed out.OLD_REPLYThe reply was old, there is a newer request pending.OTHER_EXPECTATIONWe received a role reply message from the switch but the expectation was unclear, or there was no expectation.REPLY_QUERYThe reply's role was a response to the query made by this controller.UNSUPPORTEDThe switch returned an error indicating that roles are not.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RoleRecvStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static RoleRecvStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSUPPORTED
public static final RoleRecvStatus UNSUPPORTED
The switch returned an error indicating that roles are not. supported
-
NO_REPLY
public static final RoleRecvStatus NO_REPLY
The request timed out.
-
OLD_REPLY
public static final RoleRecvStatus OLD_REPLY
The reply was old, there is a newer request pending.
-
MATCHED_CURRENT_ROLE
public static final RoleRecvStatus MATCHED_CURRENT_ROLE
The reply's role matched the role that this controller set in the request message - invoked either initially at startup or to reassert current role.
-
MATCHED_SET_ROLE
public static final RoleRecvStatus MATCHED_SET_ROLE
The reply's role matched the role that this controller set in the request message - this is the result of a callback from the global registry, followed by a role request sent to the switch.
-
REPLY_QUERY
public static final RoleRecvStatus REPLY_QUERY
The reply's role was a response to the query made by this controller.
-
OTHER_EXPECTATION
public static final RoleRecvStatus OTHER_EXPECTATION
We received a role reply message from the switch but the expectation was unclear, or there was no expectation.
-
-
Method Detail
-
values
public static RoleRecvStatus[] 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 (RoleRecvStatus c : RoleRecvStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RoleRecvStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-