CN113742285A - Resource management and synchronization method - Google Patents

Resource management and synchronization method Download PDF

Info

Publication number
CN113742285A
CN113742285A CN202111016890.1A CN202111016890A CN113742285A CN 113742285 A CN113742285 A CN 113742285A CN 202111016890 A CN202111016890 A CN 202111016890A CN 113742285 A CN113742285 A CN 113742285A
Authority
CN
China
Prior art keywords
file
resource
character string
files
public
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
CN202111016890.1A
Other languages
Chinese (zh)
Other versions
CN113742285B (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.)
Zhuhai Readboy Software Technology Co Ltd
Original Assignee
Zhuhai Readboy Software Technology Co Ltd
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 Zhuhai Readboy Software Technology Co Ltd filed Critical Zhuhai Readboy Software Technology Co Ltd
Priority to CN202111016890.1A priority Critical patent/CN113742285B/en
Publication of CN113742285A publication Critical patent/CN113742285A/en
Application granted granted Critical
Publication of CN113742285B publication Critical patent/CN113742285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1748De-duplication implemented within the file system, e.g. based on file segments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/178Techniques for file synchronisation in file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1873Versioning file systems, temporal file systems, e.g. file system supporting different historic versions of files

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a resource management and synchronization method, which divides a resource file into a public file and an exclusive file, stores character string resources which can be used by all applications in the public file, can reduce space redundancy, and can be used by all applications only by modifying the public file in one place when modifying the character string resources with high reuse degree, thereby improving the efficiency, realizing the uniform management of resources, completing bug caused by resource error in a mode of on-line modification, improving the user experience and protecting product public praise.

Description

Resource management and synchronization method
Technical Field
The invention relates to the technical field of data management, in particular to a resource management and synchronization method.
Background
With the popularization of APPs (applications) among different crowds in different regions, the requirements for development of the APPs are higher and higher, and for example, for multi-language requirements of different crowds in different regions, multi-version development and multi-language adaptation need to be performed on the same APP, so that the number of versions of character string resources which need to be maintained when an installation package of the APP is compiled and updated is increased day by day.
At present, the string resources of the versions of the APP are independent from each other, and when bugs (bugs) such as translation errors and correction errors occur, the string resources of different versions need to be modified synchronously, so that the time consumption is long, and the efficiency is low.
Secondly, the number of applications preset on the current intelligent device is gradually increased, and in most applications, a plurality of character string resources are repeated, and if each application stores one resource file independently, resource redundancy (possibly a plurality of same resources exist) occurs, which is not convenient for management and wastes space.
Disclosure of Invention
In view of the deficiencies of the prior art, the present invention is directed to a method for resource management and synchronization.
In order to achieve the purpose, the invention adopts the following technical scheme:
a resource management and synchronization method comprises the following specific processes:
s1, storing the resource files in a remote warehouse, wherein the remote warehouse is uniformly managed by an administrator, and the administrator can add, delete, modify and query the resource files in the remote warehouse;
the resource files comprise public files and exclusive files, the public files and the exclusive files have corresponding version numbers, the version numbers are set in a preset format, and when the resource files are modified, the remote warehouse can automatically add 1 to the version numbers of the resource files; the public file stores character string resources which are possibly used in all applications; each dedicated file stores character string resources strongly related to the corresponding App service; each character string resource has a unique reference key, and the character string resources stored in the public file also have a preset prefix at the front end of the reference key;
s2, in the process of starting an intelligent equipment system upgrading project, an administrator triggers the remote warehouse to perform statistical detection on the character string resources stored in each exclusive file, the character string resources with the reuse degree higher than a preset threshold value in each exclusive file are counted out, then the character string resources are stored in a public file, a preset prefix is added before a key is quoted, then the corresponding character string resources are deleted in the corresponding exclusive file, and each App application is notified;
s3, each App correspondingly modifies the reference mode to use the character string resource according to the reference key of the character string resource in the public file.
Further, when the intelligent device runs, if the resource file in the remote warehouse changes, the server initiates an update push message to all App applications affected by the change, if the public file is modified, the update push message is pushed to all App applications, and if only the exclusive file is modified, the update push message only needs to be pushed to the App application corresponding to the exclusive file; and after receiving the push, the corresponding App application completes the silent update of the corresponding resource file.
Furthermore, when the intelligent device is started or the network is switched, the resource file version information of all the App applications is reported to the server, the server is triggered to detect whether the resource files of the App applications need to be updated, and if yes, the corresponding resource files are updated.
The invention has the beneficial effects that: the resource file is divided into a public file and an exclusive file, the character string resources which can be used by all applications are stored in the public file, the space redundancy can be reduced, and when the character string resources with high reuse degree are modified, all the applications can be used only by modifying the public file in one place, so that the efficiency is improved, the unified management of the resources is realized, the bug caused by the resource error can be completed by modifying on-line, the user experience is improved, and the product public praise is protected.
Detailed Description
The present invention will be further described below, and it should be noted that the present embodiment is based on the technical solution, and a detailed implementation manner and a specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
The embodiment provides a method for resource management and synchronization, which specifically comprises the following processes:
s1, storing the resource files in a remote warehouse, wherein the remote warehouse is uniformly managed by an administrator, and the administrator can add, delete, modify and query the resource files in the remote warehouse;
the resource files comprise public files and exclusive files, the public files and the exclusive files have corresponding version numbers, the version numbers are set in a preset format (public _ version and spe _ sversion are adopted in the embodiment respectively, and the public files and the exclusive files are digital codes of versions), and when the resource files are modified, the remote warehouse can automatically add 1 to the version numbers of the resource files; the public file stores character string resources which are possibly used in all applications; each dedicated file stores character string resources strongly related to the corresponding App service; each character string resource has a unique reference key, and the character string resources stored in the public file also have a preset prefix at the front end of the reference key. For example, a net _ error is used as a reference key in the exclusive file to refer to 'network exception', when the character string resource is stored in the public file, a preset prefix string _ is added before the reference key, and the character string resource is changed into a string _ net _ error;
s2, in the process of starting an intelligent equipment system upgrading project, an administrator triggers the remote warehouse to perform statistical detection on the character string resources stored in each exclusive file, the character string resources with the reuse degree higher than a preset threshold value in each exclusive file are counted, then the character string resources are stored in a public file, a preset prefix is added before a key is quoted, then the corresponding character string resources are deleted in the corresponding exclusive file, and each App application is notified. For example, if 9 App applications all use the string "network exception", the reuse degree of the string is 90%.
S3, each App correspondingly modifies the reference mode to use the character string resource according to the reference key of the character string resource in the public file.
It should be noted that the resource file (i.e., the total resource file) actually applied in each App application is composed of a public file and an exclusive file corresponding to the current application, and the total resource file version number is composed of a public file version number and an exclusive file version number (e.g., public _ version _ space _ version). If the public file is triggered to be modified, the version number of pversion in the total resource file is changed, and if the exclusive file is changed, the version number of sversion is changed.
Further, when the intelligent device runs, if the resource file in the remote warehouse changes, the server initiates an update push message to all App applications affected by the change, if the public file is modified, the update push message is pushed to all App applications, and if only the exclusive file is modified, the update push message only needs to be pushed to the App application corresponding to the exclusive file; and after receiving the push, the corresponding App application completes silent update of the corresponding resource file (in this way, upward bug can be conveniently solved).
Further, when the intelligent device is started or a network is switched, the resource file version information of all App applications is reported to the server, the server is triggered to detect whether the resource files of the App applications need to be updated, and if yes, the corresponding resource files are updated. Therefore, failure of resource updating caused by failure of receiving push when the mobile terminal is disconnected or powered off can be prevented.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (3)

