nfd::rib::RibManager Class Reference

#include <rib/rib-manager.hpp>

+ Inheritance diagram for nfd::rib::RibManager:
+ Collaboration diagram for nfd::rib::RibManager:

Classes

class  Error
 

Public Member Functions

 RibManager (Dispatcher &dispatcher, ndn::Face &face, ndn::KeyChain &keyChain)
 
 ~RibManager () override
 
void enableLocalFields ()
 
const std::string & getModule () const
 
void onRibUpdateFailure (const RibUpdate &update, uint32_t code, const std::string &error)
 
void onRibUpdateSuccess (const RibUpdate &update)
 
void registerWithNfd ()
 
void setConfigFile (ConfigFile &configFile)
 

Protected Types

typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters &parameters, const ndn::mgmt::CommandContinuation done)> ControlCommandHandler
 

Protected Member Functions

void extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept)
 extract a requester from a ControlCommand request More...
 
template<typename Command >
void registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler)
 
ndn::mgmt::PostNotification registerNotificationStream (const std::string &verb)
 
void registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler)
 

Detailed Description

Definition at line 48 of file rib-manager.hpp.

Member Typedef Documentation

typedef function<void(const ControlCommand& command, const Name& prefix, const Interest& interest, const ControlParameters& parameters, const ndn::mgmt::CommandContinuation done)> nfd::ManagerBase::ControlCommandHandler
protectedinherited

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

Constructor & Destructor Documentation

nfd::rib::RibManager::RibManager ( Dispatcher &  dispatcher,
ndn::Face &  face,
ndn::KeyChain &  keyChain 
)

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

nfd::rib::RibManager::~RibManager ( )
overridedefault

Member Function Documentation

void nfd::rib::RibManager::enableLocalFields ( )

Definition at line 97 of file rib-manager.cpp.

void nfd::ManagerBase::extractRequester ( const Interest &  interest,
ndn::mgmt::AcceptContinuation  accept 
)
protectedinherited

extract a requester from a ControlCommand request

This is called after the signature is validated.

Parameters
interesta request for ControlCommand
acceptcallback of successful validation, take the requester string as a argument

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

const std::string& nfd::ManagerBase::getModule ( ) const
inlineinherited

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

void nfd::rib::RibManager::onRibUpdateFailure ( const RibUpdate update,
uint32_t  code,
const std::string &  error 
)

Definition at line 120 of file rib-manager.cpp.

void nfd::rib::RibManager::onRibUpdateSuccess ( const RibUpdate update)

Definition at line 114 of file rib-manager.cpp.

template<typename Command >
void nfd::ManagerBase::registerCommandHandler ( const std::string &  verb,
const ControlCommandHandler handler 
)
inlineprotectedinherited

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

ndn::mgmt::PostNotification nfd::ManagerBase::registerNotificationStream ( const std::string &  verb)
protectedinherited

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

void nfd::ManagerBase::registerStatusDatasetHandler ( const std::string &  verb,
const ndn::mgmt::StatusDatasetHandler &  handler 
)
protectedinherited

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

void nfd::rib::RibManager::registerWithNfd ( )

Definition at line 81 of file rib-manager.cpp.

void nfd::rib::RibManager::setConfigFile ( ConfigFile configFile)

Definition at line 107 of file rib-manager.cpp.