public class MBodyMutableFlowStats extends MBodyFlowStats implements MutableStructure
MBodyFlowStats.MBodyFlowStats.Array, MBodyFlowStats.MutableArrayversion| Constructor and Description |
|---|
MBodyMutableFlowStats(ProtocolVersion pv)
Constructs a mutable multipart body FLOW stats element.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableFlowStats |
actions(List<Action> acts)
Sets the actions; Since 1.0; Removed at 1.1.
|
MBodyMutableFlowStats |
byteCount(long byteCount)
Sets the number of bytes in the flow; Since 1.0.
|
MBodyMutableFlowStats |
cookie(long cookie)
Sets the cookie; Since 1.0.
|
MBodyMutableFlowStats |
duration(long seconds,
long nano)
Sets the time the flow has been alive; Since 1.0.
|
MBodyMutableFlowStats |
flags(Set<FlowModFlag> flags)
Sets the flow mod flags; Since 1.3.
|
MBodyMutableFlowStats |
hardTimeout(int hardTimeout)
Sets the number of seconds before flow expiration; Since 1.0.
|
MBodyMutableFlowStats |
idleTimeout(int idleTimeout)
Sets the number of seconds idle before flow expiration; Since 1.0.
|
MBodyMutableFlowStats |
instructions(List<Instruction> ins)
Sets the instructions; Since 1.1.
|
MBodyMutableFlowStats |
match(Match match)
Sets the match; Since 1.0.
|
MBodyMutableFlowStats |
packetCount(long packetCount)
Sets the number of packets in the flow; Since 1.0.
|
MBodyMutableFlowStats |
priority(int priority)
Sets the priority of the flow; Since 1.0.
|
MBodyMutableFlowStats |
tableId(TableId tableId)
Sets the ID of the table this flow came from; 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.
|
getActions, getByteCount, getCookie, getDurationNsec, getDurationSec, getFlags, getHardTimeout, getIdleTimeout, getInstructions, getMatch, getPacketCount, getPriority, getTableId, getTotalLength, toDebugString, toDebugString, validategetVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic MBodyMutableFlowStats(ProtocolVersion pv)
A valid TableId and Match must be present
for this element to be valid.
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 MutableStructurepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class MBodyFlowStatspublic MBodyMutableFlowStats tableId(TableId tableId)
tableId - the table IDInvalidMutableException - if this instance is no longer writableNullPointerException - if tableId is nullpublic MBodyMutableFlowStats duration(long seconds, long nano)
The first parameter is the number of seconds; the second number is the additional number of nanoseconds.
seconds - the number of secondsnano - the additional number of nanosecondsInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if nanoSeconds is not u32public MBodyMutableFlowStats priority(int priority)
priority - the priorityInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if priority is not u16public MBodyMutableFlowStats idleTimeout(int idleTimeout)
idleTimeout - the idle timeoutInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if idleTimeout is not u16public MBodyMutableFlowStats hardTimeout(int hardTimeout)
hardTimeout - the hard timeoutInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if hardTimeout is not u16public MBodyMutableFlowStats flags(Set<FlowModFlag> flags)
flags - the flagsInvalidMutableException - if this instance is no longer writableNullPointerException - if flags is nullpublic MBodyMutableFlowStats cookie(long cookie)
cookie - the cookieInvalidMutableException - if this instance is no longer writablepublic MBodyMutableFlowStats packetCount(long packetCount)
packetCount - the number of packetsInvalidMutableException - if this instance is no longer writablepublic MBodyMutableFlowStats byteCount(long byteCount)
byteCount - the number of bytesInvalidMutableException - if this instance is no longer writablepublic MBodyMutableFlowStats match(Match match)
match - the match descriptorInvalidMutableException - if this instance is no longer writableNullPointerException - if match is nullIllegalArgumentException - if match is mutableVersionMismatchException - if match not the right versionpublic MBodyMutableFlowStats instructions(List<Instruction> ins)
ins - the instructionsInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version < 1.1NullPointerException - if ins is nullpublic MBodyMutableFlowStats actions(List<Action> acts)
acts - the actionsInvalidMutableException - if this instance is no longer writableVersionMismatchException - if version > 1.0NullPointerException - if acts is nullCopyright © 2014. All Rights Reserved.