CN107608722B - Application program downloading method and device - Google Patents

Application program downloading method and device Download PDF

Info

Publication number
CN107608722B
CN107608722B CN201710848012.3A CN201710848012A CN107608722B CN 107608722 B CN107608722 B CN 107608722B CN 201710848012 A CN201710848012 A CN 201710848012A CN 107608722 B CN107608722 B CN 107608722B
Authority
CN
China
Prior art keywords
application program
identifier
record
program
downloaded
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
CN201710848012.3A
Other languages
Chinese (zh)
Other versions
CN107608722A (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.)
Beijing Abt Networks Co ltd
Original Assignee
Beijing Abt Networks 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 Beijing Abt Networks Co ltd filed Critical Beijing Abt Networks Co ltd
Priority to CN201710848012.3A priority Critical patent/CN107608722B/en
Publication of CN107608722A publication Critical patent/CN107608722A/en
Application granted granted Critical
Publication of CN107608722B publication Critical patent/CN107608722B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides an application program downloading method and device. In the embodiment of the invention, the terminal and the gateway device are connected through the local area network, the data transmission speed between the terminal and the gateway device is not influenced by the internet, and the data transmission speed is very high when the data interaction is carried out between the terminal and the gateway device, so that even if the internet between the gateway device and the data server is not smooth, the gateway device does not need to download the application program from the data server, but directly acquires the application program from the local and returns the application program to the terminal, and therefore, the terminal can quickly acquire the application program to be downloaded. For the terminal, the downloading speed is improved, and the waiting time of the user is reduced, so that the user experience is improved.

Description

