22 #ifndef NDN_MGMT_NFD_FORWARDER_STATUS_HPP 23 #define NDN_MGMT_NFD_FORWARDER_STATUS_HPP 25 #include "../../encoding/block.hpp" 26 #include "../../util/time.hpp" 58 template<encoding::Tag TAG>
89 return m_startTimestamp;
98 return m_currentTimestamp;
107 return m_nNameTreeEntries;
116 return m_nFibEntries;
125 return m_nPitEntries;
134 return m_nMeasurementsEntries;
152 return m_nInInterests;
179 return m_nOutInterests;
204 std::string m_nfdVersion;
207 size_t m_nNameTreeEntries;
208 size_t m_nFibEntries;
209 size_t m_nPitEntries;
210 size_t m_nMeasurementsEntries;
212 uint64_t m_nInInterests;
215 uint64_t m_nOutInterests;
217 uint64_t m_nOutNacks;
219 mutable Block m_wire;
225 operator==(
const ForwarderStatus& a,
const ForwarderStatus& b);
234 operator<<(std::ostream& os,
const ForwarderStatus& status);
239 #endif // NDN_MGMT_NFD_FORWARDER_STATUS_HPP uint64_t getNInInterests() const
uint64_t getNOutInterests() const
size_t getNFibEntries() const
represents NFD General Status dataset
Copyright (c) 2011-2015 Regents of the University of California.
bool operator!=(const ChannelStatus &a, const ChannelStatus &b)
ForwarderStatus & setNFibEntries(size_t nFibEntries)
ForwarderStatus & setNOutNacks(uint64_t nOutNacks)
Error(const std::string &what)
uint64_t getNInData() const
ForwarderStatus & setNInData(uint64_t nInData)
ForwarderStatus & setNOutData(uint64_t nOutData)
ForwarderStatus & setNInNacks(uint64_t nInNacks)
Represents a TLV element of NDN packet format.
ForwarderStatus & setNCsEntries(size_t nCsEntries)
ForwarderStatus & setNNameTreeEntries(size_t nNameTreeEntries)
uint64_t getNInNacks() const
size_t getNPitEntries() const
const time::system_clock::TimePoint & getStartTimestamp() const
ForwarderStatus & setNInInterests(uint64_t nInInterests)
ForwarderStatus & setStartTimestamp(const time::system_clock::TimePoint &startTimestamp)
Copyright (c) 2011-2015 Regents of the University of California.
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
ForwarderStatus & setNPitEntries(size_t nPitEntries)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
void wireDecode(const Block &wire)
decode ForwarderStatus from a Content block
size_t getNCsEntries() const
const time::system_clock::TimePoint & getCurrentTimestamp() const
size_t getNMeasurementsEntries() const
uint64_t getNOutData() const
ForwarderStatus & setNMeasurementsEntries(size_t nMeasurementsEntries)
ForwarderStatus & setCurrentTimestamp(const time::system_clock::TimePoint ¤tTimestamp)
size_t getNNameTreeEntries() const
const std::string & getNfdVersion() const
represents an error in TLV encoding or decoding
uint64_t getNOutNacks() const
const Block & wireEncode() const
encode ForwarderStatus as a Content block