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 org.opendaylight.mdsal.binding.api.TransactionChainListener, TopologySessionStatsRegistry, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description TopologyStatsProviderImpl(@NonNull org.opendaylight.mdsal.binding.api.DataBroker dataBroker, int timeout)
-
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
init()
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.
-
-
-
Method Detail
-
init
public void init()
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
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
-
-