org.openflow.protocol.factory
Interface OFQueuePropertyFactory

All Known Implementing Classes:
BasicFactory, FloodlightFactory

public interface OFQueuePropertyFactory

The interface to factories used for retrieving OFQueueProperty instances. All methods are expected to be thread-safe.

Author:
David Erickson (daviderickson@cs.stanford.edu)

Method Summary
 OFQueueProperty getQueueProperty(OFQueuePropertyType t)
          Retrieves an OFQueueProperty instance corresponding to the specified OFQueuePropertyType
 java.util.List<OFQueueProperty> parseQueueProperties(java.nio.ByteBuffer data, int length)
          Attempts to parse and return all OFQueueProperties contained in the given ByteBuffer, beginning at the ByteBuffer's position, and ending at position+length.
 java.util.List<OFQueueProperty> parseQueueProperties(java.nio.ByteBuffer data, int length, int limit)
          Attempts to parse and return all OFQueueProperties contained in the given ByteBuffer, beginning at the ByteBuffer's position, and ending at position+length.
 

Method Detail

getQueueProperty

OFQueueProperty getQueueProperty(OFQueuePropertyType t)
Retrieves an OFQueueProperty instance corresponding to the specified OFQueuePropertyType

Parameters:
t - the type of the OFQueueProperty to be retrieved
Returns:
an OFQueueProperty instance

parseQueueProperties

java.util.List<OFQueueProperty> parseQueueProperties(java.nio.ByteBuffer data,
                                                     int length)
Attempts to parse and return all OFQueueProperties contained in the given ByteBuffer, beginning at the ByteBuffer's position, and ending at position+length.

Parameters:
data - the ByteBuffer to parse for OpenFlow OFQueueProperties
length - the number of Bytes to examine for OpenFlow OFQueueProperties
Returns:
a list of OFQueueProperty instances

parseQueueProperties

java.util.List<OFQueueProperty> parseQueueProperties(java.nio.ByteBuffer data,
                                                     int length,
                                                     int limit)
Attempts to parse and return all OFQueueProperties contained in the given ByteBuffer, beginning at the ByteBuffer's position, and ending at position+length.

Parameters:
data - the ByteBuffer to parse for OpenFlow OFQueueProperties
length - the number of Bytes to examine for OpenFlow OFQueueProperties
limit - the maximum number of OFQueueProperties to return, 0 means no limit
Returns:
a list of OFQueueProperty instances