org.openflow.protocol.factory
Interface OFHelloElementFactory

All Known Implementing Classes:
BasicFactory, FloodlightFactory

public interface OFHelloElementFactory

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

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

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

Method Detail

getHelloElement

OFHelloElement getHelloElement(OFHelloElementType t)
Retrieves an OFHelloElement instance corresponding to the specified OFHelloElementType

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

parseHelloElements

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

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

parseHelloElements

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

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