org.openflow.protocol.statistics
Class OFMeterConfigStatisticsReply

java.lang.Object
  extended by org.openflow.protocol.statistics.OFMeterConfigStatisticsReply
All Implemented Interfaces:
OFMeterBandFactoryAware, OFStatistics

public class OFMeterConfigStatisticsReply
extends java.lang.Object
implements OFStatistics, OFMeterBandFactoryAware

Represents an ofp_meter_stats structure

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

Field Summary
protected  java.util.List<OFMeterBand> bands
           
protected  short flags
           
protected  short length
           
protected  OFMeterBandFactory meterBandFactory
           
protected  int meterId
           
static int MINIMUM_LENGTH
           
 
Constructor Summary
OFMeterConfigStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.util.List<OFMeterBand> getBands()
           
 short getFlags()
           
 int getLength()
          Returns the wire length of this message in bytes
 int getMeterId()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFMeterConfigStatisticsReply setBands(java.util.List<OFMeterBand> bands)
           
 void setFlags(short flags)
           
 void setMeterBandFactory(OFMeterBandFactory meterBandFactory)
          Sets the OFMeterBandFactory
 OFMeterConfigStatisticsReply setMeterId(int meterId)
           
 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

meterBandFactory

protected OFMeterBandFactory meterBandFactory

length

protected short length

flags

protected short flags

meterId

protected int meterId

bands

protected java.util.List<OFMeterBand> bands
Constructor Detail

OFMeterConfigStatisticsReply

public OFMeterConfigStatisticsReply()
Method Detail

getMeterId

public int getMeterId()
Returns:
the meterId

setMeterId

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

getFlags

public short getFlags()
Returns:
the flags

setFlags

public void setFlags(short flags)
Parameters:
flags - the flags to set

getBands

public java.util.List<OFMeterBand> getBands()
Returns:
the bands

setBands

public OFMeterConfigStatisticsReply setBands(java.util.List<OFMeterBand> bands)
Parameters:
bands - the bands 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

setMeterBandFactory

public void setMeterBandFactory(OFMeterBandFactory meterBandFactory)
Description copied from interface: OFMeterBandFactoryAware
Sets the OFMeterBandFactory

Specified by:
setMeterBandFactory in interface OFMeterBandFactoryAware

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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()

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: