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
Fields Modifier and Type Field Description static int
DEFAULT_MAXIMUM_CACHED_OBJECTS
-
Constructor Summary
Constructors Constructor Description SimpleBGPExtensionProviderContext()
SimpleBGPExtensionProviderContext(int maximumCachedObjects)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAddressFamilyRegistry
getAddressFamilyRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleAttributeRegistry
getAttributeRegistry()
SimpleBgpPrefixSidTlvRegistry
getBgpPrefixSidTlvRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleCapabilityRegistry
getCapabilityRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleExtendedCommunityRegistry
getExtendedCommunityRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleMessageRegistry
getMessageRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleNlriRegistry
getNlriRegistry()
org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleParameterRegistry
getParameterRegistry()
ReferenceCache
getReferenceCache()
Get the context-wide cache for a particular object type.org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleSubsequentAddressFamilyRegistry
getSubsequentAddressFamilyRegistry()
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 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(Class<? extends SubsequentAddressFamily> clazz, 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 Detail
-
DEFAULT_MAXIMUM_CACHED_OBJECTS
public static final int DEFAULT_MAXIMUM_CACHED_OBJECTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerAddressFamily
public org.opendaylight.yangtools.concepts.Registration registerAddressFamily(Class<? extends AddressFamily> clazz, 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 org.opendaylight.yangtools.concepts.Registration registerMessageSerializer(Class<? extends org.opendaylight.yangtools.yang.binding.Notification> messageClass, MessageSerializer serializer)
- Specified by:
registerMessageSerializer
in interfaceBGPExtensionProviderContext
-
registerNlriParser
public org.opendaylight.yangtools.concepts.Registration registerNlriParser(Class<? extends AddressFamily> afi, Class<? extends 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(Class<? extends SubsequentAddressFamily> clazz, int number)
- Specified by:
registerSubsequentAddressFamily
in interfaceBGPExtensionProviderContext
-
getReferenceCache
public ReferenceCache 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
public SimpleBgpPrefixSidTlvRegistry getBgpPrefixSidTlvRegistry()
- Specified by:
getBgpPrefixSidTlvRegistry
in interfaceBGPExtensionConsumerContext
-
-