public class MBodyQueueStatsRequest extends OpenflowStructure implements MultipartBody
version| Constructor and Description |
|---|
MBodyQueueStatsRequest(ProtocolVersion pv)
Constructs a multipart body QUEUE type request.
|
| Modifier and Type | Method and Description |
|---|---|
BigPortNumber |
getPort()
Returns the port for which statistics are requested; Since 1.0.
|
QueueId |
getQueueId()
Returns the ID of the queue to read; Since 1.0.
|
int |
getTotalLength()
Returns the total length of the body, in bytes.
|
String |
toDebugString()
Returns a string representation useful for debugging.
|
String |
toString() |
void |
validate()
Validates this structure for completeness and throws an exception
if the structure is considered "not complete".
|
getVersion, hex, hexclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetVersionpublic MBodyQueueStatsRequest(ProtocolVersion pv)
pv - the protocol versionpublic String toString()
toString in class OpenflowStructurepublic String toDebugString()
OpenflowStructureOpenflowStructure.toString(), but
subclasses are free to override this behavior.toDebugString in interface StructuretoDebugString in class OpenflowStructurepublic void validate()
throws IncompleteStructureException
OpenflowStructureThis 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 MultipartBodyvalidate in class OpenflowStructureIncompleteStructureException - if the structure is not completepublic int getTotalLength()
MultipartBodygetTotalLength in interface MultipartBodypublic BigPortNumber getPort()
A value of Port.ANY indicates no restriction.
Note that in 1.0, port numbers are u16.
public QueueId getQueueId()
A value of QueueId.ALL indicates all queues.
Copyright © 2014. All Rights Reserved.