gives access to counters provided by Face More...
#include <face-counters.hpp>
Public Member Functions | |
FaceCounters (const LinkService::Counters &linkServiceCounters, const Transport::Counters &transportCounters) | |
template<typename T > | |
std::enable_if< std::is_base_of< LinkService::Counters, T >::value, const T & >::type | get () const |
template<typename T > | |
std::enable_if< std::is_base_of< Transport::Counters, T >::value, const T & >::type | get () const |
Public Attributes | |
const PacketCounter & | nInInterests |
const PacketCounter & | nOutInterests |
const PacketCounter & | nInterestsExceededRetx |
const PacketCounter & | nInData |
const PacketCounter & | nOutData |
const PacketCounter & | nInNacks |
const PacketCounter & | nOutNacks |
const PacketCounter & | nInPackets |
const PacketCounter & | nOutPackets |
const ByteCounter & | nInBytes |
const ByteCounter & | nOutBytes |
PacketCounter | nInHopLimitZero |
count of incoming Interests dropped due to HopLimit == 0 More... | |
PacketCounter | nOutHopLimitZero |
count of outgoing Interests dropped due to HopLimit == 0 on non-local faces More... | |
gives access to counters provided by Face
This type is a facade that exposes common counters of a Face.
get<T>() can be used to access extended counters provided by LinkService or Transport of the Face.
Definition at line 42 of file face-counters.hpp.
nfd::face::FaceCounters::FaceCounters | ( | const LinkService::Counters & | linkServiceCounters, |
const Transport::Counters & | transportCounters | ||
) |
Definition at line 31 of file face-counters.cpp.
|
inline |
T | LinkService counters type |
std::bad_cast | counters type mismatch |
Definition at line 54 of file face-counters.hpp.
|
inline |
T | Transport counters type |
std::bad_cast | counters type mismatch |
Definition at line 65 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nInInterests |
Definition at line 71 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nOutInterests |
Definition at line 72 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nInterestsExceededRetx |
Definition at line 73 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nInData |
Definition at line 74 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nOutData |
Definition at line 75 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nInNacks |
Definition at line 76 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nOutNacks |
Definition at line 77 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nInPackets |
Definition at line 79 of file face-counters.hpp.
const PacketCounter& nfd::face::FaceCounters::nOutPackets |
Definition at line 80 of file face-counters.hpp.
const ByteCounter& nfd::face::FaceCounters::nInBytes |
Definition at line 81 of file face-counters.hpp.
const ByteCounter& nfd::face::FaceCounters::nOutBytes |
Definition at line 82 of file face-counters.hpp.
PacketCounter nfd::face::FaceCounters::nInHopLimitZero |
count of incoming Interests dropped due to HopLimit == 0
Definition at line 86 of file face-counters.hpp.
PacketCounter nfd::face::FaceCounters::nOutHopLimitZero |
count of outgoing Interests dropped due to HopLimit == 0 on non-local faces
Definition at line 90 of file face-counters.hpp.