org.openflow.protocol.statistics
Class OFGroupStatisticsReply

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

public class OFGroupStatisticsReply
extends java.lang.Object
implements OFStatistics

Represents an ofp_group_stats structure

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

Field Summary
protected  long byteCount
           
protected  int durationNanoseconds
           
protected  int durationSeconds
           
protected  int groupId
           
protected  short length
           
static int MINIMUM_LENGTH
           
protected  long packetCount
           
 
Constructor Summary
OFGroupStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 java.util.List<OFGroupBucketCounter> getBandStatistics()
           
 long getByteCount()
           
 int getDurationNanoseconds()
           
 int getDurationSeconds()
           
 int getGroupId()
           
 int getLength()
          Returns the wire length of this message in bytes
 long getPacketCount()
           
 int getRefCount()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFGroupStatisticsReply setBandStatistics(java.util.List<OFGroupBucketCounter> bucketStatistics)
           
 OFGroupStatisticsReply setByteCount(long byteCount)
           
 OFGroupStatisticsReply setDurationNanoseconds(int durationNanoseconds)
           
 OFGroupStatisticsReply setDurationSeconds(int durationSeconds)
           
 OFGroupStatisticsReply setGroupId(int groupId)
           
 void setLength(short length)
           
 OFGroupStatisticsReply setPacketCount(long packetCount)
           
 void setRefCount(int refCount)
           
 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

groupId

protected int groupId

packetCount

protected long packetCount

byteCount

protected long byteCount

durationSeconds

protected int durationSeconds

durationNanoseconds

protected int durationNanoseconds
Constructor Detail

OFGroupStatisticsReply

public OFGroupStatisticsReply()
Method Detail

getGroupId

public int getGroupId()
Returns:
the groupId

setGroupId

public OFGroupStatisticsReply setGroupId(int groupId)
Parameters:
groupId - the groupId to set

getRefCount

public int getRefCount()
Returns:
the refCount

setRefCount

public void setRefCount(int refCount)
Parameters:
refCount - the refCount to set

getPacketCount

public long getPacketCount()
Returns:
the packetCount

setPacketCount

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

getByteCount

public long getByteCount()
Returns:
the byteCount

setByteCount

public OFGroupStatisticsReply setByteCount(long byteCount)
Parameters:
byteCount - the byteCount 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<OFGroupBucketCounter> getBandStatistics()
Returns:
the bucketStatistics

setBandStatistics

public OFGroupStatisticsReply setBandStatistics(java.util.List<OFGroupBucketCounter> bucketStatistics)
Parameters:
bucketStatistics - the bucketStatistics to set

getDurationSeconds

public int getDurationSeconds()
Returns:
the durationSeconds

setDurationSeconds

public OFGroupStatisticsReply setDurationSeconds(int durationSeconds)
Parameters:
durationSeconds - the durationSeconds to set

getDurationNanoseconds

public int getDurationNanoseconds()
Returns:
the durationNanoseconds

setDurationNanoseconds

public OFGroupStatisticsReply setDurationNanoseconds(int durationNanoseconds)
Parameters:
durationNanoseconds - the durationNanoseconds 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: