nfd::fw::asf::AsfMeasurements Class Reference

Helper class to retrieve and create strategy measurements. More...

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

+ Inheritance diagram for nfd::fw::asf::AsfMeasurements:
+ Collaboration diagram for nfd::fw::asf::AsfMeasurements:

Public Member Functions

 AsfMeasurements (MeasurementsAccessor &measurements)
 
FaceInfogetFaceInfo (const fib::Entry &fibEntry, const Name &interestName, FaceId faceId)
 
time::milliseconds getMeasurementsLifetime () const
 
NamespaceInfogetNamespaceInfo (const Name &prefix)
 
FaceInfogetOrCreateFaceInfo (const fib::Entry &fibEntry, const Name &interestName, FaceId faceId)
 
NamespaceInfogetOrCreateNamespaceInfo (const fib::Entry &fibEntry, const Name &prefix)
 
void setMeasurementsLifetime (time::milliseconds measurementsLifetime)
 

Static Public Attributes

static constexpr time::milliseconds DEFAULT_MEASUREMENTS_LIFETIME = 5_min
 

Detailed Description

Helper class to retrieve and create strategy measurements.

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

Constructor & Destructor Documentation

◆ AsfMeasurements()

nfd::fw::asf::AsfMeasurements::AsfMeasurements ( MeasurementsAccessor measurements)
explicit

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

Member Function Documentation

◆ getFaceInfo()

FaceInfo * nfd::fw::asf::AsfMeasurements::getFaceInfo ( const fib::Entry fibEntry,
const Name &  interestName,
FaceId  faceId 
)

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

◆ getMeasurementsLifetime()

time::milliseconds nfd::fw::asf::AsfMeasurements::getMeasurementsLifetime ( ) const
inline

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

◆ getNamespaceInfo()

NamespaceInfo * nfd::fw::asf::AsfMeasurements::getNamespaceInfo ( const Name &  prefix)

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

◆ getOrCreateFaceInfo()

FaceInfo & nfd::fw::asf::AsfMeasurements::getOrCreateFaceInfo ( const fib::Entry fibEntry,
const Name &  interestName,
FaceId  faceId 
)

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

◆ getOrCreateNamespaceInfo()

NamespaceInfo & nfd::fw::asf::AsfMeasurements::getOrCreateNamespaceInfo ( const fib::Entry fibEntry,
const Name &  prefix 
)

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

◆ setMeasurementsLifetime()

void nfd::fw::asf::AsfMeasurements::setMeasurementsLifetime ( time::milliseconds  measurementsLifetime)
inline

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

Member Data Documentation

◆ DEFAULT_MEASUREMENTS_LIFETIME

constexpr time::milliseconds nfd::fw::asf::AsfMeasurements::DEFAULT_MEASUREMENTS_LIFETIME = 5_min
staticconstexpr

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