mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
Ref T42, setup reader
* cache can be prefilled * renamed to ps_readDistributionInfo * network issues -> chance to retry
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d46257f670
commit
212bb6b485
@@ -64,6 +64,11 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackCore::Data::CGlobalSetup getSetup() const;
|
||||
|
||||
//! Load the cache file local boostrap file
|
||||
//! \remark can be used during installation as failover
|
||||
//! \threadsafe
|
||||
bool prefillCacheWithLocalResourceBootstrapFile();
|
||||
|
||||
//! Last distribution URL successfully read
|
||||
//! \threadsafe
|
||||
QString getLastSuccessfulSetupUrl() const;
|
||||
@@ -120,8 +125,8 @@ namespace BlackCore
|
||||
//! Do reading
|
||||
void ps_readSetup();
|
||||
|
||||
//! Do reading
|
||||
void ps_readUpdateInfo();
|
||||
//! Do reading of distributions
|
||||
void ps_readDistributionInfo();
|
||||
|
||||
//! Setup has been changed
|
||||
void ps_setupChanged();
|
||||
@@ -135,7 +140,7 @@ namespace BlackCore
|
||||
CacheOnly
|
||||
};
|
||||
|
||||
bool m_shutdown = false;
|
||||
std::atomic<bool> m_shutdown { false };
|
||||
std::atomic<bool> m_setupAvailable { false };
|
||||
std::atomic<bool> m_distributionInfoAvailable { false };
|
||||
QString m_localSetupFileValue; //! Local file for setup, passed by cmd line arguments
|
||||
@@ -154,7 +159,7 @@ namespace BlackCore
|
||||
BlackMisc::CData<BlackMisc::Db::TDistributionInfo> m_distributions {this}; //!< data cache distributions
|
||||
|
||||
//! Read by local individual file and update cache from that
|
||||
BlackMisc::CStatusMessageList readLocalBootstrapFile(QString &fileName);
|
||||
BlackMisc::CStatusMessageList readLocalBootstrapFile(const QString &fileName);
|
||||
|
||||
//! Trigger reading
|
||||
BlackMisc::CStatusMessageList triggerReadSetup();
|
||||
|
||||
Reference in New Issue
Block a user