Class DefaultBgpDeployer
java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.config.DefaultBgpDeployer
- All Implemented Interfaces:
AutoCloseable
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>
,PeerGroupConfigLoader
- Direct Known Subclasses:
OSGiBgpDeployer
@Singleton
public class DefaultBgpDeployer
extends Object
implements org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>, PeerGroupConfigLoader, AutoCloseable
-
Constructor Summary
ConstructorDescriptionDefaultBgpDeployer
(String networkInstanceName, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider provider, org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry, RIBExtensionConsumerContext ribExtensionConsumerContext, BGPDispatcher bgpDispatcher, BGPRibRoutingPolicyFactory routingPolicyFactory, CodecsRegistry codecsRegistry, org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, BGPTableTypeRegistryConsumer tableTypeRegistry, BGPStateProviderRegistry stateProviderRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getPeerGroup
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Bgp> bgpIid, String peerGroupName) Loads Peer GROUP configuration from CONFIG DS.void
init()
void
onDataTreeChanged
(List<org.opendaylight.mdsal.binding.api.DataTreeModification<Bgp>> changes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onInitialData
-
Constructor Details
-
DefaultBgpDeployer
@Inject public DefaultBgpDeployer(String networkInstanceName, org.opendaylight.mdsal.singleton.api.ClusterSingletonServiceProvider provider, org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry, RIBExtensionConsumerContext ribExtensionConsumerContext, BGPDispatcher bgpDispatcher, BGPRibRoutingPolicyFactory routingPolicyFactory, CodecsRegistry codecsRegistry, org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, BGPTableTypeRegistryConsumer tableTypeRegistry, BGPStateProviderRegistry stateProviderRegistry)
-
-
Method Details
-
init
@PostConstruct public void init() -
onDataTreeChanged
public void onDataTreeChanged(List<org.opendaylight.mdsal.binding.api.DataTreeModification<Bgp>> changes) - Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>
-
close
@PreDestroy public void close()- Specified by:
close
in interfaceAutoCloseable
-
getPeerGroup
public PeerGroup getPeerGroup(org.opendaylight.yangtools.binding.DataObjectIdentifier<Bgp> bgpIid, String peerGroupName) Description copied from interface:PeerGroupConfigLoader
Loads Peer GROUP configuration from CONFIG DS.- Specified by:
getPeerGroup
in interfacePeerGroupConfigLoader
- Parameters:
bgpIid
- Protocol BGP Instance identifier.peerGroupName
- peer Group name.- Returns:
- peer group or null.
-