Class MeterInstructionSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer<MeterCase>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.MeterInstructionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<MeterCase>
,OFGeneralSerializer
,OFSerializer<MeterCase>
public class MeterInstructionSerializer extends AbstractInstructionSerializer<MeterCase>
-
-
Constructor Summary
Constructors Constructor Description MeterInstructionSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getLength()
Get length.protected int
getType()
Get type.void
serialize(MeterCase 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(MeterCase input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<MeterCase>
- Overrides:
serialize
in classAbstractInstructionSerializer<MeterCase>
- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
getType
protected int getType()
Description copied from class:AbstractInstructionSerializer
Get type.- Specified by:
getType
in classAbstractInstructionSerializer<MeterCase>
- Returns:
- numeric representation of instruction type.
-
getLength
protected int getLength()
Description copied from class:AbstractInstructionSerializer
Get length.- Specified by:
getLength
in classAbstractInstructionSerializer<MeterCase>
- Returns:
- instruction length.
-
-