org.openflow.protocol.statistics
Class OFPortStatisticsReply

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

public class OFPortStatisticsReply
extends java.lang.Object
implements OFStatistics

Represents an ofp_port_stats structure

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

Field Summary
protected  long collisions
           
protected  int durationNanoseconds
           
protected  int durationSeconds
           
static int MINIMUM_LENGTH
           
protected  int portNumber
           
protected  long receiveBytes
           
protected  long receiveCRCErrors
           
protected  long receiveDropped
           
protected  long receiveErrors
           
protected  long receiveFrameErrors
           
protected  long receiveOverrunErrors
           
protected  long receivePackets
           
protected  long transmitBytes
           
protected  long transmitDropped
           
protected  long transmitErrors
           
protected  long transmitPackets
           
 
Constructor Summary
OFPortStatisticsReply()
           
 
Method Summary
 int computeLength()
          Computes, sets and returns the length of this OFStatistics message.
 boolean equals(java.lang.Object obj)
           
 long getCollisions()
           
 int getDurationNanoseconds()
           
 int getDurationSeconds()
           
 int getLength()
          Returns the wire length of this message in bytes
 int getPortNumber()
           
 long getReceiveBytes()
           
 long getReceiveCRCErrors()
           
 long getReceiveDropped()
           
 long getreceiveErrors()
           
 long getReceiveFrameErrors()
           
 long getReceiveOverrunErrors()
           
 long getReceivePackets()
           
 long getTransmitBytes()
           
 long getTransmitDropped()
           
 long getTransmitErrors()
           
 long getTransmitPackets()
           
 int hashCode()
           
 void readFrom(java.nio.ByteBuffer data)
          Read this message off the wire from the specified ByteBuffer
 OFPortStatisticsReply setCollisions(long collisions)
           
 OFPortStatisticsReply setDurationNanoseconds(int durationNanoseconds)
           
 OFPortStatisticsReply setDurationSeconds(int durationSeconds)
           
 OFPortStatisticsReply setPortNumber(int portNumber)
           
 OFPortStatisticsReply setReceiveBytes(long receiveBytes)
           
 OFPortStatisticsReply setReceiveCRCErrors(long receiveCRCErrors)
           
 OFPortStatisticsReply setReceiveDropped(long receiveDropped)
           
 OFPortStatisticsReply setreceiveErrors(long receiveErrors)
           
 OFPortStatisticsReply setReceiveFrameErrors(long receiveFrameErrors)
           
 OFPortStatisticsReply setReceiveOverrunErrors(long receiveOverrunErrors)
           
 OFPortStatisticsReply setReceivePackets(long receivePackets)
           
 OFPortStatisticsReply setTransmitBytes(long transmitBytes)
           
 OFPortStatisticsReply setTransmitDropped(long transmitDropped)
           
 OFPortStatisticsReply setTransmitErrors(long transmitErrors)
           
 OFPortStatisticsReply 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

receivePackets

protected long receivePackets

transmitPackets

protected long transmitPackets

receiveBytes

protected long receiveBytes

transmitBytes

protected long transmitBytes

receiveDropped

protected long receiveDropped

transmitDropped

protected long transmitDropped

receiveErrors

protected long receiveErrors

transmitErrors

protected long transmitErrors

receiveFrameErrors

protected long receiveFrameErrors

receiveOverrunErrors

protected long receiveOverrunErrors

receiveCRCErrors

protected long receiveCRCErrors

collisions

protected long collisions

durationSeconds

protected int durationSeconds

durationNanoseconds

protected int durationNanoseconds
Constructor Detail

OFPortStatisticsReply

public OFPortStatisticsReply()
Method Detail

getPortNumber

public int getPortNumber()
Returns:
the portNumber

setPortNumber

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

getReceivePackets

public long getReceivePackets()
Returns:
the receivePackets

setReceivePackets

public OFPortStatisticsReply setReceivePackets(long receivePackets)
Parameters:
receivePackets - the receivePackets to set

getTransmitPackets

public long getTransmitPackets()
Returns:
the transmitPackets

setTransmitPackets

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

getReceiveBytes

public long getReceiveBytes()
Returns:
the receiveBytes

setReceiveBytes

public OFPortStatisticsReply setReceiveBytes(long receiveBytes)
Parameters:
receiveBytes - the receiveBytes to set

getTransmitBytes

public long getTransmitBytes()
Returns:
the transmitBytes

setTransmitBytes

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

getReceiveDropped

public long getReceiveDropped()
Returns:
the receiveDropped

setReceiveDropped

public OFPortStatisticsReply setReceiveDropped(long receiveDropped)
Parameters:
receiveDropped - the receiveDropped to set

getTransmitDropped

public long getTransmitDropped()
Returns:
the transmitDropped

setTransmitDropped

public OFPortStatisticsReply setTransmitDropped(long transmitDropped)
Parameters:
transmitDropped - the transmitDropped to set

getreceiveErrors

public long getreceiveErrors()
Returns:
the receiveErrors

setreceiveErrors

public OFPortStatisticsReply setreceiveErrors(long receiveErrors)
Parameters:
receiveErrors - the receiveErrors to set

getTransmitErrors

public long getTransmitErrors()
Returns:
the transmitErrors

setTransmitErrors

public OFPortStatisticsReply setTransmitErrors(long transmitErrors)
Parameters:
transmitErrors - the transmitErrors to set

getReceiveFrameErrors

public long getReceiveFrameErrors()
Returns:
the receiveFrameErrors

setReceiveFrameErrors

public OFPortStatisticsReply setReceiveFrameErrors(long receiveFrameErrors)
Parameters:
receiveFrameErrors - the receiveFrameErrors to set

getReceiveOverrunErrors

public long getReceiveOverrunErrors()
Returns:
the receiveOverrunErrors

setReceiveOverrunErrors

public OFPortStatisticsReply setReceiveOverrunErrors(long receiveOverrunErrors)
Parameters:
receiveOverrunErrors - the receiveOverrunErrors to set

getReceiveCRCErrors

public long getReceiveCRCErrors()
Returns:
the receiveCRCErrors

setReceiveCRCErrors

public OFPortStatisticsReply setReceiveCRCErrors(long receiveCRCErrors)
Parameters:
receiveCRCErrors - the receiveCRCErrors to set

getCollisions

public long getCollisions()
Returns:
the collisions

setCollisions

public OFPortStatisticsReply setCollisions(long collisions)
Parameters:
collisions - the collisions 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 OFPortStatisticsReply setDurationSeconds(int durationSeconds)
Parameters:
durationSeconds - the duration_seconds to set

getDurationNanoseconds

public int getDurationNanoseconds()
Returns:
the duration_nanoseconds

setDurationNanoseconds

public OFPortStatisticsReply 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: