nlsr::update::NfdRibCommandProcessor Class Reference

#include <nfd-rib-command-processor.hpp>

+ Inheritance diagram for nlsr::update::NfdRibCommandProcessor:
+ Collaboration diagram for nlsr::update::NfdRibCommandProcessor:

Public Member Functions

 NfdRibCommandProcessor (ndn::mgmt::Dispatcher &dispatcher, NamePrefixList &namePrefixList, Lsdb &lsdb)
 
void 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. More...
 
virtual ndn::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 ndn::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 &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. More...
 

Protected Member Functions

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 &parameters)
 validate the parameters for a given command More...
 

Protected Attributes

ndn::mgmt::Dispatcher & m_dispatcher
 
Lsdbm_lsdb
 
NamePrefixListm_namePrefixList
 

Detailed Description

Definition at line 35 of file nfd-rib-command-processor.hpp.

Constructor & Destructor Documentation

◆ NfdRibCommandProcessor()

nlsr::update::NfdRibCommandProcessor::NfdRibCommandProcessor ( ndn::mgmt::Dispatcher &  dispatcher,
NamePrefixList namePrefixList,
Lsdb lsdb 
)

Definition at line 27 of file nfd-rib-command-processor.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ advertiseAndInsertPrefix()

void nlsr::update::CommandManagerBase::advertiseAndInsertPrefix ( const ndn::Name &  prefix,
const ndn::Interest &  interest,
const ndn::mgmt::ControlParameters &  parameters,
const ndn::mgmt::CommandContinuation &  done 
)
inherited

add desired name prefix to the advertised name prefix list or insert a prefix into the FIB if parameters is valid.

Definition at line 53 of file manager-base.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ afterAdvertise()

virtual ndn::optional<bool> nlsr::update::CommandManagerBase::afterAdvertise ( const ndn::Name &  prefix)
inlinevirtualinherited

save an advertised prefix to the nlsr configuration file returns bool from the overridden function while nullopt here

Reimplemented in nlsr::update::PrefixUpdateProcessor.

Definition at line 136 of file manager-base.hpp.

+ Here is the caller graph for this function:

◆ afterWithdraw()

virtual ndn::optional<bool> nlsr::update::CommandManagerBase::afterWithdraw ( const ndn::Name &  prefix)
inlinevirtualinherited

save an advertised prefix to the nlsr configuration file returns bool from the overridden function while nullopt here

Reimplemented in nlsr::update::PrefixUpdateProcessor.

Definition at line 142 of file manager-base.hpp.

+ Here is the caller graph for this function:

◆ 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 37 of file manager-base.cpp.

+ Here is the caller graph for this function:

◆ 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 77 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 
)
inherited

remove desired name prefix from the advertised name prefix list or remove a prefix from the FIB if parameters is valid.

Definition at line 95 of file manager-base.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_dispatcher

ndn::mgmt::Dispatcher& nlsr::update::ManagerBase::m_dispatcher
protectedinherited

Definition at line 98 of file manager-base.hpp.

◆ m_lsdb

Lsdb& nlsr::update::CommandManagerBase::m_lsdb
protectedinherited

Definition at line 146 of file manager-base.hpp.

◆ m_namePrefixList

NamePrefixList& nlsr::update::CommandManagerBase::m_namePrefixList
protectedinherited

Definition at line 145 of file manager-base.hpp.