org.openflow.protocol
Class OFFeaturesReply

java.lang.Object
  extended by org.openflow.protocol.OFMessage
      extended by org.openflow.protocol.OFFeaturesReply

public class OFFeaturesReply
extends OFMessage

Represents a features reply message

Author:
David Erickson (daviderickson@cs.stanford.edu), Srini Seetharaman (srini.seetharaman@gmail.com)

Nested Class Summary
static class OFFeaturesReply.OFCapabilities
          Corresponds to bits on the capabilities field
 
Field Summary
protected  byte auxiliaryId
           
protected  int buffers
           
protected  int capabilities
           
protected  long datapathId
           
static int MINIMUM_LENGTH
           
protected  int reserved
           
protected  byte tables
           
 
Fields inherited from class org.openflow.protocol.OFMessage
length, OFP_VERSION, type, version, xid
 
Constructor Summary
OFFeaturesReply()
           
 
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)
           
 int getActions()
           
 int getAuxiliaryId()
           
 int getBuffers()
           
 int getCapabilities()
           
 long getDatapathId()
           
 byte getTables()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFFeaturesReply setActions(int reserved)
           
 OFFeaturesReply setAuxiliaryId(byte auxiliaryId)
           
 OFFeaturesReply setBuffers(int buffers)
           
 OFFeaturesReply setCapabilities(int capabilities)
           
 OFFeaturesReply setDatapathId(long datapathId)
           
 OFFeaturesReply setTables(byte tables)
           
 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 org.openflow.protocol.OFMessage
getLength, getLengthU, getType, getVersion, getXid, setLength, setLengthU, setType, setVersion, setXid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

datapathId

protected long datapathId

buffers

protected int buffers

tables

protected byte tables

auxiliaryId

protected byte auxiliaryId

capabilities

protected int capabilities

reserved

protected int reserved
Constructor Detail

OFFeaturesReply

public OFFeaturesReply()
Method Detail

getDatapathId

public long getDatapathId()
Returns:
the datapathId

setDatapathId

public OFFeaturesReply setDatapathId(long datapathId)
Parameters:
datapathId - the datapathId to set

getBuffers

public int getBuffers()
Returns:
the buffers

setBuffers

public OFFeaturesReply setBuffers(int buffers)
Parameters:
buffers - the buffers to set

getTables

public byte getTables()
Returns:
the tables

setTables

public OFFeaturesReply setTables(byte tables)
Parameters:
tables - the tables to set

getAuxiliaryId

public int getAuxiliaryId()
Returns:
the auxiliaryId

setAuxiliaryId

public OFFeaturesReply setAuxiliaryId(byte auxiliaryId)
Parameters:
capabilities - the capabilities to set

getCapabilities

public int getCapabilities()
Returns:
the capabilities

setCapabilities

public OFFeaturesReply setCapabilities(int capabilities)
Parameters:
capabilities - the capabilities to set

getActions

public int getActions()
Returns:
the reserved

setActions

public OFFeaturesReply setActions(int reserved)
Parameters:
reserved - the reserved to set

readFrom

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

Overrides:
readFrom in class OFMessage

writeTo

public void writeTo(java.nio.ByteBuffer data)
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

toString

public java.lang.String toString()
Description copied from class: OFMessage
Returns a summary of the message

Overrides:
toString in class OFMessage
Returns:
"ofmsg=v=$version;t=$type:l=$len:xid=$xid"