|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openflow.protocol.OFMessage
public class OFMessage
The base class for all OpenFlow protocol messages. This class contains the equivalent of the ofp_header which is present in all OpenFlow messages.
| Field Summary | |
|---|---|
protected short |
length
|
static int |
MINIMUM_LENGTH
|
static byte |
OFP_VERSION
|
protected OFType |
type
|
protected byte |
version
|
protected int |
xid
|
| Constructor Summary | |
|---|---|
OFMessage()
|
|
| Method Summary | |
|---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
boolean |
equals(java.lang.Object obj)
|
short |
getLength()
Get the length of this message |
int |
getLengthU()
Get the length of this message, unsigned |
OFType |
getType()
Get the type of this message |
byte |
getVersion()
Get the OpenFlow version of this message |
int |
getXid()
Get the transaction id of this message |
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFMessage |
setLength(short length)
Set the length of this message |
OFMessage |
setLengthU(int length)
Set the length of this message, unsigned |
OFMessage |
setType(OFType type)
Set the type of this message |
OFMessage |
setVersion(byte version)
Set the OpenFlow version of this message |
OFMessage |
setXid(int xid)
Set the transaction id of this message |
java.lang.String |
toString()
Returns a summary of the message |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static byte OFP_VERSION
public static int MINIMUM_LENGTH
protected byte version
protected OFType type
protected short length
protected int xid
| Constructor Detail |
|---|
public OFMessage()
| Method Detail |
|---|
public short getLength()
public int getLengthU()
public OFMessage setLength(short length)
length - public OFMessage setLengthU(int length)
length - public OFType getType()
public OFMessage setType(OFType type)
type - public byte getVersion()
public OFMessage setVersion(byte version)
version - public int getXid()
public OFMessage setXid(int xid)
xid - public void readFrom(java.nio.ByteBuffer data)
data - public void writeTo(java.nio.ByteBuffer data)
data - public void computeLength()
public java.lang.String toString()
toString in class java.lang.Objectpublic 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 | |||||||||