|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openflow.protocol.factory.BasicFactory
org.openflow.protocol.factory.FloodlightFactory
public class FloodlightFactory
the extended floodlight factory that supports vendor factories.
Method Summary | |
---|---|
static java.lang.String |
dumpBuffer(java.nio.ByteBuffer data)
|
static FloodlightFactory |
getInstance()
|
OFVendorData |
getVendorData(OFVendorId vendorId,
OFVendorDataType vendorDataType)
Retrieves an OFVendorData instance corresponding to the specified OFVendorId and OFVendorDataType. |
protected void |
injectFactories(OFMessage ofm)
|
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. |
OFVendorData |
parseVendorData(int vendor,
java.nio.ByteBuffer data,
int length)
Attempts to parse and return the OFVendorData contained in the given ChannelBuffer, beginning right after the vendor id. |
Methods inherited from class org.openflow.protocol.factory.BasicFactory |
---|
getAction, getActionFactory, getHelloElement, getInstruction, getInstructionFactory, getMessage, getMeterBand, getQueueProperty, getStatistics, getTableFeaturesProperty, parseActions, parseHelloElements, parseHelloElements, parseInstructions, parseInstructions, parseMessages, parseMessages, parseMeterBands, parseMeterBands, parseQueueProperties, parseQueueProperties, parseStatistics, parseStatistics, parseTableFeaturesProperties, parseTableFeaturesProperties |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FloodlightFactory getInstance()
protected void injectFactories(OFMessage ofm)
injectFactories
in class BasicFactory
public java.util.List<OFAction> parseActions(java.nio.ByteBuffer data, int length, int limit)
OFActionFactory
parseActions
in interface OFActionFactory
parseActions
in class BasicFactory
data
- the ByteBuffer to parse for OpenFlow actionslength
- the number of Bytes to examine for OpenFlow actionslimit
- the maximum number of messages to return, 0 means no limit
public OFVendorData getVendorData(OFVendorId vendorId, OFVendorDataType vendorDataType)
OFVendorDataFactory
getVendorData
in interface OFVendorDataFactory
vendorId
- the vendorId of the containing OFVendor messagevendorDataType
- the type of the OFVendorData to be retrieved
public OFVendorData parseVendorData(int vendor, java.nio.ByteBuffer data, int length)
parseVendorData
in interface OFVendorDataFactory
vendor
- the vendor id that was parsed from the OFVendor message.data
- the ChannelBuffer from which to parse the vendor datalength
- the length to the end of the enclosing message.
public static java.lang.String dumpBuffer(java.nio.ByteBuffer data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |