Class TopologyStatsRpcServiceImpl
- java.lang.Object
-
- org.opendaylight.bgpcep.pcep.topology.stats.rpc.TopologyStatsRpcServiceImpl
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<PcepSessionState>
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<PcepSessionState>
,PcepTopologyStatsRpcService
,org.opendaylight.yangtools.yang.binding.RpcService
public class TopologyStatsRpcServiceImpl extends Object implements PcepTopologyStatsRpcService, org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener<PcepSessionState>, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description TopologyStatsRpcServiceImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetStatsOutput>>
getStats(GetStatsInput input)
Fetch PCEP session statistics for given PCEP topology and node.void
init()
void
onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<PcepSessionState>> changes)
-
-
-
Method Detail
-
init
public void init()
-
onDataTreeChanged
public void onDataTreeChanged(Collection<org.opendaylight.mdsal.binding.api.DataTreeModification<PcepSessionState>> changes)
- Specified by:
onDataTreeChanged
in interfaceorg.opendaylight.mdsal.binding.api.DataTreeChangeListener<PcepSessionState>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getStats
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<GetStatsOutput>> getStats(GetStatsInput input)
Description copied from interface:PcepTopologyStatsRpcService
Fetch PCEP session statistics for given PCEP topology and node. If topology and/or node details are absent, statistics for all nodes under the context are returned.- Specified by:
getStats
in interfacePcepTopologyStatsRpcService
-
-