public class OFNiciraVendorData extends Object implements OFVendorData
Modifier and Type | Field and Description |
---|---|
protected int |
dataType
The value of the integer data type at the beginning of the vendor data
|
static int |
NX_VENDOR_ID |
Constructor and Description |
---|
OFNiciraVendorData()
Construct empty (i.e.
|
OFNiciraVendorData(int dataType)
Contruct Nicira vendor data with the specified data type
|
Modifier and Type | Method and Description |
---|---|
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(org.jboss.netty.buffer.ChannelBuffer data,
int length)
Read the vendor data from the ChannelBuffer
|
void |
setDataType(int dataType)
Set the data type value
|
void |
writeTo(org.jboss.netty.buffer.ChannelBuffer data)
Write the vendor data to the ChannelBuffer
|
public static final int NX_VENDOR_ID
protected int dataType
public OFNiciraVendorData()
public OFNiciraVendorData(int dataType)
dataType
- the data type value at the beginning of the vendor data.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(org.jboss.netty.buffer.ChannelBuffer 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(org.jboss.netty.buffer.ChannelBuffer data)
writeTo
in interface OFVendorData
data
- the channel buffer to which we're serializingCopyright © 2015. All rights reserved.