Interface ObjectRegistry
-
- All Superinterfaces:
VendorInformationObjectRegistry
- All Known Implementing Classes:
SimpleObjectRegistry
public interface ObjectRegistry extends VendorInformationObjectRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
parseObject(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 Detail
-
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
void serializeObject(Object object, io.netty.buffer.ByteBuf buffer)
Find serializer for given object. Delegates parsing to found serializer.- Parameters:
object
- to be parsedbuffer
- ByteBuf wrapped around bytes representing given object
-
-