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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
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
-
Constructor Details
-
AbstractActionInstructionSerializer
public AbstractActionInstructionSerializer()
-
-
Method Details
-
serialize
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
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-