public abstract class OFVendorId extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
id
The vendor id value, typically the OUI of the vendor prefixed with 0.
|
Constructor and Description |
---|
OFVendorId(int id)
Create an OFVendorId with the give vendor id value
|
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static OFVendorId |
lookupVendorId(int id)
Lookup the OFVendorId instance corresponding to the given id value.
|
abstract OFVendorDataType |
parseVendorDataType(org.jboss.netty.buffer.ChannelBuffer 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.
|
protected int id
public OFVendorId(int id)
id
- public static void registerVendorId(OFVendorId vendorId)
vendorId
- the vendor id to registerpublic static OFVendorId lookupVendorId(int id)
id
- the integer vendor id valuepublic int getId()
public abstract OFVendorDataType parseVendorDataType(org.jboss.netty.buffer.ChannelBuffer data, int length)
data
- the channel buffer containing the vendor data.length
- the length to the end of the enclosing messageCopyright © 2015. All rights reserved.