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 getNSilentTimeouts () const
 
time::nanoseconds getSrtt () const
 
bool hasTimeout () const
 
bool isTimeoutScheduled () const
 
void recordRtt (time::nanoseconds rtt)
 
void recordTimeout (const Name &interestName)
 
time::nanoseconds scheduleTimeout (const Name &interestName, scheduler::EventCallback cb)
 
void setNSilentTimeouts (size_t nSilentTimeouts)
 

Static Public Attributes

static const time::nanoseconds RTT_NO_MEASUREMENT {-1}
 
static const time::nanoseconds RTT_TIMEOUT {-2}
 

Friends

class NamespaceInfo
 

Detailed Description

Strategy information for each face in a namespace.

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

Constructor & Destructor Documentation

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

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

Member Function Documentation

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

void nfd::fw::asf::FaceInfo::setNSilentTimeouts ( size_t  nSilentTimeouts)
inline

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

Friends And Related Function Documentation

friend class NamespaceInfo
friend

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

Member Data Documentation

const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_NO_MEASUREMENT {-1}
static

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

const time::nanoseconds nfd::fw::asf::FaceInfo::RTT_TIMEOUT {-2}
static

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