1. A resource management and synchronization method is characterized by comprising the following specific processes:
s1, storing the resource files in a remote warehouse, wherein the remote warehouse is uniformly managed by an administrator, and the administrator can add, delete, modify and query the resource files in the remote warehouse;
the resource files comprise public files and exclusive files, the public files and the exclusive files have corresponding version numbers, the version numbers are set in a preset format, and when the resource files are modified, the remote warehouse can automatically add 1 to the version numbers of the resource files; the public file stores character string resources which are possibly used in all applications; each dedicated file stores character string resources strongly related to the corresponding App service; each character string resource has a unique reference key, and the character string resources stored in the public file also have a preset prefix at the front end of the reference key;
s2, in the process of starting an intelligent equipment system upgrading project, an administrator triggers the remote warehouse to perform statistical detection on the character string resources stored in each exclusive file, the character string resources with the reuse degree higher than a preset threshold value in each exclusive file are counted out, then the character string resources are stored in a public file, a preset prefix is added before a key is quoted, then the corresponding character string resources are deleted in the corresponding exclusive file, and each App application is notified;
s3, each App correspondingly modifies the reference mode to use the character string resource according to the reference key of the character string resource in the public file.
2. The method according to claim 1, wherein when the intelligent device is running, if the resource file in the remote warehouse is changed, the server initiates an update push message to all App applications affected by the change, if the public file is modified, the update push message is pushed to all App applications, and if only the exclusive file is modified, only the update push message is pushed to the App application corresponding to the exclusive file; and after receiving the push, the corresponding App application completes the silent update of the corresponding resource file.
3. The method according to claim 2, wherein when the intelligent device is started or a network is switched, resource file version information of all App applications is reported to the server, the server is triggered to detect whether resource files of the App applications need to be updated, and if yes, the corresponding resource files are updated.
CN202111016890.1A 2021-08-31 2021-08-31 Resource management and synchronization method Active CN113742285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111016890.1A CN113742285B (en) 2021-08-31 2021-08-31 Resource management and synchronization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111016890.1A CN113742285B (en) 2021-08-31 2021-08-31 Resource management and synchronization method

