public class MBodyMutableDesc extends MBodyDesc implements MutableStructure
MBodyDesc.version| Constructor and Description |
|---|
MBodyMutableDesc(ProtocolVersion pv)
Constructs a mutable multipart body DESC type.
|
| Modifier and Type | Method and Description |
|---|---|
MBodyMutableDesc |
dpDesc(String dpDesc)
Sets the human readable description of the datapath; Since 1.0.
|
MBodyMutableDesc |
hwDesc(String hwDesc)
Sets the hardware description; Since 1.0.
|
MBodyMutableDesc |
mfrDesc(String mfrDesc)
Sets the manufacturer description; Since 1.0.
|
MBodyMutableDesc |
serialNum(String serialNum)
Sets the serial number; Since 1.0.
|
MBodyMutableDesc |
swDesc(String swDesc)
Sets the software description; 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.
|
getDpDesc, getHwDesc, getMfrDesc, getSerialNum, getSwDesc, getTotalLength, toDebugStringgetVersion, hex, hex, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersion, toDebugStringvalidatepublic MBodyMutableDesc(ProtocolVersion pv)
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 MBodyMutableDesc mfrDesc(String mfrDesc)
MpBodyFactory.DESC_STR_LEN - 1.mfrDesc - the manufacturer descriptionInvalidMutableException - if this instance is no longer writableNullPointerException - if mfrDesc is nullIllegalArgumentException - if string length is >255public MBodyMutableDesc hwDesc(String hwDesc)
MpBodyFactory.DESC_STR_LEN - 1.hwDesc - the hardware descriptionInvalidMutableException - if this instance is no longer writableNullPointerException - if hwDesc is nullIllegalArgumentException - if string length is >255public MBodyMutableDesc swDesc(String swDesc)
MpBodyFactory.DESC_STR_LEN - 1.swDesc - the software descriptionInvalidMutableException - if this instance is no longer writableNullPointerException - if swDesc is nullIllegalArgumentException - if string length is >255public MBodyMutableDesc serialNum(String serialNum)
MpBodyFactory.SERIAL_NUM_LEN - 1.serialNum - the serial numberInvalidMutableException - if this instance is no longer writableNullPointerException - if serialNum is nullIllegalArgumentException - if string length is >31public MBodyMutableDesc dpDesc(String dpDesc)
MpBodyFactory.DESC_STR_LEN - 1.dpDesc - the datapath descriptionInvalidMutableException - if this instance is no longer writableNullPointerException - if dpDesc is nullIllegalArgumentException - if string length is >255Copyright © 2014. All Rights Reserved.