Class DefaultBgpDeployer
java.lang.Object
org.opendaylight.protocol.bgp.rib.impl.config.DefaultBgpDeployer
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Bgp>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<Bgp>
,PeerGroupConfigLoader
- Direct Known Subclasses:
OSGiBgpDeployer
@Singleton
public class DefaultBgpDeployer
extends Object
implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<Bgp>, PeerGroupConfigLoader, AutoCloseable
-
Constructor Summary
ConstructorDescriptionDefaultBgpDeployer
(String networkInstanceName, org.opendaylight.mdsal.singleton.common.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.yang.binding.InstanceIdentifier<Bgp> bgpIid, String peerGroupName) Loads Peer GROUP configuration from CONFIG DS.void
init()
void
onDataTreeChanged
(Collection<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.common.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(Collection<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.yang.binding.InstanceIdentifier<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.
-