Interface BGPExtensionProviderContext
- All Superinterfaces:
BGPExtensionConsumerContext
- All Known Implementing Classes:
SimpleBGPExtensionProviderContext
Context for registering providers of the various types of extension points BGP provides. These are then consumed by
extension consumers. It also provides access to the context-wide object cache, which extension providers can use to
increase the in-memory efficiency when the same objects are created over and over again.
-
Method Summary
Modifier and TypeMethodDescriptionGet the context-wide cache for a particular object type.org.opendaylight.yangtools.concepts.Registration
registerAddressFamily
(AddressFamily afi, int number) org.opendaylight.yangtools.concepts.Registration
registerAttributeParser
(int attributeType, AttributeParser parser) org.opendaylight.yangtools.concepts.Registration
registerAttributeSerializer
(Class<? extends org.opendaylight.yangtools.binding.DataContainer> attributeClass, AttributeSerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerBgpPrefixSidTlvParser
(int tlvType, BgpPrefixSidTlvParser parser) org.opendaylight.yangtools.concepts.Registration
registerBgpPrefixSidTlvSerializer
(Class<? extends BgpPrefixSidTlv> tlvClass, BgpPrefixSidTlvSerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerCapabilityParser
(int capabilityType, CapabilityParser parser) org.opendaylight.yangtools.concepts.Registration
registerCapabilitySerializer
(Class<? extends org.opendaylight.yangtools.binding.DataObject> capabilityClass, CapabilitySerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerExtendedCommunityParser
(int type, int subtype, ExtendedCommunityParser parser) org.opendaylight.yangtools.concepts.Registration
registerExtendedCommunitySerializer
(Class<? extends ExtendedCommunity> extendedCommunityClass, ExtendedCommunitySerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerMessageParser
(int messageType, MessageParser parser) <T extends org.opendaylight.yangtools.binding.Notification<T> & org.opendaylight.yangtools.binding.DataObject>
org.opendaylight.yangtools.concepts.RegistrationregisterMessageSerializer
(Class<T> messageClass, MessageSerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerNlriParser
(AddressFamily afi, SubsequentAddressFamily safi, NlriParser parser, NextHopParserSerializer nextHopHandler, Class<? extends CNextHop> cnextHopClass, Class<? extends CNextHop>... cnextHopClassList) org.opendaylight.yangtools.concepts.Registration
registerNlriSerializer
(Class<? extends org.opendaylight.yangtools.binding.DataObject> nlriClass, NlriSerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerParameterParser
(int parameterType, ParameterParser parser) org.opendaylight.yangtools.concepts.Registration
registerParameterSerializer
(Class<? extends BgpParameters> paramClass, ParameterSerializer serializer) org.opendaylight.yangtools.concepts.Registration
registerSubsequentAddressFamily
(SubsequentAddressFamily safi, int number) Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.BGPExtensionConsumerContext
getAddressFamilyRegistry, getAttributeRegistry, getBgpPrefixSidTlvRegistry, getCapabilityRegistry, getExtendedCommunityRegistry, getMessageRegistry, getNlriRegistry, getParameterRegistry, getSubsequentAddressFamilyRegistry
-
Method Details
-
registerAddressFamily
org.opendaylight.yangtools.concepts.Registration registerAddressFamily(AddressFamily afi, int number) -
registerSubsequentAddressFamily
org.opendaylight.yangtools.concepts.Registration registerSubsequentAddressFamily(SubsequentAddressFamily safi, int number) -
registerAttributeParser
org.opendaylight.yangtools.concepts.Registration registerAttributeParser(int attributeType, AttributeParser parser) -
registerAttributeSerializer
org.opendaylight.yangtools.concepts.Registration registerAttributeSerializer(Class<? extends org.opendaylight.yangtools.binding.DataContainer> attributeClass, AttributeSerializer serializer) -
registerCapabilityParser
org.opendaylight.yangtools.concepts.Registration registerCapabilityParser(int capabilityType, CapabilityParser parser) -
registerCapabilitySerializer
org.opendaylight.yangtools.concepts.Registration registerCapabilitySerializer(Class<? extends org.opendaylight.yangtools.binding.DataObject> capabilityClass, CapabilitySerializer serializer) -
registerMessageParser
org.opendaylight.yangtools.concepts.Registration registerMessageParser(int messageType, MessageParser parser) -
registerMessageSerializer
<T extends org.opendaylight.yangtools.binding.Notification<T> & org.opendaylight.yangtools.binding.DataObject> org.opendaylight.yangtools.concepts.Registration registerMessageSerializer(Class<T> messageClass, MessageSerializer serializer) -
registerBgpPrefixSidTlvParser
org.opendaylight.yangtools.concepts.Registration registerBgpPrefixSidTlvParser(int tlvType, BgpPrefixSidTlvParser parser) -
registerBgpPrefixSidTlvSerializer
org.opendaylight.yangtools.concepts.Registration registerBgpPrefixSidTlvSerializer(Class<? extends BgpPrefixSidTlv> tlvClass, BgpPrefixSidTlvSerializer serializer) -
registerNlriParser
org.opendaylight.yangtools.concepts.Registration registerNlriParser(AddressFamily afi, SubsequentAddressFamily safi, NlriParser parser, NextHopParserSerializer nextHopHandler, Class<? extends CNextHop> cnextHopClass, Class<? extends CNextHop>... cnextHopClassList) -
registerNlriSerializer
org.opendaylight.yangtools.concepts.Registration registerNlriSerializer(Class<? extends org.opendaylight.yangtools.binding.DataObject> nlriClass, NlriSerializer serializer) -
registerParameterParser
org.opendaylight.yangtools.concepts.Registration registerParameterParser(int parameterType, ParameterParser parser) -
registerParameterSerializer
org.opendaylight.yangtools.concepts.Registration registerParameterSerializer(Class<? extends BgpParameters> paramClass, ParameterSerializer serializer) -
registerExtendedCommunitySerializer
org.opendaylight.yangtools.concepts.Registration registerExtendedCommunitySerializer(Class<? extends ExtendedCommunity> extendedCommunityClass, ExtendedCommunitySerializer serializer) -
registerExtendedCommunityParser
org.opendaylight.yangtools.concepts.Registration registerExtendedCommunityParser(int type, int subtype, ExtendedCommunityParser parser) -
getReferenceCache
ReferenceCache getReferenceCache()Get the context-wide cache for a particular object type.- Returns:
- An object cache instance.
-