public class OfmMutableFlowRemoved extends OfmFlowRemoved implements MutableMessage
OfmFlowRemoved
.length
Modifier and Type | Method and Description |
---|---|
OfmMutableFlowRemoved |
byteCount(long byteCount)
Sets the number of bytes associated with this flow; Since 1.0;
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableFlowRemoved |
cookie(long cookie)
Sets the cookie value; Since 1.0.
|
OfmMutableFlowRemoved |
duration(long seconds,
long nano)
Sets the time in seconds, and fractional nanoseconds,
that the flow was installed; Since 1.0.
|
OfmMutableFlowRemoved |
hardTimeout(int hardTimeout)
Sets the hard timeout in seconds; Since 1.2.
|
OfmMutableFlowRemoved |
idleTimeout(int idleTimeout)
Sets the idle timeout in seconds; Since 1.0.
|
OfmMutableFlowRemoved |
match(Match match)
Sets the match; Since 1.0.
|
OfmMutableFlowRemoved |
packetCount(long packetCount)
Sets the number of packets associated with this flow; Since 1.0.
|
OfmMutableFlowRemoved |
priority(int priority)
Sets the priority level; Since 1.0.
|
OfmMutableFlowRemoved |
reason(FlowRemovedReason reason)
Sets the reason a flow was removed; Since 1.0.
|
OfmMutableFlowRemoved |
tableId(TableId tableId)
Sets the table Id; Since 1.1.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getByteCount, getCookie, getDurationNanoSeconds, getDurationSeconds, getHardTimeout, getIdleTimeout, getMatch, getPacketCount, getPriority, getReason, getTableId, toDebugString
decodeHeader, getType, getVersion, getXid, hex, hex, length, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion, toDebugString
public void clearXid()
MutableMessage
clearXid
in interface MutableMessage
public OpenflowMessage toImmutable()
MutableMessage
It is expected that the reference to this mutable message will be
dropped. Note that all method calls invoked on a
MutableMessage
after toImmutable()
has been invoked
will result in an InvalidMutableException
being thrown.
toImmutable
in interface MutableMessage
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 OfmFlowRemoved
public OfmMutableFlowRemoved match(Match match)
match
- the match to setInvalidMutableException
- if this instance is no longer writableNullPointerException
- if match is nullIllegalArgumentException
- if match is mutablepublic OfmMutableFlowRemoved cookie(long cookie)
cookie
- the cookie value to setInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if the reserved value (-1) is specifiedpublic OfmMutableFlowRemoved priority(int priority)
The priority indicates priority within the specified flow table. Higher numbers indicate higher priorities.
priority
- the priority level to setInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if the priority level is not u16public OfmMutableFlowRemoved reason(FlowRemovedReason reason)
reason
- the reason to setInvalidMutableException
- if this instance is no longer writableNullPointerException
- if flow removed reason is nullpublic OfmMutableFlowRemoved tableId(TableId tableId)
The table id field specifies the table into which the flow entry is removed. Table 0 signifies the first table in the pipeline.
tableId
- the table ID to setInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.1NullPointerException
- if tableId is nullpublic OfmMutableFlowRemoved duration(long seconds, long nano)
seconds
- the number of secondsnano
- the number of additional nanosecondsInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if either seconds or nano is not u32public OfmMutableFlowRemoved idleTimeout(int idleTimeout)
idleTimeout
- the idle timeout in secondsInvalidMutableException
- if this instance is no longer writableIllegalArgumentException
- if idleTimeout is not u16public OfmMutableFlowRemoved hardTimeout(int hardTimeout)
hardTimeout
- the hard timeout in secondsInvalidMutableException
- if this instance is no longer writableVersionMismatchException
- if version is < 1.2IllegalArgumentException
- if hardTimeout is not u16public OfmMutableFlowRemoved packetCount(long packetCount)
packetCount
- the number of associated packetsInvalidMutableException
- if this instance is no longer writablepublic OfmMutableFlowRemoved byteCount(long byteCount)
byteCount
- the number of associated bytesInvalidMutableException
- if this instance is no longer writableCopyright © 2015. All Rights Reserved.