|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.vendor.OFVendorId
org.openflow.protocol.vendor.OFBasicVendorId
public class OFBasicVendorId
Basic subclass of OFVendorId that works with any vendor data format where the data begins with an integral data type value.
Field Summary | |
---|---|
protected java.util.Map<java.lang.Long,OFBasicVendorDataType> |
dataTypeMap
Map of the vendor data types that have been registered for this vendor id. |
protected int |
dataTypeSize
The size of the data type value at the beginning of all vendor data associated with this vendor id. |
Fields inherited from class org.openflow.protocol.vendor.OFVendorId |
---|
id |
Constructor Summary | |
---|---|
OFBasicVendorId(int id,
int dataTypeSize)
Construct an OFVendorId that where the vendor data begins with a data type value whose size is dataTypeSize. |
Method Summary | |
---|---|
int |
getDataTypeSize()
Get the size of the data type value at the beginning of the vendor data. |
OFVendorDataType |
lookupVendorDataType(int vendorDataType)
Lookup the OFVendorDataType instance that has been registered with this vendor id. |
OFVendorDataType |
parseVendorDataType(java.nio.ByteBuffer data,
int length)
This function parses enough of the data from the buffer to be able to determine the appropriate OFVendorDataType for the data. |
void |
registerVendorDataType(OFBasicVendorDataType vendorDataType)
Register a vendor data type with this vendor id. |
Methods inherited from class org.openflow.protocol.vendor.OFVendorId |
---|
getId, lookupVendorId, registerVendorId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int dataTypeSize
protected java.util.Map<java.lang.Long,OFBasicVendorDataType> dataTypeMap
Constructor Detail |
---|
public OFBasicVendorId(int id, int dataTypeSize)
id
- the id of the vendor, typically the OUI of a vendor
prefixed with 0.dataTypeSize
- the size of the integral data type value
at the beginning of the vendor data. The value must be the
size of an integeral data type (i.e. either 1,2,4 or 8).Method Detail |
---|
public int getDataTypeSize()
public void registerVendorDataType(OFBasicVendorDataType vendorDataType)
vendorDataType
- public OFVendorDataType lookupVendorDataType(int vendorDataType)
vendorDataType
- the integer code that was parsed from the
public OFVendorDataType parseVendorDataType(java.nio.ByteBuffer data, int length)
parseVendorDataType
in class OFVendorId
data
- the channel buffer containing the vendor data.length
- the length to the end of the enclosing message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |