org.openflow.protocol.statistics
Class OFPortStatisticsReply
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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
OFPortStatisticsReply
public OFPortStatisticsReply()
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: