Class TopologyStatsProviderImpl
- java.lang.Object
-
- java.util.TimerTask
-
- org.opendaylight.bgpcep.pcep.topology.stats.provider.TopologyStatsProviderImpl
-
- All Implemented Interfaces:
AutoCloseable
,Runnable
,EventListener
,TopologySessionStatsRegistry
,org.opendaylight.mdsal.binding.api.TransactionChainListener
public final class TopologyStatsProviderImpl extends TimerTask implements org.opendaylight.mdsal.binding.api.TransactionChainListener, TopologySessionStatsRegistry, AutoCloseable
-
-
Method Summary
All Methods Static 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()
static AutoCloseable
createStarted(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, Timer timer, int updateIntervalSeconds)
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
run()
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.-
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
-
-
-
Method Detail
-
createStarted
public static AutoCloseable createStarted(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, Timer timer, int updateIntervalSeconds)
-
close
public void close() throws InterruptedException, ExecutionException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
InterruptedException
ExecutionException
-
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
-
-