org.openflow.protocol.statistics
Class OFFlowStatisticsRequest

java.lang.Object
  extended by org.openflow.protocol.statistics.OFFlowStatisticsRequest
All Implemented Interfaces:
OFStatistics
Direct Known Subclasses:
OFAggregateStatisticsRequest

public class OFFlowStatisticsRequest
extends java.lang.Object
implements OFStatistics

Represents an ofp_flow_stats_request structure

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

Field Summary
protected  long cookie
           
protected  long cookieMask
           
protected  OFMatch match
           
static int MINIMUM_LENGTH
           
protected  int outGroup
           
protected  int outPort
           
protected  byte tableId
           
 
Constructor Summary
OFFlowStatisticsRequest()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 long getCookie()
          Get cookie
 long getCookieMask()
          Get cookieMask
 int getLength()
          Returns the wire length of this message in bytes
 OFMatch getMatch()
           
 int getOutGroup()
           
 int getOutPort()
           
 byte getTableId()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFFlowStatisticsRequest setCookie(long cookie)
          Set cookie
 OFFlowStatisticsRequest setCookieMask(long cookieMask)
          Set cookieMask
 OFFlowStatisticsRequest setMatch(OFMatch match)
           
 OFFlowStatisticsRequest setOutGroup(int outGroup)
           
 OFFlowStatisticsRequest setOutPort(int outPort)
           
 OFFlowStatisticsRequest setTableId(byte tableId)
           
 void writeTo(java.nio.ByteBuffer data)
          Write this message's binary format to the specified ByteBuffer
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static final int MINIMUM_LENGTH
See Also:
Constant Field Values

match

protected OFMatch match

tableId

protected byte tableId

outPort

protected int outPort

outGroup

protected int outGroup

cookie

protected long cookie

cookieMask

protected long cookieMask
Constructor Detail

OFFlowStatisticsRequest

public OFFlowStatisticsRequest()
Method Detail

getMatch

public OFMatch getMatch()
Returns:
the match

setMatch

public OFFlowStatisticsRequest setMatch(OFMatch match)
Parameters:
match - the match to set

getTableId

public byte getTableId()
Returns:
the tableId

setTableId

public OFFlowStatisticsRequest setTableId(byte tableId)
Parameters:
tableId - the tableId to set

getOutPort

public int getOutPort()
Returns:
the outPort

setOutPort

public OFFlowStatisticsRequest setOutPort(int outPort)
Parameters:
outPort - the outPort to set

getOutGroup

public int getOutGroup()
Returns:
the outGroup

setOutGroup

public OFFlowStatisticsRequest setOutGroup(int outGroup)
Parameters:
outGroup - the outGroup to set

getCookie

public long getCookie()
Get cookie

Returns:

setCookie

public OFFlowStatisticsRequest setCookie(long cookie)
Set cookie

Parameters:
cookie -

getCookieMask

public long getCookieMask()
Get cookieMask

Returns:

setCookieMask

public OFFlowStatisticsRequest setCookieMask(long cookieMask)
Set cookieMask

Parameters:
cookieMask -

getLength

public int getLength()
Description copied from interface: OFStatistics
Returns the wire length of this message in bytes

Specified by:
getLength in interface OFStatistics
Returns:
the length

readFrom

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

Specified by:
readFrom in interface OFStatistics

writeTo

public void writeTo(java.nio.ByteBuffer data)
Description copied from interface: OFStatistics
Write this message's binary format to the specified ByteBuffer

Specified by:
writeTo in interface OFStatistics

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

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

computeLength

public int computeLength()
Description copied from interface: OFStatistics
Computes, sets and returns the length of this OFStatistics message. The value will be able to be retrieved from OFStatistics.getLength() without recomputing after this method is called.

Specified by:
computeLength in interface OFStatistics
Returns: