|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigswitch.floodlight.vendor.OFBigSwitchVendorData
public class OFBigSwitchVendorData
Base class for vendor data corresponding to BigSwitch vendor extensions BigSwitch vendor data always starts with a 4-byte integer data type value
| Field Summary | |
|---|---|
static int |
BSN_VENDOR_ID
|
protected int |
dataType
The value of the integer data type at the beginning of the vendor data |
| Constructor Summary | |
|---|---|
OFBigSwitchVendorData(int dataType)
Construct BigSwitch vendor data with the specified data type |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getDataType()
Get the data type value at the beginning of the vendor data |
int |
getLength()
Get the length of the vendor data. |
int |
hashCode()
|
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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int BSN_VENDOR_ID
protected int dataType
| Constructor Detail |
|---|
public OFBigSwitchVendorData(int dataType)
dataType - : the data type value at the beginning (opcode)| Method Detail |
|---|
public int getDataType()
public void setDataType(int dataType)
dataType - public int getLength()
getLength in interface OFVendorData
public void readFrom(java.nio.ByteBuffer data,
int length)
readFrom in interface OFVendorDatadata - 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 OFVendorDatadata - the channel buffer to which we're serializingpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||