public final class NodeFlowStatsReader extends Object implements StatsReaderCallback
NodeFlowStatsReader reads statistics information about the specified
flow entries in the same switch.
Note that this method reads all flow statistics present in the specified switch.
| Constructor and Description |
|---|
NodeFlowStatsReader(SalNode snode)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
flowStatsReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.FlowAndStatisticsMap fstats)
Invoked when a flow statistics information has been received.
|
VTNFuture<FlowStatsRecord> |
get(VtnFlowEntry vfent)
Return a future associated with the task to read flow statistics
about the given VTN flow entry.
|
void |
start(StatsReaderService srs)
Start the flow statistics read transaction.
|
void |
transactionCanceled()
Invoked when the transaction for reading flow statistics has been
canceled.
|
void |
transactionCompleted()
Invoked when the transaction for reading flow statistics has been
completed successfully.
|
public VTNFuture<FlowStatsRecord> get(VtnFlowEntry vfent)
vfent - The target flow entry.VTNFuture instance which returns the flow statistics
about the specified flow entry.public void start(StatsReaderService srs)
This method must be called only once. No flow statistics will be returned if this method is not called.
srs - The flow statistics reader service.public void flowStatsReceived(org.opendaylight.yang.gen.v1.urn.opendaylight.flow.statistics.rev130819.FlowAndStatisticsMap fstats)
flowStatsReceived in interface StatsReaderCallbackfstats - A FlowAndStatisticsMap instance which contains
the flow statistics send by the switch.public void transactionCompleted()
transactionCompleted in interface StatsReaderCallbackpublic void transactionCanceled()
transactionCanceled in interface StatsReaderCallbackCopyright © 2018 OpenDaylight. All rights reserved.