public class MBodyFlowStats extends OpenflowStructure implements MultipartBody
MBodyFlowStatsRequest
Modifier and Type | Class and Description |
---|---|
static class |
MBodyFlowStats.Array
Represents an array of flow stats elements.
|
static class |
MBodyFlowStats.MutableArray
A mutable array of flow stats elements.
|
parseErrorCause, version
Constructor and Description |
---|
MBodyFlowStats(ProtocolVersion pv)
Constructs an OpenFlow structure.
|
Modifier and Type | Method and Description |
---|---|
List<Action> |
getActions()
Returns the list of actions for this flow; Since 1.0; Dropped at 1.1.
|
long |
getByteCount()
Returns the number of bytes in the flow; Since 1.0.
|
long |
getCookie()
Returns this flow's cookie; Since 1.0.
|
long |
getDurationNsec()
Returns the time this flow has been alive in nanoseconds beyond
getDurationSec() ; Since 1.0. |
long |
getDurationSec()
Returns the time this flow has been alive in seconds; Since 1.0.
|
Set<FlowModFlag> |
getFlags()
Returns the set of flow mod flags that apply to this flow; Since 1.3.
|
int |
getHardTimeout()
Returns the hard timeout for this flow, in seconds; Since 1.0.
|
int |
getIdleTimeout()
Returns the idle timeout for this flow, in seconds; Since 1.0.
|
List<Instruction> |
getInstructions()
Returns the list of instructions for this flow; Since 1.1.
|
Match |
getMatch()
Returns the match for this flow; Since 1.0.
|
long |
getPacketCount()
Returns the number of packets in the flow; Since 1.0.
|
int |
getPriority()
Returns the priority of this flow; Since 1.0.
|
TableId |
getTableId()
Returns the id of the table this flow came from; Since 1.0.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toDebugString(int indent)
Returns a multi-line representation of this Flow Stats object.
|
String |
toString() |
void |
validate()
Validates this structure for completeness and throws an exception
if the structure is considered "not complete".
|
getVersion, hex, hex, incomplete, parseErrorCause
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getVersion
public MBodyFlowStats(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 void validate() throws IncompleteStructureException
OpenflowStructure
This default implementation does nothing, i.e. default behavior is that structures are considered complete.
Subclasses should override this method to check that mandatory fields or other internal state is present, throwing an exception if it is not.
validate
in interface MultipartBody
validate
in class OpenflowStructure
IncompleteStructureException
- if the structure is not completepublic TableId getTableId()
public long getDurationSec()
public long getDurationNsec()
getDurationSec()
; Since 1.0.
This value is u32.public int getPriority()
public int getIdleTimeout()
public int getHardTimeout()
public Set<FlowModFlag> getFlags()
For versions prior to 1.3, this method will return null.
public long getCookie()
public long getPacketCount()
public long getByteCount()
public Match getMatch()
public List<Instruction> getInstructions()
For 1.0, this method will return null.
Copyright © 2015. All Rights Reserved.