22 #ifndef NDN_CXX_MGMT_NFD_FORWARDER_STATUS_HPP
23 #define NDN_CXX_MGMT_NFD_FORWARDER_STATUS_HPP
53 template<encoding::Tag TAG>
84 return m_startTimestamp;
93 return m_currentTimestamp;
102 return m_nNameTreeEntries;
111 return m_nFibEntries;
120 return m_nPitEntries;
129 return m_nMeasurementsEntries;
147 return m_nInInterests;
174 return m_nOutInterests;
201 return m_nSatisfiedInterests;
210 return m_nUnsatisfiedInterests;
217 std::string m_nfdVersion;
220 uint64_t m_nNameTreeEntries = 0;
221 uint64_t m_nFibEntries = 0;
222 uint64_t m_nPitEntries = 0;
223 uint64_t m_nMeasurementsEntries = 0;
224 uint64_t m_nCsEntries = 0;
225 uint64_t m_nInInterests = 0;
226 uint64_t m_nInData = 0;
227 uint64_t m_nInNacks = 0;
228 uint64_t m_nOutInterests = 0;
229 uint64_t m_nOutData = 0;
230 uint64_t m_nOutNacks = 0;
231 uint64_t m_nSatisfiedInterests = 0;
232 uint64_t m_nUnsatisfiedInterests = 0;
234 mutable Block m_wire;
240 operator==(
const ForwarderStatus& a,
const ForwarderStatus& b);
249 operator<<(std::ostream& os,
const ForwarderStatus& status);
Represents a TLV element of the NDN packet format.
Represents NFD General Status dataset.
uint64_t getNPitEntries() const
ForwarderStatus & setNCsEntries(uint64_t nCsEntries)
ForwarderStatus & setStartTimestamp(const time::system_clock::time_point &startTimestamp)
ForwarderStatus & setNInData(uint64_t nInData)
const std::string & getNfdVersion() const
ForwarderStatus & setNMeasurementsEntries(uint64_t nMeasurementsEntries)
uint64_t getNInNacks() const
ForwarderStatus & setNSatisfiedInterests(uint64_t nSatisfiedInterests)
uint64_t getNOutNacks() const
ForwarderStatus & setNInNacks(uint64_t nInNacks)
uint64_t getNMeasurementsEntries() const
uint64_t getNFibEntries() const
uint64_t getNNameTreeEntries() const
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
uint64_t getNOutInterests() const
uint64_t getNOutData() const
ForwarderStatus & setNPitEntries(uint64_t nPitEntries)
uint64_t getNUnsatisfiedInterests() const
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
const Block & wireEncode() const
Encode ForwarderStatus as a Content block.
ForwarderStatus & setCurrentTimestamp(const time::system_clock::time_point ¤tTimestamp)
ForwarderStatus & setNInInterests(uint64_t nInInterests)
ForwarderStatus & setNFibEntries(uint64_t nFibEntries)
uint64_t getNCsEntries() const
uint64_t getNSatisfiedInterests() const
ForwarderStatus & setNUnsatisfiedInterests(uint64_t nUnsatisfiedInterests)
void wireDecode(const Block &wire)
Decode ForwarderStatus from a Content block.
const time::system_clock::time_point & getStartTimestamp() const
const time::system_clock::time_point & getCurrentTimestamp() const
ForwarderStatus & setNOutNacks(uint64_t nOutNacks)
uint64_t getNInInterests() const
uint64_t getNInData() const
ForwarderStatus & setNOutData(uint64_t nOutData)
ForwarderStatus & setNNameTreeEntries(uint64_t nNameTreeEntries)
::boost::chrono::time_point< system_clock > time_point
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)
#define NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
Contains classes and functions related to the NFD Management protocol.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
bool operator==(const ChannelStatus &a, const ChannelStatus &b)