public abstract class AbstractMatchEntrySerializer extends Object implements HeaderSerializer<Match>, MatchEntrySerializer
| Constructor and Description |
|---|
AbstractMatchEntrySerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
getHasMask(Match match)
Has mask getter.
|
protected abstract int |
getOxmClassCode()
Oxm class code.
|
protected abstract int |
getOxmFieldCode()
Oxm field numeric representation.
|
protected abstract int |
getValueLength()
Get value length.
|
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.
|
protected static void |
writeIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address,
io.netty.buffer.ByteBuf outBuffer)
Serialize Ipv4 address to bytes.
|
protected static void |
writeIpv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix,
io.netty.buffer.ByteBuf outBuffer)
Serialize Ipv4 prefix (address and mask).
|
protected static void |
writeIpv6Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address,
io.netty.buffer.ByteBuf outBuffer)
Serialize Ipv6 address to bytes.
|
protected static void |
writeIpv6Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix,
io.netty.buffer.ByteBuf outBuffer)
Serialize Ipv6 prefix (address and mask).
|
protected static void |
writeMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address,
io.netty.buffer.ByteBuf outBuffer)
Serialize Mac address to bytes.
|
protected static void |
writeMask(byte[] mask,
io.netty.buffer.ByteBuf outBuffer,
int length)
Serialize byte mask to bytes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchTypeCheckpublic void serialize(Match match, io.netty.buffer.ByteBuf outBuffer)
OFSerializerserialize in interface OFSerializer<Match>match - object to be serializedoutBuffer - output bufferpublic void serializeHeader(Match match, io.netty.buffer.ByteBuf outBuffer)
HeaderSerializerserializeHeader in interface HeaderSerializer<Match>match - object whose headers should be serializedoutBuffer - output bufferprotected static void writeMask(byte[] mask,
io.netty.buffer.ByteBuf outBuffer,
int length)
mask - byte maskoutBuffer - output bufferlength - mask lengthprotected static void writeIpv4Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address address,
io.netty.buffer.ByteBuf outBuffer)
address - Ipv4 addressoutBuffer - output bufferprotected static void writeIpv6Address(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address address,
io.netty.buffer.ByteBuf outBuffer)
address - Ipv6 addressoutBuffer - output bufferprotected static void writeMacAddress(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress address,
io.netty.buffer.ByteBuf outBuffer)
address - Mac addressoutBuffer - output bufferprotected static void writeIpv4Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Prefix prefix,
io.netty.buffer.ByteBuf outBuffer)
prefix - Ipv4 prefixoutBuffer - output bufferprotected static void writeIpv6Prefix(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Prefix prefix,
io.netty.buffer.ByteBuf outBuffer)
prefix - Ipv6 prefixoutBuffer - output bufferprotected abstract boolean getHasMask(Match match)
match - Openflow matchprotected abstract int getOxmFieldCode()
protected abstract int getOxmClassCode()
protected abstract int getValueLength()
Copyright © 2019 OpenDaylight. All rights reserved.