public class RegLoad2Codec extends AbstractActionCodec implements SerializerRegistryInjector, DeserializerRegistryInjector
Modifier and Type | Field and Description |
---|---|
static NiciraActionDeserializerKey |
DESERIALIZER_KEY |
static NiciraActionSerializerKey |
SERIALIZER_KEY |
static byte |
SUBTYPE |
Constructor and Description |
---|
RegLoad2Codec() |
Modifier and Type | Method and Description |
---|---|
Action |
deserialize(io.netty.buffer.ByteBuf message)
Transforms byte message into POJO/DTO (of type E).
|
void |
injectDeserializerRegistry(DeserializerRegistry registry)
Injects deserializer registry into deserializer.
|
void |
injectSerializerRegistry(SerializerRegistry registry)
Injects serializer registry.
|
void |
serialize(Action input,
io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).
|
deserializeHeader, getExperimenterId, readNxmHeader, serializeHeader, skipPadding, writeNxmHeader, writePaddingAndSetLength
public static final byte SUBTYPE
public static final NiciraActionSerializerKey SERIALIZER_KEY
public static final NiciraActionDeserializerKey DESERIALIZER_KEY
public Action deserialize(io.netty.buffer.ByteBuf message)
OFDeserializer
deserialize
in interface OFDeserializer<Action>
message
- message as bytes in ByteBufpublic void serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
OFSerializer
serialize
in interface OFSerializer<Action>
input
- object to be serializedoutBuffer
- output bufferpublic void injectSerializerRegistry(SerializerRegistry registry)
SerializerRegistryInjector
injectSerializerRegistry
in interface SerializerRegistryInjector
registry
- registry instancepublic void injectDeserializerRegistry(DeserializerRegistry registry)
DeserializerRegistryInjector
injectDeserializerRegistry
in interface DeserializerRegistryInjector
registry
- registry of deserializersCopyright © 2020 OpenDaylight. All rights reserved.