represents NFD Forwarder Status More...
#include <nfd-forwarder-status.hpp>
Classes | |
class | Error |
Public Member Functions | |
ForwarderStatus () | |
ForwarderStatus (const Block &payload) | |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
prepend ForwarderStatus as a Content block to the encoder More... | |
const Block & | wireEncode () const |
encode ForwarderStatus as a Content block More... | |
void | wireDecode (const Block &wire) |
decode ForwarderStatus from a Content block More... | |
const std::string & | getNfdVersion () const |
ForwarderStatus & | setNfdVersion (const std::string &nfdVersion) |
const time::system_clock::TimePoint & | getStartTimestamp () const |
ForwarderStatus & | setStartTimestamp (const time::system_clock::TimePoint &startTimestamp) |
const time::system_clock::TimePoint & | getCurrentTimestamp () const |
ForwarderStatus & | setCurrentTimestamp (const time::system_clock::TimePoint ¤tTimestamp) |
size_t | getNNameTreeEntries () const |
ForwarderStatus & | setNNameTreeEntries (size_t nNameTreeEntries) |
size_t | getNFibEntries () const |
ForwarderStatus & | setNFibEntries (size_t nFibEntries) |
size_t | getNPitEntries () const |
ForwarderStatus & | setNPitEntries (size_t nPitEntries) |
size_t | getNMeasurementsEntries () const |
ForwarderStatus & | setNMeasurementsEntries (size_t nMeasurementsEntries) |
size_t | getNCsEntries () const |
ForwarderStatus & | setNCsEntries (size_t nCsEntries) |
uint64_t | getNInInterests () const |
ForwarderStatus & | setNInInterests (uint64_t nInInterests) |
uint64_t | getNInDatas () const |
ForwarderStatus & | setNInDatas (uint64_t nInDatas) |
uint64_t | getNInNacks () const |
ForwarderStatus & | setNInNacks (uint64_t nInNacks) |
uint64_t | getNOutInterests () const |
ForwarderStatus & | setNOutInterests (uint64_t nOutInterests) |
uint64_t | getNOutDatas () const |
ForwarderStatus & | setNOutDatas (uint64_t nOutDatas) |
uint64_t | getNOutNacks () const |
ForwarderStatus & | setNOutNacks (uint64_t nOutNacks) |
represents NFD Forwarder Status
Definition at line 36 of file nfd-forwarder-status.hpp.
ndn::nfd::ForwarderStatus::ForwarderStatus | ( | ) |
Definition at line 36 of file nfd-forwarder-status.cpp.
Referenced by ndn::nfd::ForwarderStatus::Error::Error().
|
explicit |
Definition at line 53 of file nfd-forwarder-status.cpp.
References wireDecode().
size_t ndn::nfd::ForwarderStatus::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
prepend ForwarderStatus as a Content block to the encoder
The outermost Content element isn't part of ForwardStatus structure.
Definition at line 60 of file nfd-forwarder-status.cpp.
References ndn::tlv::Content, ndn::tlv::nfd::CurrentTimestamp, ndn::tlv::nfd::NCsEntries, ndn::tlv::nfd::NfdVersion, ndn::tlv::nfd::NFibEntries, ndn::tlv::nfd::NInDatas, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NMeasurementsEntries, ndn::tlv::nfd::NNameTreeEntries, ndn::tlv::nfd::NOutDatas, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::tlv::nfd::NPitEntries, ndn::encoding::prependNonNegativeIntegerBlock(), ndn::tlv::nfd::StartTimestamp, and ndn::time::toUnixTimestamp().
const Block & ndn::nfd::ForwarderStatus::wireEncode | ( | ) | const |
encode ForwarderStatus as a Content block
The outermost Content element isn't part of ForwardStatus structure.
Definition at line 106 of file nfd-forwarder-status.cpp.
References ndn::Block::hasWire().
Referenced by ndn::nfd::ForwarderStatus::Error::Error().
void ndn::nfd::ForwarderStatus::wireDecode | ( | const Block & | wire | ) |
decode ForwarderStatus from a Content block
The outermost Content element isn't part of ForwardStatus structure.
Definition at line 122 of file nfd-forwarder-status.cpp.
References ndn::tlv::Content, ndn::tlv::nfd::CurrentTimestamp, ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::time::fromUnixTimestamp(), ndn::tlv::nfd::NCsEntries, ndn::tlv::nfd::NfdVersion, ndn::tlv::nfd::NFibEntries, ndn::tlv::nfd::NInDatas, ndn::tlv::nfd::NInInterests, ndn::tlv::nfd::NInNacks, ndn::tlv::nfd::NMeasurementsEntries, ndn::tlv::nfd::NNameTreeEntries, ndn::tlv::nfd::NOutDatas, ndn::tlv::nfd::NOutInterests, ndn::tlv::nfd::NOutNacks, ndn::tlv::nfd::NPitEntries, ndn::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::tlv::nfd::StartTimestamp, and ndn::Block::type().
Referenced by ndn::nfd::ForwarderStatus::Error::Error(), and ForwarderStatus().
|
inline |
Definition at line 78 of file nfd-forwarder-status.hpp.
References setNfdVersion().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNfdVersion | ( | const std::string & | nfdVersion | ) |
Definition at line 245 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNfdVersion().
|
inline |
Definition at line 87 of file nfd-forwarder-status.hpp.
References setStartTimestamp().
ForwarderStatus & ndn::nfd::ForwarderStatus::setStartTimestamp | ( | const time::system_clock::TimePoint & | startTimestamp | ) |
Definition at line 253 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getStartTimestamp().
|
inline |
Definition at line 96 of file nfd-forwarder-status.hpp.
References setCurrentTimestamp().
ForwarderStatus & ndn::nfd::ForwarderStatus::setCurrentTimestamp | ( | const time::system_clock::TimePoint & | currentTimestamp | ) |
Definition at line 261 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getCurrentTimestamp().
|
inline |
Definition at line 105 of file nfd-forwarder-status.hpp.
References setNNameTreeEntries().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNNameTreeEntries | ( | size_t | nNameTreeEntries | ) |
Definition at line 269 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNNameTreeEntries().
|
inline |
Definition at line 114 of file nfd-forwarder-status.hpp.
References setNFibEntries().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNFibEntries | ( | size_t | nFibEntries | ) |
Definition at line 277 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNFibEntries().
|
inline |
Definition at line 123 of file nfd-forwarder-status.hpp.
References setNPitEntries().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNPitEntries | ( | size_t | nPitEntries | ) |
Definition at line 285 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNPitEntries().
|
inline |
Definition at line 132 of file nfd-forwarder-status.hpp.
References setNMeasurementsEntries().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNMeasurementsEntries | ( | size_t | nMeasurementsEntries | ) |
Definition at line 293 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNMeasurementsEntries().
|
inline |
Definition at line 141 of file nfd-forwarder-status.hpp.
References setNCsEntries().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNCsEntries | ( | size_t | nCsEntries | ) |
Definition at line 301 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNCsEntries().
|
inline |
Definition at line 150 of file nfd-forwarder-status.hpp.
References setNInInterests().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInInterests | ( | uint64_t | nInInterests | ) |
Definition at line 309 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNInInterests().
|
inline |
Definition at line 159 of file nfd-forwarder-status.hpp.
References setNInDatas().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInDatas | ( | uint64_t | nInDatas | ) |
Definition at line 317 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNInDatas().
|
inline |
Definition at line 168 of file nfd-forwarder-status.hpp.
References setNInNacks().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNInNacks | ( | uint64_t | nInNacks | ) |
Definition at line 325 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNInNacks().
|
inline |
Definition at line 177 of file nfd-forwarder-status.hpp.
References setNOutInterests().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutInterests | ( | uint64_t | nOutInterests | ) |
Definition at line 333 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNOutInterests().
|
inline |
Definition at line 186 of file nfd-forwarder-status.hpp.
References setNOutDatas().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutDatas | ( | uint64_t | nOutDatas | ) |
Definition at line 341 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNOutDatas().
|
inline |
Definition at line 195 of file nfd-forwarder-status.hpp.
References setNOutNacks().
ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutNacks | ( | uint64_t | nOutNacks | ) |
Definition at line 349 of file nfd-forwarder-status.cpp.
References ndn::Block::reset().
Referenced by nfd::ForwarderStatusManager::ForwarderStatusManager(), and getNOutNacks().