public enum MultipartType extends Enum<MultipartType> implements OfpCodeBasedEnum
Important Note: Although MULTIPART-REQUEST/REPLY messages were only added to the protocol at 1.3, they are semantically equivalent to the (now deprecated) STATS-REQUEST/REPLY messages in 1.0, 1.1 and 1.2.
The documentation for each constant below indicates when the type was added to the protocol irrespective of "stats" vs. "multipart".
OfmMultipartRequest
,
OfmMultipartReply
Enum Constant and Description |
---|
AGGREGATE
Aggregate flow statistics; Since 1.0.
|
DESC
Description of this openflow switch; Since 1.0.
|
EXPERIMENTER
Experimenter extension; Since 1.0.
|
FLOW
Individual flow statistics; Since 1.0.
|
GROUP
Group counter statistics; Since 1.1.
|
GROUP_DESC
Group description; Since 1.1.
|
GROUP_FEATURES
Group features; Since 1.2.
|
METER
Meter statistics; Since 1.3.
|
METER_CONFIG
Meter configuration; Since 1.3.
|
METER_FEATURES
Meter features; Since 1.3.
|
PORT_DESC
Port description; Since 1.3.
|
PORT_STATS
Port statistics; Since 1.0.
|
QUEUE
Queue statistics for a port; Since 1.0.
|
TABLE
Flow table statistics; Since 1.0.
|
TABLE_FEATURES
Table features; Since 1.3.
|
Modifier and Type | Method and Description |
---|---|
static MultipartType |
decode(int code,
ProtocolVersion pv)
Decodes the multipart message type code and returns the corresponding
constant.
|
int |
getCode(ProtocolVersion pv)
Returns the code for the constant, under the given protocol
version.
|
static MultipartType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MultipartType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MultipartType DESC
public static final MultipartType FLOW
public static final MultipartType AGGREGATE
public static final MultipartType TABLE
public static final MultipartType PORT_STATS
public static final MultipartType QUEUE
public static final MultipartType GROUP
public static final MultipartType GROUP_DESC
public static final MultipartType GROUP_FEATURES
public static final MultipartType METER
public static final MultipartType METER_CONFIG
public static final MultipartType METER_FEATURES
public static final MultipartType TABLE_FEATURES
public static final MultipartType PORT_DESC
public static final MultipartType EXPERIMENTER
public static MultipartType[] values()
for (MultipartType c : MultipartType.values()) System.out.println(c);
public static MultipartType 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 versionpublic static MultipartType decode(int code, ProtocolVersion pv) throws DecodeException
code
- the encoded multipart message typepv
- the protocol versionDecodeException
- if the code is not recognizedVersionMismatchException
- if the multipart type is not
supported in the given versionCopyright © 2016. All Rights Reserved.