Class PCEPBandwidthObjectParser
- java.lang.Object
-
- org.opendaylight.protocol.pcep.spi.CommonObjectParser
-
- org.opendaylight.protocol.pcep.parser.object.PCEPBandwidthObjectParser
-
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
public final class PCEPBandwidthObjectParser extends CommonObjectParser implements ObjectSerializer
Parser for Bandwidth.
-
-
Field Summary
Fields Modifier and Type Field Description static int
BANDWIDTH_F_LENGTH
-
Constructor Summary
Constructors Constructor Description PCEPBandwidthObjectParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Bandwidth
parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes)
void
serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Serializes given object to bytes wrapped in given ByteBuf.-
Methods inherited from class org.opendaylight.protocol.pcep.spi.CommonObjectParser
getObjectClass, getObjectType
-
-
-
-
Field Detail
-
BANDWIDTH_F_LENGTH
public static final int BANDWIDTH_F_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseObject
public Bandwidth parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException
- Specified by:
parseObject
in interfaceObjectParser
- Throws:
PCEPDeserializerException
-
serializeObject
public void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Description copied from interface:ObjectSerializer
Serializes given object to bytes wrapped in given ByteBuf.- Specified by:
serializeObject
in interfaceObjectSerializer
- Parameters:
object
- PCEP object to be serializedbuffer
- ByteBuf wrapper around serialized object
-
-