org.openflow.protocol.statistics
Class OFQueueStatisticsReply

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

public class OFQueueStatisticsReply
extends java.lang.Object
implements OFStatistics

Represents an ofp_queue_stats structure

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

Field Summary
protected  int durationNanoseconds
           
protected  int durationSeconds
           
static int MINIMUM_LENGTH
           
protected  int portNumber
           
protected  int queueId
           
protected  long transmitBytes
           
protected  long transmitErrors
           
protected  long transmitPackets
           
 
Constructor Summary
OFQueueStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 int getDurationNanoseconds()
           
 int getDurationSeconds()
           
 int getLength()
          Returns the wire length of this message in bytes
 int getPortNumber()
           
 int getQueueId()
           
 long getTransmitBytes()
           
 long getTransmitErrors()
           
 long getTransmitPackets()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFQueueStatisticsReply setDurationNanoseconds(int durationNanoseconds)
           
 OFQueueStatisticsReply setDurationSeconds(int durationSeconds)
           
 OFQueueStatisticsReply setPortNumber(int portNumber)
           
 OFQueueStatisticsReply setQueueId(int queueId)
           
 OFQueueStatisticsReply setTransmitBytes(long transmitBytes)
           
 OFQueueStatisticsReply setTransmitErrors(long transmitErrors)
           
 OFQueueStatisticsReply setTransmitPackets(long transmitPackets)
           
 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

portNumber

protected int portNumber

queueId

protected int queueId

transmitBytes

protected long transmitBytes

transmitPackets

protected long transmitPackets

transmitErrors

protected long transmitErrors

durationSeconds

protected int durationSeconds

durationNanoseconds

protected int durationNanoseconds
Constructor Detail

OFQueueStatisticsReply

public OFQueueStatisticsReply()
Method Detail

getPortNumber

public int getPortNumber()
Returns:
the portNumber

setPortNumber

public OFQueueStatisticsReply setPortNumber(int portNumber)
Parameters:
portNumber - the portNumber to set

getQueueId

public int getQueueId()
Returns:
the queueId

setQueueId

public OFQueueStatisticsReply setQueueId(int queueId)
Parameters:
queueId - the queueId to set

getTransmitBytes

public long getTransmitBytes()
Returns:
the transmitBytes

setTransmitBytes

public OFQueueStatisticsReply setTransmitBytes(long transmitBytes)
Parameters:
transmitBytes - the transmitBytes to set

getTransmitPackets

public long getTransmitPackets()
Returns:
the transmitPackets

setTransmitPackets

public OFQueueStatisticsReply setTransmitPackets(long transmitPackets)
Parameters:
transmitPackets - the transmitPackets to set

getTransmitErrors

public long getTransmitErrors()
Returns:
the transmitErrors

setTransmitErrors

public OFQueueStatisticsReply setTransmitErrors(long transmitErrors)
Parameters:
transmitErrors - the transmitErrors 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

getDurationSeconds

public int getDurationSeconds()
Returns:
the duration_seconds

setDurationSeconds

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

getDurationNanoseconds

public int getDurationNanoseconds()
Returns:
the duration_nanoseconds

setDurationNanoseconds

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

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: