org.openflow.protocol.queue
Class OFPacketQueue
java.lang.Object
org.openflow.protocol.queue.OFPacketQueue
- All Implemented Interfaces:
- java.lang.Cloneable, OFQueuePropertyFactoryAware
public class OFPacketQueue
- extends java.lang.Object
- implements java.lang.Cloneable, OFQueuePropertyFactoryAware
Corresponds to the struct ofp_packet_queue OpenFlow structure
- Author:
- David Erickson (daviderickson@cs.stanford.edu)
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
MINIMUM_LENGTH
public static short MINIMUM_LENGTH
queuePropertyFactory
protected OFQueuePropertyFactory queuePropertyFactory
portNumber
protected int portNumber
queueId
protected int queueId
length
protected short length
properties
protected java.util.List<OFQueueProperty> properties
OFPacketQueue
public OFPacketQueue()
getQueueId
public int getQueueId()
- Returns:
- the queueId
setQueueId
public OFPacketQueue setQueueId(int queueId)
- Parameters:
queueId
- the queueId to set
getPortNumber
public int getPortNumber()
- Returns:
- the portNumber
setPortNumber
public OFPacketQueue setPortNumber(int portNumber)
- Parameters:
portNumber
- the port to associate the queue with
getLength
public short getLength()
- Returns:
- the length
setLength
public void setLength(short length)
- Parameters:
length
- the length to set
getProperties
public java.util.List<OFQueueProperty> getProperties()
- Returns:
- the properties
setProperties
public OFPacketQueue setProperties(java.util.List<OFQueueProperty> properties)
- Parameters:
properties
- the properties to set
readFrom
public void readFrom(java.nio.ByteBuffer data)
writeTo
public void writeTo(java.nio.ByteBuffer data)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
clone
public OFPacketQueue clone()
- Overrides:
clone
in class java.lang.Object
setQueuePropertyFactory
public void setQueuePropertyFactory(OFQueuePropertyFactory queuePropertyFactory)
- Description copied from interface:
OFQueuePropertyFactoryAware
- Sets the OFQueuePropertyFactory
- Specified by:
setQueuePropertyFactory
in interface OFQueuePropertyFactoryAware
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
computeLength
public int computeLength()
- This method computes the length of the OFPacketQueue message, both setting
the length field and returning the value.
- Returns:
- the length