Class SimpleRIBExtensionProviderContext
java.lang.Object
org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext
- All Implemented Interfaces:
RIBExtensionConsumerContext
,RIBExtensionProviderContext
public class SimpleRIBExtensionProviderContext
extends Object
implements RIBExtensionProviderContext
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,
S extends org.opendaylight.yangtools.binding.ChildOf<C>>
RIBSupport<C, S> getRIBSupport
(TablesKey key) Acquire a RIB implementation factory for a AFI/SAFI combination.<C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,
S extends org.opendaylight.yangtools.binding.ChildOf<C>>
RIBSupport<C, S> getRIBSupport
(AddressFamily afi, SubsequentAddressFamily safi) Acquire a RIB implementation factory for a AFI/SAFI combination.<C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,
S extends org.opendaylight.yangtools.binding.ChildOf<C>>
RIBSupport<C, S> getRIBSupport
(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates key) Acquire a RIB implementation factory for a AFI/SAFI combination.org.opendaylight.yangtools.concepts.Registration
registerRIBSupport
(RIBSupport<?, ?> support) Register a RIBSupport instance for a particular AFI/SAFI combination.
-
Constructor Details
-
SimpleRIBExtensionProviderContext
public SimpleRIBExtensionProviderContext()
-
-
Method Details
-
registerRIBSupport
Description copied from interface:RIBExtensionProviderContext
Register a RIBSupport instance for a particular AFI/SAFI combination.- Specified by:
registerRIBSupport
in interfaceRIBExtensionProviderContext
- Parameters:
support
- RIBSupport instance- Returns:
- Registration handle. Call
Registration.close()
method to remove it.
-
getRIBSupport
public <C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.binding.ChildOf<C>> RIBSupport<C,S> getRIBSupport(AddressFamily afi, SubsequentAddressFamily safi) Description copied from interface:RIBExtensionConsumerContext
Acquire a RIB implementation factory for a AFI/SAFI combination.- Specified by:
getRIBSupport
in interfaceRIBExtensionConsumerContext
- Parameters:
afi
- Address Family Identifiersafi
- Subsequent Address Family identifier- Returns:
- RIBSupport instance, or null if the AFI/SAFI is not implemented.
-
getRIBSupport
public <C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.binding.ChildOf<C>> RIBSupport<C,S> getRIBSupport(TablesKey key) Description copied from interface:RIBExtensionConsumerContext
Acquire a RIB implementation factory for a AFI/SAFI combination.- Specified by:
getRIBSupport
in interfaceRIBExtensionConsumerContext
- Parameters:
key
- AFI/SAFI key- Returns:
- RIBSupport instance, or null if the AFI/SAFI is not implemented.
-
getRIBSupport
public <C extends Routes & org.opendaylight.yangtools.binding.DataObject & org.opendaylight.yangtools.binding.ChoiceIn<Tables>,S extends org.opendaylight.yangtools.binding.ChildOf<C>> RIBSupport<C,S> getRIBSupport(org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierWithPredicates key) Description copied from interface:RIBExtensionConsumerContext
Acquire a RIB implementation factory for a AFI/SAFI combination.- Specified by:
getRIBSupport
in interfaceRIBExtensionConsumerContext
- Parameters:
key
- Tables key with AFI/SAFI- Returns:
- RIBSupport instance, or null if the AFI/SAFI is not implemented.
-