Class MetadataEntrySerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer<Metadata,org.opendaylight.yangtools.yang.common.Uint64>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.MetadataEntrySerializer
-
- All Implemented Interfaces:
MatchEntrySerializer
public class MetadataEntrySerializer extends AbstractMatchEntrySerializer<Metadata,org.opendaylight.yangtools.yang.common.Uint64>
-
-
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 Constructor Description MetadataEntrySerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Metadata
extractEntry(Match match)
Extract the corresponding entry from a match.protected org.opendaylight.yangtools.yang.common.Uint64
extractEntryMask(Metadata entry)
Extract the mask contained in an entry.protected void
serializeEntry(Metadata entry, org.opendaylight.yangtools.yang.common.Uint64 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
serializeIfPresent, writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
-
-
-
Method Detail
-
extractEntry
protected Metadata extractEntry(Match match)
Description copied from class:AbstractMatchEntrySerializer
Extract the corresponding entry from a match.- Specified by:
extractEntry
in classAbstractMatchEntrySerializer<Metadata,org.opendaylight.yangtools.yang.common.Uint64>
- Parameters:
match
- Openflow match- Returns:
- Entry, null if not present
-
extractEntryMask
protected org.opendaylight.yangtools.yang.common.Uint64 extractEntryMask(Metadata entry)
Description copied from class:AbstractMatchEntrySerializer
Extract the mask contained in an entry.- Specified by:
extractEntryMask
in classAbstractMatchEntrySerializer<Metadata,org.opendaylight.yangtools.yang.common.Uint64>
- Parameters:
entry
- entry to examine- Returns:
- Mask, null if not present
-
serializeEntry
protected void serializeEntry(Metadata entry, org.opendaylight.yangtools.yang.common.Uint64 mask, io.netty.buffer.ByteBuf outBuffer)
Description copied from class:AbstractMatchEntrySerializer
Extract the corresponding entry from a match.- Specified by:
serializeEntry
in classAbstractMatchEntrySerializer<Metadata,org.opendaylight.yangtools.yang.common.Uint64>
- Parameters:
entry
- entry to serializemask
- mask as extracted from entryoutBuffer
- output buffer
-
-