public class MBodyQueueStats extends OpenflowStructure implements MultipartBody
MBodyQueueStatsRequest
Modifier and Type | Class and Description |
---|---|
static class |
MBodyQueueStats.Array
Represents an array of port descriptions.
|
static class |
MBodyQueueStats.MutableArray
A mutable array of queue statistics.
|
parseErrorCause, version
Constructor and Description |
---|
MBodyQueueStats(ProtocolVersion pv)
Constructs an OpenFlow structure.
|
Modifier and Type | Method and Description |
---|---|
long |
getDurationNsec()
Returns the additional time the queue has been alive in nanoseconds;
Since 1.3.
|
long |
getDurationSec()
Returns the time the queue has been alive in seconds; Since 1.3.
|
BigPortNumber |
getPort()
Returns the port for which queue statistics are requested; Since 1.0.
|
QueueId |
getQueueId()
Returns the ID of the queue configured for specified port; Since 1.0.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
long |
getTxBytes()
Returns the number of transmitted bytes; Since 1.0.
|
long |
getTxErrors()
Returns the number of packets dropped due to overrun; Since 1.0.
|
long |
getTxPackets()
Returns the number of transmitted packets; Since 1.0.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this Queue Stats object.
|
String |
toString() |
getVersion, hex, hex, incomplete, parseErrorCause, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validate
getVersion
public MBodyQueueStats(ProtocolVersion pv)
pv
- the protocol versionpublic String toString()
toString
in class OpenflowStructure
public String toDebugString()
OpenflowStructure
OpenflowStructure.toString()
, but
subclasses are free to override this behavior.toDebugString
in interface Structure
toDebugString
in class OpenflowStructure
public String toDebugString(int indent)
indent
- the additional indent (number of spaces)public int getTotalLength()
MultipartBody
getTotalLength
in interface MultipartBody
public BigPortNumber getPort()
A value of Port.ANY
indicates no restriction.
Note that in 1.0, port numbers are u16.
public QueueId getQueueId()
QueueId.ALL
indicates all queues.public long getTxBytes()
public long getTxPackets()
public long getTxErrors()
public long getDurationSec()
public long getDurationNsec()
Copyright © 2015. All Rights Reserved.