org.openflow.protocol.statistics
Class OFAggregateStatisticsReply

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

public class OFAggregateStatisticsReply
extends java.lang.Object
implements OFStatistics

Represents an ofp_aggregate_stats_reply structure

Author:
David Erickson (daviderickson@cs.stanford.edu)

Field Summary
protected  long byteCount
           
protected  int flowCount
           
protected static int MINIMUM_LENGTH
           
protected  long packetCount
           
 
Constructor Summary
OFAggregateStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 long getByteCount()
           
 int getFlowCount()
           
 int getLength()
          Returns the wire length of this message in bytes
 long getPacketCount()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFAggregateStatisticsReply setByteCount(long byteCount)
           
 OFAggregateStatisticsReply setFlowCount(int flowCount)
           
 OFAggregateStatisticsReply setPacketCount(long packetCount)
           
 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

protected static int MINIMUM_LENGTH

packetCount

protected long packetCount

byteCount

protected long byteCount

flowCount

protected int flowCount
Constructor Detail

OFAggregateStatisticsReply

public OFAggregateStatisticsReply()
Method Detail

getPacketCount

public long getPacketCount()
Returns:
the packetCount

setPacketCount

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

getByteCount

public long getByteCount()
Returns:
the byteCount

setByteCount

public OFAggregateStatisticsReply setByteCount(long byteCount)
Parameters:
byteCount - the byteCount to set

getFlowCount

public int getFlowCount()
Returns:
the flowCount

setFlowCount

public OFAggregateStatisticsReply setFlowCount(int flowCount)
Parameters:
flowCount - the flowCount 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: