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 -
Method Summary
Modifier and TypeMethodDescriptionvoidinjectSerializerRegistry(SerializerRegistry serializerRegistry) Injects serializer registry.voidTransforms POJO/DTO into byte message (ByteBuf).protected voidwriteActions(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:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
serializein interfaceOFSerializer<T extends Instruction>- Overrides:
serializein 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:SerializerRegistryInjectorInjects serializer registry.- Specified by:
injectSerializerRegistryin interfaceSerializerRegistryInjector- Parameters:
serializerRegistry- registry instance
-