org.openflow.protocol
Class OFFlowRemoved

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

public class OFFlowRemoved
extends OFMessage

Represents an ofp_flow_removed message

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

Nested Class Summary
static class OFFlowRemoved.OFFlowRemovedReason
           
 
Field Summary
protected  long byteCount
           
protected  long cookie
           
protected  int durationNanoseconds
           
protected  int durationSeconds
           
protected  short hardTimeout
           
protected  short idleTimeout
           
protected  OFMatch match
           
static int MINIMUM_LENGTH
           
protected  long packetCount
           
protected  short priority
           
protected  OFFlowRemoved.OFFlowRemovedReason reason
           
protected  byte tableId
           
 
Fields inherited from class org.openflow.protocol.OFMessage
length, OFP_VERSION, type, version, xid
 
Constructor Summary
OFFlowRemoved()
           
 
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)
           
 long getByteCount()
           
 long getCookie()
          Get cookie
 int getDurationNanoseconds()
           
 int getDurationSeconds()
           
 short getHardTimeout()
          Get hard_timeout
 short getIdleTimeout()
          Get idle_timeout
 OFMatch getMatch()
          Gets a copy of the OFMatch object for this FlowMod, changes to this object do not modify the FlowMod
 long getPacketCount()
           
 short getPriority()
          Get priority
 OFFlowRemoved.OFFlowRemovedReason getReason()
           
 byte getTableId()
          Get tableId
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFFlowRemoved setByteCount(long byteCount)
           
 OFFlowRemoved setCookie(long cookie)
          Set cookie
 OFFlowRemoved setDurationNanoseconds(int durationNanoseconds)
           
 OFFlowRemoved setDurationSeconds(int durationSeconds)
           
 OFFlowRemoved setHardTimeout(short hardTimeout)
          Set hard_timeout
 OFFlowRemoved setIdleTimeout(short idleTimeout)
          Set idle_timeout
 OFFlowRemoved setMatch(OFMatch match)
          Set match
 OFFlowRemoved setPacketCount(long packetCount)
           
 OFFlowRemoved setPriority(short priority)
          Set priority
 OFFlowRemoved setReason(OFFlowRemoved.OFFlowRemovedReason reason)
           
 OFFlowRemoved setTableId(byte tableId)
          Set tableId
 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

match

protected OFMatch match

cookie

protected long cookie

priority

protected short priority

reason

protected OFFlowRemoved.OFFlowRemovedReason reason

tableId

protected byte tableId

durationSeconds

protected int durationSeconds

durationNanoseconds

protected int durationNanoseconds

idleTimeout

protected short idleTimeout

hardTimeout

protected short hardTimeout

packetCount

protected long packetCount

byteCount

protected long byteCount
Constructor Detail

OFFlowRemoved

public OFFlowRemoved()
Method Detail

getCookie

public long getCookie()
Get cookie

Returns:

setCookie

public OFFlowRemoved setCookie(long cookie)
Set cookie

Parameters:
cookie -

getIdleTimeout

public short getIdleTimeout()
Get idle_timeout

Returns:

setIdleTimeout

public OFFlowRemoved setIdleTimeout(short idleTimeout)
Set idle_timeout

Parameters:
idleTimeout -

getHardTimeout

public short getHardTimeout()
Get hard_timeout

Returns:

setHardTimeout

public OFFlowRemoved setHardTimeout(short hardTimeout)
Set hard_timeout

Parameters:
hardTimeout -

getMatch

public OFMatch getMatch()
Gets a copy of the OFMatch object for this FlowMod, changes to this object do not modify the FlowMod

Returns:

setMatch

public OFFlowRemoved setMatch(OFMatch match)
Set match

Parameters:
match -

getPriority

public short getPriority()
Get priority

Returns:

setPriority

public OFFlowRemoved setPriority(short priority)
Set priority

Parameters:
priority -

getReason

public OFFlowRemoved.OFFlowRemovedReason getReason()
Returns:
the reason

setReason

public OFFlowRemoved setReason(OFFlowRemoved.OFFlowRemovedReason reason)
Parameters:
reason - the reason to set

getTableId

public byte getTableId()
Get tableId

Returns:

setTableId

public OFFlowRemoved setTableId(byte tableId)
Set tableId

Parameters:
tableId -

getDurationSeconds

public int getDurationSeconds()
Returns:
the durationSeconds

setDurationSeconds

public OFFlowRemoved setDurationSeconds(int durationSeconds)
Parameters:
durationSeconds - the durationSeconds to set

getDurationNanoseconds

public int getDurationNanoseconds()
Returns:
the durationNanoseconds

setDurationNanoseconds

public OFFlowRemoved setDurationNanoseconds(int durationNanoseconds)
Parameters:
durationNanoseconds - the durationNanoseconds to set

getPacketCount

public long getPacketCount()
Returns:
the packetCount

setPacketCount

public OFFlowRemoved setPacketCount(long packetCount)
Parameters:
packetCount - the packetCount to set

getByteCount

public long getByteCount()
Returns:
the byteCount

setByteCount

public OFFlowRemoved setByteCount(long byteCount)
Parameters:
byteCount - the byteCount 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

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"

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