Class TopologyStatsProviderImpl
- java.lang.Object
-
- org.opendaylight.bgpcep.pcep.topology.stats.provider.TopologyStatsProviderImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,TopologySessionStatsRegistry
,org.opendaylight.mdsal.binding.api.TransactionChainListener
public final class TopologyStatsProviderImpl extends Object implements TopologySessionStatsRegistry, org.opendaylight.mdsal.binding.api.TransactionChainListener, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description TopologyStatsProviderImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, int updateIntervalSeconds)
TopologyStatsProviderImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, int updateIntervalSeconds, ScheduledExecutorService scheduler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey> nodeId, PcepSessionState sessionState)
Register session to Session stats Registry handler.void
close()
void
onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, Throwable cause)
void
onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
void
unbind(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey> nodeId)
Unregister Node from Stats Registry handler.void
updateStats()
-
-
-
Constructor Detail
-
TopologyStatsProviderImpl
public TopologyStatsProviderImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, int updateIntervalSeconds)
-
TopologyStatsProviderImpl
public TopologyStatsProviderImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, int updateIntervalSeconds, ScheduledExecutorService scheduler)
-
-
Method Detail
-
close
public void close() throws InterruptedException, ExecutionException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
InterruptedException
ExecutionException
-
updateStats
public void updateStats()
-
onTransactionChainFailed
public void onTransactionChainFailed(org.opendaylight.mdsal.binding.api.TransactionChain chain, org.opendaylight.mdsal.binding.api.Transaction transaction, Throwable cause)
- Specified by:
onTransactionChainFailed
in interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
onTransactionChainSuccessful
public void onTransactionChainSuccessful(org.opendaylight.mdsal.binding.api.TransactionChain chain)
- Specified by:
onTransactionChainSuccessful
in interfaceorg.opendaylight.mdsal.binding.api.TransactionChainListener
-
bind
public void bind(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey> nodeId, PcepSessionState sessionState)
Description copied from interface:TopologySessionStatsRegistry
Register session to Session stats Registry handler.- Specified by:
bind
in interfaceTopologySessionStatsRegistry
- Parameters:
nodeId
- Identifier of the topology node where it will be stored session stats under DSsessionState
- containing all Stats Session information
-
unbind
public void unbind(org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node,org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey> nodeId)
Description copied from interface:TopologySessionStatsRegistry
Unregister Node from Stats Registry handler.- Specified by:
unbind
in interfaceTopologySessionStatsRegistry
- Parameters:
nodeId
- Identifier of the topology node to be removed from registry
-
-