a collection of common functions shared by all NFD managers, such as communicating with the dispatcher and command validator. More...
#include <manager-base.hpp>
Classes | |
class | Error |
Public Member Functions | |
ManagerBase (Dispatcher &dispatcher, CommandValidator &validator, const std::string &module) | |
Protected Types | |
typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters ¶meters, const ndn::mgmt::CommandContinuation done)> | ControlCommandHandler |
Protected Member Functions | |
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) |
a collection of common functions shared by all NFD managers, such as communicating with the dispatcher and command validator.
Definition at line 49 of file manager-base.hpp.
|
protected |
Definition at line 73 of file manager-base.hpp.
nfd::ManagerBase::ManagerBase | ( | Dispatcher & | dispatcher, |
CommandValidator & | validator, | ||
const std::string & | module | ||
) |
Definition at line 33 of file manager-base.cpp.
References nfd::CommandValidator::addSupportedPrivilege().
Referenced by nfd::ManagerBase::Error::Error().
|
inlineprotected |
Definition at line 166 of file manager-base.hpp.
|
protected |
Definition at line 44 of file manager-base.cpp.
References ndn::mgmt::Dispatcher::addStatusDataset(), and ndn::mgmt::makeAcceptAllAuthorization().
Referenced by nfd::FaceManager::FaceManager(), nfd::FibManager::FibManager(), and nfd::StrategyChoiceManager::StrategyChoiceManager().
|
protected |
Definition at line 53 of file manager-base.cpp.
References ndn::mgmt::Dispatcher::addNotificationStream(), ndn::Name::at(), ndn::Block::blockFromValue(), ndn::Interest::getName(), ndn::KeyLocator::KeyLocator_Name, ndn::signed_interest::POS_SIG_INFO, ndn::mgmt::STATUS403, nfd::CommandValidator::validate(), and ndn::nfd::ControlCommand::validateRequest().
Referenced by nfd::FaceManager::FaceManager().