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>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
AbstractMatchEntrySerializer.ConstantHeaderWriter<E,M>, AbstractMatchEntrySerializer.HeaderWriter<E,M>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPrimitiveEntrySerializer(int oxmClassCode, int oxmFieldCode, int valueLength)
protected
AbstractPrimitiveEntrySerializer(AbstractMatchEntrySerializer.HeaderWriter<E,Void> headerWriter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Void
extractEntryMask(E entry)
Extract the mask contained in an entry.protected abstract void
serializeEntry(@NonNull E entry, @NonNull io.netty.buffer.ByteBuf outBuffer)
protected void
serializeEntry(E entry, Void mask, io.netty.buffer.ByteBuf outBuffer)
Extract the corresponding entry from a match.-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
extractEntry, serializeIfPresent, writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
-
-
-
Constructor Detail
-
AbstractPrimitiveEntrySerializer
protected AbstractPrimitiveEntrySerializer(AbstractMatchEntrySerializer.HeaderWriter<E,Void> headerWriter)
-
AbstractPrimitiveEntrySerializer
protected AbstractPrimitiveEntrySerializer(int oxmClassCode, int oxmFieldCode, int valueLength)
-
-
Method Detail
-
extractEntryMask
protected final Void extractEntryMask(E entry)
Description copied from class:AbstractMatchEntrySerializer
Extract the mask contained in an entry.- Specified by:
extractEntryMask
in classAbstractMatchEntrySerializer<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 classAbstractMatchEntrySerializer<E,Void>
- Parameters:
entry
- entry to serializemask
- mask as extracted from entryoutBuffer
- output buffer
-
serializeEntry
protected abstract void serializeEntry(@NonNull E entry, @NonNull io.netty.buffer.ByteBuf outBuffer)
-
-