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>
-
Constructor Summary
-
Method Summary
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.instructions.AbstractInstructionSerializer
serializeHeader
-
Constructor Details
-
MeterInstructionSerializer
public MeterInstructionSerializer()
-
-
Method Details
-
serialize
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.
-