Interface BGPExtensionProviderContext
-
- All Superinterfaces:
BGPExtensionConsumerContext
- All Known Implementing Classes:
SimpleBGPExtensionProviderContext
public interface BGPExtensionProviderContext extends BGPExtensionConsumerContext
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReferenceCache
getReferenceCache()
Get the context-wide cache for a particular object type.org.opendaylight.yangtools.concepts.Registration
registerAddressFamily(Class<? extends AddressFamily> clazz, int number)
org.opendaylight.yangtools.concepts.Registration
registerAttributeParser(int attributeType, AttributeParser parser)
org.opendaylight.yangtools.concepts.Registration
registerAttributeSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> 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.yang.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)
org.opendaylight.yangtools.concepts.Registration
registerMessageSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.Notification> messageClass, MessageSerializer serializer)
org.opendaylight.yangtools.concepts.Registration
registerNlriParser(Class<? extends AddressFamily> afi, Class<? extends 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.yang.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(Class<? extends SubsequentAddressFamily> clazz, int number)
-
Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.BGPExtensionConsumerContext
getAddressFamilyRegistry, getAttributeRegistry, getBgpPrefixSidTlvRegistry, getCapabilityRegistry, getExtendedCommunityRegistry, getMessageRegistry, getNlriRegistry, getParameterRegistry, getSubsequentAddressFamilyRegistry
-
-
-
-
Method Detail
-
registerAddressFamily
org.opendaylight.yangtools.concepts.Registration registerAddressFamily(Class<? extends AddressFamily> clazz, int number)
-
registerSubsequentAddressFamily
org.opendaylight.yangtools.concepts.Registration registerSubsequentAddressFamily(Class<? extends SubsequentAddressFamily> clazz, 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.yang.binding.DataObject> 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.yang.binding.DataObject> capabilityClass, CapabilitySerializer serializer)
-
registerMessageParser
org.opendaylight.yangtools.concepts.Registration registerMessageParser(int messageType, MessageParser parser)
-
registerMessageSerializer
org.opendaylight.yangtools.concepts.Registration registerMessageSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.Notification> 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(Class<? extends AddressFamily> afi, Class<? extends 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.yang.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.
-
-