Class OutputActionSerializer
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer<OutputActionCase>
-
- org.opendaylight.openflowplugin.impl.protocol.serialization.actions.OutputActionSerializer
-
- All Implemented Interfaces:
HeaderSerializer<OutputActionCase>
,OFGeneralSerializer
,OFSerializer<OutputActionCase>
public class OutputActionSerializer extends AbstractActionSerializer<OutputActionCase>
-
-
Constructor Summary
Constructors Constructor Description OutputActionSerializer()
-
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(OutputActionCase action, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowplugin.impl.protocol.serialization.actions.AbstractActionSerializer
serializeHeader
-
-
-
-
Method Detail
-
serialize
public void serialize(OutputActionCase action, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Specified by:
serialize
in interfaceOFSerializer<OutputActionCase>
- Overrides:
serialize
in classAbstractActionSerializer<OutputActionCase>
- Parameters:
action
- object to be serializedoutBuffer
- output buffer
-
getLength
protected int getLength()
Description copied from class:AbstractActionSerializer
Get length.- Specified by:
getLength
in classAbstractActionSerializer<OutputActionCase>
- Returns:
- action length
-
getType
protected int getType()
Description copied from class:AbstractActionSerializer
Get type.- Specified by:
getType
in classAbstractActionSerializer<OutputActionCase>
- Returns:
- numeric representation of action type
-
-