public class OfmMutableFeaturesReply extends OfmFeaturesReply implements MutableMessage
OfmFeaturesReply.OpenflowMessage.Headerlength| Modifier and Type | Method and Description |
|---|---|
OfmMutableFeaturesReply |
addPort(Port port)
Adds a port to the list of ports; Since 1.0; Removed at 1.3.
|
OfmMutableFeaturesReply |
auxId(int auxId)
Sets the auxiliary id; Since 1.3.
|
OfmMutableFeaturesReply |
capabilities(Set<Capability> caps)
Sets the set of capabilities (may be null).
|
void |
clearXid()
Clears the transaction ID field of this message (sets it to 0).
|
OfmMutableFeaturesReply |
dpid(DataPathId dpid)
Sets the datapath id; Since 1.0.
|
OfmMutableFeaturesReply |
numBuffers(long numBuffers)
Sets the number of buffers; Since 1.0.
|
OfmMutableFeaturesReply |
numTables(int numTables)
Sets the number of tables supported by the switch; Since 1.0.
|
OfmMutableFeaturesReply |
supportedActions(Set<SupportedAction> suppActs)
Sets the set of supported actions (may be null); Since 1.0;
Removed at 1.1.
|
OpenflowMessage |
toImmutable()
Returns an immutable instance of this message.
|
String |
toString() |
boolean |
writable()
Returns true if this mutable object is still writable.
|
compareTo, equals, getAuxId, getCapabilities, getDpid, getNumBuffers, getNumTables, getPorts, getSupportedActions, hashCode, toDebugString, toDebugStringdecodeHeader, getType, getVersion, getXid, hex, hex, length, validateclone, finalize, getClass, 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 OfmFeaturesReplypublic OfmMutableFeaturesReply dpid(DataPathId dpid)
dpid - the datapath idInvalidMutableException - if this instance is no longer writableNullPointerException - if dpid is nullpublic OfmMutableFeaturesReply numBuffers(long numBuffers)
numBuffers - the number of buffersInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if argument is not u32public OfmMutableFeaturesReply numTables(int numTables)
numTables - the number of tablesInvalidMutableException - if this instance is no longer writableIllegalArgumentException - if argument is not u8public OfmMutableFeaturesReply auxId(int auxId)
auxId - the auxiliary idVersionMismatchException - if version < 1.3InvalidMutableException - if this instance is no longer writableIllegalArgumentException - if argument is not u8public OfmMutableFeaturesReply capabilities(Set<Capability> caps)
caps - the capabilitiesInvalidMutableException - if this instance is no longer writablepublic OfmMutableFeaturesReply supportedActions(Set<SupportedAction> suppActs)
suppActs - the supported actionsVersionMismatchException - if version > 1.0InvalidMutableException - if this instance is no longer writablepublic OfmMutableFeaturesReply addPort(Port port)
port - the port to addVersionMismatchException - if version > 1.2InvalidMutableException - if this instance is no longer writableCopyright © 2014. All Rights Reserved.