org.openflow.protocol
Class OFEchoRequest

java.lang.Object
  extended by org.openflow.protocol.OFMessage
      extended by org.openflow.protocol.OFEchoRequest
Direct Known Subclasses:
OFEchoReply

public class OFEchoRequest
extends OFMessage

Represents an ofp_echo_request message

Author:
Rob Sherwood (rob.sherwood@stanford.edu), Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
 
Fields inherited from class org.openflow.protocol.OFMessage
length, MINIMUM_LENGTH, OFP_VERSION, type, version, xid
 
Constructor Summary
OFEchoRequest()
           
 
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)
           
 byte[] getPayload()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer bb)
          Read this message off the wire from the specified ByteBuffer
 OFEchoRequest setPayload(byte[] payload)
           
 void writeTo(java.nio.ByteBuffer bb)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class org.openflow.protocol.OFMessage
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OFEchoRequest

public OFEchoRequest()
Method Detail

readFrom

public void readFrom(java.nio.ByteBuffer bb)
Description copied from class: OFMessage
Read this message off the wire from the specified ByteBuffer

Overrides:
readFrom in class OFMessage

getPayload

public byte[] getPayload()
Returns:
the payload

setPayload

public OFEchoRequest setPayload(byte[] payload)
Parameters:
payload - the payload to set

writeTo

public void writeTo(java.nio.ByteBuffer bb)
Description copied from class: OFMessage
Write this message's binary format to the specified ByteBuffer

Overrides:
writeTo in class OFMessage

hashCode

public int hashCode()
Overrides:
hashCode in class OFMessage

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OFMessage

computeLength

public void computeLength()
Description copied from class: OFMessage
This method is called during the writeTo method for serialization and is expected to set the length of the message. If your class manually sets the length you should override this to do nothing.

Overrides:
computeLength in class OFMessage