org.openflow.protocol.factory
Interface OFVendorActionFactory

All Known Implementing Classes:
OFBigSwitchVendorActionFactory, OFNiciraVendorActionFactory

public interface OFVendorActionFactory

Interface contract for an actionfactory that creates vendor-specific actions. VendorActionFactories are registered with the BasicFactory for a specific vendor id.

Note: Implementations are expected to be thread-safe.

Author:
Andreas Wundsam

Method Summary
 OFActionVendor readFrom(java.nio.ByteBuffer data)
          parse the data from the wire, create and return a vendor-specific action.
 

Method Detail

readFrom

OFActionVendor readFrom(java.nio.ByteBuffer data)
parse the data from the wire, create and return a vendor-specific action.

Parameters:
data - contains a serialized vendor action at the current readerPosition. The full message is guaranteed to be available in the buffer.
Returns:
upon success returns a newly allocated vendor-specific action instance, and advances the readerPosition in data for the entire length. Upon failure, returns null and leaves the readerPosition in data unmodified.