org.openflow.protocol
Class OFSwitchConfig
java.lang.Object
org.openflow.protocol.OFMessage
org.openflow.protocol.OFSwitchConfig
- Direct Known Subclasses:
- OFGetConfigReply, OFSetConfig
public abstract class OFSwitchConfig
- extends OFMessage
Base class representing ofp_switch_config based messages
- Author:
- David Erickson (daviderickson@cs.stanford.edu)
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
flags
protected short flags
missSendLength
protected short missSendLength
OFSwitchConfig
public OFSwitchConfig()
getFlags
public short getFlags()
- Returns:
- the flags
setFlags
public OFSwitchConfig setFlags(short flags)
- Parameters:
flags
- the flags to set
getMissSendLength
public short getMissSendLength()
- Returns:
- the missSendLength
setMissSendLength
public OFSwitchConfig setMissSendLength(short missSendLength)
- Parameters:
missSendLength
- the missSendLength 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