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 Details

    • AbstractActionInstructionDeserializer

      public AbstractActionInstructionDeserializer(ActionPath actionPath)
      Create new instacte of action instruction deserializer.
      Parameters:
      actionPath - action extension path
  • Method Details

    • 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 Map<ActionKey,Action> readActions(io.netty.buffer.ByteBuf message, int length)
      Read list of actions from message.
      Parameters:
      message - Openflow buffered message
      length - 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 interface DeserializerRegistryInjector
      Parameters:
      deserializerRegistry - registry of deserializers