Class LearnCodec
- java.lang.Object
-
- org.opendaylight.openflowjava.nx.codec.action.AbstractActionCodec
-
- org.opendaylight.openflowjava.nx.codec.action.LearnCodec
-
- All Implemented Interfaces:
OFDeserializer<Action>
,OFGeneralDeserializer
,OFGeneralSerializer
,OFSerializer<Action>
public class LearnCodec extends AbstractActionCodec
Codec for the learn action.- Author:
- Slava Radune
-
-
Field Summary
Fields Modifier and Type Field Description static NiciraActionDeserializerKey
DESERIALIZER_KEY
static byte
NXAST_LEARN_SUBTYPE
static NiciraActionSerializerKey
SERIALIZER_KEY
-
Constructor Summary
Constructors Constructor Description LearnCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Action
deserialize(io.netty.buffer.ByteBuf message)
Transforms byte message into POJO/DTO (of type E).void
serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
Transforms POJO/DTO into byte message (ByteBuf).-
Methods inherited from class org.opendaylight.openflowjava.nx.codec.action.AbstractActionCodec
deserializeHeader, getExperimenterId, readNxmHeader, serializeHeader, skipPadding, writeNxmHeader, writePaddingAndSetLength
-
-
-
-
Field Detail
-
NXAST_LEARN_SUBTYPE
public static final byte NXAST_LEARN_SUBTYPE
- See Also:
- Constant Field Values
-
SERIALIZER_KEY
public static final NiciraActionSerializerKey SERIALIZER_KEY
-
DESERIALIZER_KEY
public static final NiciraActionDeserializerKey DESERIALIZER_KEY
-
-
Method Detail
-
serialize
public void serialize(Action input, io.netty.buffer.ByteBuf outBuffer)
Description copied from interface:OFSerializer
Transforms POJO/DTO into byte message (ByteBuf).- Parameters:
input
- object to be serializedoutBuffer
- output buffer
-
deserialize
public Action deserialize(io.netty.buffer.ByteBuf message)
Description copied from interface:OFDeserializer
Transforms byte message into POJO/DTO (of type E).- Parameters:
message
- message as bytes in ByteBuf- Returns:
- POJO/DTO
-
-