Initializes and executes the NFD-RIB service thread. More...
#include <daemon/rib/service.hpp>
Public Member Functions | |
Service (const ConfigSection &configSection, ndn::KeyChain &keyChain) | |
Create NFD-RIB service. More... | |
Service (const std::string &configFile, ndn::KeyChain &keyChain) | |
Create NFD-RIB service. More... | |
~Service () | |
RibManager & | getRibManager () noexcept |
Static Public Member Functions | |
static Service & | get () |
Get a reference to the only instance of this class. More... | |
Initializes and executes the NFD-RIB service thread.
Only one instance of this class can be created at any time. After initialization, NFD-RIB instance can be started by running the global io_context.
Definition at line 51 of file service.hpp.
nfd::rib::Service::Service | ( | const std::string & | configFile, |
ndn::KeyChain & | keyChain | ||
) |
Create NFD-RIB service.
configFile | absolute or relative path of configuration file |
keyChain | the KeyChain |
std::logic_error | Instance of rib::Service has been already constructed |
std::logic_error | Instance of rib::Service is not constructed on RIB thread |
Definition at line 88 of file service.cpp.
nfd::rib::Service::Service | ( | const ConfigSection & | configSection, |
ndn::KeyChain & | keyChain | ||
) |
Create NFD-RIB service.
configSection | parsed configuration section |
keyChain | the KeyChain |
std::logic_error | Instance of rib::Service has been already constructed |
std::logic_error | Instance of rib::Service is not constructed on RIB thread |
Definition at line 96 of file service.cpp.
nfd::rib::Service::~Service | ( | ) |
Definition at line 133 of file service.cpp.
|
static |
Get a reference to the only instance of this class.
std::logic_error | No instance has been constructed |
std::logic_error | This function is invoked on a thread other than the RIB thread |
Definition at line 139 of file service.cpp.
|
inlinenoexcept |
Definition at line 86 of file service.hpp.