public class MBodyExperimenter extends OpenflowStructure implements MultipartBody
This class also represents the Vendor extension to a stats request or reply message that was introduced at version 1.0, and then replaced with this Experimenter extension starting with version 1.1. The Vender ID from the OpenFlow 1.0 specification is mapped to the Experimenter ID, which was introduced in the 1.1 specification.
The experimenter ID uniquely identifies the experimenter. If the most significant byte is zero, the next three bytes are the experimenter's IEEE OUI. If the most significant byte is not zero, it is a value allocated by the Open Networking Foundation.
The rest of the experimenter request/reply body is uninterpreted by standard OpenFlow processing and is arbitrarily defined by the corresponding experimenter.
version| Constructor and Description |
|---|
MBodyExperimenter(ProtocolVersion pv)
Constructs a multipart body EXPERIMENTER extension type.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Returns a copy of the experimenter-defined additional data.
|
ExperimenterId |
getExpId()
Returns the experimenter ID (if we know it); null otherwise; Since 1.0.
|
int |
getExpType()
Returns the experimenter-defined type; Since 1.3.
|
int |
getId()
Returns the experimenter ID encoded as an int; Since 1.0.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
getVersion, hex, hex, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalidategetVersionpublic MBodyExperimenter(ProtocolVersion pv)
pv - the protocol versionpublic String toString()
toString in class OpenflowStructurepublic String toDebugString()
OpenflowStructureOpenflowStructure.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowStructurepublic int getTotalLength()
MultipartBodygetTotalLength in interface MultipartBodypublic int getId()
public ExperimenterId getExpId()
public int getExpType()
For 1.0 messages, the value returned is 0. For 1.1 messages, the value returned is undetermined (but assumed to be 0).
public byte[] getData()
Copyright © 2014. All Rights Reserved.