Publications (2)

Publication Number Publication Date
CN113742285A true CN113742285A (en) 2021-12-03
CN113742285B CN113742285B (en) 2022-09-20

Family

ID=78734494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111016890.1A Active CN113742285B (en) 2021-08-31 2021-08-31 Resource management and synchronization method

Country Status (1)

Country Link
CN (1) CN113742285B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567907A (en) * 2003-06-14 2005-01-19 华为技术有限公司 A method for utilizing network address resource
CN101369953A (en) * 2008-09-17 2009-02-18 北大方正集团有限公司 Font network distribution method and system
US20130080765A1 (en) * 2011-09-26 2013-03-28 Subhashis Mohanty Secure cloud storage and synchronization systems and methods
WO2013098830A1 (en) * 2011-12-30 2013-07-04 Yogesh Chunical Rathod A system and method for dynamic, portable, customize, contextual, unified and integrated network(s).
CN105224435A (en) * 2015-10-16 2016-01-06 北京锐安科技有限公司 Data O&M method for supervising and device
US20160210306A1 (en) * 2015-01-15 2016-07-21 Commvault Systems, Inc. Managing structured data in a data storage system
CN106776003A (en) * 2016-11-18 2017-05-31 郑州云海信息技术有限公司 A kind of method for distributing system resource and device
US20180260125A1 (en) * 2017-03-10 2018-09-13 Pure Storage, Inc. Synchronously replicating datasets and other managed objects to cloud-based storage systems
CN110297658A (en) * 2018-03-21 2019-10-01 腾讯科技(深圳)有限公司 Functional unit sharing method, device and computer equipment
CN111737223A (en) * 2020-06-28 2020-10-02 浪潮电子信息产业股份有限公司 File copying method, device, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567907A (en) * 2003-06-14 2005-01-19 华为技术有限公司 A method for utilizing network address resource
CN101369953A (en) * 2008-09-17 2009-02-18 北大方正集团有限公司 Font network distribution method and system
US20130080765A1 (en) * 2011-09-26 2013-03-28 Subhashis Mohanty Secure cloud storage and synchronization systems and methods
WO2013098830A1 (en) * 2011-12-30 2013-07-04 Yogesh Chunical Rathod A system and method for dynamic, portable, customize, contextual, unified and integrated network(s).
US20160210306A1 (en) * 2015-01-15 2016-07-21 Commvault Systems, Inc. Managing structured data in a data storage system
CN105224435A (en) * 2015-10-16 2016-01-06 北京锐安科技有限公司 Data O&M method for supervising and device
CN106776003A (en) * 2016-11-18 2017-05-31 郑州云海信息技术有限公司 A kind of method for distributing system resource and device
US20180260125A1 (en) * 2017-03-10 2018-09-13 Pure Storage, Inc. Synchronously replicating datasets and other managed objects to cloud-based storage systems
CN110297658A (en) * 2018-03-21 2019-10-01 腾讯科技(深圳)有限公司 Functional unit sharing method, device and computer equipment
CN111737223A (en) * 2020-06-28 2020-10-02 浪潮电子信息产业股份有限公司 File copying method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
仇芒仙: "面向对象程序设计方法", 《微计算机信息》 *

Also Published As

Publication number Publication date
CN113742285B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US6832373B2 (en) System and method for updating and distributing information
CN101552692B (en) Operating and maintenance system and parameter configuration method of network element device
CN114356651A (en) System and method for automatic cloud-based full data backup and restore on mobile devices
CN103745158A (en) Method and device for repairing system bugs
CN104199666A (en) Dynamic configuration method and device for application program
CN102402559A (en) Database upgrade script generating method and device
CN107483241B (en) Method and device for downloading upgrade mirror image version in network element upgrading process
CN101369283A (en) Data synchronization method and system for internal memory database physical data base
CN102833350A (en) Processing method and processing device of WebApp updating
CN106657433B (en) Naming method and device for physical network card in multi-network snap ring environment
CN102541595A (en) Method and device for upgrading intelligent device and intelligent device
CN110737506A (en) virtual machine image version management method
CN106506246B (en) Optical network unit, the method for its dynamic expansion management function and GPON system
US20050118991A1 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
CN110333876A (en) A kind of data clearing method and control equipment
CN111143231B (en) Method, apparatus and computer program product for data processing
CN105808273A (en) Software upgrading method and software upgrading device
CN113742285B (en) Resource management and synchronization method
CN113961226B (en) Software development kit repairing method, terminal, server and equipment
CN104486393A (en) Resource configuration and recycling method and resource configuration and recycling system
US8413132B2 (en) Techniques for resolving read-after-write (RAW) conflicts using backup area
CN112084254A (en) Data synchronization method and system
CN112783898A (en) Method and device for constructing special-shaped structure tree, electronic equipment and storage medium
CN109739868B (en) Data processing method and related equipment thereof
CN110888863A (en) State field optimization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant