org.openflow.protocol.factory
Interface OFStatisticsFactory

All Known Implementing Classes:
BasicFactory, FloodlightFactory

public interface OFStatisticsFactory

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

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

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

Method Detail

getStatistics

OFStatistics getStatistics(OFType t,
                           OFStatisticsType st)
Retrieves an OFStatistics instance corresponding to the specified OFStatisticsType

Parameters:
t - the type of the containing OFMessage, only accepts statistics request or reply
st - the type of the OFStatistics to be retrieved
Returns:
an OFStatistics instance

parseStatistics

java.util.List<OFStatistics> parseStatistics(OFType t,
                                             OFStatisticsType st,
                                             java.nio.ByteBuffer data,
                                             int length)
Attempts to parse and return all OFStatistics contained in the given ByteBuffer, beginning at the ByteBuffer's position, and ending at position+length.

Parameters:
t - the type of the containing OFMessage, only accepts statistics request or reply
st - the type of the OFStatistics to be retrieved
data - the ByteBuffer to parse for OpenFlow Statistics
length - the number of Bytes to examine for OpenFlow Statistics
Returns:
a list of OFStatistics instances

parseStatistics

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

Parameters:
t - the type of the containing OFMessage, only accepts statistics request or reply
st - the type of the OFStatistics to be retrieved
data - the ByteBuffer to parse for OpenFlow Statistics
length - the number of Bytes to examine for OpenFlow Statistics
limit - the maximum number of messages to return, 0 means no limit
Returns:
a list of OFStatistics instances