1 package org.openflow.codec.protocol.factory;
5 import org.openflow.codec.io.IDataBuffer;
6 import org.openflow.codec.protocol.queue.OFPQueueProperty;
7 import org.openflow.codec.protocol.queue.OFPQueuePropertyType;
10 * The interface to factories used for retrieving OFPQueueProperty instances.
11 * All methods are expected to be thread-safe.
13 * @author David Erickson (daviderickson@cs.stanford.edu)
15 public interface OFPQueuePropertyFactory {
17 * Retrieves an OFPQueueProperty instance corresponding to the specified
18 * OFPQueuePropertyType
21 * the type of the OFPQueueProperty to be retrieved
22 * @return an OFPQueueProperty instance
24 public OFPQueueProperty getQueueProperty(OFPQueuePropertyType t);
27 * Attempts to parse and return all OFQueueProperties contained in the given
28 * DataBuffer, beginning at the DataBuffer's position, and ending at
32 * the DataBuffer to parse for OpenFlow OFQueueProperties
34 * the number of Bytes to examine for OpenFlow OFQueueProperties
35 * @return a list of OFPQueueProperty instances
37 public List<OFPQueueProperty> parseQueueProperties(IDataBuffer data, int length);
40 * Attempts to parse and return all OFQueueProperties contained in the given
41 * DataBuffer, beginning at the DataBuffer's position, and ending at
45 * the DataBuffer to parse for OpenFlow OFQueueProperties
47 * the number of Bytes to examine for OpenFlow OFQueueProperties
49 * the maximum number of OFQueueProperties to return, 0 means no
51 * @return a list of OFPQueueProperty instances
53 public List<OFPQueueProperty> parseQueueProperties(IDataBuffer data, int length, int limit);