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
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PeerGroup
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)
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
-