initializes and executes NFD-RIB service thread More...
#include <daemon/rib/service.hpp>
Public Member Functions | |
Service (const std::string &configFile, ndn::KeyChain &keyChain) | |
create NFD-RIB service More... | |
Service (const ConfigSection &configSection, ndn::KeyChain &keyChain) | |
create NFD-RIB service More... | |
~Service () | |
Destructor. More... | |
RibManager & | getRibManager () |
Static Public Member Functions | |
static Service & | get () |
Get a reference to the only instance of this class. More... | |
initializes and executes 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_service.
Definition at line 52 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 94 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 102 of file service.cpp.
nfd::rib::Service::~Service | ( | ) |
Destructor.
Definition at line 137 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 143 of file service.cpp.
|
inline |
Definition at line 90 of file service.hpp.