[go: up one dir, main page]

CN109413151B - Proxy server for updating files - Google Patents

Proxy server for updating files Download PDF

Info

Publication number
CN109413151B
CN109413151B CN201811115393.5A CN201811115393A CN109413151B CN 109413151 B CN109413151 B CN 109413151B CN 201811115393 A CN201811115393 A CN 201811115393A CN 109413151 B CN109413151 B CN 109413151B
Authority
CN
China
Prior art keywords
file
update
proxy server
files
time point
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.)
Active
Application number
CN201811115393.5A
Other languages
Chinese (zh)
Other versions
CN109413151A (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.)
Huaiyin Normal University
Original Assignee
Huaiyin Normal University
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 Huaiyin Normal University filed Critical Huaiyin Normal University
Priority to CN201811115393.5A priority Critical patent/CN109413151B/en
Publication of CN109413151A publication Critical patent/CN109413151A/en
Application granted granted Critical
Publication of CN109413151B publication Critical patent/CN109413151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及一种代理服务器,对于不同的应用通过设置不同的文件夹实现更新文件的存储,并根据更新请求中上一次更新的时间点,以及当前有效的文件个数以及应用类型能够实现对应文件的定位,获取有效的文件进行更新,同时在更新前,通过当前有效文件的比对,能够获知当前用户应用文件是否完整,防止应用文件异常,有效提高了用户的体验。

Figure 201811115393

The invention relates to a proxy server, which realizes the storage of update files by setting different folders for different applications, and can realize corresponding files according to the time point of the last update in the update request, the number of currently valid files and the application type. At the same time, before updating, through the comparison of current valid files, it is possible to know whether the current user application file is complete, prevent the application file from being abnormal, and effectively improve the user experience.

Figure 201811115393

Description

