#include <rib-manager.hpp>
Classes | |
class | Error |
Public Member Functions | |
RibManager (Dispatcher &dispatcher, ndn::Face &face, ndn::KeyChain &keyChain) | |
~RibManager () | |
void | registerWithNfd () |
void | enableLocalFields () |
void | setConfigFile (ConfigFile &configFile) |
void | onRibUpdateSuccess (const RibUpdate &update) |
void | onRibUpdateFailure (const RibUpdate &update, uint32_t code, const std::string &error) |
Public Member Functions inherited from nfd::ManagerBase | |
ManagerBase (Dispatcher &dispatcher, const std::string &module) | |
const std::string & | getModule () const |
Additional Inherited Members | |
Protected Types inherited from nfd::ManagerBase | |
typedef function< void(const ControlCommand &command, const Name &prefix, const Interest &interest, const ControlParameters ¶meters, const ndn::mgmt::CommandContinuation done)> | ControlCommandHandler |
Protected Member Functions inherited from nfd::ManagerBase | |
template<typename Command > | |
void | registerCommandHandler (const std::string &verb, const ControlCommandHandler &handler) |
void | registerStatusDatasetHandler (const std::string &verb, const ndn::mgmt::StatusDatasetHandler &handler) |
ndn::mgmt::PostNotification | registerNotificationStream (const std::string &verb) |
void | extractRequester (const Interest &interest, ndn::mgmt::AcceptContinuation accept) |
extract a requester from a ControlCommand request More... | |
Definition at line 52 of file rib-manager.hpp.
nfd::rib::RibManager::RibManager | ( | Dispatcher & | dispatcher, |
ndn::Face & | face, | ||
ndn::KeyChain & | keyChain | ||
) |
Definition at line 45 of file rib-manager.cpp.
References ndn::mgmt::Dispatcher::addTopPrefix(), and nfd::ManagerBase::registerStatusDatasetHandler().
Referenced by nfd::rib::RibManager::Error::Error().
nfd::rib::RibManager::~RibManager | ( | ) |
Definition at line 70 of file rib-manager.cpp.
References nfd::scheduler::cancel().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::registerWithNfd | ( | ) |
Definition at line 76 of file rib-manager.cpp.
References NFD_LOG_INFO, ndn::util::NotificationSubscriber< Notification >::onNotification, and ndn::util::NotificationSubscriber< Notification >::start().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::enableLocalFields | ( | ) |
Definition at line 92 of file rib-manager.cpp.
References ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, ndn::tlv::nfd::ControlParameters, and ndn::nfd::Controller::start().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::setConfigFile | ( | ConfigFile & | configFile | ) |
Definition at line 102 of file rib-manager.cpp.
References nfd::ConfigFile::addSectionHandler().
Referenced by nfd::rib::RibManager::Error::Error().
void nfd::rib::RibManager::onRibUpdateSuccess | ( | const RibUpdate & | update | ) |
Definition at line 109 of file rib-manager.cpp.
References NFD_LOG_DEBUG.
Referenced by nfd::rib::RibManager::Error::Error(), and onRibUpdateFailure().
void nfd::rib::RibManager::onRibUpdateFailure | ( | const RibUpdate & | update, |
uint32_t | code, | ||
const std::string & | error | ||
) |
Definition at line 115 of file rib-manager.cpp.
References ndn::nfd::RibEntry::addRoute(), ndn::mgmt::StatusDatasetContext::append(), nfd::rib::Rib::beginApplyUpdate(), nfd::rib::Rib::beginRemoveFace(), nfd::scheduler::cancel(), ndn::tlv::nfd::ControlParameters, nfd::rib::Route::cost, nfd::rib::AutoPrefixPropagator::disable(), nfd::rib::AutoPrefixPropagator::enable(), ndn::mgmt::StatusDatasetContext::end(), nfd::rib::Route::expires, nfd::ManagerBase::extractRequester(), ndn::nfd::FACE_EVENT_DESTROYED, nfd::rib::Route::faceId, ndn::nfd::Controller::fetch(), nfd::rib::Route::flags, ndn::mgmt::ControlResponse::getCode(), ndn::nfd::ControlParameters::getCost(), ndn::nfd::ControlParameters::getExpirationPeriod(), ndn::nfd::FaceTraits< C >::getFaceId(), ndn::nfd::ControlParameters::getFaceId(), ndn::nfd::ControlParameters::getFlags(), ndn::nfd::FaceEventNotification::getKind(), ndn::nfd::ControlParameters::getName(), ndn::nfd::ControlParameters::getOrigin(), ndn::TagHost::getTag(), ndn::mgmt::ControlResponse::getText(), ndn::nfd::ControlParameters::hasExpirationPeriod(), nfd::rib::Rib::insert(), ndn::security::ValidatorConfig::load(), nfd::rib::AutoPrefixPropagator::loadConfig(), ns3::ndn::Name, NFD_LOG_DEBUG, NFD_LOG_INFO, NFD_LOG_TRACE, ndn::time::steady_clock::now(), onRibUpdateSuccess(), nfd::rib::Rib::onRouteExpiration(), nfd::rib::Route::origin, nfd::rib::RibUpdate::REGISTER, ndn::nfd::ROUTE_FLAG_CHILD_INHERIT, ndn::nfd::ROUTE_ORIGIN_APP, nfd::scheduler::schedule(), nfd::rib::RibUpdate::setAction(), ndn::nfd::Route::setCost(), nfd::rib::Route::setExpirationEvent(), ndn::nfd::Route::setExpirationPeriod(), ndn::nfd::Route::setFaceId(), ndn::nfd::ControlParameters::setFaceId(), ndn::nfd::Route::setFlags(), nfd::rib::RibUpdate::setName(), ndn::nfd::RibEntry::setName(), ndn::nfd::Route::setOrigin(), ndn::nfd::Controller::start(), ndn::mgmt::STATUS403, ndn::to_string(), ndn::Name::toUri(), nfd::rib::RibUpdate::UNREGISTER, ndn::security::Validator::validate(), ndn::nfd::ControlParameters::wireEncode(), and ndn::nfd::RibEntry::wireEncode().
Referenced by nfd::rib::RibManager::Error::Error().