ndn::nfd::ForwarderStatus Class Reference

Represents NFD General Status dataset. More...

#include <ndn-cxx/mgmt/nfd/forwarder-status.hpp>

Classes

class  Error
 

Public Member Functions

 ForwarderStatus ()
 
 ForwarderStatus (const Block &payload)
 
const time::system_clock::TimePointgetCurrentTimestamp () const
 
uint64_t getNCsEntries () const
 
const std::string & getNfdVersion () const
 
uint64_t getNFibEntries () const
 
uint64_t getNInData () const
 
uint64_t getNInInterests () const
 
uint64_t getNInNacks () const
 
uint64_t getNMeasurementsEntries () const
 
uint64_t getNNameTreeEntries () const
 
uint64_t getNOutData () const
 
uint64_t getNOutInterests () const
 
uint64_t getNOutNacks () const
 
uint64_t getNPitEntries () const
 
uint64_t getNSatisfiedInterests () const
 
uint64_t getNUnsatisfiedInterests () const
 
const time::system_clock::TimePointgetStartTimestamp () const
 
ForwarderStatussetCurrentTimestamp (const time::system_clock::TimePoint &currentTimestamp)
 
ForwarderStatussetNCsEntries (uint64_t nCsEntries)
 
ForwarderStatussetNfdVersion (const std::string &nfdVersion)
 
ForwarderStatussetNFibEntries (uint64_t nFibEntries)
 
ForwarderStatussetNInData (uint64_t nInData)
 
ForwarderStatussetNInInterests (uint64_t nInInterests)
 
ForwarderStatussetNInNacks (uint64_t nInNacks)
 
ForwarderStatussetNMeasurementsEntries (uint64_t nMeasurementsEntries)
 
ForwarderStatussetNNameTreeEntries (uint64_t nNameTreeEntries)
 
ForwarderStatussetNOutData (uint64_t nOutData)
 
ForwarderStatussetNOutInterests (uint64_t nOutInterests)
 
ForwarderStatussetNOutNacks (uint64_t nOutNacks)
 
ForwarderStatussetNPitEntries (uint64_t nPitEntries)
 
ForwarderStatussetNSatisfiedInterests (uint64_t nSatisfiedInterests)
 
ForwarderStatussetNUnsatisfiedInterests (uint64_t nUnsatisfiedInterests)
 
ForwarderStatussetStartTimestamp (const time::system_clock::TimePoint &startTimestamp)
 
void wireDecode (const Block &wire)
 Decode ForwarderStatus from a Content block. More...
 
const BlockwireEncode () const
 Encode ForwarderStatus as a Content block. More...
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 Prepend ForwarderStatus as a Content block to the encoder. More...
 

Detailed Description

Represents NFD General Status dataset.

See also
https://redmine.named-data.net/projects/nfd/wiki/ForwarderStatus#General-Status-Dataset

Definition at line 36 of file forwarder-status.hpp.

Constructor & Destructor Documentation

◆ ForwarderStatus() [1/2]

ndn::nfd::ForwarderStatus::ForwarderStatus ( )

Definition at line 33 of file forwarder-status.cpp.

◆ ForwarderStatus() [2/2]

ndn::nfd::ForwarderStatus::ForwarderStatus ( const Block payload)
explicit

Definition at line 50 of file forwarder-status.cpp.

Member Function Documentation

◆ getCurrentTimestamp()

const time::system_clock::TimePoint& ndn::nfd::ForwarderStatus::getCurrentTimestamp ( ) const
inline

Definition at line 92 of file forwarder-status.hpp.

◆ getNCsEntries()

uint64_t ndn::nfd::ForwarderStatus::getNCsEntries ( ) const
inline

Definition at line 137 of file forwarder-status.hpp.

◆ getNfdVersion()

const std::string& ndn::nfd::ForwarderStatus::getNfdVersion ( ) const
inline

Definition at line 74 of file forwarder-status.hpp.

◆ getNFibEntries()

uint64_t ndn::nfd::ForwarderStatus::getNFibEntries ( ) const
inline

Definition at line 110 of file forwarder-status.hpp.

◆ getNInData()

uint64_t ndn::nfd::ForwarderStatus::getNInData ( ) const
inline

Definition at line 155 of file forwarder-status.hpp.

◆ getNInInterests()

uint64_t ndn::nfd::ForwarderStatus::getNInInterests ( ) const
inline

Definition at line 146 of file forwarder-status.hpp.

◆ getNInNacks()

uint64_t ndn::nfd::ForwarderStatus::getNInNacks ( ) const
inline

Definition at line 164 of file forwarder-status.hpp.

◆ getNMeasurementsEntries()

uint64_t ndn::nfd::ForwarderStatus::getNMeasurementsEntries ( ) const
inline

Definition at line 128 of file forwarder-status.hpp.

