|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.vendor.OFVendorId
public abstract class OFVendorId
Base class for the vendor ID corresponding to vendor extensions from a given vendor. It is responsible for knowing how to parse out some sort of data type value from the vendor data in an OFVendor message so that we can dispatch to the different subclasses of OFVendorData corresponding to the different formats of data for the vendor extensions.
Field Summary | |
---|---|
protected int |
id
The vendor id value, typically the OUI of the vendor prefixed with 0. |
Constructor Summary | |
---|---|
OFVendorId(int id)
Create an OFVendorId with the give vendor id value |
Method Summary | |
---|---|
int |
getId()
|
static OFVendorId |
lookupVendorId(int id)
Lookup the OFVendorId instance corresponding to the given id value. |
abstract OFVendorDataType |
parseVendorDataType(java.nio.ByteBuffer data,
int length)
This function parses enough of the data from the channel buffer to be able to determine the appropriate OFVendorDataType for the data. |
static void |
registerVendorId(OFVendorId vendorId)
Register a new vendor id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int id
Constructor Detail |
---|
public OFVendorId(int id)
id
- Method Detail |
---|
public static void registerVendorId(OFVendorId vendorId)
vendorId
- the vendor id to registerpublic static OFVendorId lookupVendorId(int id)
id
- the integer vendor id value
public int getId()
public abstract OFVendorDataType parseVendorDataType(java.nio.ByteBuffer data, int length)
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 |