X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Ffactory%2FOFPInstructionFactory.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Ffactory%2FOFPInstructionFactory.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=6ce7dd3bd36a105af4ae977a0b7bf45293f9817a;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPInstructionFactory.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPInstructionFactory.java deleted file mode 100644 index 6ce7dd3b..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/factory/OFPInstructionFactory.java +++ /dev/null @@ -1,53 +0,0 @@ -package org.openflow.codec.protocol.factory; - -import java.util.List; - -import org.openflow.codec.io.IDataBuffer; -import org.openflow.codec.protocol.instruction.OFPInstruction; -import org.openflow.codec.protocol.instruction.OFPInstructionType; - -/** - * The interface to factories used for retrieving OFPInstruction instances. All - * methods are expected to be thread-safe. - * - * @author AnilGujele - */ -public interface OFPInstructionFactory { - /** - * Retrieves an OFPInstruction instance corresponding to the specified - * OFPInstructionType - * - * @param t - * the type of the OFPInstruction to be retrieved - * @return an OFPInstruction instance - */ - public OFPInstruction getInstruction(OFPInstructionType t); - - /** - * Attempts to parse and return all OFInstructions contained in the given - * DataBuffer, beginning at the DataBuffer's position, and ending at - * position+length. - * - * @param data - * the DataBuffer to parse for OpenFlow Instructions - * @param length - * the number of Bytes to examine for OpenFlow Instructions - * @return a list of OFPInstruction instances - */ - public List parseInstructions(IDataBuffer data, int length); - - /** - * Attempts to parse and return number of specified OFInstructions contained - * in the given DataBuffer, beginning at the DataBuffer's position, and - * ending at position+length. - * - * @param data - * the DataBuffer to parse for OpenFlow Instructions - * @param length - * the number of Bytes to examine for OpenFlow Instructions - * @param limit - * the maximum number of messages to return, 0 means no limit - * @return a list of OFPInstruction instances - */ - public List parseInstructions(IDataBuffer data, int length, int limit); -}