Application program downloading method and device
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an application program downloading method and device.
Background
With the rapid development of technologies, more and more applications are provided on the internet, such as QQ, wechat, micro-blogging, and rice chat, which provide great convenience for people's work and life.
However, before using these applications, the user needs to download the applications on the terminal and install them on the terminal, so that the applications can be used.
When a user needs to download an application program from a data server, the user can control the terminal to send an application program downloading request to the gateway device through the local area network, wherein the application program downloading request carries a server identifier of the data server and a program identifier of the application program; and after receiving the downloading request, the gateway equipment extracts the server identification from the downloading request and forwards the downloading request to a data server through the Internet according to the server identification. The data server receives the downloading request, searches an application program corresponding to the program identifier locally, and returns the application program to the gateway equipment through the Internet; after receiving the reference program returned by the data server, the gateway equipment forwards the application program to the terminal through the local area network; and the terminal receives the application program sent by the gateway equipment.
However, the inventors found that: if the internet between the gateway device and the data server is not smooth, the user needs to spend more time downloading the application program from the data server, the waiting time of the user is increased, and the user experience is low.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present invention provide an application program downloading method and apparatus.
According to a first aspect of the embodiments of the present invention, there is provided an application program downloading method applied to a gateway device, the method including:
receiving an application program downloading request sent by a terminal, wherein the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
searching whether an application program corresponding to the server identifier and the program identifier exists in a corresponding relation among the server identifier, the program identifier and the application program which are locally pre-stored;
and if the application program corresponding to the server identification and the program identification exists, sending the application program to the terminal.
Further, the method further comprises:
counting the total downloaded times, the downloaded frequency and the latest downloaded time of the application program;
calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time;
acquiring local storage space occupancy rate;
calculating an aging value of the application program according to the activity and the storage space occupancy rate;
judging whether the aging value is larger than a preset threshold value or not;
and if the aging value is larger than the preset threshold value, deleting the record comprising the application program from the corresponding relation.
Further, the method further comprises:
detecting whether the data server is added with a new application program which is not stored in the corresponding relation;
if the data server adds a new application program which is not stored in the corresponding relation, downloading the new application program which is not stored in the corresponding relation from the data server;
and forming a record by the server identification, the application identification of the new application program and storing the record in the corresponding relation.
Further, the method further comprises:
for each record in the corresponding relation, detecting whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record, downloading the application program corresponding to the program identifier in the record from the data server;
replacing the application in the record with the downloaded application.
Further, the method further comprises:
for each record in the corresponding relation, detecting whether an application program corresponding to the program identifier in the record still exists in the data server;
and if the application program corresponding to the program identifier in the record does not exist in the data server, deleting the record from the corresponding relation.
According to a second aspect of the embodiments of the present invention, there is provided an application downloading apparatus, applied to a gateway device, the apparatus including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an application program downloading request sent by a terminal, and the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
the searching module is used for searching whether the application program corresponding to the server identifier and the program identifier exists in the corresponding relation among the server identifier, the program identifier and the application program which are locally pre-stored;
and the sending module is used for sending the application program to the terminal if the application program corresponding to the server identification and the program identification exists.
Further, the apparatus further comprises:
the statistical module is used for counting the total downloaded times, the downloaded frequency and the latest downloaded time of the application program;
the first calculation module is used for calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time;
the acquisition module is used for acquiring the local storage space occupancy rate;
the second calculation module is used for calculating the aging value of the application program according to the activity and the storage space occupancy rate;
the judging module is used for judging whether the aging value is larger than a preset threshold value or not;
and the second deleting module is used for deleting the record comprising the application program from the corresponding relation if the aging value is larger than the preset threshold value.
Further, the apparatus further comprises:
a first detection module, configured to detect whether a new application program that is not stored in the correspondence relationship is added to the data server;
a first downloading module, configured to, if the data server adds a new application program that is not stored in the corresponding relationship, download the new application program that is not stored in the corresponding relationship from the data server;
and the storage module is used for forming a record by the server identifier, the application identifier of the new application program and storing the record in the corresponding relation.
Further, the apparatus further comprises:
a second detection module, configured to detect, for each record in the correspondence, whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
the second downloading module is used for downloading the application program corresponding to the program identifier in the record from the data server if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
and the replacing module is used for replacing the application program in the record by using the downloaded application program.
Further, the apparatus further comprises:
a third detection module, configured to detect, for each record in the correspondence, whether an application program corresponding to the program identifier in the record still exists in the data server;
and the second deleting module is used for deleting the record from the corresponding relation if the data server does not have the application program corresponding to the program identifier in the record.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the terminal and the gateway device are connected through the local area network, the data transmission speed between the terminal and the gateway device is not influenced by the internet, and the data transmission speed is very high when the data interaction is carried out between the terminal and the gateway device, so that even if the internet between the gateway device and the data server is not smooth, the gateway device does not need to download the application program from the data server, but directly acquires the application program from the local and returns the application program to the terminal, and therefore, the terminal can quickly acquire the application program to be downloaded. For the terminal, the downloading speed is improved, and the waiting time of the user is reduced, so that the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of embodiments of the invention.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the embodiments of the invention.
FIG. 1 is a flow chart illustrating a method of application download according to an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method of application download in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of application download according to an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of application download according to an exemplary embodiment;
fig. 5 is a block diagram illustrating an application download apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention, as detailed in the following claims.
Fig. 1 is a flowchart illustrating an application downloading method, as shown in fig. 1, for use in a gateway device, according to an exemplary embodiment, the method including the following steps.
In step S101, an application program downloading request sent by a terminal is received, where the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
in the embodiment of the invention, when the user needs to download the application program to be downloaded, the user can control the terminal to send the application program downloading request to the gateway equipment through the local area network. The gateway device receives the application download request and then performs step S102.
In step S102, in the correspondence among the server identifier, the program identifier, and the application program that are locally pre-stored, whether an application program corresponding to the server identifier and the program identifier exists is searched for;
in an embodiment of the present invention, in the history process, every time an application program is downloaded from a data server according to an application program download request, a record is formed by the server identifier of the data server, the program identifier of the application program and the application program, and is stored in the corresponding relationship among the server identifier, the program identifier and the application program, which are locally pre-stored. Therefore, when the terminal needs to download the application program from the data server again later, the gateway device can directly obtain the application program according to the server identifier of the data server and the program identifier of the application program from the corresponding relation among the server identifier, the program identifier and the application program which are stored locally in advance, and return the application program to the terminal, so that the application program does not need to be downloaded from the data server again through the internet, and the downloaded application program does not need to be returned to the terminal.
Or, in another embodiment of the present invention, the gateway device may download all the application programs stored in the data server from the data server at one time, and for any one downloaded application program, the gateway device may combine the server identifier of the data server, the program identifier of the application program, and the application program into one record, and store the record in the correspondence among the server identifier, the program identifier, and the application program, which are stored in advance locally. The above operation is also performed for each of the other downloaded applications. Therefore, when the terminal needs to download a certain application program from the data server again later, the gateway device can directly obtain the application program according to the server identifier of the data server and the program identifier of the application program from the corresponding relation among the server identifier, the program identifier and the application program which are stored locally in advance, and return the application program to the terminal, so that the application program does not need to be downloaded from the data server again through the internet, and the downloaded application program does not need to be returned to the terminal.
If there is an application corresponding to the server identifier and the program identifier in the correspondence among the server identifier, the program identifier, and the application stored locally in advance, the application is transmitted to the terminal in step S103.
Further, the terminal receives the application program sent by the gateway device, and then the downloading is completed.
In the embodiment of the invention, the terminal and the gateway device are connected through the local area network, the data transmission speed between the terminal and the gateway device is not influenced by the internet, and the data transmission speed is very high when the data interaction is carried out between the terminal and the gateway device, so that even if the internet between the gateway device and the data server is not smooth, the gateway device does not need to download the application program from the data server, but directly acquires the application program from the local and returns the application program to the terminal, and therefore, the terminal can quickly acquire the application program to be downloaded. For the terminal, the downloading speed is improved, and the waiting time of the user is reduced, so that the user experience is improved.
In another embodiment of the present invention, if there is no application corresponding to the server identifier and the program identifier in the correspondence between the server identifier, the program identifier and the application pre-stored locally, it indicates that the gateway device has not downloaded the application from the data server, and the gateway device has not stored the application locally, and at this time, in order to enable the terminal to obtain the application, the gateway device needs to forward the application download request to the data server according to the server identifier; and after receiving the application program downloading request, the data server acquires the application program to be downloaded corresponding to the program identifier and returns the application program to be downloaded to the gateway equipment. And then the gateway equipment receives the application program to be downloaded returned by the data server according to the application program downloading request, and forwards the received application program to be downloaded to the terminal. And the terminal receives the application program to be downloaded forwarded by the gateway equipment so as to complete downloading.
Further, in order to download the application program to be downloaded from the data server by a certain terminal later, the gateway device may directly obtain the application program to be downloaded from the corresponding relationship among the server identifier, the program identifier, and the application program that are pre-stored locally according to the server identifier of the data server and the program identifier of the application program to be downloaded, and return the application program to be downloaded to the terminal, without downloading the application program to be downloaded from the data server again through the internet.
Therefore, when a certain terminal needs to download the application program to be downloaded from the data server, the gateway device can directly acquire the application program to be downloaded from the corresponding relation among the server identifier, the program identifier and the application program which are stored locally in advance and return the application program to the terminal, the application program to be downloaded does not need to be downloaded from the data server again, the downloading time is saved, the downloading speed is improved, the waiting time of a user is reduced, and therefore the user experience is improved.
In the embodiment of the invention, the storage space in the gateway equipment is limited, the gateway equipment cannot store the application program in the local endlessly, and after the storage space in the gateway equipment is occupied, the gateway equipment cannot continuously store other application programs in the local, so that if the terminal needs to download other application programs, the gateway equipment needs to download the application program from the data server after receiving an application program downloading request sent by the terminal, and if the internet between the gateway equipment and the data server is not smooth, the downloading time can be increased, the waiting time of a user is further increased, and the user experience is reduced.
In the embodiment of the present invention, since the application program is updated very fast, an application program just developed may not be asked after a period of time, and for such an application program, since the application program is hardly used by a user, that is, the application program is hardly downloaded by a terminal, the gateway device does not need to continuously store the application program locally, and therefore, in another embodiment of the present invention, for any application program, the gateway device may count the total downloaded times, the downloaded frequency, and the latest downloaded time of the application program; calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time; acquiring local storage space occupancy rate; calculating the aging value of the application program according to the activity and the occupancy rate of the storage space; judging whether the aging value is larger than a preset threshold value or not; if the aging value is larger than the preset threshold value, the record comprising the application program can be deleted from the corresponding relation among the server identifier, the program identifier and the application program which are locally pre-stored, the saved storage space is used for storing the application program with high current download rate, and the utilization rate of the storage space of the gateway equipment can be improved.
In the embodiment of the present invention, technicians of each large company are constantly developing new applications to meet various needs of users, and whenever a technician of a certain company develops a new application, a manager of the data server stores the new application developed by the technician in the data server for downloading by each terminal.
In order to enable the terminal to download the new application program quickly if the terminal needs to download the new application program after the new application program is stored in the data server, in another embodiment of the present invention, referring to fig. 2, the method further comprises:
in step S201, it is detected whether a new application program that is not stored in the correspondence relationship among the server identifier, the program identifier, and the application program that are locally pre-stored is added to the data server;
the gateway device may obtain the program identifiers of all the application programs stored in the data server from the data server. Then, for any one obtained program identifier, it is determined whether the program identifier exists in the correspondence among the server identifier, the program identifier, and the application program that are locally pre-stored, if the program identifier exists in the correspondence among the server identifier, the program identifier, and the application program that are locally pre-stored, it is determined that the gateway device has locally stored the application program corresponding to the program identifier, and if the program identifier does not exist in the correspondence among the server identifier, the program identifier, and the application program that are locally pre-stored, it is determined that the gateway device does not locally store the application program corresponding to the program identifier, and the application program corresponding to the program identifier is a new application program stored in the data server, and then step S202 is executed.
If the data server adds a new application program which is not stored in the corresponding relationship among the server identifier, the program identifier and the application program which are locally pre-stored, in step S202, the new application program which is not stored in the corresponding relationship among the server identifier, the program identifier and the application program which are locally pre-stored is downloaded from the data server;
in step S203, the server identifier of the data server, the application identifier of the new application program, and the new application program are combined into a record and stored in the corresponding relationship among the server identifier, the program identifier, and the application program, which are stored in advance locally.
In the embodiment of the present invention, after a technician develops an application program, the function of the application program is usually improved, that is, the application program is usually upgraded, and after the application program is upgraded to a new version, a manager of the data server replaces the application program of a low version with the application program of the new version in the data server, so as to allow the terminal to download and use the application program.
However, in the embodiment of the present invention, since the low-version application program is stored in the gateway device, when the terminal needs to download the application program, the gateway device searches for the application program in the correspondence relationship among the server identifier, the program identifier, and the application program, which are locally pre-stored, according to the server identifier of the data server and the program identifier of the application program, but the searched application program is the low-version application program, if the low-version application program is also sent to the terminal, the user cannot enjoy the new function of the high-version application program, and the user experience is low.
Therefore, in order to make the terminal obtain the application program of the latest version when downloading the application program, so that the user can enjoy the new functions of the application program of the latest version, in another embodiment of the present invention, referring to fig. 3, the method further includes:
in step S301, for each record in the correspondence among the server identifier, the program identifier, and the application program that are stored locally in advance, detecting whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record, in step S302, the application program corresponding to the program identifier in the record is downloaded from the data server;
in step S303, the application in the record is replaced with the downloaded application.
In the embodiment of the present invention, the administrator of the data server may also generally update the application program stored in the data server, for example, some application programs are identified as illegal application programs by government-related administrative departments at a later stage, the application programs may harm the interests of the user after being installed on the terminal, and if it is necessary to prohibit the application programs from being used continuously, the administrator of the data server may delete the application program from the data server, so that the local terminal cannot download the application program from the data server any more, and further, the loss caused to the user is avoided.
However, if the application program still exists in the gateway device, when the terminal needs to download the application program, the gateway device may also send the locally stored application program to the terminal, which may further cause a loss to the user.
Therefore, in order to synchronize the application program stored in the gateway device with the application program stored in the data server, in a further embodiment of the present invention, referring to fig. 4, the method further comprises:
in step S401, for each record in the correspondence among the server identifier, the program identifier, and the application program that are stored locally in advance, it is detected whether an application program corresponding to the program identifier in the record still exists in the data server;
if the application program corresponding to the program identifier in the record does not exist in the data server, in step S402, the record is deleted from the correspondence relationship among the server identifier, the program identifier, and the application program, which are locally pre-stored.
Fig. 5 is a block diagram illustrating an application download apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes:
the receiving module 11 is configured to receive an application program downloading request sent by a terminal, where the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
the searching module 12 is configured to search whether an application program corresponding to the server identifier and the program identifier exists in a correspondence relationship among the server identifier, the program identifier, and the application program that are locally pre-stored;
a sending module 13, configured to send the application program to the terminal if the application program corresponding to the server identifier and the program identifier exists.
Further, the apparatus further comprises:
the statistical module is used for counting the total downloaded times, the downloaded frequency and the latest downloaded time of the application program;
the first calculation module is used for calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time;
the acquisition module is used for acquiring the local storage space occupancy rate;
the second calculation module is used for calculating the aging value of the application program according to the activity and the storage space occupancy rate;
the judging module is used for judging whether the aging value is larger than a preset threshold value or not;
and the second deleting module is used for deleting the record comprising the application program from the corresponding relation if the aging value is larger than the preset threshold value.
Further, the apparatus further comprises:
a first detection module, configured to detect whether a new application program that is not stored in the correspondence relationship is added to the data server;
a first downloading module, configured to, if the data server adds a new application program that is not stored in the corresponding relationship, download the new application program that is not stored in the corresponding relationship from the data server;
and the storage module is used for forming a record by the server identifier, the application identifier of the new application program and storing the record in the corresponding relation.
Further, the apparatus further comprises:
a second detection module, configured to detect, for each record in the correspondence, whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
the second downloading module is used for downloading the application program corresponding to the program identifier in the record from the data server if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
and the replacing module is used for replacing the application program in the record by using the downloaded application program.
Further, the apparatus further comprises:
a third detection module, configured to detect, for each record in the correspondence, whether an application program corresponding to the program identifier in the record still exists in the data server;
and the second deleting module is used for deleting the record from the corresponding relation if the data server does not have the application program corresponding to the program identifier in the record.
In the embodiment of the invention, the terminal and the gateway device are connected through the local area network, the data transmission speed between the terminal and the gateway device is not influenced by the internet, and the data transmission speed is very high when the data interaction is carried out between the terminal and the gateway device, so that even if the internet between the gateway device and the data server is not smooth, the gateway device does not need to download the application program from the data server, but directly acquires the application program from the local and returns the application program to the terminal, and therefore, the terminal can quickly acquire the application program to be downloaded. For the terminal, the downloading speed is improved, and the waiting time of the user is reduced, so that the user experience is improved.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of the invention following, in general, the principles of the embodiments of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the embodiments of the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the embodiments of the invention being indicated by the following claims.
It is to be understood that the embodiments of the present invention are not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of embodiments of the invention is limited only by the appended claims.

