#include <manager-base.hpp>
|
| CommandManagerBase (ndn::mgmt::Dispatcher &m_dispatcher, NamePrefixList &m_namePrefixList, Lsdb &lsdb, const std::string &module) |
|
virtual | ~CommandManagerBase ()=default |
|
void | advertiseAndInsertPrefix (const ndn::Name &prefix, const ndn::Interest &interest, const ndn::mgmt::ControlParameters ¶meters, const ndn::mgmt::CommandContinuation &done) |
| add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if parameters is valid. More...
|
|
virtual std::optional< bool > | afterAdvertise (const ndn::Name &prefix) |
| save an advertised prefix to the nlsr configuration file returns bool from the overridden function while nullopt here More...
|
|
virtual std::optional< bool > | afterWithdraw (const ndn::Name &prefix) |
| save an advertised prefix to the nlsr configuration file returns bool from the overridden function while nullopt here More...
|
|
void | withdrawAndRemovePrefix (const ndn::Name &prefix, const ndn::Interest &interest, const ndn::mgmt::ControlParameters ¶meters, const ndn::mgmt::CommandContinuation &done) |
| remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if parameters is valid. More...
|
|
|
ndn::PartialName | makeRelPrefix (const std::string &verb) const |
| generate the relative prefix for a handler by appending the verb name to the module name More...
|
|
template<typename T > |
bool | validateParameters (const ndn::mgmt::ControlParameters ¶meters) |
| validate the parameters for a given command More...
|
|
Definition at line 98 of file manager-base.hpp.
◆ CommandManagerBase()
nlsr::update::CommandManagerBase::CommandManagerBase |
( |
ndn::mgmt::Dispatcher & |
m_dispatcher, |
|
|
NamePrefixList & |
m_namePrefixList, |
|
|
Lsdb & |
lsdb, |
|
|
const std::string & |
module |
|
) |
| |
◆ ~CommandManagerBase()
virtual nlsr::update::CommandManagerBase::~CommandManagerBase |
( |
| ) |
|
|
virtualdefault |
◆ advertiseAndInsertPrefix()
void nlsr::update::CommandManagerBase::advertiseAndInsertPrefix |
( |
const ndn::Name & |
prefix, |
|
|
const ndn::Interest & |
interest, |
|
|
const ndn::mgmt::ControlParameters & |
parameters, |
|
|
const ndn::mgmt::CommandContinuation & |
done |
|
) |
| |
add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if parameters is valid.
Definition at line 54 of file manager-base.cpp.
◆ afterAdvertise()
virtual std::optional<bool> nlsr::update::CommandManagerBase::afterAdvertise |
( |
const ndn::Name & |
prefix | ) |
|
|
inlinevirtual |
◆ afterWithdraw()
virtual std::optional<bool> nlsr::update::CommandManagerBase::afterWithdraw |
( |
const ndn::Name & |
prefix | ) |
|
|
inlinevirtual |
◆ makeRelPrefix()
ndn::PartialName nlsr::update::ManagerBase::makeRelPrefix |
( |
const std::string & |
verb | ) |
const |
|
protectedinherited |
generate the relative prefix for a handler by appending the verb name to the module name
Definition at line 38 of file manager-base.cpp.
◆ validateParameters()
template<typename T >
bool nlsr::update::ManagerBase::validateParameters |
( |
const ndn::mgmt::ControlParameters & |
parameters | ) |
|
|
inlineprotectedinherited |
validate the parameters for a given command
Definition at line 72 of file manager-base.hpp.
◆ withdrawAndRemovePrefix()
void nlsr::update::CommandManagerBase::withdrawAndRemovePrefix |
( |
const ndn::Name & |
prefix, |
|
|
const ndn::Interest & |
interest, |
|
|
const ndn::mgmt::ControlParameters & |
parameters, |
|
|
const ndn::mgmt::CommandContinuation & |
done |
|
) |
| |
remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if parameters is valid.
Definition at line 96 of file manager-base.cpp.
◆ m_dispatcher
ndn::mgmt::Dispatcher& nlsr::update::ManagerBase::m_dispatcher |
|
protectedinherited |
◆ m_lsdb
Lsdb& nlsr::update::CommandManagerBase::m_lsdb |
|
protected |
◆ m_namePrefixList