org.openflow.protocol.statistics
Class OFTableStatistics

java.lang.Object
  extended by org.openflow.protocol.statistics.OFTableStatistics
All Implemented Interfaces:
OFStatistics

public class OFTableStatistics
extends java.lang.Object
implements OFStatistics

Represents an ofp_table_stats structure

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

Field Summary
protected  int activeCount
           
protected  long lookupCount
           
protected  long matchedCount
           
static int MINIMUM_LENGTH
           
protected  byte tableId
           
 
Constructor Summary
OFTableStatistics()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 int getActiveCount()
           
 int getLength()
          Returns the wire length of this message in bytes
 long getLookupCount()
           
 long getMatchedCount()
           
 byte getTableId()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFTableStatistics setActiveCount(int activeCount)
           
 OFTableStatistics setLookupCount(long lookupCount)
           
 OFTableStatistics setMatchedCount(long matchedCount)
           
 OFTableStatistics 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 int MINIMUM_LENGTH

tableId

protected byte tableId

activeCount

protected int activeCount

lookupCount

protected long lookupCount

matchedCount

protected long matchedCount
Constructor Detail

OFTableStatistics

public OFTableStatistics()
Method Detail

getTableId

public byte getTableId()
Returns:
the tableId

setTableId

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

getActiveCount

public int getActiveCount()
Returns:
the activeCount

setActiveCount

public OFTableStatistics setActiveCount(int activeCount)
Parameters:
activeCount - the activeCount to set

getLookupCount

public long getLookupCount()
Returns:
the lookupCount

setLookupCount

public OFTableStatistics setLookupCount(long lookupCount)
Parameters:
lookupCount - the lookupCount to set

getMatchedCount

public long getMatchedCount()
Returns:
the matchedCount

setMatchedCount

public OFTableStatistics setMatchedCount(long matchedCount)
Parameters:
matchedCount - the matchedCount to set

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: