Class AbstractExperimenterMatchEntrySerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractExperimenterMatchEntrySerializer
-
- All Implemented Interfaces:
HeaderSerializer<Match>
,OFGeneralSerializer
,OFSerializer<Match>
,MatchEntrySerializer
- Direct Known Subclasses:
TcpFlagsEntrySerializer
public abstract class AbstractExperimenterMatchEntrySerializer extends AbstractMatchEntrySerializer
-
-
Constructor Summary
Constructors Constructor Description AbstractExperimenterMatchEntrySerializer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract long
getExperimenterId()
Get experimenter id.void
serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).void
serializeHeader(Match match, io.netty.buffer.ByteBuf outBuffer)
Serializes object headers (e.g.-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.match.AbstractMatchEntrySerializer
getHasMask, getOxmClassCode, getOxmFieldCode, getValueLength, writeIpv4Address, writeIpv4Prefix, writeIpv6Address, writeIpv6Prefix, writeMacAddress, writeMask
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.openflowplugin.api.openflow.protocol.serialization.MatchEntrySerializer
matchTypeCheck
-
-
-
-
Method Detail
-
serialize
public void serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<Match>
- Overrides:
serialize
in classAbstractMatchEntrySerializer
- Parameters:
match
- object to be serializedoutBuffer
- output buffer
-
serializeHeader
public void serializeHeader(Match match, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:HeaderSerializer
Serializes object headers (e.g. for Multipart message - Table Features).- Specified by:
serializeHeader
in interfaceHeaderSerializer<Match>
- Overrides:
serializeHeader
in classAbstractMatchEntrySerializer
- Parameters:
match
- object whose headers should be serializedoutBuffer
- output buffer
-
getExperimenterId
protected abstract long getExperimenterId()
Get experimenter id.- Returns:
- experimenter match entry id
-
-