public class MBodyMutableFlowStatsRequest extends MBodyFlowStatsRequest implements MutableStructure
MBodyFlowStatsRequest
.parseErrorCause, version
Constructor and Description |
---|
MBodyMutableFlowStatsRequest(ProtocolVersion pv)
Constructs a mutable multipart body FLOW request type.
|
Modifier and Type | Method and Description |
---|---|
MBodyMutableFlowStatsRequest |
cookie(long cookie)
Sets the requirement that matching flow entries contain this cookie
value; since 1.1.
|
MBodyMutableFlowStatsRequest |
cookieMask(long cookieMask)
Sets the mask used to restrict the cookie bits that must match;
Since 1.1.
|
MBodyMutableFlowStatsRequest |
match(Match match)
Describes the fields to match; Since 1.0.
|
MBodyMutableFlowStatsRequest |
outGroup(GroupId outGroup)
Sets the requirement that matching flow entries include this as an
output group; Since 1.1.
|
MBodyMutableFlowStatsRequest |
outPort(BigPortNumber outPort)
Sets the requirement that matching flow entries include this as an
output port; Since 1.0.
|
MBodyMutableFlowStatsRequest |
tableId(TableId tableId)
Sets the ID of the table to read; Since 1.0.
|
OpenflowStructure |
toImmutable()
Returns an immutable instance of this structure.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getCookie, getCookieMask, getMatch, getOutGroup, getOutPort, getTableId, getTotalLength, toDebugString, validate
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public MBodyMutableFlowStatsRequest(ProtocolVersion pv)
Note that a freshly constructed instance has the following default values:
TableId.ALL
Port.ANY
GroupId.ANY
0
0
null
pv
- the protocol versionpublic OpenflowStructure toImmutable()
MutableStructure
It is expected that the reference to this mutable structure will be
dropped. Note that all method calls invoked on a
MutableStructure
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableStructure
public boolean writable()
MutableObject
#toImmutable()
method (defined on a sub-interface)
has not yet been invoked.writable
in interface MutableObject
public String toString()
toString
in class MBodyFlowStatsRequest
public MBodyMutableFlowStatsRequest tableId(TableId tableId)
tableId
- the table IDInvalidMutableException
- if this instance is no longer writableNullPointerException
- if tableId is nullpublic MBodyMutableFlowStatsRequest outPort(BigPortNumber outPort)
Port.ANY
indicates no restriction.
Note that in 1.0, port numbers are u16.
outPort
- the out port to matchInvalidMutableException
- if this instance is no longer writableNullPointerException
- if outPort is nullIllegalArgumentException
- if the port number is invalidpublic MBodyMutableFlowStatsRequest outGroup(GroupId outGroup)
GroupId.ANY
indicates no restriction.outGroup
- the out group to matchInvalidMutableException
- if this instance is no longer writableNullPointerException
- if outGroup is nullpublic MBodyMutableFlowStatsRequest cookie(long cookie)
cookie
- the cookie valueInvalidMutableException
- if this instance is no longer writablecookieMask(long)
public MBodyMutableFlowStatsRequest cookieMask(long cookieMask)
cookieMask
- the cookie mask valueInvalidMutableException
- if this instance is no longer writablecookie(long)
public MBodyMutableFlowStatsRequest match(Match match)
match
- the match descriptorInvalidMutableException
- if this instance is no longer writableNullPointerException
- if match is nullIllegalArgumentException
- if match is mutableVersionMismatchException
- if match is not the same version
as this instanceCopyright © 2015. All Rights Reserved.