public class OfmMutablePortStatus extends OfmPortStatus implements MutableMessage
OfmPortStatus.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutablePortStatus |
port(Port port)
Sets the port whose status changed; Since 1.0.
|
OfmMutablePortStatus |
reason(PortReason reason)
Sets the reason for port status change; Since 1.0.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
getPort, getReason, toDebugStringdecodeHeader, getType, getVersion, getXid, hex, hex, length, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringpublic void clearXid()
MutableMessageclearXid in interface MutableMessagepublic 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 MutableMessagepublic boolean writable()
MutableObject#toImmutable() method (defined on a sub-interface)
has not yet been invoked.writable in interface MutableObjectpublic String toString()
toString in class OfmPortStatuspublic OfmMutablePortStatus reason(PortReason reason)
reason - for the status changeInvalidMutableException - if this instance is no longer writableNullPointerException - if reason is nullpublic OfmMutablePortStatus port(Port port) throws IncompleteStructureException
port - the physical portInvalidMutableException - if this instance is no longer writableNullPointerException - if port is nullIllegalArgumentException - if port is mutableIncompleteStructureException - if port structure is incompleteCopyright © 2014. All Rights Reserved.