Class AbstractPrimitiveEntrySerializer<E>

java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer<E,Void>
org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractPrimitiveEntrySerializer<E>
All Implemented Interfaces:
MatchEntrySerializer
Direct Known Subclasses:
AbstractMacAddressEntrySerializer, AbstractUint16EntrySerializer, AbstractUint32EntrySerializer, AbstractUint8EntrySerializer, EthernetTypeEntrySerializer, InPhyPortEntrySerializer, InPortEntrySerializer, IpDscpEntrySerializer, Ipv6NdTargetEntrySerializer, MplsBosEntrySerializer, VlanPcpEntrySerializer

public abstract class AbstractPrimitiveEntrySerializer<E> extends AbstractMatchEntrySerializer<E,Void>
  • Constructor Details

    • AbstractPrimitiveEntrySerializer

      protected AbstractPrimitiveEntrySerializer(AbstractMatchEntrySerializer.HeaderWriter<E,Void> headerWriter)
    • AbstractPrimitiveEntrySerializer

      protected AbstractPrimitiveEntrySerializer(int oxmClassCode, int oxmFieldCode, int valueLength)
  • Method Details

    • extractEntryMask

      protected final Void extractEntryMask(E entry)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the mask contained in an entry.
      Specified by:
      extractEntryMask in class AbstractMatchEntrySerializer<E,Void>
      Parameters:
      entry - entry to examine
      Returns:
      Mask, null if not present
    • serializeEntry

      protected final void serializeEntry(E entry, Void mask, io.netty.buffer.ByteBuf outBuffer)
      Description copied from class: AbstractMatchEntrySerializer
      Extract the corresponding entry from a match.
      Specified by:
      serializeEntry in class AbstractMatchEntrySerializer<E,Void>
      Parameters:
      entry - entry to serialize
      mask - mask as extracted from entry
      outBuffer - output buffer
    • serializeEntry

      protected abstract void serializeEntry(@NonNull E entry, @NonNull io.netty.buffer.ByteBuf outBuffer)