Class PCEPMetricObjectParser
java.lang.Object
org.opendaylight.protocol.pcep.spi.CommonObjectParser
org.opendaylight.protocol.pcep.parser.object.PCEPMetricObjectParser
- All Implemented Interfaces:
ObjectParser,ObjectSerializer
Parser for
Metric.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) voidserializeObject(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
-
PCEPMetricObjectParser
public PCEPMetricObjectParser()
-
-
Method Details
-
parseObject
public Metric parseObject(ObjectHeader header, io.netty.buffer.ByteBuf bytes) throws PCEPDeserializerException - Specified by:
parseObjectin interfaceObjectParser- Throws:
PCEPDeserializerException
-
serializeObject
Description copied from interface:ObjectSerializerSerializes given object to bytes wrapped in given ByteBuf.- Specified by:
serializeObjectin interfaceObjectSerializer- Parameters:
object- PCEP object to be serializedbuffer- ByteBuf wrapper around serialized object
-