Interface ObjectRegistry
- All Superinterfaces:
VendorInformationObjectRegistry
- All Known Implementing Classes:
SimpleObjectRegistry
-
Method Summary
Modifier and TypeMethodDescriptionparseObject
(int objectClass, int objectType, ObjectHeader header, io.netty.buffer.ByteBuf buffer) Finds parser for given object type and class in the registry.void
serializeObject
(Object object, io.netty.buffer.ByteBuf buffer) Find serializer for given object.Methods inherited from interface org.opendaylight.protocol.pcep.spi.VendorInformationObjectRegistry
parseVendorInformationObject, serializeVendorInformationObject
-
Method Details
-
parseObject
Object parseObject(int objectClass, int objectType, ObjectHeader header, io.netty.buffer.ByteBuf buffer) throws PCEPDeserializerException Finds parser for given object type and class in the registry. Delegates parsing to found parser.- Parameters:
objectClass
- object classobjectType
- object typeheader
- ObjectHeaderbuffer
- object wrapped in ByteBuf- Returns:
- null if the parser for this object could not be found
- Throws:
PCEPDeserializerException
- if the parsing did not succeed
-
serializeObject
Find serializer for given object. Delegates parsing to found serializer.- Parameters:
object
- to be parsedbuffer
- ByteBuf wrapped around bytes representing given object
-