org.openflow.protocol.statistics
Class OFMeterStatisticsReply

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

public class OFMeterStatisticsReply
extends java.lang.Object
implements OFStatistics

Represents an ofp_meter_stats structure

Author:
Srini Seetharaman (srini.seetharaman@gmail.com)

Field Summary
protected  java.util.List<OFMeterBandStatistics> bandStatistics
           
protected  long byteInCount
           
protected  int flowCount
           
protected  short length
           
protected  int meterId
           
static int MINIMUM_LENGTH
           
protected  long packetInCount
           
 
Constructor Summary
OFMeterStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.util.List<OFMeterBandStatistics> getBandStatistics()
           
 long getByteInCount()
           
 int getFlowCount()
           
 int getLength()
          Returns the wire length of this message in bytes
 int getMeterId()
           
 long getPacketInCount()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFMeterStatisticsReply setBandStatistics(java.util.List<OFMeterBandStatistics> bandStatistics)
           
 OFMeterStatisticsReply setByteInCount(long byteInCount)
           
 void setFlowCount(int flowCount)
           
 void setLength(short length)
           
 OFMeterStatisticsReply setMeterId(int meterId)
           
 OFMeterStatisticsReply setPacketInCount(long packetInCount)
           
 java.lang.String toString()
           
 void updateLength()
           
 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, wait, wait, wait
 

Field Detail

MINIMUM_LENGTH

public static int MINIMUM_LENGTH

length

protected short length

meterId

protected int meterId

flowCount

protected int flowCount

packetInCount

protected long packetInCount

byteInCount

protected long byteInCount

bandStatistics

protected java.util.List<OFMeterBandStatistics> bandStatistics
Constructor Detail

OFMeterStatisticsReply

public OFMeterStatisticsReply()
Method Detail

getMeterId

public int getMeterId()
Returns:
the meterId

setMeterId

public OFMeterStatisticsReply setMeterId(int meterId)
Parameters:
meterId - the meterId to set

getPacketInCount

public long getPacketInCount()
Returns:
the packetInCount

setPacketInCount

public OFMeterStatisticsReply setPacketInCount(long packetInCount)
Parameters:
packetInCount - the packetInCount to set

getFlowCount

public int getFlowCount()
Returns:
the flowCount

setFlowCount

public void setFlowCount(int flowCount)
Parameters:
flowCount - the flowCount to set

getByteInCount

public long getByteInCount()
Returns:
the byteInCount

setByteInCount

public OFMeterStatisticsReply setByteInCount(long byteInCount)
Parameters:
byteInCount - the byteInCount to set

setLength

public void setLength(short length)
Parameters:
length - the length 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

getBandStatistics

public java.util.List<OFMeterBandStatistics> getBandStatistics()
Returns:
the bandStatistics

setBandStatistics

public OFMeterStatisticsReply setBandStatistics(java.util.List<OFMeterBandStatistics> bandStatistics)
Parameters:
bandStatistics - the bandStatistics to set

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

updateLength

public void updateLength()

toString

public java.lang.String toString()
Overrides:
toString 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: