nfd::fw::asf::FaceInfo Class Reference

Strategy information for each face in a namespace. More...

#include <daemon/fw/asf-measurements.hpp>

Public Member Functions

 FaceInfo (shared_ptr< const ndn::util::RttEstimator::Options > opts)
 
void cancelTimeout (const Name &prefix)
 
time::nanoseconds getLastRtt () const
 
size_t getNTimeouts () const
 
time::nanoseconds getSrtt () const
 
bool isTimeoutScheduled () const
 
void recordRtt (time::nanoseconds rtt)
 
void recordTimeout (const Name &interestName)
 
time::nanoseconds scheduleTimeout (const Name &interestName, ndn::scheduler::EventCallback cb)
 
void setNTimeouts (size_t nTimeouts)
 

Static Public Attributes

static constexpr time::nanoseconds RTT_NO_MEASUREMENT = -1_ns
 
static constexpr time::nanoseconds RTT_TIMEOUT = -2_ns
 

Friends

class NamespaceInfo
 

Detailed Description

Strategy information for each face in a namespace.

Definition at line 42 of file asf-measurements.hpp.

Constructor & Destructor Documentation

◆ FaceInfo()

nfd::fw::asf::FaceInfo::FaceInfo ( shared_ptr< const ndn::util::RttEstimator::Options >  opts)
inlineexplicit

Definition at line 46 of file asf-measurements.hpp.

Member Function Documentation

◆ cancelTimeout()

void nfd::fw::asf::FaceInfo::cancelTimeout ( const Name &  prefix)

Definition at line 41 of file asf-measurements.cpp.

◆ getLastRtt()

time::nanoseconds nfd::fw::asf::FaceInfo::getLastRtt ( ) const
inline

Definition at line 78 of file asf-measurements.hpp.

◆ getNTimeouts()

size_t nfd::fw::asf::FaceInfo::getNTimeouts ( ) const
inline

Definition at line 90 of file asf-measurements.hpp.

◆ getSrtt()

time::nanoseconds nfd::fw::asf::FaceInfo::getSrtt ( ) const
inline

Definition at line 84 of file asf-measurements.hpp.

◆ isTimeoutScheduled()

bool nfd::fw::asf::FaceInfo::isTimeoutScheduled ( ) const
inline

Definition at line 52 of file asf-measurements.hpp.

◆ recordRtt()

void nfd::fw::asf::FaceInfo::recordRtt ( time::nanoseconds  rtt)
inline

Definition at line 64 of file asf-measurements.hpp.

◆ recordTimeout()

void nfd::fw::asf::FaceInfo::recordTimeout ( const Name &  interestName)
inline

Definition at line 71 of file asf-measurements.hpp.

◆ scheduleTimeout()

time::nanoseconds nfd::fw::asf::FaceInfo::scheduleTimeout ( const Name &  interestName,
ndn::scheduler::EventCallback  cb 
)

Definition at line 32 of file asf-measurements.cpp.

◆ setNTimeouts()

void nfd::fw::asf::FaceInfo::setNTimeouts ( size_t  nTimeouts)
inline

Definition at line 96 of file asf-measurements.hpp.

Friends And Related Function Documentation

◆ NamespaceInfo

friend class NamespaceInfo
friend

Definition at line 113 of file asf-measurements.hpp.

Member Data Documentation

◆ RTT_NO_MEASUREMENT

constexpr time::nanoseconds nfd::fw::asf::FaceInfo::RTT_NO_MEASUREMENT = -1_ns
staticconstexpr

Definition at line 102 of file asf-measurements.hpp.

◆ RTT_TIMEOUT

constexpr time::nanoseconds nfd::fw::asf::FaceInfo::RTT_TIMEOUT = -2_ns
staticconstexpr

Definition at line 103 of file asf-measurements.hpp.