Claims (10)

1. An application program downloading method applied to a gateway device is characterized by comprising the following steps:
receiving an application program downloading request sent by a terminal, wherein the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
searching whether an application program corresponding to the server identifier and the program identifier exists in a corresponding relation among the server identifier, the program identifier and the application program which are locally pre-stored; the corresponding relation is a corresponding relation among a downloaded application program, a program identifier of the downloaded application program and a server identifier of a data server called when the application program is downloaded, which is established by the gateway equipment based on a historical downloading process;
and if the application program corresponding to the server identification and the program identification exists, sending the application program to the terminal.
2. The method of claim 1, further comprising:
counting the total downloaded times, the downloaded frequency and the latest downloaded time of the application program;
calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time;
acquiring local storage space occupancy rate;
calculating an aging value of the application program according to the activity and the storage space occupancy rate;
judging whether the aging value is larger than a preset threshold value or not;
and if the aging value is larger than the preset threshold value, deleting the record comprising the application program from the corresponding relation.
3. The method of claim 1, further comprising:
detecting whether the data server is added with a new application program which is not stored in the corresponding relation;
if the data server adds a new application program which is not stored in the corresponding relation, downloading the new application program which is not stored in the corresponding relation from the data server;
and forming a record by the server identification, the application identification of the new application program and storing the record in the corresponding relation.
4. The method of claim 1, further comprising:
for each record in the corresponding relation, detecting whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record, downloading the application program corresponding to the program identifier in the record from the data server;
replacing the application in the record with the downloaded application.
5. The method of claim 1, further comprising:
for each record in the corresponding relation, detecting whether an application program corresponding to the program identifier in the record still exists in the data server;
and if the application program corresponding to the program identifier in the record does not exist in the data server, deleting the record from the corresponding relation.
6. An application downloading device applied to a gateway device, the device comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving an application program downloading request sent by a terminal, and the application program downloading request carries a program identifier of an application program to be downloaded and a server identifier of a data server;
the searching module is used for searching whether the application program corresponding to the server identifier and the program identifier exists in the corresponding relation among the server identifier, the program identifier and the application program which are locally pre-stored; the corresponding relation is a corresponding relation among a downloaded application program, a program identifier of the downloaded application program and a server identifier of a data server called when the application program is downloaded, which is established by the gateway equipment based on a historical downloading process;
and the sending module is used for sending the application program to the terminal if the application program corresponding to the server identification and the program identification exists.
7. The apparatus of claim 6, further comprising:
the statistical module is used for counting the total downloaded times, the downloaded frequency and the latest downloaded time of the application program;
the first calculation module is used for calculating the activity of the application program according to the total downloaded times, the downloaded frequency and the latest downloaded time;
the acquisition module is used for acquiring the local storage space occupancy rate;
the second calculation module is used for calculating the aging value of the application program according to the activity and the storage space occupancy rate;
the judging module is used for judging whether the aging value is larger than a preset threshold value or not;
and the second deleting module is used for deleting the record comprising the application program from the corresponding relation if the aging value is larger than the preset threshold value.
8. The apparatus of claim 6, further comprising:
a first detection module, configured to detect whether a new application program that is not stored in the correspondence relationship is added to the data server;
a first downloading module, configured to, if the data server adds a new application program that is not stored in the corresponding relationship, download the new application program that is not stored in the corresponding relationship from the data server;
and the storage module is used for forming a record by the server identifier, the application identifier of the new application program and storing the record in the corresponding relation.
9. The apparatus of claim 6, further comprising:
a second detection module, configured to detect, for each record in the correspondence, whether the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
the second downloading module is used for downloading the application program corresponding to the program identifier in the record from the data server if the version of the application program corresponding to the program identifier in the record stored by the data server is newer than the version of the application program in the record;
and the replacing module is used for replacing the application program in the record by using the downloaded application program.
10. The apparatus of claim 6, further comprising:
a third detection module, configured to detect, for each record in the correspondence, whether an application program corresponding to the program identifier in the record still exists in the data server;
and the second deleting module is used for deleting the record from the corresponding relation if the data server does not have the application program corresponding to the program identifier in the record.
CN201710848012.3A 2017-09-19 2017-09-19 Application program downloading method and device Active CN107608722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710848012.3A CN107608722B (en) 2017-09-19 2017-09-19 Application program downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710848012.3A CN107608722B (en) 2017-09-19 2017-09-19 Application program downloading method and device

