[go: up one dir, main page]

CN103475721A - System for updating digital assets and method thereof - Google Patents

System for updating digital assets and method thereof Download PDF

Info

Publication number
CN103475721A
CN103475721A CN2013104166711A CN201310416671A CN103475721A CN 103475721 A CN103475721 A CN 103475721A CN 2013104166711 A CN2013104166711 A CN 2013104166711A CN 201310416671 A CN201310416671 A CN 201310416671A CN 103475721 A CN103475721 A CN 103475721A
Authority
CN
China
Prior art keywords
server
update
resource
client
list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013104166711A
Other languages
Chinese (zh)
Other versions
CN103475721B (en
Inventor
吴冠权
肖翱
施巍松
徐志伟
岳强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CN201310416671.1A priority Critical patent/CN103475721B/en
Publication of CN103475721A publication Critical patent/CN103475721A/en
Application granted granted Critical
Publication of CN103475721B publication Critical patent/CN103475721B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及计算机技术领域,尤其是一种数字资产的更新系统及其方法。包括客户端、服务端、时间服务器和数据库;所述的客户端可以为多个,每个客户端有唯一的标识符,维护一份属于自己的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引以及由时间服务器提供的最后更新时间;所述的服务器,提供数字资源的数据库;数据库中保存有系统的索引列表;所述的时间服务器,提供一个准确、可靠的最后更新时间;所有客户端的“最后更新时间”都由时间服务器统一提供,防止由于时间误差而导致的数据异常问题。本发明提供了一套可靠、有效的多终端数据一致性维护的系统和方法;可以用于多终端数据维护。

The invention relates to the field of computer technology, in particular to a system and method for updating digital assets. Including client, server, time server and database; the client can be multiple, each client has a unique identifier, maintains an index list of its own, records in the list from the last update to the present The data index that has changed so far and the last update time provided by the time server; the server provides a database of digital resources; a system index list is stored in the database; the time server provides an accurate and reliable last update Time; the "last update time" of all clients is uniformly provided by the time server to prevent data anomalies caused by time errors. The invention provides a set of reliable and effective multi-terminal data consistency maintenance system and method; it can be used for multi-terminal data maintenance.

Description

一种数字资产的更新系统及其方法System and method for updating digital assets

技术领域 technical field

本发明涉及计算机技术领域,尤其是一种一种数字资产的更新系统及其方法。  The invention relates to the field of computer technology, in particular to a system and method for updating digital assets. the

背景技术 Background technique

在当前的更新技术当中,很多都是基于单一客户端的场景下进行的在线实时数据更新,导致在空间和网络的方面限制比较多。但是,如今终端的类型不再是单一的PC端,手机、平板电脑等移动终端不断推陈出新并且占据巨大的市场份额。一个用户需要在不同的终端、不同的地点、不同的时间去使用应用软件,从而也导致用户的数据在多个终端上难以保持一致的问题。显然,随着数据本身和用户多设备的增加,目前的更新技术已经不能适应用户的需求。因此现在越来越多的软件都针对用户多设备的特点实现新的更新技术。  Among the current update technologies, many are online real-time data updates based on a single client scenario, resulting in more restrictions in terms of space and network. However, the type of terminal is no longer a single PC terminal, and mobile terminals such as mobile phones and tablet computers are constantly being introduced and occupy a huge market share. A user needs to use application software at different terminals, different locations, and at different times, which also leads to the problem that the user's data is difficult to maintain consistency on multiple terminals. Obviously, with the increase of data itself and multiple devices of users, the current update technology can no longer meet the needs of users. Therefore, more and more software now implements new update technologies aimed at the characteristics of multiple devices for users. the

发明内容 Contents of the invention

本发明解决的技术问题之一在于提供一种数字资产的更新系统;解决目前多设备、多地点、不同时间情况下更新数据不一致的问题。  One of the technical problems solved by the present invention is to provide an update system for digital assets; to solve the current problem of inconsistency in update data under the circumstances of multiple devices, multiple locations, and different times. the

本发明解决的技术问题之二在于提供一种数字资产的更新方法;能够实现将多个客户端上的业务系统脱离联机环境进行业务操作,并在网络允许的情况下能够独立进行更新操作,完成和在线联机同样的业务功能,并且能够维护各终端数据的一致性,使原有固定的业务不再受到空间限制。  The second technical problem solved by the present invention is to provide a method for updating digital assets; it can realize the business operation of the business systems on multiple clients out of the online environment, and can independently perform the update operation when the network allows, and completes It has the same business function as online connection, and can maintain the data consistency of each terminal, so that the original fixed business is no longer limited by space. the

本发明解决上述技术问题之一的技术方案是:  The technical scheme that the present invention solves one of above-mentioned technical problem is:

包括客户端、服务端、时间服务器和数据库;  Including client, server, time server and database;

所述的客户端可以为多个,每个客户端有唯一的标识符,维护一份属于自己的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引以及由时间服务器提供的最后更新时间;  There can be multiple clients, each client has a unique identifier, and maintains an index list of its own, which records the data index changed since the last update and the time server provided by the time server. Last update time;

所述的服务器,提供数字资源的数据库;数据库中保存有系统的索引列表;  The server provides a database of digital resources; a systematic index list is stored in the database;

所述的时间服务器,提供一个准确、可靠的最后更新时间;所有客户端的“最后更新时间”都由时间服务器统一提供,防止由于时间误差而导致的数据异常问题。  The time server provides an accurate and reliable last update time; the "last update time" of all clients is uniformly provided by the time server to prevent data anomalies caused by time errors. the

本发明解决上述技术问题之二的技术方案是:  The technical scheme that the present invention solves above-mentioned technical problem two is:

每个客户端都有一个唯一的标识符,并且维护一份属于自己的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引以及由时间服务器提供的最后更新时间;服务端数据库的索引列表中的每条数据都通过标识符标识这条数据来源于哪一个客户端;  Each client has a unique identifier and maintains its own index list, which records the data index changed from the last update to the present and the last update time provided by the time server; the server database Each piece of data in the index list identifies which client the data comes from through an identifier;

更新时,首先进行数据更新,然后更新索引列表;保持每个客户端数据与索引列表的一致性;数据更新操作包括元数据和资源的上传以及下载,各个数据更新操作相对独立,支持并发执行;  When updating, first update the data, and then update the index list; maintain the consistency between the data of each client and the index list; the data update operation includes the upload and download of metadata and resources, and each data update operation is relatively independent and supports concurrent execution;

在索引更新操作中,服务端通过对比自身索引列表和客户端提交的索引列表,得到索引更新结果;该结果中包含该用户其他来源的客户端在最后更新时间到目前为止的操作信息以及新的最后更新时间;  In the index update operation, the server obtains the index update result by comparing its own index list with the index list submitted by the client; the result includes the operation information and new Last update time;

客户端根据索引更新操作中的响应结果,生成数据更新各操作的请求信息;  The client generates request information for each operation of data update according to the response result in the index update operation;

客户端将历史遗留操作合并到请求信息后通过多线程发送数据更新请求,最后判断服务端的响应结果,成功则更新本地索引列表中的相关数据,失败则将加入历史遗留操作中,延迟到下一次更新操作执行。  The client merges the legacy operation into the request information, sends the data update request through multi-threading, and finally judges the response result of the server. If it succeeds, it will update the relevant data in the local index list. If it fails, it will add it to the legacy operation and delay it until the next time. The update operation is performed. the

数字资产表示属于用户个人所有的笔记内容的单位载体;一条数字资产由元数据和资源两部分组成;数字资产与资源是一对多关系,多条数字资产可以 引用同一份资源。  A digital asset represents the unit carrier of the note content that belongs to the user; a digital asset is composed of two parts: metadata and resources; digital assets and resources have a one-to-many relationship, and multiple digital assets can refer to the same resource. the

所述的索引更新是:  The index updates described are:

客户端向服务端提交“索引更新”请求,请求中包括一份用于服务端更新用户在本地客户端执行删除操作的数字资产id列表、用于判断该资源在服务端是否存在而避免重复提交的资源id列表、来源、用户唯一标识符和本地索引列表的最后更新时间;  The client submits an "index update" request to the server, which includes a list of digital asset ids used by the server to update the user's deletion operation on the local client, and used to determine whether the resource exists on the server to avoid repeated submissions The resource id list, source, user unique identifier and the last update time of the local index list;

服务端根据客户端提交的数字资产id列表删除相应数字资产,再更新索引列表中相关数字资产的来源和状态;  The server deletes the corresponding digital assets according to the digital asset id list submitted by the client, and then updates the source and status of the relevant digital assets in the index list;

服务端查找索引列表中客户端的“最后更新时间”到目前为止该用户在其他来源的客户端的操作信息,并加入响应结果中;  The server looks up the "last update time" of the client in the index list so far, and adds it to the response result;

服务端根据资源id列表检查数据库中是否存在相同的资源,并将检查判断结果加入响应结果中;  The server checks whether the same resource exists in the database according to the resource id list, and adds the result of the check to the response result;

服务端将新的最后更新时间加入到响应结果中,并以XML的数据形式发回到客户端;  The server adds the new last update time to the response result and sends it back to the client in the form of XML data;

客户端解析服务端的响应结果,合并相应的数据更新操作和历史遗留操作,生成数据更新请求信息;并将服务端发来的“最后更新时间”更新到索引列表中。如果没有收到响应信息,则视为索引更新失败,结束整个更新操作。  The client parses the response result of the server, merges the corresponding data update operations and historical legacy operations, generates data update request information; and updates the "last update time" sent by the server to the index list. If no response message is received, it is considered that the index update has failed, and the entire update operation ends. the

所述的元数据下载是:  The metadata download described is:

如果索引更新结果中有状态为新增或者修改的数字资产,则向服务端提交“元数据下载”请求,请求中包括一份数字资产id和状态的数字资产列表、用户唯一标识符,否则不需要提交请求;  If there is a digital asset whose status is newly added or modified in the index update result, submit a "metadata download" request to the server. The request includes a list of digital assets with a digital asset id and status, and a user unique identifier. Otherwise, no A request needs to be submitted;

服务端得到“元数据下载”请求,将状态为新增的数字资产元数据(不包括资源)和状态为修改的数字资产修改部分加入响应结果中;  The server receives the "metadata download" request, and adds the digital asset metadata (excluding resources) whose status is new and the modified part of digital assets whose status is modified to the response result;

服务端将响应结果以XML的数据形式发送回客户端;  The server sends the response result back to the client in the form of XML data;

客户端根据响应结果获得数字资产的元数据和修改部分,更新本地数据后再更新本地索引列表;如果没有获得响应或响应异常,则视为“元数据下载”操作失败,并将该操作添加到历史遗留操作中。  The client obtains the metadata and modified part of the digital asset according to the response result, updates the local index list after updating the local data; if no response is obtained or the response is abnormal, it is considered that the "metadata download" operation failed, and the operation is added to Historical legacy operation. the

所述的元数据上传是:  The metadata upload described is:

将上一次最后更新时间至这次最后更新时间这段时间内本地新增的数字资产作为请求信息,向服务端发送“元数据上传”请求;  Send a "metadata upload" request to the server using the newly added digital assets locally during the period from the last update time to the last update time as request information;

服务端接收“元数据上传”请求,并将数字资产写入数据库;  The server receives the "metadata upload" request and writes digital assets into the database;

更新服务端的索引列表;  Update the index list of the server;

向服务端发送一个空响应结果;  Send an empty response result to the server;

客户端接收到空响应结果则表示“元数据上传”操作成功,否则视为操作失败,并将该操作添加到历史遗留操作中。  If the client receives an empty response result, it means that the "metadata upload" operation is successful; otherwise, the operation is regarded as a failure, and the operation is added to the legacy operations. the

所述的资源上传和下载是:  The resource upload and download described are:

客户端将需要上传到服务端的资源列表或者需要下载的资源id列表作为请求信息,向服务端发送“资源上传和下载”请求;  The client sends a "resource upload and download" request to the server with the list of resources to be uploaded to the server or the list of resource ids to be downloaded as request information;

服务端根据请求信息判断是资源上传还是资源下载,如果是资源上传,则将资源写入到数据库中,再返回一个空响应结果;如果是资源下载,则根据资源id列表查找相关资源,将查找结果加入响应结果后返回;  The server judges whether it is resource upload or resource download according to the request information. If it is a resource upload, it will write the resource into the database and return an empty response result; if it is a resource download, it will search for related resources according to the resource id list, and will find The result is returned after adding the response result;

判断服务端的响应结果,如果是正常响应则“资源上传和下载”操作成功,否则视为“资源上传和下载”操作失败,并将该操作加入到历史遗留操作中。  Judging the response result of the server, if it is a normal response, the "resource upload and download" operation is successful, otherwise it is considered that the "resource upload and download" operation has failed, and this operation is added to the historical legacy operations. the

本发明所有终端的“最后更新时间”都由时间服务器统一提供,防止由于时间误差而导致的数据异常问题。每个终端都维护一份属于自身的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引;通过个索引列表之间的对比来更新数据最终实现数据一致性的维护。各个数据更新操作都相对独立, 支持通过并发高效执行。终端上数据更新操作中任何一步失败都会并入到下一次更新索引列表里;从而保证数据的最终一致性。通过本发明的使用,可以保证每次更新操作在时间上的原子性,防止由于多终端之间的时间差引起的数据异常问题;可以通过数据更新让用户在脱离联机的环境上进行和在线联机同样的业务操作;可以使用户在任意终端获取该用户在其他终端中已经更新的业务操作。本发明提供了一套可靠、有效的多终端数据一致性维护的系统和方法。  The "last update time" of all terminals in the present invention is uniformly provided by the time server to prevent data anomalies caused by time errors. Each terminal maintains its own index list, which records the data indexes that have changed since the last update; the data is updated by comparing the index lists to finally achieve the maintenance of data consistency. Each data update operation is relatively independent and supports efficient execution through concurrency. Any failure in the data update operation on the terminal will be incorporated into the next update index list; thus ensuring the final consistency of the data. Through the use of the present invention, the atomicity in time of each update operation can be guaranteed, and the data anomaly problem caused by the time difference between multiple terminals can be prevented; through data update, the user can perform the same operation as the online connection in an off-line environment. business operations; users can obtain updated business operations in other terminals on any terminal. The invention provides a set of reliable and effective multi-terminal data consistency maintenance system and method. the

附图说明 Description of drawings

下面结合附图对本发明进一步说明:  The present invention is further described below in conjunction with accompanying drawing:

图1是本发明系统框图;  Fig. 1 is a system block diagram of the present invention;

图2是本发明方法户端流程图;  Fig. 2 is a flowchart of the inventive method client;

图3是本发明方法具体实施时序图。  Fig. 3 is a sequence diagram of the specific implementation of the method of the present invention. the

具体实施方式 Detailed ways

如图1-3所示,本发明:  As shown in Figure 1-3, the present invention:

1.每个客户端都有一个唯一的标识符(origin)并且维护一份属于自己索引列表,列表中记录记录从上次更新到目前为止发生变化的数据索引以及由服务器提供的最后更新时间,而且服务端的索引列表中的每条数据都通过origin标识这条数据来源于哪一个客户端;  1. Each client has a unique identifier (origin) and maintains its own index list, which records the data index that has changed since the last update and the last update time provided by the server. And each piece of data in the index list of the server uses origin to identify which client the data comes from;

2.先更新数据,后更新索引列表。保持每个客户端数据与索引列表的一致性。  2. Update the data first, and then update the index list. Keep each client data consistent with the index list. the

3.在索引更新操作中,服务端通过对比自身索引列表和客户端提交的索引列表,得到索引更新结果。该结果中包含该用户其他来源的客户端在最后更新时间到到目前为止的操作信息以及新的最后更新时间。  3. In the index update operation, the server obtains the index update result by comparing its own index list with the index list submitted by the client. The result includes the operation information of the client from other sources of the user from the last update time to the present and the new last update time. the

4.客户端根据索引更新操作中的响应结果,生成数据更新各操作的请求信息。  4. The client generates request information for each operation of data update according to the response result in the index update operation. the

5.客户端将历史遗留操作合并到请求信息后通过多线程发送数据更新请求,最后判断服务端的响应结果,成功则更新本地索引列表中的相关数据,失败则将加入历史遗留操作中,延迟到下一次更新操作执行。  5. The client merges the historical legacy operation into the request information and sends a data update request through multiple threads, and finally judges the response result of the server. If it succeeds, it will update the relevant data in the local index list. If it fails, it will add it to the historical legacy operation and delay until The next update operation is performed. the

本发明数字资产:表示属于用户个人所有的笔记内容的单位载体。一条数字资产由元数据和资源两部分组成。另外,数字资产与资源是一对多关系,也就是说多条数字资产可以引用同一份资源。  The digital asset of the present invention: represents the unit carrier of the note content owned by the user. A digital asset consists of metadata and resources. In addition, digital assets and resources have a one-to-many relationship, which means that multiple digital assets can refer to the same resource. the

具体实施步骤:  Specific implementation steps:

1.索引更新  1. Index update

1.1客户端向服务端提交“索引更新”请求,请求中包括一份数字资产id列表(用于服务端更新用户在本地客户端执行的删除操作)、资源id列表(用于判断该资源在服务端是否存在,避免重复提交)、来源(origin)、用户唯一标识符(owner)和本地索引列表的最后更新时间。  1.1 The client submits an "index update" request to the server, and the request includes a list of digital asset ids (used by the server to update the deletion operations performed by the user on the local client), a list of resource ids (used to determine whether the resource is in the service End existence, to avoid duplicate submissions), source (origin), user unique identifier (owner) and the last update time of the local index list. the

1.2服务端根据客户端提交的数字资产id列表删除相应数字资产,再更新索引列表中相关数字资产的来源和状态。  1.2 The server deletes the corresponding digital assets according to the digital asset id list submitted by the client, and then updates the source and status of the relevant digital assets in the index list. the

1.3服务端查找索引列表中客户端的“最后更新时间”到目前为止该用户在其他来源的客户端的操作信息,并加入响应结果中。  1.3 The server looks up the "last update time" of the client in the index list so far, and adds the user's operation information on the client from other sources to the response result. the

1.4服务端根据资源id列表检查数据库中是否存在相同的资源,并将检查判断结果加入响应结果中。  1.4 The server checks whether the same resource exists in the database according to the resource id list, and adds the result of the check to the response result. the

1.5服务端将新的最后更新时间加入到响应结果中,并以XML的数据形式发回到客户端。  1.5 The server adds the new last update time to the response result and sends it back to the client in the form of XML data. the

1.6客户端解析服务端的响应结果,合并相应的数据更新操作和历史遗留操作,生成数据更新请求信息。并将服务端发来的“最后更新时间”更新到索引列表中。如果没有收到响应信息,则视为索引更新失败,结束整个更新操作。  1.6 The client parses the response result of the server, merges the corresponding data update operations and historical legacy operations, and generates data update request information. And update the "last update time" sent by the server to the index list. If no response message is received, it is considered that the index update has failed, and the entire update operation ends. the

2.元数据下载  2. Metadata download

2.1如果索引更新结果中有状态为C(新增)或者U(修改)的数字资产,则向服务端提交“元数据下载”请求,请求中包括一份数字资产列表(数字资产id、状态)和用户唯一标识符(owner)。否则不需要提交请求。  2.1 If there is a digital asset with status C (new) or U (modified) in the index update result, submit a "metadata download" request to the server, and the request includes a list of digital assets (digital asset id, status) and the user unique identifier (owner). Otherwise there is no need to submit a request. the

2.2服务端得到“元数据下载”请求,将状态为C(新增)的数字资产元数据(不包括资源)和状态为U(修改)的数字资产修改部分加入响应结果中。  2.2 The server receives the "metadata download" request, and adds the digital asset metadata (excluding resources) with status C (new) and the modification part of digital assets with status U (modified) to the response result. the

2.3服务端将响应结果以XML的数据形式发送回客户端。  2.3 The server sends the response result back to the client in the form of XML data. the

2.4客户端根据响应结果获得数字资产的元数据和修改部分,更新本地数据后再更新本地索引列表。如果没有获得响应或响应异常,则视为“元数据下载”操作失败,并将该操作添加到历史遗留操作中。  2.4 The client obtains the metadata and modified part of the digital asset according to the response result, updates the local index list after updating the local data. If no response is obtained or the response is abnormal, it is considered that the "metadata download" operation has failed, and this operation is added to the historical legacy operations. the

3.元数据上传  3. Metadata upload

3.1将上一次最后更新时间至这次最后更新时间这段时间内本地新增的数字资产作为请求信息,向服务端发送“元数据上传”请求。  3.1 Use the newly added digital assets locally during the period from the last update time to the last update time as the request information, and send a "metadata upload" request to the server. the

3.2服务端接收“元数据上传”请求,并将数字资产写入数据库。  3.2 The server receives the "metadata upload" request and writes the digital assets into the database. the

3.3更新服务端的索引列表。  3.3 Update the index list of the server. the

3.4向服务端发送一个空响应结果。  3.4 Send an empty response result to the server. the

3.5客户端接收到空响应结果则表示“元数据上传”操作成功,否则视为操作失败,并将该操作添加到历史遗留操作中。  3.5 If the client receives an empty response result, it means that the "metadata upload" operation is successful; otherwise, the operation is deemed to have failed, and the operation will be added to the legacy operations. the

4.资源上传和下载  4. Resource upload and download

4.1客户端将需要上传到服务端的资源列表或者需要下载的资源id列表作为请求信息,向服务端发送“资源上传和下载”请求。  4.1 The client sends a "resource upload and download" request to the server with the list of resources to be uploaded to the server or the list of resource ids to be downloaded as request information. the

4.2服务端根据请求信息判断是资源上传还是资源下载,如果是资源上传,则将资源写入到数据库中,再返回一个空响应结果;如果是资源下载, 则根据资源id列表查找相关资源,将查找结果加入响应结果后返回。  4.2 The server judges whether it is resource upload or resource download according to the request information. If it is a resource upload, it will write the resource into the database and return an empty response result; if it is a resource download, it will search for related resources according to the resource id list. The search result is added to the response result and returned. the

4.3判断服务端的响应结果,如果是正常响应则“资源上传和下载”操作成功,否则视为“资源上传和下载”操作失败,并将该操作加入到历史遗留操作中  4.3 Judging the response result of the server, if it is a normal response, the "resource upload and download" operation is successful, otherwise it is considered that the "resource upload and download" operation has failed, and this operation will be added to the historical legacy operations

此外,  also,

1.“索引更新”和“元数据上传”请求信息中需要包含来源(origin)用于分辨数字资产来自于哪个客户端,因为这两个请求需要服务端更新索引列表。  1. The request information of "Index Update" and "Metadata Upload" needs to include the origin to identify which client the digital asset comes from, because these two requests require the server to update the index list. the

2.考虑到数字资产与资源存在多对一的关系和资源的大小问题会影响响应时间,所以将资源的上传和下载分离到“资源上传和下载”的请求当中。  2. Considering that there is a many-to-one relationship between digital assets and resources and the size of resources will affect the response time, the upload and download of resources are separated into the "resource upload and download" request. the

3.“元数据下载”、“元数据上传”和“资源上传和下载”操作在发送请求前都需要合并历史遗留操作后再进行请求发送。  3. "Metadata download", "metadata upload" and "resource upload and download" operations need to merge historical legacy operations before sending the request before sending the request. the

4.“元数据下载”、“元数据上传”和“资源上传和下载”不存在先后次序约束,可以并发执行,从而增加更新效率。  4. "Metadata download", "metadata upload" and "resource upload and download" do not have sequence constraints, and can be executed concurrently, thereby increasing update efficiency. the

Claims (9)

1.一种数字资产更新系统,其特征在于:包括客户端、服务端、时间服务器和数据库;1. A digital asset update system, characterized in that: comprising a client, a server, a time server and a database; 所述的客户端可以为多个,每个客户端有唯一的标识符,维护一份属于自己的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引以及由时间服务器提供的最后更新时间;There can be multiple clients, each client has a unique identifier, and maintains an index list of its own, which records the data index changed since the last update and the time server provided by the time server. Last update time; 所述的服务器,提供数字资源的数据库;数据库中保存有系统的索引列表;The server provides a database of digital resources; a system index list is stored in the database; 所述的时间服务器,提供一个准确、可靠的最后更新时间;所有客户端的“最后更新时间”都由时间服务器统一提供,防止由于时间误差而导致的数据异常问题。The time server provides an accurate and reliable last update time; the "last update time" of all clients is uniformly provided by the time server to prevent data anomalies caused by time errors. 2.一种权利要求1所述系统的数字资产更新方法,其特征在于:2. A method for updating digital assets of the system according to claim 1, characterized in that: 每个客户端都有一个唯一的标识符,并且维护一份属于自己的索引列表,列表中记录从上次更新到目前为止发生变化的数据索引以及由时间服务器提供的最后更新时间;服务端数据库的索引列表中的每条数据都通过标识符标识这条数据来源于哪一个客户端;Each client has a unique identifier and maintains its own index list, which records the data index that has changed since the last update and the last update time provided by the time server; the server database Each piece of data in the index list identifies which client the data comes from through an identifier; 更新时,首先进行数据更新,然后更新索引列表;保持每个客户端数据与索引列表的一致性;数据更新操作包括元数据和资源的上传以及下载,各个数据更新操作相对独立,支持并发执行;When updating, first update the data, and then update the index list; maintain the consistency between the data of each client and the index list; the data update operation includes the upload and download of metadata and resources, and each data update operation is relatively independent and supports concurrent execution; 在索引更新操作中,服务端通过对比自身索引列表和客户端提交的索引列表,得到索引更新结果;该结果中包含该用户其他来源的客户端在最后更新时间到目前为止的操作信息以及新的最后更新时间;In the index update operation, the server obtains the index update result by comparing its own index list with the index list submitted by the client; the result includes the operation information and new Last update time; 客户端根据索引更新操作中的响应结果,生成数据更新各操作的请求信息;The client generates request information for each operation of data update according to the response result in the index update operation; 客户端将历史遗留操作合并到请求信息后通过多线程发送数据更新请求,最后判断服务端的响应结果,成功则更新本地索引列表中的相关数据,失败则将加入历史遗留操作中,延迟到下一次更新操作执行。The client merges the legacy operation into the request information, sends the data update request through multi-threading, and finally judges the response result of the server. If it succeeds, it will update the relevant data in the local index list. If it fails, it will add it to the legacy operation and delay it until the next time. The update operation is performed. 3.根据权利要求2所述的数字资产更新方法,其特征在于:数字资产表示属于用户个人所有的笔记内容的单位载体;一条数字资产由元数据和资源两部分组成;数字资产与资源是一对多关系,多条数字资产可以引用同一份资源。3. The digital asset update method according to claim 2, characterized in that: the digital asset represents the unit carrier of the note content owned by the user; a digital asset is composed of metadata and resources; digital assets and resources are one To-many relationship, multiple digital assets can refer to the same resource. 4.根据权利要求2或3所述的数字资产更新方法,其特征在于:所述的索引更新是:4. The digital asset update method according to claim 2 or 3, characterized in that: said index update is: 客户端向服务端提交“索引更新”请求,请求中包括一份用于服务端更新用户在本地客户端执行删除操作的数字资产id列表、用于判断该资源在服务端是否存在而避免重复提交的资源id列表、来源、用户唯一标识符和本地索引列表的最后更新时间;The client submits an "index update" request to the server, which includes a list of digital asset ids used by the server to update the user's deletion operation on the local client, and used to determine whether the resource exists on the server to avoid repeated submissions The list of resource ids, sources, user unique identifiers and the last update time of the local index list; 服务端根据客户端提交的数字资产id列表删除相应数字资产,再更新索引列表中相关数字资产的来源和状态;The server deletes the corresponding digital assets according to the digital asset id list submitted by the client, and then updates the source and status of the relevant digital assets in the index list; 服务端查找索引列表中客户端的“最后更新时间”到目前为止该用户在其他来源的客户端的操作信息,并加入响应结果中;The server looks up the "last update time" of the client in the index list so far, and adds it to the response result; 服务端根据资源id列表检查数据库中是否存在相同的资源,并将检查判断结果加入响应结果中;The server checks whether the same resource exists in the database according to the resource id list, and adds the result of the check to the response result; 服务端将新的最后更新时间加入到响应结果中,并以XML的数据形式发回到客户端;The server adds the new last update time to the response result and sends it back to the client in the form of XML data; 客户端解析服务端的响应结果,合并相应的数据更新操作和历史遗留操作,生成数据更新请求信息;并将服务端发来的“最后更新时间”更新到索引列表中。如果没有收到响应信息,则视为索引更新失败,结束整个更新操作。The client parses the response result of the server, merges the corresponding data update operations and historical legacy operations, generates data update request information; and updates the "last update time" sent by the server to the index list. If no response message is received, it is considered that the index update has failed, and the entire update operation ends. 5.根据权利要求4所述的数字资产更新方法,其特征在于:所述的元数据下载是:5. The digital asset update method according to claim 4, characterized in that: the downloading of the metadata is: 如果索引更新结果中有状态为新增或者修改的数字资产,则向服务端提交“元数据下载”请求,请求中包括一份数字资产id和状态的数字资产列表、用户唯一标识符,否则不需要提交请求;If there is a digital asset whose status is newly added or modified in the index update result, submit a "metadata download" request to the server. The request includes a list of digital assets with a digital asset id and status, and a user unique identifier. Otherwise, no A request needs to be submitted; 服务端得到“元数据下载”请求,将状态为新增的数字资产元数据(不包括资源)和状态为修改的数字资产修改部分加入响应结果中;The server receives the "metadata download" request, and adds the digital asset metadata (excluding resources) whose status is new and the modified part of digital assets whose status is modified to the response result; 服务端将响应结果以XML的数据形式发送回客户端;The server sends the response result back to the client in the form of XML data; 客户端根据响应结果获得数字资产的元数据和修改部分,更新本地数据后再更新本地索引列表;如果没有获得响应或响应异常,则视为“元数据下载”操作失败,并将该操作添加到历史遗留操作中。The client obtains the metadata and modified part of the digital asset according to the response result, updates the local index list after updating the local data; if no response is obtained or the response is abnormal, it is considered that the "metadata download" operation failed, and the operation is added to Historical legacy operation. 6.根据权利要求4所述的数字资产更新方法,其特征在于:所述的元数据上传是:6. The digital asset update method according to claim 4, characterized in that: the uploading of the metadata is: 将上一次最后更新时间至这次最后更新时间这段时间内本地新增的数字资产作为请求信息,向服务端发送“元数据上传”请求;Send a "metadata upload" request to the server using the newly added digital assets locally during the period from the last update time to the last update time as the request information; 服务端接收“元数据上传”请求,并将数字资产写入数据库;The server receives the "metadata upload" request and writes digital assets into the database; 更新服务端的索引列表;Update the index list on the server side; 向服务端发送一个空响应结果;Send an empty response result to the server; 客户端接收到空响应结果则表示“元数据上传”操作成功,否则视为操作失败,并将该操作添加到历史遗留操作中。If the client receives an empty response result, it means that the "metadata upload" operation is successful; otherwise, the operation is regarded as a failure, and the operation is added to the legacy operations. 7.根据权利要求4所述的数字资产更新方法,其特征在于:所述的资源上传和下载是:7. The digital asset update method according to claim 4, characterized in that: the resource upload and download are: 客户端将需要上传到服务端的资源列表或者需要下载的资源id列表作为请求信息,向服务端发送“资源上传和下载”请求;The client takes the list of resources to be uploaded to the server or the list of resource ids to be downloaded as request information, and sends a "resource upload and download" request to the server; 服务端根据请求信息判断是资源上传还是资源下载,如果是资源上传,则将资源写入到数据库中,再返回一个空响应结果;如果是资源下载,则根据资源id列表查找相关资源,将查找结果加入响应结果后返回;The server judges whether it is resource upload or resource download according to the request information. If it is a resource upload, it will write the resource into the database and return an empty response result; if it is a resource download, it will search for related resources according to the resource id list, and will find The result is returned after adding the response result; 判断服务端的响应结果,如果是正常响应则“资源上传和下载”操作成功,否则视为“资源上传和下载”操作失败,并将该操作加入到历史遗留操作中。Judging the response result of the server, if it is a normal response, the "resource upload and download" operation is successful, otherwise it is considered that the "resource upload and download" operation has failed, and this operation is added to the historical legacy operations. 8.根据权利要求5所述的数字资产更新方法,其特征在于:所述的元数据上传是:8. The digital asset update method according to claim 5, characterized in that: the uploading of the metadata is: 将上一次最后更新时间至这次最后更新时间这段时间内本地新增的数字资产作为请求信息,向服务端发送“元数据上传”请求;Send a "metadata upload" request to the server using the newly added digital assets locally during the period from the last update time to the last update time as the request information; 服务端接收“元数据上传”请求,并将数字资产写入数据库;The server receives the "metadata upload" request and writes digital assets into the database; 更新服务端的索引列表;Update the index list on the server side; 向服务端发送一个空响应结果;Send an empty response result to the server; 客户端接收到空响应结果则表示“元数据上传”操作成功,否则视为操作失败,并将该操作添加到历史遗留操作中。If the client receives an empty response result, it means that the "metadata upload" operation is successful; otherwise, the operation is regarded as a failure, and the operation is added to the legacy operations. 9.根据权利要求8所述的数字资产更新方法,其特征在于:所述的资源上传和下载是:9. The digital asset update method according to claim 8, characterized in that: the resource upload and download are: 客户端将需要上传到服务端的资源列表或者需要下载的资源id列表作为请求信息,向服务端发送“资源上传和下载”请求;The client takes the list of resources to be uploaded to the server or the list of resource ids to be downloaded as request information, and sends a "resource upload and download" request to the server; 服务端根据请求信息判断是资源上传还是资源下载,如果是资源上传,则将资源写入到数据库中,再返回一个空响应结果;如果是资源下载,则根据资源id列表查找相关资源,将查找结果加入响应结果后返回;The server judges whether it is resource upload or resource download according to the request information. If it is a resource upload, it will write the resource into the database and return an empty response result; if it is a resource download, it will search for related resources according to the resource id list, and will find The result is returned after adding the response result; 判断服务端的响应结果,如果是正常响应则“资源上传和下载”操作成功,否则视为“资源上传和下载”操作失败,并将该操作加入到历史遗留操作中。Judging the response result of the server, if it is a normal response, the "resource upload and download" operation is successful, otherwise it is considered that the "resource upload and download" operation has failed, and this operation is added to the historical legacy operations.
CN201310416671.1A 2013-09-12 2013-09-12 A kind of digital asset updates the digital asset update method of system Active CN103475721B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310416671.1A CN103475721B (en) 2013-09-12 2013-09-12 A kind of digital asset updates the digital asset update method of system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310416671.1A CN103475721B (en) 2013-09-12 2013-09-12 A kind of digital asset updates the digital asset update method of system

Publications (2)

Publication Number Publication Date
CN103475721A true CN103475721A (en) 2013-12-25
CN103475721B CN103475721B (en) 2016-09-14

Family

ID=49800414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310416671.1A Active CN103475721B (en) 2013-09-12 2013-09-12 A kind of digital asset updates the digital asset update method of system

Country Status (1)

Country Link
CN (1) CN103475721B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166882A (en) * 2014-08-04 2014-11-26 武汉金融资产交易所有限公司 Financial asset transaction method based on P2P technology
CN104539655A (en) * 2014-12-05 2015-04-22 蓝信工场(北京)科技有限公司 Method and system for synchronizing and displaying address book in batches
CN107016548A (en) * 2016-12-09 2017-08-04 阿里巴巴集团控股有限公司 Client system, information processing method, reading and writing method and device
CN108306966A (en) * 2018-01-31 2018-07-20 腾讯科技(深圳)有限公司 Document processing method, device, system, terminal and server
CN108429732A (en) * 2018-01-23 2018-08-21 平安普惠企业管理有限公司 A kind of method and system obtaining resource
WO2018233364A1 (en) * 2017-06-19 2018-12-27 华为技术有限公司 Index update method, system and related device
CN109658248A (en) * 2018-12-20 2019-04-19 姚前 The system and method that register information updates after a kind of park assets are returned
CN109670833A (en) * 2018-12-20 2019-04-23 姚前 The trustship register system and method for assets under a kind of chain to cochain
CN111246229A (en) * 2020-01-07 2020-06-05 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for updating gift resources of live broadcast room

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1480858A (en) * 2002-09-03 2004-03-10 鸿富锦精密工业(深圳)有限公司 Unstructured data synchronization system and method
CN1649432A (en) * 2003-12-17 2005-08-03 三星电子株式会社 Asynchronous mobile communication terminal, asynchronous mobile communication system and method thereof
CN1852309A (en) * 2005-11-16 2006-10-25 华为技术有限公司 Data synchronizing processing method and its client end
CN102483715A (en) * 2009-09-04 2012-05-30 Kii株式会社 Data synchronization system and data synchronization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1480858A (en) * 2002-09-03 2004-03-10 鸿富锦精密工业(深圳)有限公司 Unstructured data synchronization system and method
CN1649432A (en) * 2003-12-17 2005-08-03 三星电子株式会社 Asynchronous mobile communication terminal, asynchronous mobile communication system and method thereof
CN1852309A (en) * 2005-11-16 2006-10-25 华为技术有限公司 Data synchronizing processing method and its client end
CN102483715A (en) * 2009-09-04 2012-05-30 Kii株式会社 Data synchronization system and data synchronization method

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104166882A (en) * 2014-08-04 2014-11-26 武汉金融资产交易所有限公司 Financial asset transaction method based on P2P technology
CN104539655A (en) * 2014-12-05 2015-04-22 蓝信工场(北京)科技有限公司 Method and system for synchronizing and displaying address book in batches
CN107016548A (en) * 2016-12-09 2017-08-04 阿里巴巴集团控股有限公司 Client system, information processing method, reading and writing method and device
CN107016548B (en) * 2016-12-09 2022-01-28 创新先进技术有限公司 Client system, information processing method, reading and writing method and device
US11308062B2 (en) 2017-06-19 2022-04-19 Huawei Technologies Co., Ltd. Index update method and system, and related apparatus
WO2018233364A1 (en) * 2017-06-19 2018-12-27 华为技术有限公司 Index update method, system and related device
CN108429732A (en) * 2018-01-23 2018-08-21 平安普惠企业管理有限公司 A kind of method and system obtaining resource
CN108306966B (en) * 2018-01-31 2022-01-21 腾讯科技(深圳)有限公司 Document processing method, device, system, terminal and server
CN108306966A (en) * 2018-01-31 2018-07-20 腾讯科技(深圳)有限公司 Document processing method, device, system, terminal and server
CN109670833A (en) * 2018-12-20 2019-04-23 姚前 The trustship register system and method for assets under a kind of chain to cochain
CN109658248A (en) * 2018-12-20 2019-04-19 姚前 The system and method that register information updates after a kind of park assets are returned
CN109658248B (en) * 2018-12-20 2023-01-24 姚前 System and method for updating registration information after return of managed assets
CN109670833B (en) * 2018-12-20 2023-06-16 姚前 Escrow registration system and method for under-chain assets to be uplinked
CN111246229A (en) * 2020-01-07 2020-06-05 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for updating gift resources of live broadcast room

Also Published As

Publication number Publication date
CN103475721B (en) 2016-09-14

Similar Documents

Publication Publication Date Title
CN103475721B (en) A kind of digital asset updates the digital asset update method of system
US20210182311A1 (en) Storage interface for synchronizing content
US10642799B2 (en) Synchronization of client machines with a content management system repository
US8990176B2 (en) Managing a search index
US10922303B1 (en) Early detection of corrupt data partition exports
US20140379656A1 (en) System and Method for Maintaining a Cluster Setup
US10069942B2 (en) Method and apparatus for changing configurations
CN111327613B (en) Distributed service authority control method and device and computer readable storage medium
CN109522043B (en) Method and device for managing configuration data and storage medium
US20140282468A1 (en) Local store data versioning
US10713035B2 (en) Systems and methods for peer-to-peer build sharing
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
CN104104739A (en) Data synchronization method for metadata service cluster of cloud storage system
WO2023011022A1 (en) Blockchain-based data processing method, and device and computer-readable storage medium
US20130304717A1 (en) Control system asset management
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
US11016756B1 (en) Application repository protocol for disparate entity applications
EP2889789A1 (en) Replication description model for data distribution
KR101379105B1 (en) System and method for offering cloud computing service
CN114936254A (en) Food safety big data sharing management method and system under cloud chain fusion mechanism
CN104023056B (en) The method and relevant device updated the data
US9621424B2 (en) Providing a common interface for accessing and presenting component configuration settings
CN118939472A (en) A data management method and related equipment
CN116915420A (en) Synchronization method, device, equipment and storage medium of configuration information
US11157454B2 (en) Event-based synchronization in a file sharing environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant