nlsr::update::CommandManagerBase Class Reference

#include <manager-base.hpp>

Inheritance diagram for nlsr::update::CommandManagerBase:
[legend]
Collaboration diagram for nlsr::update::CommandManagerBase:
[legend]

Public Member Functions

 CommandManagerBase (ndn::mgmt::Dispatcher &m_dispatcher, NamePrefixList &m_namePrefixList, Lsdb &lsdb, const std::string &module)
 
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...
 
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

NamePrefixListm_namePrefixList
 
Lsdbm_lsdb
 
ndn::mgmt::Dispatcher & m_dispatcher
 

Detailed Description

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

Constructor & Destructor Documentation

nlsr::update::CommandManagerBase::CommandManagerBase ( ndn::mgmt::Dispatcher &  m_dispatcher,
NamePrefixList m_namePrefixList,
Lsdb lsdb,
const std::string &  module 
)

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

Member Function Documentation

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

template<typename T >
bool nlsr::update::ManagerBase::validateParameters ( const ndn::mgmt::ControlParameters &  parameters)
inlineprotectedinherited

validate the parameters for a given command

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

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

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

Lsdb& nlsr::update::CommandManagerBase::m_lsdb
protected

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

NamePrefixList& nlsr::update::CommandManagerBase::m_namePrefixList
protected

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