Publications (2)

Publication Number Publication Date
CN107608722A CN107608722A (en) 2018-01-19
CN107608722B true CN107608722B (en) 2020-12-01

Family

ID=61060913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710848012.3A Active CN107608722B (en) 2017-09-19 2017-09-19 Application program downloading method and device

Country Status (1)

Country Link
CN (1) CN107608722B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324801B (en) 2018-09-18 2022-04-12 华为云计算技术有限公司 Algorithm downloading method, equipment and related product
CN116074305A (en) * 2021-10-30 2023-05-05 华为技术有限公司 Application downloading and installing method, application aging method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625731A (en) * 2008-07-10 2010-01-13 鸿富锦精密工业(深圳)有限公司 Program bionic aging system and aging method thereof
CN103546563A (en) * 2013-10-28 2014-01-29 北京奇虎科技有限公司 Method and system for intelligent update of terminal software
CN104202360A (en) * 2014-08-13 2014-12-10 小米科技有限责任公司 Webpage access method, device and router
CN106228074A (en) * 2016-07-14 2016-12-14 广州华多网络科技有限公司 storage object aging method and device
CN106802934A (en) * 2016-12-29 2017-06-06 中国科学院空间应用工程与技术中心 The method and device that a kind of dynamic adjustment space science is stored with application data file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625731A (en) * 2008-07-10 2010-01-13 鸿富锦精密工业(深圳)有限公司 Program bionic aging system and aging method thereof
CN103546563A (en) * 2013-10-28 2014-01-29 北京奇虎科技有限公司 Method and system for intelligent update of terminal software
CN104202360A (en) * 2014-08-13 2014-12-10 小米科技有限责任公司 Webpage access method, device and router
CN106228074A (en) * 2016-07-14 2016-12-14 广州华多网络科技有限公司 storage object aging method and device
CN106802934A (en) * 2016-12-29 2017-06-06 中国科学院空间应用工程与技术中心 The method and device that a kind of dynamic adjustment space science is stored with application data file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
https://blog.csdn.net/to_be_better/article/details/53470583;shiyicode;《linux服务器开发之网关服务器的实现》;20161205;全文 *

