public class ControllerStatsAdapter extends Object implements ControllerStats
ControllerStats
API, provided specifically for
unit tests to use, to insulate themselves from changes in the API.Constructor and Description |
---|
ControllerStatsAdapter() |
Modifier and Type | Method and Description |
---|---|
long |
duration()
Returns the number of milliseconds since the statistics were last
reset to zero.
|
long |
msgRxCount()
Returns the number of
OpenFlow messages received
by the controller (excluding PacketIns). |
long |
msgTxCount()
Returns the number of
OpenFlow messages issued
by the controller (excluding PacketOuts). |
long |
packetDropBytes()
Returns the total number of bytes reported via the
total length fields of all
PacketIn messages for which no PacketOut message
was issued. |
long |
packetDropCount()
|
long |
packetInBytes()
Returns the total number of bytes reported via the
total length fields of all
PacketIn messages received by the controller. |
long |
packetInCount()
Returns the number of
PacketIn messages
received by the controller. |
long |
packetOutBytes()
Returns the total number of bytes from packets "processed" by the
controller, via the PacketOut messages issued.
|
long |
packetOutCount()
Returns the number of
PacketOut messages
issued by the controller. |
public long duration()
ControllerStats
duration
in interface ControllerStats
public long packetInCount()
ControllerStats
PacketIn
messages
received by the controller.packetInCount
in interface ControllerStats
public long packetInBytes()
ControllerStats
total length
fields of all
PacketIn messages received by the controller.packetInBytes
in interface ControllerStats
public long packetOutCount()
ControllerStats
PacketOut
messages
issued by the controller. Note that this number includes synthetic
packets not otherwise associated with a PacketIn message.packetOutCount
in interface ControllerStats
public long packetOutBytes()
ControllerStats
packetOutBytes
in interface ControllerStats
public long packetDropCount()
ControllerStats
packetDropCount
in interface ControllerStats
public long packetDropBytes()
ControllerStats
total length
fields of all
PacketIn messages for which no PacketOut message
was issued.packetDropBytes
in interface ControllerStats
public long msgRxCount()
ControllerStats
OpenFlow messages
received
by the controller (excluding PacketIns).msgRxCount
in interface ControllerStats
public long msgTxCount()
ControllerStats
OpenFlow messages
issued
by the controller (excluding PacketOuts).msgTxCount
in interface ControllerStats
Copyright © 2015. All Rights Reserved.