Lines Matching refs:distributed

10distributed data object (**distributedDataObject**) module implements global access to variables. …
12 Currently, <!--RP2-->distributed data objects can be used only in [cross-device migration](../appli…
17 …The distributed in-memory database caches data in the memory so that applications can quickly acce…
20distributed data object is an encapsulation of the JS object type. Each distributed data object in…
22 The distributed data object has the following states in its lifecycle:
24 - **Uninitialized**: The distributed data object is not instantiated or is destroyed.
26 …me session ID). If a device is offline or the session ID is empty, the distributed data object cha…
35 The distributed data objects are encapsulated JS objects in distributed in-memory databases, and ca…
40 - An in-memory database is created for each distributed data object instance and identified by a se…
42 - When a distributed data object is instantiated, all properties of the object are traversed recurs…
44 - When a distributed data object is read or written, the **get()** or **set()** method is automatic…
46 **Table 1** Correspondence between a distributed data object and a distributed database
55distributed data objects is to implement data sync between objects. Distributed data objects are c…
57 As shown in the following figure, distributed data object 1 of device A and distributed data object…
63distributed data object can be added to a sync relationship. As shown in the preceding figure, dis…
65 …hip is established, each session has a copy of shared object data. The distributed data objects ad…
73distributed data object is added to a session, if its data is different from that of the session, …
77 Property is the minimum unit to synchronize in distributed data objects. For example, object 1 in t…
79 … and string) and complex types (array and nested basic types). For the distributed data object of …
86 **Figure 3** Sync of distributed data objects
94 …ocess space of applications. After the data of a distributed data object is persisted in the distr…
96 You need to persist distributed data objects in the following scenarios:
98 …to persist the distributed data object (for example, object 1 with session ID 1). After the applic…
100 … the distributed data object (for example, object 1 with session ID 1) on device A and synchronize…
104distributed object, [asset](../reference/apis-arkdata/js-apis-data-commonType.md#asset) is used to…
108 - Currently, <!--RP2-->distributed data objects can be used only in [cross-device migration](../app…
112 - Data can be synced for the distributed data objects with the same session ID.
114 - Each distributed data object occupies 100 KB to 150 KB of memory. Therefore, you are advised not …
116 - The maximum size of a distributed data object is 500 KB.
120 - A maximum of 16 distributed data object instances can be created for an application.
124 - For the distributed data object of the complex type, only the root property can be modified. The …
130 Most of the APIs for cross-device sync of distributed data objects are executed asynchronously in c…
136 | create(context: Context, source: object): DataObject | Creates a distributed data object instance…
137 | genSessionId(): string | Generates a session ID for distributed data objects.|
140 …: Array&lt;string&gt;) => void): void | Subscribes to data changes of the distributed data object.|
141 …ray&lt;string&gt;) => void): void | Unsubscribes from data changes of the distributed data object.|
142 …line' \| 'offline' ) => void): void | Subscribes to status changes of the distributed data object.|
143 …e' \|'offline' ) => void): void | Unsubscribes from status changes of the distributed data object.|
144 …ring, callback: AsyncCallback&lt;SaveSuccessResponse&gt;): void | Saves a distributed data object.|
145 …lback&lt;RevokeSaveSuccessResponse&gt;): void | Revokes the saving of the distributed data object.|
153 1. Create a distributed data object in **onContinue()** for the application on the source device, a…
155 (1) Call **create()** to create a distributed data object instance.
157 …o set a **sessionId**, and add the **sessionId** to **wantParam**. The distributed data objects wi…
161 2. Create a distributed data object in **onCreate()** and **onNewWant()** for the application on th…
163 …(1) Call **create()** to create a distributed data object instance for the application on the targ…
165 …te. If "restored" is returned by the listener callback registered, the distributed data object of …
184 …rently, only files in distributed file directory can be migrated. Files in other directories can b…
198 …Type.Asset; // Use data of the commonType.Asset to record files in the distributed file directory.…
212 …// 1. Create a distributed data object in **onContinue()** for the application on the source devic…
214 // 1.1 Call create() to create a distributed data object instance.
232 …// 2. Create a distributed data object in onCreate() for the application on the target device (for…
241 …// 2. Create a distributed data object in onNewWant() for the application on the target device (fo…
256 …// 2.1 Call create() to create a distributed data object instance for the application on the targe…
261 …te. If "restored" is returned by the listener callback registered, the distributed data object of …
274distributed file directory and use data of the asset type to record the file information. (You can…
321 …**sessionId** and obtain the network ID of the peer device through the distributed device manageme…
327 2. Create a distributed data object on the caller device and adds it to the network.
329 (1) Create a distributed data object instance.
333 (3) Set a **sessionId** for the distributed data object and add it to the network.
335 3. Create a distributed data object on the peer device and restore the data saved on the caller dev…
337 (1) Create a distributed data object instance on the peer device.
341 …(3) Obtain **sessionId** of the caller device from **want** and add the distributed data object in…
345 > - Currently, <!--RP3-->distributed data objects can be used only in [multi-device collaboration u…
423 // 2. Create a distributed data object after starting the peer ability.
435 // 2.1 Create a distributed data object instance.
445 // 2.3 Set a sessionId for the distributed data object and add it to the network.
449 …// 3. Create a distributed data object on the peer device and restore the data saved on the caller…
452 // 3.1 Create a distributed data object instance on the peer device.
462 …// 3.3 Obtain sessionId of the caller device from **want** and add the distributed data object ins…