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 Details

    • AbstractActionInstructionSerializer

      public AbstractActionInstructionSerializer()
  • Method Details

    • 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 interface OFSerializer<T extends Instruction>
      Overrides:
      serialize in class AbstractInstructionSerializer<T extends Instruction>
      Parameters:
      input - object to be serialized
      outBuffer - 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 actions
      outBuffer - output buffer
      startIndex - start index of byte buffer
    • injectSerializerRegistry

      public void injectSerializerRegistry(SerializerRegistry serializerRegistry)
      Description copied from interface: SerializerRegistryInjector
      Injects serializer registry.
      Specified by:
      injectSerializerRegistry in interface SerializerRegistryInjector
      Parameters:
      serializerRegistry - registry instance