org.openflow.protocol.factory
Interface OFMeterBandFactory

All Known Implementing Classes:
BasicFactory, FloodlightFactory

public interface OFMeterBandFactory

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

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

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

Method Detail

getMeterBand

OFMeterBand getMeterBand(OFMeterBandType t)
Retrieves an OFMeterBand instance corresponding to the specified OFMeterBandType

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

parseMeterBands

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

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

parseMeterBands

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

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