Proxy server for updating files
Technical Field
The invention relates to a proxy server for file updates.
Background
With the development of science and technology, the types of applications used by users are more and more, and in order to improve the user experience, files in various applications need to be continuously updated, and generally, the update of the users needs to be downloaded again and covered. The downloaded application file usually does not need to be downloaded again, so that the file is downloaded again each time the application file is updated, which causes waste of resources.
Meanwhile, in the using process of the application, the user may cause the file to be lost due to misoperation and the like, and at this time, the user needs to log in the server again to download the file, however, some files usually have certain timeliness, and the user can only download the file again from the network because the timeliness is not clear, thereby also causing network waste.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the technical problem of resource waste in the file updating process in the prior art is solved, and the proxy server for updating the files is provided.
The technical scheme adopted by the invention for solving the technical problems is as follows: a proxy server for file updates, wherein the proxy server comprises: a receiving module: the system comprises a receiving terminal, a processing terminal and a display terminal, wherein the receiving terminal is used for receiving an updating request sent by the receiving terminal, and the updating request comprises a time point of last updating, the number of currently effective files and an application type; a comparison module: and the file updating server is used for searching a first folder of the application corresponding to the last updating time point according to the last updating time point and the application type of the updating request, determining the number of the effective files corresponding to the current time point in the first folder, and requesting the updating server for updating the files if the number of the effective files is consistent with the number of the effective files in the updating request.
Wherein the proxy server further comprises: an update module: the server is used for acquiring the update file, wherein the update file is updated after the last update time point, is loaded under the first folder and then is forwarded to the terminal; while modifying the point-in-time attribute in the first folder name.
Wherein, the proxy server further includes a response module, configured to feed back a response message to the terminal if the number of the valid files in the update request is inconsistent with the number of the valid files in the update request, so that the terminal submits a currently valid file list according to the response message, and the receiving module is further configured to: finding out abnormal files according to the file list and submitting the abnormal files to the server so that the server can judge whether the abnormal files are valid files or not according to the file list, if the abnormal files are valid files, returning the abnormal files to the terminal through the proxy server again, and if the abnormal files are not valid files, informing the terminal that the abnormal files are invalid files so that a user can process the abnormal files.
Wherein, the proxy server also comprises a storage area allocation module: the system comprises a storage area, a storage area and a storage area, wherein the storage area is used for distributing storage areas with different sizes according to different account number levels; and when the account number is upgraded, expanding the storage area corresponding to the account number.
Wherein the update file is stored in encrypted form in the proxy server.
Wherein the agent module further comprises: and the storage area setting module is used for setting a storage area according to the user account and dividing the storage area according to the application of the user.
Wherein the first folder is named as "application type + update time point".
The first folder comprises a first index document, wherein the document comprises an effective period of a corresponding file in the folder, and the number of effective files and the number of invalid files corresponding to the current time point.
The invention has the beneficial effects that the invention provides the proxy server, the storage of the update files is realized by setting different first folders for different applications, the positioning of the corresponding files can be realized according to the time point of the last update in the update request, the number of the currently effective files and the application types, the effective files are obtained for updating, and simultaneously, before the update, whether the current user application files are complete or not can be known through the comparison of the currently effective files, the application abnormity is prevented, and the user experience is effectively improved.
Drawings
The invention is further illustrated with reference to the following figures and examples.
Fig. 1 is a block diagram of the structure of the preferred embodiment of the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
As shown in fig. 1, the present invention relates to a proxy server for file update, wherein the proxy server comprises: a receiving module: the system comprises a receiving terminal, a processing terminal and a display terminal, wherein the receiving terminal is used for receiving an updating request sent by the receiving terminal, and the updating request comprises a time point of last updating, the number of currently effective files and an application type; a comparison module: and the file updating server is used for searching a first folder of the application corresponding to the last updating time point according to the last updating time point and the application type of the updating request, determining the number of the effective files corresponding to the current time point in the first folder, and requesting the updating server for updating the files if the number of the effective files is consistent with the number of the effective files in the updating request.
The proxy server is arranged, so that the integrity of the current file of the terminal can be accurately known before the file is updated, secondary updating caused by incomplete files after file errors or deletion caused by misoperation of a user is prevented, and the user experience is improved.
Wherein the proxy server further comprises: an update module: the server is used for acquiring the update file, wherein the update file is updated after the last update time point, is loaded under the first folder and then is forwarded to the terminal; while modifying the point-in-time attribute in the first folder name.
Wherein, the proxy server further includes a response module, configured to feed back a response message to the terminal if the number of the valid files in the update request is inconsistent with the number of the valid files in the update request, so that the terminal submits a currently valid file list according to the response message, and the receiving module is further configured to: finding out abnormal files according to the file list and submitting the abnormal files to the server so that the server can judge whether the abnormal files are valid files or not according to the file list, if the abnormal files are valid files, returning the abnormal files to the terminal through the proxy server again, and if the abnormal files are not valid files, informing the terminal that the abnormal files are invalid files so that a user can process the abnormal files.
The abnormal file is obtained by searching the abnormal file, and when the server determines that the abnormal file is the valid file, the file and the corresponding update file are fed back to the user together, so that the update efficiency of the file is improved, the application abnormality caused by mistaken update after update is prevented, and the user experience is effectively improved.
Wherein, the proxy server also comprises a storage area allocation module: the system comprises a storage area, a storage area and a storage area, wherein the storage area is used for distributing storage areas with different sizes according to different account number levels; and when the account number is upgraded, expanding the storage area corresponding to the account number.
Wherein the update file is stored in encrypted form in the proxy server.
Wherein the agent module further comprises: and the storage area setting module is used for setting a storage area according to the user account and dividing the storage area according to the application of the user. The storage area is divided according to different applications, so that the management efficiency of the storage area can be effectively improved, the acquisition efficiency of the application files can be improved, and the updating efficiency can be improved.
Wherein the first folder is named as "application type + update time point".
The first folder comprises a first index document, wherein the document comprises an effective period of a corresponding file in the folder, and the number of effective files and the number of invalid files corresponding to the current time point.
Preferably, the proxy server further includes a second folder corresponding to the application, and after the server file is updated, the updated file is pushed to the second folder, so that after a user request is received, the file can be directly updated from the second folder.
Through the setting of the second folder, the server file can be directly pushed to the proxy server when the server file is updated, so that the number of files downloaded from the server can be reduced during updating, and the updating efficiency is improved. In the updating process, the time attributes in the first folder and the second folder are changed after each updating, so that accurate updating time is obtained conveniently.
The invention has the beneficial effects that the proxy server realizes the storage of the update files by setting different folders for different applications, can realize the positioning of the corresponding files according to the time point of the last update in the update request, the number of the current effective files and the application types, obtains the effective files for updating, and can know whether the application files of the current user are complete or not by comparing the current effective files before updating, thereby preventing the application files from being abnormal and effectively improving the user experience.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.

