#include <command-processor.hpp>
|
| CommandProcessor (ndn::mgmt::Dispatcher &m_dispatcher, NamePrefixList &m_namePrefixList, Lsdb &lsdb) |
|
virtual | ~CommandProcessor ()=0 |
|
void | advertiseAndInsertPrefix (const ndn::mgmt::ControlParametersBase ¶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. More...
|
|
virtual std::optional< bool > | afterWithdraw (const ndn::Name &prefix) |
| Save an advertised prefix to the nlsr configuration file. More...
|
|
void | withdrawAndRemovePrefix (const ndn::mgmt::ControlParametersBase ¶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...
|
|
Definition at line 38 of file command-processor.hpp.
◆ CommandProcessor()
nlsr::update::CommandProcessor::CommandProcessor |
( |
ndn::mgmt::Dispatcher & |
m_dispatcher, |
|
|
NamePrefixList & |
m_namePrefixList, |
|
|
Lsdb & |
lsdb |
|
) |
| |
◆ ~CommandProcessor()
nlsr::update::CommandProcessor::~CommandProcessor |
( |
| ) |
|
|
pure virtualdefault |
◆ advertiseAndInsertPrefix()
void nlsr::update::CommandProcessor::advertiseAndInsertPrefix |
( |
const ndn::mgmt::ControlParametersBase & |
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 43 of file command-processor.cpp.
◆ afterAdvertise()
virtual std::optional<bool> nlsr::update::CommandProcessor::afterAdvertise |
( |
const ndn::Name & |
prefix | ) |
|
|
inlinevirtual |
◆ afterWithdraw()
virtual std::optional<bool> nlsr::update::CommandProcessor::afterWithdraw |
( |
const ndn::Name & |
prefix | ) |
|
|
inlinevirtual |
◆ withdrawAndRemovePrefix()
void nlsr::update::CommandProcessor::withdrawAndRemovePrefix |
( |
const ndn::mgmt::ControlParametersBase & |
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 82 of file command-processor.cpp.
◆ m_dispatcher
ndn::mgmt::Dispatcher& nlsr::update::CommandProcessor::m_dispatcher |
|
protected |
◆ m_lsdb
Lsdb& nlsr::update::CommandProcessor::m_lsdb |
|
protected |
◆ m_namePrefixList