15#include <boost/date_time/posix_time/posix_time.hpp>
44 return (logging_info_);
51 logging_info_.push_back(logging_info);
107 return (config_ctl_info_);
120 config_ctl_info_ = config_ctl_info;
128 server_tag_ = server_tag;
135 return (server_tag_);
141 return (last_commit_time_);
147 last_commit_time_ = last_commit_time;
172 boost::posix_time::ptime last_commit_time_;
Base class for all configurations.
void addLoggingInfo(const process::LoggingInfo &logging_info)
Sets logging specific configuration.
void applyLoggingCfg() const
Apply logging configuration to log4cplus.
virtual isc::data::ElementPtr toElement() const
Converts to Element representation.
process::ConstConfigControlInfoPtr getConfigControlInfo() const
Fetches a read-only copy of the configuration control information.
void setConfigControlInfo(const process::ConfigControlInfoPtr &config_ctl_info)
Set the configuration control information.
const process::LoggingInfoStorage & getLoggingInfo() const
Returns logging specific configuration.
void setServerTag(const util::Optional< std::string > &server_tag)
Sets the server's logical name.
boost::posix_time::ptime getLastCommitTime() const
Returns the last commit timestamp.
void setLastCommitTime(const boost::posix_time::ptime &last_commit_time)
Sets the last commit timestamp.
util::Optional< std::string > getServerTag() const
Returns the server's logical name.
void copy(ConfigBase &new_config) const
Copies the current configuration to a new configuration.
virtual void merge(ConfigBase &other)
Merges specified configuration into this configuration.
bool equals(const ConfigBase &other) const
Compares two configuration.
structure that describes one logging entry
A template representing an optional value.
boost::shared_ptr< Element > ElementPtr
std::vector< isc::process::LoggingInfo > LoggingInfoStorage
storage for logging information in log4cplus format
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
boost::shared_ptr< const ConfigControlInfo > ConstConfigControlInfoPtr
Defines a pointer to a const ConfigControlInfo.
boost::shared_ptr< ConfigControlInfo > ConfigControlInfoPtr
Defines a pointer to a ConfigControlInfo.
Defines the logger used by the top-level component of kea-lfc.
Abstract class for configuration Cfg_* classes.
Base class for user context.