Helper class to retrieve and create strategy measurements. More...
#include <asf-measurements.hpp>
Public Member Functions | |
AsfMeasurements (MeasurementsAccessor &measurements) | |
FaceInfo * | getFaceInfo (const fib::Entry &fibEntry, const Name &interestName, FaceId faceId) |
FaceInfo & | getOrCreateFaceInfo (const fib::Entry &fibEntry, const Name &interestName, FaceId faceId) |
NamespaceInfo * | getNamespaceInfo (const Name &prefix) |
NamespaceInfo & | getOrCreateNamespaceInfo (const fib::Entry &fibEntry, const Name &prefix) |
Static Public Attributes | |
static constexpr time::microseconds | MEASUREMENTS_LIFETIME = 5_min |
Helper class to retrieve and create strategy measurements.
Definition at line 188 of file asf-measurements.hpp.
|
explicit |
Definition at line 88 of file asf-measurements.cpp.
FaceInfo * nfd::fw::asf::AsfMeasurements::getFaceInfo | ( | const fib::Entry & | fibEntry, |
const Name & | interestName, | ||
FaceId | faceId | ||
) |
Definition at line 95 of file asf-measurements.cpp.
References nfd::fw::asf::NamespaceInfo::getFaceInfo(), and getOrCreateNamespaceInfo().
Referenced by nfd::fw::asf::ProbingModule::getFaceToProbe().
FaceInfo & nfd::fw::asf::AsfMeasurements::getOrCreateFaceInfo | ( | const fib::Entry & | fibEntry, |
const Name & | interestName, | ||
FaceId | faceId | ||
) |
Definition at line 101 of file asf-measurements.cpp.
References nfd::fw::asf::NamespaceInfo::getOrCreateFaceInfo(), and getOrCreateNamespaceInfo().
Referenced by nfd::fw::asf::AsfStrategy::afterReceiveNack().
NamespaceInfo * nfd::fw::asf::AsfMeasurements::getNamespaceInfo | ( | const Name & | prefix | ) |
Definition at line 107 of file asf-measurements.cpp.
References nfd::measurements::MeasurementsAccessor::findLongestPrefixMatch(), and info.
Referenced by nfd::fw::asf::AsfStrategy::beforeSatisfyInterest(), and nfd::fw::asf::ProbingModule::scheduleProbe().
NamespaceInfo & nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo | ( | const fib::Entry & | fibEntry, |
const Name & | prefix | ||
) |
Definition at line 123 of file asf-measurements.cpp.
References nfd::measurements::MeasurementsAccessor::extendLifetime(), nfd::measurements::MeasurementsAccessor::get(), nfd::fib::Entry::getPrefix(), ndn::Name::getPrefix(), info, MEASUREMENTS_LIFETIME, and ndn::Name::size().
Referenced by nfd::fw::asf::ProbingModule::afterForwardingProbe(), nfd::fw::asf::AsfStrategy::afterReceiveNack(), getFaceInfo(), getOrCreateFaceInfo(), and nfd::fw::asf::ProbingModule::isProbingNeeded().
|
static |
Definition at line 211 of file asf-measurements.hpp.
Referenced by nfd::fw::asf::NamespaceInfo::extendFaceInfoLifetime(), and getOrCreateNamespaceInfo().