public class Queue extends OpenflowStructure
An OpenFlow switch provides limited QoS support through a simple queuing mechanism. One (or more) queues can attach to a port and be used to map flow entries on it. Flow entries mapped to a specific queue will be treated according to that queue's configuration (e.g. min rate).
Instances of this class are immutable.
parseErrorCause, version
Modifier and Type | Method and Description |
---|---|
QueueId |
getId()
Returns the ID of this queue.
|
BigPortNumber |
getPort()
Returns the ID of the port that this queue is attached to.
|
List<QueueProperty> |
getProps()
Returns an unmodifiable view of the properties of this queue.
|
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, toDebugString
public String toString()
toString
in class OpenflowStructure
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 class OpenflowStructure
IncompleteStructureException
- if the structure is not completepublic QueueId getId()
public BigPortNumber getPort()
Protocol versions 1.0 and 1.1 will return null.
public List<QueueProperty> getProps()
Copyright © 2015. All Rights Reserved.