Class AbstractActionInstructionDeserializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.deserialization.instruction.AbstractInstructionDeserializer
org.opendaylight.openflowplugin.impl.protocol.deserialization.instruction.AbstractActionInstructionDeserializer
- All Implemented Interfaces:
DeserializerRegistryInjector
,HeaderDeserializer<Instruction>
,OFDeserializer<Instruction>
,OFGeneralDeserializer
- Direct Known Subclasses:
ApplyActionsInstructionDeserializer
,WriteActionsInstructionDeserializer
public abstract class AbstractActionInstructionDeserializer
extends AbstractInstructionDeserializer
implements DeserializerRegistryInjector
-
Constructor Summary
ConstructorDescriptionAbstractActionInstructionDeserializer
(ActionPath actionPath) Create new instacte of action instruction deserializer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
injectDeserializerRegistry
(DeserializerRegistry deserializerRegistry) Injects deserializer registry into deserializer.readActions
(io.netty.buffer.ByteBuf message, int length) Read list of actions from message.protected static int
readHeader
(io.netty.buffer.ByteBuf message) Skip first few bytes of instruction message because they are irrelevant and then return length.Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.deserialization.instruction.AbstractInstructionDeserializer
processHeader
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.HeaderDeserializer
deserializeHeader
Methods inherited from interface org.opendaylight.openflowjava.protocol.api.extensibility.OFDeserializer
deserialize
-
Constructor Details
-
AbstractActionInstructionDeserializer
Create new instacte of action instruction deserializer.- Parameters:
actionPath
- action extension path
-
-
Method Details
-
readHeader
protected static int readHeader(io.netty.buffer.ByteBuf message) Skip first few bytes of instruction message because they are irrelevant and then return length.- Parameters:
message
- Openflow buffered message- Returns:
- instruction length
-
readActions
Read list of actions from message.- Parameters:
message
- Openflow buffered messagelength
- instruction length- Returns:
- list of actions
-
injectDeserializerRegistry
Description copied from interface:DeserializerRegistryInjector
Injects deserializer registry into deserializer.- Specified by:
injectDeserializerRegistry
in interfaceDeserializerRegistryInjector
- Parameters:
deserializerRegistry
- registry of deserializers
-