Class BandwidthUsageObjectCodec
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.auto.bandwidth.extension.BandwidthUsageObjectCodec
- All Implemented Interfaces:
ObjectParser
,ObjectSerializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparseObject
(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
-
Constructor Details
-
BandwidthUsageObjectCodec
public BandwidthUsageObjectCodec(int type)
-
-
Method Details
-
parseObject
public BandwidthUsage parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Specified by:
parseObject
in interfaceObjectParser
- Throws:
PCEPDeserializerException
-
serializeObject
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
-