Class PCEPTopologyTracker
java.lang.Object
org.opendaylight.bgpcep.pcep.topology.provider.PCEPTopologyTracker
- All Implemented Interfaces:
AutoCloseable,EventListener,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<TopologyPcep>,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<TopologyPcep>
@Singleton
public final class PCEPTopologyTracker
extends Object
implements org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<TopologyPcep>, AutoCloseable
Primary entrypoint into this component. Once an instance of this class is instantiated, it will subscribe to
changes to the configuration datastore. There it filters only topologies which have
TopologyPcep type and for
each one of those instantiates a cluster-wide singleton to handle lifecycle of services attached to that topology.-
Constructor Summary
ConstructorsConstructorDescriptionPCEPTopologyTracker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, PCEPExtensionConsumerContext extensions, PCEPDispatcher pcepDispatcher, InstructionSchedulerFactory instructionSchedulerFactory, PceServerProvider pceServerProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.opendaylight.mdsal.binding.api.DataBrokerorg.opendaylight.mdsal.binding.api.RpcProviderServiceorg.opendaylight.bgpcep.pcep.topology.provider.SessionStateRegistryio.netty.util.TimergetTimer()voidonDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<TopologyPcep>> changes) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onInitialData
-
Constructor Details
-
PCEPTopologyTracker
@Inject public PCEPTopologyTracker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, PCEPExtensionConsumerContext extensions, PCEPDispatcher pcepDispatcher, InstructionSchedulerFactory instructionSchedulerFactory, PceServerProvider pceServerProvider)
-
-
Method Details
-
getMessageRegistry
-
getPCEPDispatcher
-
getRpcProviderRegistry
public org.opendaylight.mdsal.binding.api.RpcProviderService getRpcProviderRegistry() -
getDataBroker
public org.opendaylight.mdsal.binding.api.DataBroker getDataBroker() -
getStateRegistry
public org.opendaylight.bgpcep.pcep.topology.provider.SessionStateRegistry getStateRegistry() -
getPceServerProvider
-
getTimer
public io.netty.util.Timer getTimer() -
close
@PreDestroy public void close()- Specified by:
closein interfaceAutoCloseable
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<TopologyPcep>> changes) - Specified by:
onDataTreeChangedin interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<TopologyPcep>
-