Class RIBImpl
java.lang.Object
org.opendaylight.protocol.bgp.rib.DefaultRibReference
org.opendaylight.protocol.bgp.rib.impl.state.BGPRibStateImpl
org.opendaylight.protocol.bgp.rib.impl.RIBImpl
- All Implemented Interfaces:
RIB
,RibOutRefresh
,RibReference
,BGPRibState
,BGPRibStateProvider
,InstanceReference<Rib>
-
Constructor Summary
ConstructorDescriptionRIBImpl
(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, CodecsRegistry codecsRegistry, org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker, BGPRibRoutingPolicy ribPolicies, List<BgpTableType> localTables, Map<TablesKey, PathSelectionMode> bestPathSelectionStrategies) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo>
org.opendaylight.mdsal.dom.api.DOMTransactionChain
Allocate a new transaction chain for use with a peer.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
RIB AS.Set<? extends BgpTableType>
Return the set of table identifiers which are accepted and advertised by this RIB instance.Returns peer tracker for the rib.Return the RIB extensions available to the RIB instance.Return Policies Container.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.DOMDataBroker.DataTreeChangeExtension
Return instance of DOMDataTreeChangeService, where consumer can register to listen on DOM data changes.org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier
Return YangInstanceIdentifier of BGP Rib with its RibId.void
void
refreshTable
(TablesKey tk, PeerId peerId) Triggers the reevaluation.boolean
supportsTable
(TablesKey tableKey) Returns true if RIB supports table.toString()
Methods inherited from class org.opendaylight.protocol.bgp.rib.impl.state.BGPRibStateImpl
getAs, getPathCount, getPathsCount, getPrefixesCount, getRIBState, getRouteId, getTablesPrefixesCount, getTotalPathsCount, getTotalPrefixesCount, isActive, registerTotalPathCounter, registerTotalPrefixesCounter, setActive
Methods inherited from class org.opendaylight.protocol.bgp.rib.DefaultRibReference
getInstanceIdentifier
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.protocol.bgp.rib.RibReference
getInstanceIdentifier
-
Constructor Details
-
RIBImpl
public 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, CodecsRegistry codecsRegistry, org.opendaylight.mdsal.dom.api.DOMDataBroker domDataBroker, BGPRibRoutingPolicy ribPolicies, List<BgpTableType> localTables, Map<TablesKey, PathSelectionMode> bestPathSelectionStrategies)
-
-
Method Details
-
toString
-
getLocalAs
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getLocalAs()Description copied from interface:RIB
RIB AS.- Specified by:
getLocalAs
in interfaceRIB
- Returns:
- AS
-
getBgpIdentifier
- Specified by:
getBgpIdentifier
in interfaceRIB
-
getLocalTables
Description copied from interface:RIB
Return the set of table identifiers which are accepted and advertised by this RIB instance.- Specified by:
getLocalTables
in interfaceRIB
- Returns:
- A set of identifiers.
-
getDispatcher
- Specified by:
getDispatcher
in interfaceRIB
-
getLocalTablesKeys
- Specified by:
getLocalTablesKeys
in interfaceRIB
-
supportsTable
Description copied from interface:RIB
Returns true if RIB supports table.- Specified by:
supportsTable
in interfaceRIB
- Parameters:
tableKey
- table- Returns:
- true if supported
-
getRibPolicies
Description copied from interface:RIB
Return Policies Container.- Specified by:
getRibPolicies
in interfaceRIB
- Returns:
- policies
-
getPeerTracker
Description copied from interface:RIB
Returns peer tracker for the rib.- Specified by:
getPeerTracker
in interfaceRIB
- Returns:
- peer tracker
-
refreshTable
Description copied from interface:RibOutRefresh
Triggers the reevaluation.- Specified by:
refreshTable
in interfaceRibOutRefresh
- Parameters:
tk
- table key of table route paths to be reevaluatedpeerId
- peer to advertize / withdraw paths after reevaluation
-
getService
public org.opendaylight.mdsal.dom.api.DOMDataBroker.DataTreeChangeExtension getService()Description copied from interface:RIB
Return instance of DOMDataTreeChangeService, where consumer can register to listen on DOM data changes.- Specified by:
getService
in interfaceRIB
- Returns:
- DOMDataTreeChangeService
-
getYangRibId
public org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier getYangRibId()Description copied from interface:RIB
Return YangInstanceIdentifier of BGP Rib with its RibId.- Specified by:
getYangRibId
in interfaceRIB
- Returns:
- YangInstanceIdentifier
-
createPeerDOMChain
public org.opendaylight.mdsal.dom.api.DOMTransactionChain createPeerDOMChain()Description copied from interface:RIB
Allocate a new transaction chain for use with a peer.- Specified by:
createPeerDOMChain
in interfaceRIB
- Returns:
- A new transaction chain.
-
getRibExtensions
Description copied from interface:RIB
Return the RIB extensions available to the RIB instance.- Specified by:
getRibExtensions
in interfaceRIB
- Returns:
- RIB extensions handle.
-
getRibSupportContext
Description copied from interface:RIB
Return the RIB extensions available to the RIB instance with additional RIB specific context such as translation between DOM and Binding.- Specified by:
getRibSupportContext
in interfaceRIB
- Returns:
- RIB extensions handle.
-
getCodecsRegistry
- Specified by:
getCodecsRegistry
in interfaceRIB
-
instantiateServiceInstance
public void instantiateServiceInstance() -
closeServiceInstance
public com.google.common.util.concurrent.FluentFuture<? extends org.opendaylight.mdsal.common.api.CommitInfo> closeServiceInstance()
-