Also Published As

Publication number Publication date
CN107608722A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
US10489476B2 (en) Methods and devices for preloading webpages
US20160057205A1 (en) Application sharing method and apparatus
CN105812435B (en) Application upgrading data packet processing method and device, electronic equipment and system
CN107872534B (en) Information pushing method and device, server and readable storage medium
WO2017063533A1 (en) Service account association method, device and system and terminal device
CN105515900A (en) Method and device for acquiring on-line state of terminal
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
CN109104701B (en) Information sending method based on equipment identification code and server
CN107608722B (en) Application program downloading method and device
CN112788126A (en) Resource downloading method, device, server and storage medium
CN111526185B (en) Data downloading method, device, system and storage medium
CN114064668A (en) Method, electronic device and computer program product for storage management
CN102769625A (en) Client-side Cookie information acquisition method and device
CN109600254B (en) Method for generating full-link log and related system
CN105701168A (en) Data storage method and device and electronic equipment
CN111176706A (en) Terminal upgrading method and device, electronic equipment and storage medium
CN106371856A (en) Menu statistical method and user terminal and application backstage terminal
CN109495319B (en) Method, device and equipment for determining fault information of CDN node
CN109842482B (en) Information synchronization method, system and terminal equipment
CN110780944A (en) Application permission starting method and device and machine-readable storage medium
CN114760121B (en) Access frequency control method and access frequency control system
CN110602221A (en) Notification level processing method and device and readable storage medium
CN114422576B (en) Session cleaning method and device, computer equipment and readable storage medium
CN107682271B (en) Method and device for generating routing line
CN107872493B (en) Information processing method, terminal and server

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