17 #ifndef CONFIGURATIONPERSISTENCEMANAGER_HPP_
18 #define CONFIGURATIONPERSISTENCEMANAGER_HPP_
22 #ifdef KAA_USE_CONFIGURATION
31 class IKaaClientStateStorage;
43 class ConfigurationPersistenceManager :
public IConfigurationPersistenceManager {
48 , ignoreConfigurationUpdate_(false)
51 ~ConfigurationPersistenceManager() {}
56 void setConfigurationStorage(IConfigurationStorage *storage);
61 void onConfigurationUpdated(
const ICommonRecord &configuration);
66 void onSchemaUpdated(std::shared_ptr<avro::ValidSchema> schema);
71 EndpointObjectHash getConfigurationHash();
79 void setConfigurationProcessor(IConfigurationProcessor *processor);
81 void readStoredConfiguration();
86 IConfigurationStorage * storage_;
87 IConfigurationProcessor * processor_;
89 std::shared_ptr<avro::ValidSchema> schema_;
90 EndpointObjectHash configurationHash_;
91 bool ignoreConfigurationUpdate_;
#define KAA_MUTEX_DECLARE(name)
std::shared_ptr< IKaaClientStateStorage > IKaaClientStateStoragePtr