|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.vendor.nicira.OFNiciraVendorData
org.openflow.vendor.nicira.OFRoleVendorData
public class OFRoleVendorData
Class that represents the vendor data in the role request extension implemented by Open vSwitch to support high availability.
Field Summary | |
---|---|
static int |
NX_ROLE_MASTER
Role value indicating that the controller is in the MASTER role. |
static int |
NX_ROLE_OTHER
Role value indicating that the controller is in the OTHER role. |
static int |
NX_ROLE_SLAVE
Role value indicating that the controller is in the SLAVE role. |
protected int |
role
|
Fields inherited from class org.openflow.vendor.nicira.OFNiciraVendorData |
---|
dataType, NX_VENDOR_ID |
Constructor Summary | |
---|---|
OFRoleVendorData()
Construct an uninitialized OFRoleVendorData |
|
OFRoleVendorData(int dataType)
Construct an OFRoleVendorData with the specified data type (i.e. |
|
OFRoleVendorData(int dataType,
int role)
Construct an OFRoleVendorData with the specified data type (i.e. |
Method Summary | |
---|---|
int |
getLength()
Get the length of the vendor data. |
int |
getRole()
|
void |
readFrom(java.nio.ByteBuffer data,
int length)
Read the role vendor data from the ByteBuffer |
void |
setRole(int role)
|
void |
writeTo(java.nio.ByteBuffer data)
Write the role vendor data to the ByteBuffer |
Methods inherited from class org.openflow.vendor.nicira.OFNiciraVendorData |
---|
getDataType, setDataType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NX_ROLE_OTHER
public static final int NX_ROLE_MASTER
public static final int NX_ROLE_SLAVE
protected int role
Constructor Detail |
---|
public OFRoleVendorData()
public OFRoleVendorData(int dataType)
dataType
- public OFRoleVendorData(int dataType, int role)
dataType
- either role request or role reply data typeMethod Detail |
---|
public int getRole()
public void setRole(int role)
role
- the role value of the role vendor datapublic int getLength()
OFNiciraVendorData
getLength
in interface OFVendorData
getLength
in class OFNiciraVendorData
public void readFrom(java.nio.ByteBuffer data, int length)
readFrom
in interface OFVendorData
readFrom
in class OFNiciraVendorData
data
- 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 OFVendorData
writeTo
in class OFNiciraVendorData
data
- the channel buffer to which we're serializing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |