@ -53,6 +53,7 @@ AdjSiteMapLookup::AdjSiteMapLookup(const std::string& filename, uint32_t reloadT
m_rulesFile(filename),
m_reloadTime(reloadTime),
m_rules(),
m_lastLoadTime(0U),
m_stop(false),
m_adjPeerMap()
{
@ -241,6 +242,9 @@ bool AdjSiteMapLookup::load()
return false;
}
uint64_t now = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
m_lastLoadTime = now;
LogInfoEx(LOG_HOST, "Loaded %lu entries into adjacent site map table", size);
return true;
@ -231,6 +231,8 @@ namespace lookups
uint32_t m_reloadTime;
yaml::Node m_rules;
uint64_t m_lastLoadTime;
bool m_stop;
static std::mutex s_mutex; //!< Mutex used for change locking.
@ -156,6 +156,9 @@ bool IdenTableLookup::load()
if (size == 0U)
LogInfoEx(LOG_HOST, "Loaded %u entries into lookup table", size);
@ -55,7 +55,8 @@ namespace lookups
m_filename(filename),
m_table(),
m_stop(false)
m_lastLoadTime(0U)
/* stub */
@ -191,6 +192,8 @@ namespace lookups
std::unordered_map<uint32_t, T> m_table;
/**
* @brief Loads the table from the passed lookup table file.
* @returns bool True, if lookup table was loaded, otherwise false.
@ -293,6 +293,9 @@ bool PeerListLookup::load()
LogInfoEx(LOG_HOST, "Loaded %lu entries into peer list lookup table", size);
@ -234,6 +234,9 @@ bool RadioIdLookup::load()
LogInfoEx(LOG_HOST, "Loaded %lu entries into radio ID lookup table", size);
@ -54,6 +54,7 @@ TalkgroupRulesLookup::TalkgroupRulesLookup(const std::string& filename, uint32_t
m_acl(acl),
m_groupHangTime(5U),
@ -376,6 +377,9 @@ bool TalkgroupRulesLookup::load()
LogInfoEx(LOG_HOST, "Loaded %lu entries into talkgroup rules table", size);
@ -641,6 +641,8 @@ namespace lookups
bool m_acl;
@ -145,6 +145,7 @@ CryptoContainer::CryptoContainer(const std::string& filename, const std::string&
m_file(filename),
m_password(password),
#if !defined(ENABLE_SSL)
m_enabled(false),
#else
@ -606,6 +607,9 @@ bool CryptoContainer::load()
LogInfoEx(LOG_HOST, "Loaded %lu entries into crypto lookup table", size);
@ -250,6 +250,8 @@ private:
std::string m_password;
bool m_enabled;
Powered by TurnKey Linux.