org.openflow.protocol.factory
Interface OFActionFactory

All Known Implementing Classes:
BasicFactory, FloodlightFactory

public interface OFActionFactory

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

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

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

Method Detail

getAction

OFAction getAction(OFActionType t)
Retrieves an OFAction instance corresponding to the specified OFActionType

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

parseActions

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

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

parseActions

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

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