Class LinkstateGraphBuilder
java.lang.Object
org.opendaylight.bgpcep.bgp.topology.provider.AbstractTopologyBuilder<LinkstateRoute>
org.opendaylight.bgpcep.bgp.topology.provider.LinkstateGraphBuilder
- All Implemented Interfaces:
com.google.common.util.concurrent.FutureCallback<org.opendaylight.yangtools.yang.common.Empty>
,TopologyReference
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<LinkstateRoute>
,InstanceReference<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.Topology>
This Class build the Traffic Engineering Database as a Connected Graph
suitable to be used latter by Path Computation algorithms to compute end to
end path.
- Author:
- Olivier Dugeon, Philippe Niger
-
Field Summary
Fields inherited from class org.opendaylight.bgpcep.bgp.topology.provider.AbstractTopologyBuilder
listenerScheduledRestartEnforceCounter, listenerScheduledRestartTime, networkTopologyTransaction
-
Constructor Summary
ConstructorDescriptionLinkstateGraphBuilder
(org.opendaylight.mdsal.binding.api.DataBroker dataProvider, RibReference locRibReference, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId topologyId, ConnectedGraphProvider provider) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
createObject
(org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans, org.opendaylight.yangtools.binding.DataObjectIdentifier<LinkstateRoute> id, LinkstateRoute value) protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier
<LinkstateRoute> getRouteWildcard
(org.opendaylight.yangtools.binding.DataObjectIdentifier<Tables> tablesId) protected void
removeObject
(org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans, org.opendaylight.yangtools.binding.DataObjectIdentifier<LinkstateRoute> id, LinkstateRoute value) protected void
routeChanged
(org.opendaylight.mdsal.binding.api.DataTreeModification<LinkstateRoute> change, org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans) Methods inherited from class org.opendaylight.bgpcep.bgp.topology.provider.AbstractTopologyBuilder
close, getInstanceIdentifier, onDataTreeChanged, onFailure, onSuccess, resetListener, resetTransactionChain, restartTransactionChainOnDemand, scheduleListenerRestart, start
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
-
LinkstateGraphBuilder
public LinkstateGraphBuilder(org.opendaylight.mdsal.binding.api.DataBroker dataProvider, RibReference locRibReference, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId topologyId, ConnectedGraphProvider provider)
-
-
Method Details
-
routeChanged
protected void routeChanged(org.opendaylight.mdsal.binding.api.DataTreeModification<LinkstateRoute> change, org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans) - Overrides:
routeChanged
in classAbstractTopologyBuilder<LinkstateRoute>
-
createObject
protected void createObject(org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans, org.opendaylight.yangtools.binding.DataObjectIdentifier<LinkstateRoute> id, LinkstateRoute value) - Specified by:
createObject
in classAbstractTopologyBuilder<LinkstateRoute>
-
removeObject
protected void removeObject(org.opendaylight.mdsal.binding.api.ReadWriteTransaction trans, org.opendaylight.yangtools.binding.DataObjectIdentifier<LinkstateRoute> id, LinkstateRoute value) - Specified by:
removeObject
in classAbstractTopologyBuilder<LinkstateRoute>
-
getRouteWildcard
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<LinkstateRoute> getRouteWildcard(org.opendaylight.yangtools.binding.DataObjectIdentifier<Tables> tablesId) - Specified by:
getRouteWildcard
in classAbstractTopologyBuilder<LinkstateRoute>
-
clearTopology
protected void clearTopology()- Specified by:
clearTopology
in classAbstractTopologyBuilder<LinkstateRoute>
-