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 |
size_t | getNSilentTimeouts () const |
void | setNSilentTimeouts (size_t nSilentTimeouts) |
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 73 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 80 of file asf-measurements.cpp.
|
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 100 of file asf-measurements.cpp.
References cancelTimeoutEvent(), and isTimeoutScheduled().
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), cancelTimeoutEvent(), recordTimeout(), and ~FaceInfo().
|
inline |
Definition at line 128 of file asf-measurements.hpp.
Referenced by 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 114 of file asf-measurements.cpp.
References nfd::fw::asf::RttStats::addRttMeasurement(), nfd::face::Face::getId(), 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 135 of file asf-measurements.cpp.
References cancelTimeoutEvent(), and nfd::fw::asf::RttStats::recordTimeout().
|
inline |
Definition at line 140 of file asf-measurements.hpp.
References 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.
References nfd::fw::asf::RttStats::computeRto().
|
inline |
Definition at line 152 of file asf-measurements.hpp.
References nfd::fw::asf::RttStats::getRtt().
Referenced by isTimeout().
|
inline |
Definition at line 158 of file asf-measurements.hpp.
References nfd::fw::asf::RttStats::getSrtt().
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe(), and hasSrttMeasurement().
|
inline |
Definition at line 164 of file asf-measurements.hpp.
References getSrtt(), and nfd::fw::asf::RttStats::RTT_NO_MEASUREMENT.
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe().
|
inline |
Definition at line 170 of file asf-measurements.hpp.
|
inline |
Definition at line 176 of file asf-measurements.hpp.