26typedef std::map<std::string, isc::data::ConstElementPtr>
ElementMap;
145 bool check_only =
false,
146 const std::function<
void()>& post_config_cb =
nullptr);
This is a base class for exceptions thrown from the DNS library module.
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Exception thrown if the configuration manager encounters an error.
DCfgMgrBaseError(const char *file, size_t line, const char *what)
virtual void setCfgDefaults(isc::data::ElementPtr mutable_config)
Adds default values to the given config.
virtual std::list< std::list< std::string > > jsonPathsToRedact() const
Return a list of all paths that contain passwords or secrets.
DCfgMgrBase(ConfigPtr context)
Constructor.
virtual isc::data::ConstElementPtr parse(isc::data::ConstElementPtr config, bool check_only)
Parses actual configuration.
virtual ~DCfgMgrBase()
Destructor.
isc::data::ConstElementPtr simpleParseConfig(isc::data::ConstElementPtr config, bool check_only=false, const std::function< void()> &post_config_cb=nullptr)
Acts as the receiver of new configurations.
void resetContext()
Replaces existing context with a new, empty context.
void setContext(ConfigPtr &context)
Update the current context.
virtual ConfigPtr createNewContext()=0
Abstract factory which creates a context instance.
virtual std::string getConfigSummary(const uint32_t selection)=0
Returns configuration summary in the textual format.
ConfigPtr & getContext()
Fetches the configuration context.
isc::data::ConstElementPtr redactConfig(isc::data::ConstElementPtr const &config) const
Redact the configuration.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< DCfgMgrBase > DCfgMgrBasePtr
Defines a shared pointer to DCfgMgrBase.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
std::map< std::string, isc::data::ConstElementPtr > ElementMap
Defines a map of ConstElementPtrs keyed by name.
Defines the logger used by the top-level component of kea-lfc.