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>
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 haveTopologyPcep
type and for each one of those instantiates a cluster-wide singleton to handle lifecycle of services attached to that topology.
-
-
Constructor Summary
Constructors Constructor Description PCEPTopologyTracker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, PCEPDispatcher pcepDispatcher, InstructionSchedulerFactory instructionSchedulerFactory, org.opendaylight.bgpcep.pcep.topology.provider.TopologySessionStatsRegistry stateRegistry, PceServerProvider pceServerProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.opendaylight.mdsal.binding.api.DataBroker
getDataBroker()
PCEPDispatcher
getPCEPDispatcher()
PceServerProvider
getPceServerProvider()
org.opendaylight.mdsal.binding.api.RpcProviderService
getRpcProviderRegistry()
org.opendaylight.bgpcep.pcep.topology.provider.TopologySessionStatsRegistry
getStateRegistry()
void
onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<TopologyPcep>> changes)
-
-
-
Constructor Detail
-
PCEPTopologyTracker
public PCEPTopologyTracker(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider singletonService, org.opendaylight.mdsal.binding.api.RpcProviderService rpcProviderRegistry, PCEPDispatcher pcepDispatcher, InstructionSchedulerFactory instructionSchedulerFactory, org.opendaylight.bgpcep.pcep.topology.provider.TopologySessionStatsRegistry stateRegistry, PceServerProvider pceServerProvider)
-
-
Method Detail
-
getPCEPDispatcher
public PCEPDispatcher 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.TopologySessionStatsRegistry getStateRegistry()
-
getPceServerProvider
public PceServerProvider getPceServerProvider()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<TopologyPcep>> changes)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<TopologyPcep>
-
-