|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.OFMessage
org.openflow.protocol.OFHello
public class OFHello
Represents an ofp_hello message
Field Summary | |
---|---|
protected OFHelloElementFactory |
helloElementFactory
|
protected java.util.List<OFHelloElement> |
helloElements
|
static int |
MINIMUM_LENGTH
|
Fields inherited from class org.openflow.protocol.OFMessage |
---|
length, OFP_VERSION, type, version, xid |
Constructor Summary | |
---|---|
OFHello()
Construct a ofp_hello message |
Method Summary | |
---|---|
void |
computeLength()
This method is called during the writeTo method for serialization and is expected to set the length of the message. |
java.util.List<OFHelloElement> |
getHelloElements()
Returns read-only copies of the hello elements contained in this Hello message |
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
void |
setHelloElementFactory(OFHelloElementFactory helloElementFactory)
Sets the OFHelloElementFactory |
OFHello |
setHelloElements(java.util.List<OFHelloElement> helloElements)
Sets the list of hello elements this Hello message contains |
void |
writeTo(java.nio.ByteBuffer data)
Write this message's binary format to the specified ByteBuffer |
Methods inherited from class org.openflow.protocol.OFMessage |
---|
equals, getLength, getLengthU, getType, getVersion, getXid, hashCode, setLength, setLengthU, setType, setVersion, setXid, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int MINIMUM_LENGTH
protected java.util.List<OFHelloElement> helloElements
protected OFHelloElementFactory helloElementFactory
Constructor Detail |
---|
public OFHello()
Method Detail |
---|
public void setHelloElementFactory(OFHelloElementFactory helloElementFactory)
OFHelloElementFactoryAware
setHelloElementFactory
in interface OFHelloElementFactoryAware
public java.util.List<OFHelloElement> getHelloElements()
public OFHello setHelloElements(java.util.List<OFHelloElement> helloElements)
helloElements
- a list of ordered Hello elementspublic void readFrom(java.nio.ByteBuffer data)
OFMessage
readFrom
in class OFMessage
public void writeTo(java.nio.ByteBuffer data)
OFMessage
writeTo
in class OFMessage
public void computeLength()
OFMessage
computeLength
in class OFMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |