public final class RIBImpl extends BGPRibStateImpl implements RIB, org.opendaylight.mdsal.binding.api.TransactionChainListener, org.opendaylight.mdsal.dom.api.DOMTransactionChainListener, org.opendaylight.yangtools.yang.model.api.SchemaContextListener, AutoCloseable
| Constructor and Description |
|---|
RIBImpl(BGPTableTypeRegistryConsumer tableTypeRegistry,
RibId ribId,
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber localAs,
BgpId localBgpId,
RIBExtensionConsumerContext extensions,
BGPDispatcher dispatcher,
CodecsRegistryImpl codecsRegistry,
org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker,
org.opendaylight.mdsal.binding.api.DataBroker dataBroker,
BGPRibRoutingPolicy ribPolicies,
List<BgpTableType> localTables,
Map<TablesKey,PathSelectionMode> bestPathSelectionStrategies) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> |
closeServiceInstance() |
org.opendaylight.mdsal.binding.api.TransactionChain |
createPeerChain(org.opendaylight.mdsal.binding.api.TransactionChainListener listener)
Allocate a new transaction chain for use with a peer.
|
org.opendaylight.mdsal.dom.api.DOMTransactionChain |
createPeerDOMChain(org.opendaylight.mdsal.dom.api.DOMTransactionChainListener listener)
Allocate a new transaction chain for use with a peer.
|
BgpId |
getBgpIdentifier() |
CodecsRegistry |
getCodecsRegistry() |
org.opendaylight.mdsal.binding.api.DataBroker |
getDataBroker()
Return DataBroker.
|
BGPDispatcher |
getDispatcher() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber |
getLocalAs()
RIB AS.
|
Set<? extends BgpTableType> |
getLocalTables()
Return the set of table identifiers which are accepted and advertised
by this RIB instance.
|
Set<TablesKey> |
getLocalTablesKeys() |
BGPPeerTracker |
getPeerTracker()
Returns peer tracker for the rib.
|
RIBExtensionConsumerContext |
getRibExtensions()
Return the RIB extensions available to the RIB instance.
|
BGPRibRoutingPolicy |
getRibPolicies()
Return Policies Container.
|
RIBSupportContextRegistry |
getRibSupportContext()
Return the RIB extensions available to the RIB instance
with additional RIB specific context such as
translation between DOM and Binding.
|
org.opendaylight.mdsal.dom.api.DOMDataTreeChangeService |
getService()
Return instance of DOMDataTreeChangeService, where consumer can register to
listen on DOM data changes.
|
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier |
getYangRibId()
Return YangInstanceIdentifier of BGP Rib with its RibId.
|
void |
instantiateServiceInstance() |
void |
onGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext context) |
void |
onTransactionChainFailed(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain,
org.opendaylight.mdsal.dom.api.DOMDataTreeTransaction transaction,
Throwable cause) |
void |
onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain,
org.opendaylight.mdsal.binding.api.Transaction transaction,
Throwable cause) |
void |
onTransactionChainSuccessful(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain) |
void |
onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain) |
void |
refreshTable(TablesKey tk,
PeerId peerId)
Triggers the reevaluation.
|
boolean |
supportsTable(TablesKey tableKey)
Returns true if RIB supports table.
|
String |
toString() |
getAs, getPathCount, getPathsCount, getPrefixesCount, getRIBState, getRouteId, getTablesPrefixesCount, getTotalPathsCount, getTotalPrefixesCount, isActive, registerTotalPathCounter, registerTotalPrefixesCounter, setActivegetInstanceIdentifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInstanceIdentifierpublic RIBImpl(BGPTableTypeRegistryConsumer tableTypeRegistry, RibId ribId, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber localAs, BgpId localBgpId, RIBExtensionConsumerContext extensions, BGPDispatcher dispatcher, CodecsRegistryImpl codecsRegistry, org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, BGPRibRoutingPolicy ribPolicies, List<BgpTableType> localTables, Map<TablesKey,PathSelectionMode> bestPathSelectionStrategies)
public void close()
close in interface AutoCloseablepublic org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getLocalAs()
RIBgetLocalAs in interface RIBpublic BgpId getBgpIdentifier()
getBgpIdentifier in interface RIBpublic Set<? extends BgpTableType> getLocalTables()
RIBgetLocalTables in interface RIBpublic BGPDispatcher getDispatcher()
getDispatcher in interface RIBpublic void onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain,
org.opendaylight.mdsal.binding.api.Transaction transaction,
Throwable cause)
onTransactionChainFailed in interface org.opendaylight.mdsal.binding.api.TransactionChainListenerpublic void onTransactionChainFailed(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain,
org.opendaylight.mdsal.dom.api.DOMDataTreeTransaction transaction,
Throwable cause)
onTransactionChainFailed in interface org.opendaylight.mdsal.dom.api.DOMTransactionChainListenerpublic void onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
onTransactionChainSuccessful in interface org.opendaylight.mdsal.binding.api.TransactionChainListenerpublic void onTransactionChainSuccessful(org.opendaylight.mdsal.dom.api.DOMTransactionChain chain)
onTransactionChainSuccessful in interface org.opendaylight.mdsal.dom.api.DOMTransactionChainListenerpublic Set<TablesKey> getLocalTablesKeys()
getLocalTablesKeys in interface RIBpublic boolean supportsTable(TablesKey tableKey)
RIBsupportsTable in interface RIBtableKey - tablepublic BGPRibRoutingPolicy getRibPolicies()
RIBgetRibPolicies in interface RIBpublic BGPPeerTracker getPeerTracker()
RIBgetPeerTracker in interface RIBpublic void refreshTable(TablesKey tk, PeerId peerId)
RibOutRefreshrefreshTable in interface RibOutRefreshtk - table key of table route paths to be reevaluatedpeerId - peer to advertize / withdraw paths after reevaluationpublic org.opendaylight.mdsal.dom.api.DOMDataTreeChangeService getService()
RIBgetService in interface RIBpublic org.opendaylight.mdsal.binding.api.DataBroker getDataBroker()
RIBgetDataBroker in interface RIBpublic org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getYangRibId()
RIBgetYangRibId in interface RIBpublic org.opendaylight.mdsal.binding.api.TransactionChain createPeerChain(org.opendaylight.mdsal.binding.api.TransactionChainListener listener)
RIBcreatePeerChain in interface RIBlistener - TransactionChainListener handling recoverypublic org.opendaylight.mdsal.dom.api.DOMTransactionChain createPeerDOMChain(org.opendaylight.mdsal.dom.api.DOMTransactionChainListener listener)
RIBcreatePeerDOMChain in interface RIBlistener - TransactionChainListener handling recoverypublic RIBExtensionConsumerContext getRibExtensions()
RIBgetRibExtensions in interface RIBpublic RIBSupportContextRegistry getRibSupportContext()
RIBgetRibSupportContext in interface RIBpublic void onGlobalContextUpdated(org.opendaylight.yangtools.yang.model.api.SchemaContext context)
onGlobalContextUpdated in interface org.opendaylight.yangtools.yang.model.api.SchemaContextListenerpublic CodecsRegistry getCodecsRegistry()
getCodecsRegistry in interface RIBpublic void instantiateServiceInstance()
public com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
Copyright © 2020 OpenDaylight. All rights reserved.