Strategy information for each face in a namespace. More...
#include <asf-measurements.hpp>
Classes | |
class | Error |
Public Member Functions | |
FaceInfo () | |
~FaceInfo () | |
void | setTimeoutEvent (const scheduler::EventId &id, const Name &interestName) |
void | setMeasurementExpirationEventId (const scheduler::EventId &id) |
const scheduler::EventId & | getMeasurementExpirationEventId () |
void | cancelTimeoutEvent (const Name &prefix) |
bool | isTimeoutScheduled () const |
void | recordRtt (const shared_ptr< pit::Entry > &pitEntry, const Face &inFace) |
void | recordTimeout (const Name &interestName) |
bool | isTimeout () const |
RttEstimator::Duration | computeRto () const |
RttStats::Rtt | getRtt () const |
RttStats::Rtt | getSrtt () const |
bool | hasSrttMeasurement () const |
Strategy information for each face in a namespace.
Definition at line 92 of file asf-measurements.hpp.
nfd::fw::asf::FaceInfo::FaceInfo | ( | ) |
Definition at line 67 of file asf-measurements.cpp.
nfd::fw::asf::FaceInfo::~FaceInfo | ( | ) |
Definition at line 72 of file asf-measurements.cpp.
References nfd::scheduler::cancel(), and cancelTimeoutEvent().
void nfd::fw::asf::FaceInfo::setTimeoutEvent | ( | const scheduler::EventId & | id, |
const Name & | interestName | ||
) |
Definition at line 79 of file asf-measurements.cpp.
References nfd::scheduler::cancel().
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().
|
inline |
Definition at line 113 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime().
|
inline |
Definition at line 119 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime().
void nfd::fw::asf::FaceInfo::cancelTimeoutEvent | ( | const Name & | prefix | ) |
Definition at line 99 of file asf-measurements.cpp.
References cancelTimeoutEvent(), ndn::Name::isPrefixOf(), and isTimeoutScheduled().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), cancelTimeoutEvent(), recordTimeout(), and ~FaceInfo().
|
inline |
Definition at line 128 of file asf-measurements.hpp.
References Face, and nfd::fw::asf::RttStats::recordTimeout().
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack(), nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), and cancelTimeoutEvent().
void nfd::fw::asf::FaceInfo::recordRtt | ( | const shared_ptr< pit::Entry > & | pitEntry, |
const Face & | inFace | ||
) |
Definition at line 113 of file asf-measurements.cpp.
References nfd::fw::asf::RttStats::addRttMeasurement(), nfd::fw::asf::RttStats::getRtt(), nfd::fw::asf::RttStats::getSrtt(), NFD_LOG_TRACE, and ndn::time::steady_clock::now().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest().
void nfd::fw::asf::FaceInfo::recordTimeout | ( | const Name & | interestName | ) |
Definition at line 134 of file asf-measurements.cpp.
References cancelTimeoutEvent(), and nfd::fw::asf::RttStats::recordTimeout().
Referenced by nfd::fw::asf::getValueForSorting().
|
inline |
Definition at line 140 of file asf-measurements.hpp.
References nfd::fw::asf::RttStats::getRtt(), and nfd::fw::asf::RttStats::RTT_TIMEOUT.
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe().
|
inline |
Definition at line 146 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().
|
inline |
Definition at line 152 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::getValueForSorting().
|
inline |
Definition at line 158 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe(), and nfd::fw::asf::getValueForSorting().
|
inline |
Definition at line 164 of file asf-measurements.hpp.
References nfd::fw::asf::RttStats::getSrtt(), and nfd::fw::asf::RttStats::RTT_NO_MEASUREMENT.
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe().