public enum CommandType extends Enum<CommandType>
Enum Constant and Description |
---|
ACTIVATE
Activate a switch (connect to the controller).
|
DEACTIVATE
Deactivate a switch (disconnect from the controller).
|
DELAY
Introduce a delay in the scenario.
|
ECHO_REQUEST
Send an EchoRequest message to the controller.
|
FLOW_REMOVED
Send a FlowRemoved message to the controller.
|
HELLO_SUCCESS
Wait until HELLO negotiation has completed successfully.
|
PACKET_IN
Send a PacketIn message to the controller.
|
PORT_STATUS
Send a PortStatus message to the controller.
|
SUSPEND
Suspend the scenario.
|
Modifier and Type | Method and Description |
---|---|
static CommandType |
get(String name)
Returns the type constant that matches the given
camel-case name.
|
static CommandType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandType ACTIVATE
public static final CommandType DEACTIVATE
public static final CommandType HELLO_SUCCESS
public static final CommandType DELAY
public static final CommandType SUSPEND
public static final CommandType ECHO_REQUEST
public static final CommandType PORT_STATUS
public static final CommandType FLOW_REMOVED
public static final CommandType PACKET_IN
public static CommandType[] values()
for (CommandType c : CommandType.values()) System.out.println(c);
public static CommandType 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 static CommandType get(String name)
name
- the name to matchCopyright © 2015. All Rights Reserved.