|
NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
|
API Documentation
|
Go to the documentation of this file.
28 #include "core/version.hpp"
35 : m_forwarder(forwarder)
36 , m_dispatcher(dispatcher)
37 , m_startTimestamp(
time::system_clock::now())
40 bind(&ForwarderStatusManager::listGeneralStatus,
this, _1, _2, _3));
44 ForwarderStatusManager::collectGeneralStatus()
72 ForwarderStatusManager::listGeneralStatus(
const Name& topPrefix,
const Interest& interest,
77 auto status = this->collectGeneralStatus();
80 for (
const auto& subblock : wire.elements()) {
ForwarderStatus & setNInInterests(uint64_t nInInterests)
ForwarderStatus & setNNameTreeEntries(uint64_t nNameTreeEntries)
ForwarderStatus & setNfdVersion(const std::string &nfdVersion)
ForwarderStatus & setNOutInterests(uint64_t nOutInterests)
ForwarderStatus & setNUnsatisfiedInterests(uint64_t nUnsatisfiedInterests)
PacketCounter nUnsatisfiedInterests
ForwarderStatus & setNInNacks(uint64_t nInNacks)
void append(const Block &block)
append a Block to the response
ForwarderStatus & setNPitEntries(uint64_t nPitEntries)
PacketCounter nSatisfiedInterests
ForwarderStatus & setNCsEntries(uint64_t nCsEntries)
ForwarderStatusManager(Forwarder &forwarder, Dispatcher &dispatcher)
static time_point now() noexcept
ForwarderStatus & setNSatisfiedInterests(uint64_t nSatisfiedInterests)
ForwarderStatus & setNMeasurementsEntries(uint64_t nMeasurementsEntries)
ForwarderStatus & setStartTimestamp(const time::system_clock::TimePoint &startTimestamp)
counters provided by Forwarder
ForwarderStatus & setNOutData(uint64_t nOutData)
void addStatusDataset(const PartialName &relPrefix, Authorization authorize, StatusDatasetHandler handle)
register a StatusDataset or a prefix under which StatusDatasets can be requested
static const time::milliseconds STATUS_FRESHNESS(5000)
Measurements & getMeasurements()
Copyright (c) 2011-2015 Regents of the University of California.
const ForwarderCounters & getCounters() const
provides a context for generating response to a StatusDataset request
Authorization makeAcceptAllAuthorization()
return an Authorization that accepts all Interests, with empty string as requester
ForwarderStatus & setNInData(uint64_t nInData)
ForwarderStatus & setCurrentTimestamp(const time::system_clock::TimePoint ¤tTimestamp)
PacketCounter nInInterests
ForwarderStatus & setNFibEntries(uint64_t nFibEntries)
Main class of NFD's forwarding engine.
PacketCounter nOutInterests
represents a dispatcher on server side of NFD Management protocol
void end()
end the response successfully after appending zero or more blocks
StatusDatasetContext & setExpiry(const time::milliseconds &expiry)
set expiration duration
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend ForwarderStatus as a Content block to the encoder
size_t size() const
get number of stored packets
ForwarderStatus & setNOutNacks(uint64_t nOutNacks)
represents NFD General Status dataset