Class WriteMetadataInstructionSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer<WriteMetadataCase>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.WriteMetadataInstructionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<WriteMetadataCase>,OFGeneralSerializer,OFSerializer<WriteMetadataCase>
public class WriteMetadataInstructionSerializer extends AbstractInstructionSerializer<WriteMetadataCase>
-
-
Constructor Summary
Constructors Constructor Description WriteMetadataInstructionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetLength()Get length.protected intgetType()Get type.voidserialize(WriteMetadataCase input, io.netty.buffer.ByteBuf outBuffer)Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer
serializeHeader
-
-
-
-
Method Detail
-
serialize
public void serialize(WriteMetadataCase input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializerTransforms POJO/DTO into byte message (ByteBuf).- Specified by:
serializein interfaceOFSerializer<WriteMetadataCase>- Overrides:
serializein classAbstractInstructionSerializer<WriteMetadataCase>- Parameters:
input- object to be serializedoutBuffer- output buffer
-
getType
protected int getType()
Description copied from class:AbstractInstructionSerializerGet type.- Specified by:
getTypein classAbstractInstructionSerializer<WriteMetadataCase>- Returns:
- numeric representation of instruction type.
-
getLength
protected int getLength()
Description copied from class:AbstractInstructionSerializerGet length.- Specified by:
getLengthin classAbstractInstructionSerializer<WriteMetadataCase>- Returns:
- instruction length.
-
-