Home
last modified time | relevance | path

Searched refs:assetKey (Results 1 - 18 of 18) sorted by relevance

/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/adaptor/
H A Dasset_change_timer.cpp44 const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) in OnAssetChanged()
46 StartTimer(sessionId, assetKey, watcher); in OnAssetChanged()
50 const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) in StartTimer()
52 std::string key = sessionId + ASSET_SEPARATOR + assetKey; in StartTimer()
56 executor_->Schedule(std::chrono::milliseconds(WAIT_INTERVAL), ProcessTask(sessionId, assetKey, watcher)); in StartTimer()
63 const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) in ProcessTask()
66 LOG_DEBUG("Start working on a task, sessionId: %{public}s, assetKey: %{public}s", sessionId.c_str(), in ProcessTask()
67 assetKey.c_str()); in ProcessTask()
68 StopTimer(sessionId, assetKey); in ProcessTask()
69 uint32_t status = HandleAssetChanges(sessionId, assetKey); in ProcessTask()
43 OnAssetChanged( const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) OnAssetChanged() argument
49 StartTimer( const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) StartTimer() argument
62 ProcessTask( const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher) ProcessTask() argument
78 StopTimer(const std::string &sessionId, const std::string &assetKey) StopTimer() argument
86 HandleAssetChanges(const std::string &sessionId, const std::string &assetKey) HandleAssetChanges() argument
115 GetAssetValue(const std::string &sessionId, const std::string &assetKey, Asset &assetValue) GetAssetValue() argument
[all...]
H A Ddistributed_object_impl.cpp118 uint32_t DistributedObjectImpl::GetAssetValue(const std::string &assetKey, Asset &assetValue) in GetAssetValue() argument
121 auto status = GetDouble(assetKey + STATUS_SUFFIX, assetStatus); in GetAssetValue()
125 status = GetString(assetKey + NAME_SUFFIX, assetValue.name); in GetAssetValue()
127 status = GetString(assetKey + URI_SUFFIX, assetValue.uri); in GetAssetValue()
129 status = GetString(assetKey + PATH_SUFFIX, assetValue.path); in GetAssetValue()
131 status = GetString(assetKey + CREATE_TIME_SUFFIX, assetValue.createTime); in GetAssetValue()
133 status = GetString(assetKey + MODIFY_TIME_SUFFIX, assetValue.modifyTime); in GetAssetValue()
135 status = GetString(assetKey + SIZE_SUFFIX, assetValue.size); in GetAssetValue()
152 uint32_t DistributedObjectImpl::BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) in BindAssetStore() argument
155 auto status = GetAssetValue(assetKey, assetValu in BindAssetStore()
[all...]
H A Ddistributed_object_store_impl.cpp158 [=](const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> objectWatcher) { in Watch()
160 assetChangeTimer->OnAssetChanged(sessionId, assetKey, objectWatcher); in Watch()
224 std::string assetKey; in OnChanged() local
225 if (FindChangedAssetKey(str, assetKey)) { in OnChanged()
226 transferKeys.insert(assetKey); in OnChanged()
233 for (auto &assetKey : transferKeys) { in OnChanged()
234 assetChangeCallback_(sessionId, assetKey, objectWatcher_); in OnChanged()
242 bool WatcherProxy::FindChangedAssetKey(const std::string &changedKey, std::string &assetKey) in FindChangedAssetKey() argument
247 assetKey = changedKey.substr(0, dotPos); in FindChangedAssetKey()
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/include/adaptor/
H A Dasset_change_timer.h28 const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher);
36 void StartTimer(const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher);
37 void StopTimer(const std::string &sessionId, const std::string &assetKey);
39 const std::string &sessionId, const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher);
40 uint32_t HandleAssetChanges(const std::string &sessionId, const std::string &assetKey);
41 bool GetAssetValue(const std::string &sessionId, const std::string &assetKey, Asset &assetValue);
H A Ddistributed_object_impl.h40 uint32_t BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) override;
43 uint32_t GetAssetValue(const std::string &assetKey, Asset &assetValue);
H A Ddistributed_objectstore_impl.h68 const std::string &assetKey, std::shared_ptr<ObjectWatcher> watcher)>;
75 bool FindChangedAssetKey(const std::string &changedKey, std::string &assetKey);
/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/src/
H A Dcloud_asset_read_session_impl.cpp23 std::string assetKey, in CloudAssetReadSessionImpl()
25 : CloudAssetReadSession(recordType, recordId, assetKey, assetPath) in CloudAssetReadSessionImpl()
21 CloudAssetReadSessionImpl(std::string recordType, std::string recordId, std::string assetKey, std::string assetPath) CloudAssetReadSessionImpl() argument
H A Dcloud_database_impl.cpp30 std::string assetKey, in NewAssetReadSession()
33 return std::make_shared<CloudAssetReadSessionImpl>(recordType, recordId, assetKey, assetPath); in NewAssetReadSession()
28 NewAssetReadSession(std::string recordType, std::string recordId, std::string assetKey, std::string assetPath) NewAssetReadSession() argument
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/
H A Dcloud_database.cpp28 std::string assetKey, in NewAssetReadSession()
31 return std::make_shared<CloudAssetReadSession>(recordType, recordId, assetKey, assetPath); in NewAssetReadSession()
26 NewAssetReadSession(std::string recordType, std::string recordId, std::string assetKey, std::string assetPath) NewAssetReadSession() argument
H A Dcloud_asset_read_session.cpp24 std::string assetKey, in CloudAssetReadSession()
22 CloudAssetReadSession(std::string recordType, std::string recordId, std::string assetKey, std::string assetPath) CloudAssetReadSession() argument
/foundation/filemanagement/dfs_service/adapter/cloud_adapter_example/include/
H A Dcloud_asset_read_session_impl.h26 std::string assetKey,
H A Dcloud_database_impl.h27 std::string assetKey,
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/
H A Dcloud_database.h31 std::string assetKey,
H A Dcloud_asset_read_session.h27 CloudAssetReadSession(std::string recordType, std::string recordId, std::string assetKey, std::string assetPath);
/foundation/distributeddatamgr/data_object/interfaces/innerkits/
H A Ddistributed_object.h159 * @param assetKey Indicates the assetKey key.
164 virtual uint32_t BindAssetStore(const std::string &assetKey, AssetBindInfo &bindInfo) = 0;
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/mock/
H A Dfile_operations_helper_mock.cpp142 string assetKey = ""; in FindCloudDiskFile() local
146 make_shared<CloudFile::CloudAssetReadSession>(recordType, recordId, assetKey, assetPath); in FindCloudDiskFile()
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/adaptor/
H A Djs_distributedobject.cpp356 std::string assetKey; in JSBindAssetStore() member
363 ctxt->status = JSUtil::GetValue(env, argv[0], ctxt->assetKey); in JSBindAssetStore()
365 std::make_shared<ParametersType>("assetKey", "string")); in JSBindAssetStore()
380 uint32_t status = ctxt->wrapper->GetObject()->BindAssetStore(ctxt->assetKey, ctxt->bindInfo); in JSBindAssetStore()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/object/
H A Dobject_manager.cpp597 std::set<std::string> assetKey; in GetAssetsFromDBRecords() local
600 if (!IsAssetKey(key) || assetKey.find(assetPrefix) != assetKey.end() || in GetAssetsFromDBRecords()
628 assetKey.insert(assetPrefix); in GetAssetsFromDBRecords()

Completed in 8 milliseconds