Class FlowMessageSerializer
java.lang.Object
org.opendaylight.openflowplugin.impl.protocol.serialization.messages.AbstractMessageSerializer<FlowMessage>
org.opendaylight.openflowplugin.impl.protocol.serialization.messages.FlowMessageSerializer
- All Implemented Interfaces:
HeaderSerializer<FlowMessage>
,OFGeneralSerializer
,OFSerializer<FlowMessage>
,SerializerRegistryInjector
public class FlowMessageSerializer
extends AbstractMessageSerializer<FlowMessage>
implements SerializerRegistryInjector
Translates FlowMod messages.
OF protocol versions: 1.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected byte
Message type getter.void
injectSerializerRegistry
(SerializerRegistry serializerRegistry) Injects serializer registry.void
serialize
(FlowMessage message, io.netty.buffer.ByteBuf outBuffer) Transforms POJO/DTO into byte message (ByteBuf).Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.messages.AbstractMessageSerializer
serializeHeader
-
Constructor Details
-
FlowMessageSerializer
public FlowMessageSerializer()
-
-
Method Details
-
serialize
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<FlowMessage>
- Overrides:
serialize
in classAbstractMessageSerializer<FlowMessage>
- Parameters:
message
- object to be serializedoutBuffer
- output buffer
-
getMessageType
protected byte getMessageType()Description copied from class:AbstractMessageSerializer
Message type getter.- Specified by:
getMessageType
in classAbstractMessageSerializer<FlowMessage>
- Returns:
- of message type
-
injectSerializerRegistry
Description copied from interface:SerializerRegistryInjector
Injects serializer registry.- Specified by:
injectSerializerRegistry
in interfaceSerializerRegistryInjector
- Parameters:
serializerRegistry
- registry instance
-