Class SimpleBGPExtensionProviderContext
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext
- All Implemented Interfaces:
BGPExtensionConsumerContext
,BGPExtensionProviderContext
public final class SimpleBGPExtensionProviderContext
extends Object
implements BGPExtensionProviderContext
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAddressFamilyRegistry
final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAttributeRegistry
final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleCapabilityRegistry
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleExtendedCommunityRegistry
final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleMessageRegistry
final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleNlriRegistry
final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleParameterRegistry
Get the context-wide cache for a particular object type.final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleSubsequentAddressFamilyRegistry
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.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) <T extends org.opendaylight.yangtools.yang.binding.Notification<T> & org.opendaylight.yangtools.yang.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 nextHopParserSerializer, 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
(SubsequentAddressFamily safi, int number) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.BGPExtensionConsumerContext
getAddressFamilyRegistry, getAttributeRegistry, getBgpPrefixSidTlvRegistry, getCapabilityRegistry, getExtendedCommunityRegistry, getMessageRegistry, getNlriRegistry, getParameterRegistry, getSubsequentAddressFamilyRegistry
-
Field Details
-
DEFAULT_MAXIMUM_CACHED_OBJECTS
public static final int DEFAULT_MAXIMUM_CACHED_OBJECTS- See Also:
-
-
Constructor Details
-
SimpleBGPExtensionProviderContext
public SimpleBGPExtensionProviderContext() -
SimpleBGPExtensionProviderContext
public SimpleBGPExtensionProviderContext(int maximumCachedObjects)
-
-
Method Details
-
registerAddressFamily
public org.opendaylight.yangtools.concepts.Registration registerAddressFamily(AddressFamily afi, int number) - Specified by:
registerAddressFamily
in interfaceBGPExtensionProviderContext
-
registerAttributeParser
public org.opendaylight.yangtools.concepts.Registration registerAttributeParser(int attributeType, AttributeParser parser) - Specified by:
registerAttributeParser
in interfaceBGPExtensionProviderContext
-
registerAttributeSerializer
public org.opendaylight.yangtools.concepts.Registration registerAttributeSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> attributeClass, AttributeSerializer serializer) - Specified by:
registerAttributeSerializer
in interfaceBGPExtensionProviderContext
-
registerCapabilityParser
public org.opendaylight.yangtools.concepts.Registration registerCapabilityParser(int capabilityType, CapabilityParser parser) - Specified by:
registerCapabilityParser
in interfaceBGPExtensionProviderContext
-
registerCapabilitySerializer
public org.opendaylight.yangtools.concepts.Registration registerCapabilitySerializer(Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> capabilityClass, CapabilitySerializer serializer) - Specified by:
registerCapabilitySerializer
in interfaceBGPExtensionProviderContext
-
registerMessageParser
public org.opendaylight.yangtools.concepts.Registration registerMessageParser(int messageType, MessageParser parser) - Specified by:
registerMessageParser
in interfaceBGPExtensionProviderContext
-
registerMessageSerializer
public <T extends org.opendaylight.yangtools.yang.binding.Notification<T> & org.opendaylight.yangtools.yang.binding.DataObject> org.opendaylight.yangtools.concepts.Registration registerMessageSerializer(Class<T> messageClass, MessageSerializer serializer) - Specified by:
registerMessageSerializer
in interfaceBGPExtensionProviderContext
-
registerNlriParser
public org.opendaylight.yangtools.concepts.Registration registerNlriParser(AddressFamily afi, SubsequentAddressFamily safi, NlriParser parser, NextHopParserSerializer nextHopParserSerializer, Class<? extends CNextHop> cnextHopClass, Class<? extends CNextHop>... cnextHopClassList) - Specified by:
registerNlriParser
in interfaceBGPExtensionProviderContext
-
registerNlriSerializer
public org.opendaylight.yangtools.concepts.Registration registerNlriSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.DataObject> nlriClass, NlriSerializer serializer) - Specified by:
registerNlriSerializer
in interfaceBGPExtensionProviderContext
-
registerParameterParser
public org.opendaylight.yangtools.concepts.Registration registerParameterParser(int parameterType, ParameterParser parser) - Specified by:
registerParameterParser
in interfaceBGPExtensionProviderContext
-
registerParameterSerializer
public org.opendaylight.yangtools.concepts.Registration registerParameterSerializer(Class<? extends BgpParameters> paramClass, ParameterSerializer serializer) - Specified by:
registerParameterSerializer
in interfaceBGPExtensionProviderContext
-
registerSubsequentAddressFamily
public org.opendaylight.yangtools.concepts.Registration registerSubsequentAddressFamily(SubsequentAddressFamily safi, int number) - Specified by:
registerSubsequentAddressFamily
in interfaceBGPExtensionProviderContext
-
getReferenceCache
Description copied from interface:BGPExtensionProviderContext
Get the context-wide cache for a particular object type.- Specified by:
getReferenceCache
in interfaceBGPExtensionProviderContext
- Returns:
- An object cache instance.
-
registerExtendedCommunitySerializer
public org.opendaylight.yangtools.concepts.Registration registerExtendedCommunitySerializer(Class<? extends ExtendedCommunity> extendedCommunityClass, ExtendedCommunitySerializer serializer) - Specified by:
registerExtendedCommunitySerializer
in interfaceBGPExtensionProviderContext
-
registerExtendedCommunityParser
public org.opendaylight.yangtools.concepts.Registration registerExtendedCommunityParser(int type, int subtype, ExtendedCommunityParser parser) - Specified by:
registerExtendedCommunityParser
in interfaceBGPExtensionProviderContext
-
registerBgpPrefixSidTlvParser
public org.opendaylight.yangtools.concepts.Registration registerBgpPrefixSidTlvParser(int tlvType, BgpPrefixSidTlvParser parser) - Specified by:
registerBgpPrefixSidTlvParser
in interfaceBGPExtensionProviderContext
-
registerBgpPrefixSidTlvSerializer
public org.opendaylight.yangtools.concepts.Registration registerBgpPrefixSidTlvSerializer(Class<? extends BgpPrefixSidTlv> tlvClass, BgpPrefixSidTlvSerializer serializer) - Specified by:
registerBgpPrefixSidTlvSerializer
in interfaceBGPExtensionProviderContext
-
getAddressFamilyRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAddressFamilyRegistry getAddressFamilyRegistry()- Specified by:
getAddressFamilyRegistry
in interfaceBGPExtensionConsumerContext
-
getAttributeRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAttributeRegistry getAttributeRegistry()- Specified by:
getAttributeRegistry
in interfaceBGPExtensionConsumerContext
-
getCapabilityRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleCapabilityRegistry getCapabilityRegistry()- Specified by:
getCapabilityRegistry
in interfaceBGPExtensionConsumerContext
-
getMessageRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleMessageRegistry getMessageRegistry()- Specified by:
getMessageRegistry
in interfaceBGPExtensionConsumerContext
-
getNlriRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleNlriRegistry getNlriRegistry()- Specified by:
getNlriRegistry
in interfaceBGPExtensionConsumerContext
-
getParameterRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleParameterRegistry getParameterRegistry()- Specified by:
getParameterRegistry
in interfaceBGPExtensionConsumerContext
-
getSubsequentAddressFamilyRegistry
public final org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleSubsequentAddressFamilyRegistry getSubsequentAddressFamilyRegistry()- Specified by:
getSubsequentAddressFamilyRegistry
in interfaceBGPExtensionConsumerContext
-
getExtendedCommunityRegistry
public org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleExtendedCommunityRegistry getExtendedCommunityRegistry()- Specified by:
getExtendedCommunityRegistry
in interfaceBGPExtensionConsumerContext
-
getBgpPrefixSidTlvRegistry
- Specified by:
getBgpPrefixSidTlvRegistry
in interfaceBGPExtensionConsumerContext
-