Class AbstractActionInstructionSerializer<T extends Instruction>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer<T>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractActionInstructionSerializer<T>
-
- All Implemented Interfaces:
HeaderSerializer<T>
,OFGeneralSerializer
,OFSerializer<T>
,SerializerRegistryInjector
- Direct Known Subclasses:
ApplyActionsInstructionSerializer
,WriteActionsInstructionSerializer
public abstract class AbstractActionInstructionSerializer<T extends Instruction> extends AbstractInstructionSerializer<T> implements SerializerRegistryInjector
-
-
Constructor Summary
Constructors Constructor Description AbstractActionInstructionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectSerializerRegistry(SerializerRegistry serializerRegistry)
Injects serializer registry.void
serialize(T input, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).protected void
writeActions(ActionList actions, org.opendaylight.yangtools.yang.common.Uint8 version, io.netty.buffer.ByteBuf outBuffer, int startIndex)
Try to write list of OpenFlowPlugin actions to output buffer.-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer
getLength, getType, serializeHeader
-
-
-
-
Method Detail
-
serialize
public void serialize(T input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<T extends Instruction>
- Overrides:
serialize
in classAbstractInstructionSerializer<T extends Instruction>
- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
writeActions
protected void writeActions(ActionList actions, org.opendaylight.yangtools.yang.common.Uint8 version, io.netty.buffer.ByteBuf outBuffer, int startIndex)
Try to write list of OpenFlowPlugin actions to output buffer.- Parameters:
actions
- List of OpenFlowPlugin actionsoutBuffer
- output bufferstartIndex
- start index of byte buffer
-
injectSerializerRegistry
public void injectSerializerRegistry(SerializerRegistry serializerRegistry)
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-
-