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
Constructors Constructor Description AbstractActionInstructionDeserializer(ActionPath actionPath)
Create new instacte of action instruction deserializer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectDeserializerRegistry(DeserializerRegistry deserializerRegistry)
Injects deserializer registry into deserializer.protected List<Action>
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 Detail
-
AbstractActionInstructionDeserializer
public AbstractActionInstructionDeserializer(ActionPath actionPath)
Create new instacte of action instruction deserializer.- Parameters:
actionPath
- action extension path
-
-
Method Detail
-
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
protected List<Action> readActions(io.netty.buffer.ByteBuf message, int length)
Read list of actions from message.- Parameters:
message
- Openflow buffered messagelength
- instruction length- Returns:
- list of actions
-
injectDeserializerRegistry
public void injectDeserializerRegistry(DeserializerRegistry deserializerRegistry)
Description copied from interface:DeserializerRegistryInjector
Injects deserializer registry into deserializer.- Specified by:
injectDeserializerRegistry
in interfaceDeserializerRegistryInjector
- Parameters:
deserializerRegistry
- registry of deserializers
-
-