Strategy information for each face in a namespace. More...
#include <asf-measurements.hpp>
Public Member Functions | |
FaceInfo (shared_ptr< const ndn::util::RttEstimator::Options > opts) | |
bool | isTimeoutScheduled () const |
time::nanoseconds | scheduleTimeout (const Name &interestName, scheduler::EventCallback cb) |
void | cancelTimeout (const Name &prefix) |
void | recordRtt (time::nanoseconds rtt) |
void | recordTimeout (const Name &interestName) |
bool | hasTimeout () const |
time::nanoseconds | getLastRtt () const |
time::nanoseconds | getSrtt () const |
size_t | getNTimeouts () const |
void | setNTimeouts (size_t nTimeouts) |
Static Public Attributes | |
static const time::nanoseconds | RTT_NO_MEASUREMENT {-1} |
static const time::nanoseconds | RTT_TIMEOUT {-2} |
Friends | |
class | NamespaceInfo |
Strategy information for each face in a namespace.
Definition at line 40 of file asf-measurements.hpp.
|
inlineexplicit |
Definition at line 44 of file asf-measurements.hpp.
|
inline |
Definition at line 50 of file asf-measurements.hpp.
References cancelTimeout(), and scheduleTimeout().
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().
time::nanoseconds nfd::fw::asf::FaceInfo::scheduleTimeout | ( | const Name & | interestName, |
scheduler::EventCallback | cb | ||
) |
Definition at line 37 of file asf-measurements.cpp.
References ndn::util::RttEstimator::getEstimatedRto(), nfd::getScheduler(), and nonstd::optional_lite::std11::move().
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack(), and isTimeoutScheduled().
void nfd::fw::asf::FaceInfo::cancelTimeout | ( | const Name & | prefix | ) |
Definition at line 46 of file asf-measurements.cpp.
References ndn::detail::ScopedCancelHandle< HandleT >::cancel(), and ndn::Name::isPrefixOf().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), isTimeoutScheduled(), and recordTimeout().
|
inline |
Definition at line 62 of file asf-measurements.hpp.
References ndn::util::RttEstimator::addMeasurement().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest().
|
inline |
Definition at line 69 of file asf-measurements.hpp.
References cancelTimeout(), and RTT_TIMEOUT.
|
inline |
Definition at line 76 of file asf-measurements.hpp.
References getLastRtt(), and RTT_TIMEOUT.
Referenced by nfd::fw::asf::ProbingModule::getProbingInterval().
|
inline |
Definition at line 82 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), nfd::fw::asf::ProbingModule::getFaceToProbe(), hasTimeout(), and nfd::fw::asf::FaceStatsCompare::operator()().
|
inline |
Definition at line 88 of file asf-measurements.hpp.
References ndn::util::RttEstimator::getSmoothedRtt().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), nfd::fw::asf::ProbingModule::getProbingInterval(), and nfd::fw::asf::FaceStatsCompare::operator()().
|
inline |
Definition at line 94 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::FaceStatsCompare::operator()().
|
inline |
Definition at line 100 of file asf-measurements.hpp.
|
friend |
Definition at line 117 of file asf-measurements.hpp.
|
static |
Definition at line 106 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe(), and nfd::fw::asf::FaceStatsCompare::operator()().
|
static |
Definition at line 107 of file asf-measurements.hpp.
Referenced by hasTimeout(), nfd::fw::asf::FaceStatsCompare::operator()(), and recordTimeout().