#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.
|
| |
| virtual std::tuple< bool, std::string > | afterAdvertise (const ndn::Name &prefix, uint64_t cost) |
| | Processing after advertise command delegated to subclass. This is always treated as successful if not implemented.
|
| |
| virtual std::tuple< bool, std::string > | afterWithdraw (const ndn::Name &prefix) |
| | Processing after withdraw command delegated to subclass. This is always treated as successful if not implemented.
|
| |
| 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.
|
| |
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::tuple< bool, std::string > nlsr::update::CommandProcessor::afterAdvertise |
( |
const ndn::Name & |
prefix, |
|
|
uint64_t |
cost |
|
) |
| |
|
inlinevirtual |
◆ afterWithdraw()
| virtual std::tuple< bool, std::string > 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 89 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