Implements the CS Management of NFD Management Protocol. More...
#include <cs-manager.hpp>
Public Member Functions | |
CsManager (cs::Cs &cs, const ForwarderCounters &fwCounters, Dispatcher &dispatcher, CommandAuthenticator &authenticator) | |
Public Member Functions inherited from nfd::ManagerBase | |
virtual | ~ManagerBase () |
const std::string & | getModule () const |
Static Public Attributes | |
static constexpr size_t | ERASE_LIMIT = 256 |
Additional Inherited Members | |
Protected Member Functions inherited from nfd::ManagerBase | |
ManagerBase (const std::string &module, Dispatcher &dispatcher) | |
ManagerBase (const std::string &module, Dispatcher &dispatcher, CommandAuthenticator &authenticator) | |
template<typename Command > | |
void | registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler) |
void | registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler) |
ndn::mgmt::PostNotification | registerNotificationStream (const std::string &verb) |
PartialName | makeRelPrefix (const std::string &verb) |
Generates the relative prefix for a handler by appending the verb name to the module name. More... | |
Static Protected Member Functions inherited from nfd::ManagerBase | |
static bool | validateParameters (const ControlCommand &command, const ndn::mgmt::ControlParameters ¶meters) |
Validates the parameters for a given command . More... | |
static void | handleCommand (shared_ptr< ControlCommand > command, const ControlCommandHandler &handler, const Name &prefix, const Interest &interest, const ndn::mgmt::ControlParameters ¶ms, const ndn::mgmt::CommandContinuation &done) |
Handles a control command. More... | |
Protected Attributes inherited from nfd::ManagerBase | |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED | __pad0__: using ControlCommandHandler = std::function<void(const ControlCommand& command |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name & | prefix |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest & | interest |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParameters & | parameters |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const Name const Interest const ControlParameters const ndn::mgmt::CommandContinuation | done |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED | __pad1__: static void extractRequester(const Interest& interest |
NFD_PUBLIC_WITH_TESTS_ELSE_PROTECTED const ndn::mgmt::AcceptContinuation & | accept |
NFD_PUBLIC_WITH_TESTS_ELSE_PRIVATE | __pad2__: virtual ndn::mgmt::Authorization makeAuthorization(const std::string& verb) |
Implements the CS Management of NFD Management Protocol.
Definition at line 43 of file cs-manager.hpp.
nfd::CsManager::CsManager | ( | cs::Cs & | cs, |
const ForwarderCounters & | fwCounters, | ||
Dispatcher & | dispatcher, | ||
CommandAuthenticator & | authenticator | ||
) |
Definition at line 36 of file cs-manager.cpp.
References ndn::mgmt::StatusDatasetContext::append(), ndn::nfd::BIT_CS_ENABLE_ADMIT, ndn::nfd::BIT_CS_ENABLE_SERVE, nfd::ManagerBase::done, nfd::cs::Cs::enableAdmit(), nfd::cs::Cs::enableServe(), ndn::mgmt::StatusDatasetContext::end(), nfd::cs::Cs::erase(), ERASE_LIMIT, nfd::cs::Cs::find(), ndn::nfd::ControlParameters::getCapacity(), ndn::nfd::ControlParameters::getCount(), ndn::nfd::ControlParameters::getFlagBit(), nfd::cs::Cs::getLimit(), ndn::nfd::ControlParameters::getName(), ndn::nfd::ControlParameters::hasCapacity(), ndn::nfd::ControlParameters::hasCount(), ndn::nfd::ControlParameters::hasFlagBit(), info, ndn::tlv::Interest, nfd::ManagerBase::interest, nfd::ForwarderCounters::nCsHits, nfd::ForwarderCounters::nCsMisses, nfd::ManagerBase::parameters, nfd::ManagerBase::registerStatusDatasetHandler(), ndn::nfd::CsInfo::setCapacity(), ndn::nfd::ControlParameters::setCapacity(), ndn::nfd::ControlParameters::setCount(), ndn::nfd::CsInfo::setEnableAdmit(), ndn::nfd::CsInfo::setEnableServe(), ndn::nfd::ControlParameters::setFlagBit(), nfd::cs::Cs::setLimit(), ndn::nfd::ControlParameters::setName(), ndn::nfd::CsInfo::setNEntries(), ndn::nfd::CsInfo::setNHits(), ndn::nfd::CsInfo::setNMisses(), nfd::cs::Cs::shouldAdmit(), nfd::cs::Cs::shouldServe(), nfd::cs::Cs::size(), ndn::nfd::CsInfo::wireEncode(), and ndn::nfd::ControlParameters::wireEncode().
|
static |
Definition at line 69 of file cs-manager.hpp.
Referenced by CsManager().