public abstract class AbstractExperimenterMatchCodec extends AbstractMatchCodec
headerWithMask, headerWithoutMask
Constructor and Description |
---|
AbstractExperimenterMatchCodec() |
Modifier and Type | Method and Description |
---|---|
protected NxmHeader |
buildHeader(boolean hasMask) |
protected static MatchEntryDeserializerKey |
createDeserializerKey(short version,
long expId,
int fieldCode) |
protected static <F extends MatchField> |
createSerializerKey(short version,
long expId,
Class<F> oxmField) |
MatchEntry |
deserialize(io.netty.buffer.ByteBuf message)
Transforms byte message into POJO/DTO (of type E).
|
protected abstract NxExpMatchEntryValue |
deserializeValue(io.netty.buffer.ByteBuf message,
boolean hasMask) |
protected abstract long |
getExperimenterId() |
Class<? extends OxmClassBase> |
getOxmClass()
Returns the oxm_class class.
|
int |
getOxmClassCode()
Returns the numeric representation of oxm_class.
|
void |
serialize(MatchEntry input,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
void |
serializeHeader(NxmHeader input,
io.netty.buffer.ByteBuf outBuffer) |
protected abstract void |
serializeValue(NxExpMatchEntryValue value,
boolean hasMask,
io.netty.buffer.ByteBuf outBuffer) |
deserializeHeader, deserializeHeaderToBuilder, getHeader, getHeaderWithHasMask, getHeaderWithoutHasMask, getNxmField, getNxmFieldCode, getValueLength, serializeHeader
protected static <F extends MatchField> MatchEntrySerializerKey<ExperimenterClass,F> createSerializerKey(short version, long expId, Class<F> oxmField)
protected static MatchEntryDeserializerKey createDeserializerKey(short version, long expId, int fieldCode)
public void serialize(MatchEntry input, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
input
- object to be serializedoutBuffer
- output bufferprotected abstract void serializeValue(NxExpMatchEntryValue value, boolean hasMask, io.netty.buffer.ByteBuf outBuffer)
public MatchEntry deserialize(io.netty.buffer.ByteBuf message)
OFDeserializer
message
- message as bytes in ByteBufprotected abstract NxExpMatchEntryValue deserializeValue(io.netty.buffer.ByteBuf message, boolean hasMask)
public void serializeHeader(NxmHeader input, io.netty.buffer.ByteBuf outBuffer)
serializeHeader
in class AbstractMatchCodec
protected NxmHeader buildHeader(boolean hasMask)
buildHeader
in class AbstractMatchCodec
public Class<? extends OxmClassBase> getOxmClass()
AbstractMatchCodec
getOxmClass
in class AbstractMatchCodec
public int getOxmClassCode()
AbstractMatchCodec
getOxmClassCode
in class AbstractMatchCodec
protected abstract long getExperimenterId()
Copyright © 2020 OpenDaylight. All rights reserved.