org.openflow.protocol
Class OFTableMod
java.lang.Object
org.openflow.protocol.OFMessage
org.openflow.protocol.OFTableMod
public class OFTableMod
- extends OFMessage
Represents an ofp_table_mod message
- Author:
- Srini Seetharaman (srini.seetharaman@gmail.com)
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 |
getConfig()
|
byte |
getTableId()
|
int |
hashCode()
|
void |
readFrom(java.nio.ByteBuffer data)
Read this message off the wire from the specified ByteBuffer |
OFTableMod |
setConfig(int config)
|
OFTableMod |
setTableId(byte tableId)
|
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, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
MINIMUM_LENGTH
public static int MINIMUM_LENGTH
tableId
protected byte tableId
config
protected int config
OFTableMod
public OFTableMod()
getTableId
public byte getTableId()
- Returns:
- the tableId
setTableId
public OFTableMod setTableId(byte tableId)
- Parameters:
tableId
- the tableId to set
getConfig
public int getConfig()
- Returns:
- the config
setConfig
public OFTableMod setConfig(int config)
- Parameters:
config
- the config 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