|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.vendor.nicira.OFNiciraVendorData
public class OFNiciraVendorData
Base class for vendor data corresponding to a Nicira vendor extension. Nicira vendor data always starts with a 4-byte integer data type value.
Field Summary | |
---|---|
protected int |
dataType
The value of the integer data type at the beginning of the vendor data |
static int |
NX_VENDOR_ID
|
Constructor Summary | |
---|---|
OFNiciraVendorData()
Construct empty (i.e. |
|
OFNiciraVendorData(int dataType)
Contruct Nicira vendor data with the specified data type |
Method Summary | |
---|---|
int |
getDataType()
Get the data type value at the beginning of the vendor data |
int |
getLength()
Get the length of the vendor data. |
void |
readFrom(java.nio.ByteBuffer data,
int length)
Read the vendor data from the ByteBuffer |
void |
setDataType(int dataType)
Set the data type value |
void |
writeTo(java.nio.ByteBuffer data)
Write the vendor data to the ByteBuffer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NX_VENDOR_ID
protected int dataType
Constructor Detail |
---|
public OFNiciraVendorData()
public OFNiciraVendorData(int dataType)
dataType
- the data type value at the beginning of the vendor data.Method Detail |
---|
public int getDataType()
public void setDataType(int dataType)
dataType
- the integer data type value at the beginning of the
vendor data.public int getLength()
getLength
in interface OFVendorData
public void readFrom(java.nio.ByteBuffer data, int length)
readFrom
in interface OFVendorData
data
- the channel buffer from which we're deserializinglength
- the length to the end of the enclosing messagepublic void writeTo(java.nio.ByteBuffer data)
writeTo
in interface OFVendorData
data
- the channel buffer to which we're serializing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |