public final class StatsReaderService extends Object
StatsReaderService provides interfaces to fetch flow statistics
information from OpenFlow switch.| Constructor and Description |
|---|
StatsReaderService(VTNManagerProvider provider)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
VTNFuture<FlowStatsRecord> |
get(VtnFlowEntry vfent)
Get the statistics information about the given VTN flow entry.
|
boolean |
start(SalNode snode,
StatsReaderCallback cb)
Start the flow stats reader transaction for getting statistics
information about all flow entries present in the given switch.
|
public StatsReaderService(VTNManagerProvider provider)
provider - A VTN Manager provider service.public VTNFuture<FlowStatsRecord> get(VtnFlowEntry vfent)
vfent - The target VTN flow entry.VTNFuture instance associated with the stats read
transaction.public boolean start(SalNode snode, StatsReaderCallback cb)
snode - The target switch.cb - The callback to be invoked when flow statistics are
received.true on success. false on failure.Copyright © 2018 OpenDaylight. All rights reserved.