Claims (8)

1.一种用于文件更新的代理服务器,其特征在于,所述代理服务器包括:接收模块:用于接收终端发送的更新请求,其中更新请求中包括上一次更新的时间点,以及当前有效的文件个数以及应用类型;比较模块:用于根据所述更新请求中上一次更新的时间点及应用类型,查找上一次更新的时间点对应的应用的第一文件夹,并确定该第一文件夹下在当前时间点对应的有效文件的个数,如果与更新请求中的有效文件个数一致,则向服务器请求更新文件。1. a proxy server for file update, characterized in that the proxy server comprises: a receiving module: for receiving an update request sent by a terminal, wherein the update request includes the time point of the last update, and the currently valid update request. Number of files and application type; comparison module: used for searching the first folder of the application corresponding to the time point of the last update according to the time point and application type of the last update in the update request, and determining the first file The number of valid files corresponding to the current time point in the folder, if it is consistent with the number of valid files in the update request, request the server to update the file. 2.如权利要求1所述的代理服务器,其特征在于,所述代理服务器还包括:更新模块:用于获取所述更新文件,其中所述更新文件为所述上一次更新的时间点之后更新的文件,并加载到所述第一文件夹下,然后转发给终端;同时修改第一文件夹名称中的时间点属性。2 . The proxy server according to claim 1 , wherein the proxy server further comprises: an update module: used to obtain the update file, wherein the update file is updated after the time point of the last update. 3 . The file is loaded into the first folder, and then forwarded to the terminal; at the same time, the time point attribute in the name of the first folder is modified. 3.如权利要求1所述的代理服务器,其特征在于,所述代理服务器还包括响应模块,用于如果与更新请求中的有效文件个数不一致,则向终端反馈响应消息,以便终端根据该响应消息提交当前有效的文件列表,所述接收模块还用于:根据该文件列表查找出异常文件,并提交给服务器,以便服务器据此判断该异常文件是否为有效文件,如果为有效文件,则再次经代理服务器返回给终端,反之,则通知终端上述异常文件为无效文件,以便用户进行处理。3. The proxy server according to claim 1, wherein the proxy server further comprises a response module for feeding back a response message to the terminal if it is inconsistent with the number of valid files in the update request, so that the terminal responds according to the The response message submits the current valid file list, and the receiving module is also used to: find out the abnormal file according to the file list, and submit it to the server, so that the server judges whether the abnormal file is a valid file according to this, and if it is a valid file, then It will be returned to the terminal again through the proxy server, otherwise, the terminal will be notified that the above abnormal file is an invalid file, so that the user can process it. 4.如权利要求1所述的代理服务器,其特征在于,代理服务器还包括存储区分配模块:用于根据不同的账号级别分配不同大小的存储区;以及当账号升级时,扩展该账号对应的存储区。4. proxy server as claimed in claim 1, is characterized in that, proxy server also comprises storage area allocation module: for distributing storage areas of different sizes according to different account levels; And when account is upgraded, expand the corresponding account of this account storage area. 5.如权利要求1所述的代理服务器,其特征在于,更新文件在代理服务器中以加密的形式保存。5. The proxy server of claim 1, wherein the update file is stored in an encrypted form in the proxy server. 6.如权利要求1所述的代理服务器,其特征在于,所述代理模块还包括:存储区设置模块,用于根据用户账号设置存储区,根据用户的应用对存储区进行分割。6 . The proxy server according to claim 1 , wherein the proxy module further comprises: a storage area setting module, configured to set the storage area according to the user account, and divide the storage area according to the application of the user. 7 . 7.如权利要求6所述的代理服务器,其特征在于,所述第一文件夹以“应用类型+更新时间点”命名。7. The proxy server according to claim 6, wherein the first folder is named with "application type + update time point". 8.如权利要求1所述的代理服务器,其特征在于,所述第一文件夹中包括第一索引文档,其中,所述文档包括该文件夹下对应文件的有效期,以及当前时间点对应的有效文件个数及失效文件个数。8. The proxy server according to claim 1, wherein the first folder includes a first index document, wherein the document includes the validity period of the corresponding file under the folder, and the corresponding file at the current time point. Number of valid and invalid files.
CN201811115393.5A 2018-09-25 2018-09-25 Proxy server for updating files Active CN109413151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811115393.5A CN109413151B (en) 2018-09-25 2018-09-25 Proxy server for updating files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811115393.5A CN109413151B (en) 2018-09-25 2018-09-25 Proxy server for updating files

