22 #ifndef NDN_MGMT_NFD_FORWARDER_STATUS_HPP 23 #define NDN_MGMT_NFD_FORWARDER_STATUS_HPP 42 using tlv::Error::Error;
54 template<encoding::Tag TAG>
85 return m_startTimestamp;
94 return m_currentTimestamp;
103 return m_nNameTreeEntries;
112 return m_nFibEntries;
121 return m_nPitEntries;
130 return m_nMeasurementsEntries;
148 return m_nInInterests;
175 return m_nOutInterests;
202 return m_nSatisfiedInterests;
211 return m_nUnsatisfiedInterests;
218 std::string m_nfdVersion;
221 uint64_t m_nNameTreeEntries;
222 uint64_t m_nFibEntries;
223 uint64_t m_nPitEntries;
224 uint64_t m_nMeasurementsEntries;
225 uint64_t m_nCsEntries;
226 uint64_t m_nInInterests;
229 uint64_t m_nOutInterests;
231 uint64_t m_nOutNacks;
232 uint64_t m_nSatisfiedInterests;
233 uint64_t m_nUnsatisfiedInterests;
235 mutable Block m_wire;
241 operator==(
const ForwarderStatus& a,
const ForwarderStatus& b);
250 operator<<(std::ostream& os,
const ForwarderStatus& status);
255 #endif // NDN_MGMT_NFD_FORWARDER_STATUS_HPP ForwarderStatus & setNFibEntries(uint64_t nFibEntries)
uint64_t getNInInterests() const
uint64_t getNOutInterests() 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 & setNOutNacks(uint64_t nOutNacks)
uint64_t getNUnsatisfiedInterests() const
uint64_t getNInData() const
uint64_t getNFibEntries() 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 & setNSatisfiedInterests(uint64_t nSatisfiedInterests)
uint64_t getNInNacks() 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)
uint64_t getNMeasurementsEntries() const
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
ForwarderStatus & setNUnsatisfiedInterests(uint64_t nUnsatisfiedInterests)
ForwarderStatus & setNMeasurementsEntries(uint64_t nMeasurementsEntries)
uint64_t getNNameTreeEntries() const
uint64_t getNSatisfiedInterests() const
ForwarderStatus & setNPitEntries(uint64_t nPitEntries)
NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(ChannelStatus)
ForwarderStatus & setNCsEntries(uint64_t nCsEntries)
void wireDecode(const Block &wire)
decode ForwarderStatus from a Content block
const time::system_clock::TimePoint & getCurrentTimestamp() const
uint64_t getNOutData() const
ForwarderStatus & setNNameTreeEntries(uint64_t nNameTreeEntries)
uint64_t getNCsEntries() const
ForwarderStatus & setCurrentTimestamp(const time::system_clock::TimePoint ¤tTimestamp)
const std::string & getNfdVersion() const
represents an error in TLV encoding or decoding
uint64_t getNOutNacks() const
uint64_t getNPitEntries() const
const Block & wireEncode() const
encode ForwarderStatus as a Content block