◆ getNNameTreeEntries()

uint64_t ndn::nfd::ForwarderStatus::getNNameTreeEntries ( ) const
inline

Definition at line 101 of file forwarder-status.hpp.

◆ getNOutData()

uint64_t ndn::nfd::ForwarderStatus::getNOutData ( ) const
inline

Definition at line 182 of file forwarder-status.hpp.

◆ getNOutInterests()

uint64_t ndn::nfd::ForwarderStatus::getNOutInterests ( ) const
inline

Definition at line 173 of file forwarder-status.hpp.

◆ getNOutNacks()

uint64_t ndn::nfd::ForwarderStatus::getNOutNacks ( ) const
inline

Definition at line 191 of file forwarder-status.hpp.

◆ getNPitEntries()

uint64_t ndn::nfd::ForwarderStatus::getNPitEntries ( ) const
inline

Definition at line 119 of file forwarder-status.hpp.

◆ getNSatisfiedInterests()

uint64_t ndn::nfd::ForwarderStatus::getNSatisfiedInterests ( ) const
inline

Definition at line 200 of file forwarder-status.hpp.

◆ getNUnsatisfiedInterests()

uint64_t ndn::nfd::ForwarderStatus::getNUnsatisfiedInterests ( ) const
inline

Definition at line 209 of file forwarder-status.hpp.

◆ getStartTimestamp()

const time::system_clock::TimePoint& ndn::nfd::ForwarderStatus::getStartTimestamp ( ) const
inline

Definition at line 83 of file forwarder-status.hpp.

◆ setCurrentTimestamp()

ForwarderStatus & ndn::nfd::ForwarderStatus::setCurrentTimestamp ( const time::system_clock::TimePoint currentTimestamp)

Definition at line 260 of file forwarder-status.cpp.

◆ setNCsEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNCsEntries ( uint64_t  nCsEntries)

Definition at line 300 of file forwarder-status.cpp.

◆ setNfdVersion()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNfdVersion ( const std::string &  nfdVersion)

Definition at line 244 of file forwarder-status.cpp.

◆ setNFibEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNFibEntries ( uint64_t  nFibEntries)

Definition at line 276 of file forwarder-status.cpp.

◆ setNInData()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInData ( uint64_t  nInData)

Definition at line 316 of file forwarder-status.cpp.

◆ setNInInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInInterests ( uint64_t  nInInterests)

Definition at line 308 of file forwarder-status.cpp.

◆ setNInNacks()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNInNacks ( uint64_t  nInNacks)

Definition at line 324 of file forwarder-status.cpp.

◆ setNMeasurementsEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNMeasurementsEntries ( uint64_t  nMeasurementsEntries)

Definition at line 292 of file forwarder-status.cpp.

◆ setNNameTreeEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNNameTreeEntries ( uint64_t  nNameTreeEntries)

Definition at line 268 of file forwarder-status.cpp.

◆ setNOutData()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutData ( uint64_t  nOutData)

Definition at line 340 of file forwarder-status.cpp.

◆ setNOutInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutInterests ( uint64_t  nOutInterests)

Definition at line 332 of file forwarder-status.cpp.

◆ setNOutNacks()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNOutNacks ( uint64_t  nOutNacks)

Definition at line 348 of file forwarder-status.cpp.

◆ setNPitEntries()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNPitEntries ( uint64_t  nPitEntries)

Definition at line 284 of file forwarder-status.cpp.

◆ setNSatisfiedInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNSatisfiedInterests ( uint64_t  nSatisfiedInterests)

Definition at line 356 of file forwarder-status.cpp.

◆ setNUnsatisfiedInterests()

ForwarderStatus & ndn::nfd::ForwarderStatus::setNUnsatisfiedInterests ( uint64_t  nUnsatisfiedInterests)

Definition at line 364 of file forwarder-status.cpp.

◆ setStartTimestamp()

ForwarderStatus & ndn::nfd::ForwarderStatus::setStartTimestamp ( const time::system_clock::TimePoint startTimestamp)

Definition at line 252 of file forwarder-status.cpp.

◆ wireDecode()

void ndn::nfd::ForwarderStatus::wireDecode ( const Block wire)

Decode ForwarderStatus from a Content block.

The outermost Content element isn't part of ForwarderStatus structure.

Definition at line 104 of file forwarder-status.cpp.

◆ wireEncode() [1/2]

const Block & ndn::nfd::ForwarderStatus::wireEncode ( ) const

Encode ForwarderStatus as a Content block.

The outermost Content element isn't part of ForwarderStatus structure.

Definition at line 88 of file forwarder-status.cpp.

◆ wireEncode() [2/2]

template<encoding::Tag TAG>
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 ForwarderStatus structure.

Definition at line 57 of file forwarder-status.cpp.