Publications (2)

Publication Number Publication Date
CN109413151A CN109413151A (en) 2019-03-01
CN109413151B true CN109413151B (en) 2021-01-12

Family

ID=65466021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811115393.5A Active CN109413151B (en) 2018-09-25 2018-09-25 Proxy server for updating files

Country Status (1)

Country Link
CN (1) CN109413151B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158907A (en) * 2014-08-29 2014-11-19 腾讯科技(深圳)有限公司 Method and device of downloading application program file
CN105025084A (en) * 2015-06-10 2015-11-04 国网智能电网研究院 A cloud storage system based on synchronization agent and hybrid storage
CN105302708A (en) * 2014-06-30 2016-02-03 联发科技(新加坡)私人有限公司 Mobile terminal and detection method thereof
CN106411967A (en) * 2015-07-27 2017-02-15 深圳市赛格导航科技股份有限公司 Automobile electronic product remote upgrading method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9678967B2 (en) * 2003-05-22 2017-06-13 Callahan Cellular L.L.C. Information source agent systems and methods for distributed data storage and management using content signatures

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302708A (en) * 2014-06-30 2016-02-03 联发科技(新加坡)私人有限公司 Mobile terminal and detection method thereof
CN104158907A (en) * 2014-08-29 2014-11-19 腾讯科技(深圳)有限公司 Method and device of downloading application program file
CN105025084A (en) * 2015-06-10 2015-11-04 国网智能电网研究院 A cloud storage system based on synchronization agent and hybrid storage
CN106411967A (en) * 2015-07-27 2017-02-15 深圳市赛格导航科技股份有限公司 Automobile electronic product remote upgrading method and system

Also Published As

Publication number Publication date
CN109413151A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN110489391B (en) Data processing method and related equipment
CN111143382B (en) Data processing method, system and computer readable storage medium
JP6244592B2 (en) Column-oriented database processing method and processing device
US20110302277A1 (en) Methods and apparatus for web-based migration of data in a multi-tenant database system
CN112214561B (en) Map data processing method, map data processing device, computer equipment and storage medium
CN111221469B (en) Method, device and system for synchronizing cache data
CN108710681A (en) File acquisition method, device, equipment and storage medium
CN110308917A (en) Small program distribution method, device, equipment and computer storage medium
CN103544030A (en) Software upgrading method, software upgrading system and intelligent terminal
CN111339170A (en) Data processing method and device, computer equipment and storage medium
CN113067853A (en) Data pushing method and device, electronic equipment and storage medium
CN111736876A (en) Client update control method, device, storage medium and server
CN112685474A (en) Application management method, device, equipment and storage medium
CN111190625A (en) APP version upgrading method, server, client and computer readable storage medium
CN109413151B (en) Proxy server for updating files
CN113791796A (en) Cross-domain mirror image generation method, mirror image installation method, device and electronic equipment
AU2021204609A1 (en) Cluster management method and apparatus, electronic device and storage medium
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN106407320B (en) File processing method, device and system
CN115098154A (en) Method and device for managing dependency relationship between services and electronic equipment
JP6522261B1 (en) Method and apparatus for managing file attribute information {METHOD FOR MANAGING ATTRIBUTE INFORMATION OF FILE AND COMPUTING DEVICE USING THE SAME}
CN110929500B (en) File comparison method and related device
CA3138961A1 (en) Hive table state changing method and device
WO2022096960A1 (en) Cluster management method and apparatus, electronic device and storage medium
CN110321132B (en) Code release method and device

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