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
ModifierConstructorDescriptionprotected
AbstractPrimitiveEntrySerializer
(int oxmClassCode, int oxmFieldCode, int valueLength) protected
-
Method Summary
Modifier and TypeMethodDescriptionprotected final 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 final 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 Details
-
AbstractPrimitiveEntrySerializer
protected AbstractPrimitiveEntrySerializer(AbstractMatchEntrySerializer.HeaderWriter<E, Void> headerWriter) -
AbstractPrimitiveEntrySerializer
protected AbstractPrimitiveEntrySerializer(int oxmClassCode, int oxmFieldCode, int valueLength)
-
-
Method Details
-
extractEntryMask
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
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)
-