WO2019037398A1 - 一种应用程序的下载管理方法、存储介质及智能设备 - Google Patents

一种应用程序的下载管理方法、存储介质及智能设备 Download PDF

Info

Publication number
WO2019037398A1
WO2019037398A1 PCT/CN2018/076104 CN2018076104W WO2019037398A1 WO 2019037398 A1 WO2019037398 A1 WO 2019037398A1 CN 2018076104 W CN2018076104 W CN 2018076104W WO 2019037398 A1 WO2019037398 A1 WO 2019037398A1
Authority
WO
WIPO (PCT)
Prior art keywords
download
application
thread pool
program
queue
Prior art date
Application number
PCT/CN2018/076104
Other languages
English (en)
French (fr)
Inventor
杨梅
Original Assignee
深圳创维-Rgb电子有限公司
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 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2019037398A1 publication Critical patent/WO2019037398A1/zh

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/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Definitions

  • the present invention relates to the field of application download management technologies, and in particular, to a download management method for an application, a storage medium, and a smart device.
  • the present invention aims to provide a download management method for an application, a storage medium, and a smart device, which are intended to solve the problem that the application resource downloading method on the existing smart device is complicated, time-consuming, and fault-tolerant. Poor sex, causing great inconvenience to users.
  • An application download management method comprising the steps of:
  • An application downloading program is installed on the smart device in advance, and a download queue and a thread pool are created inside the application downloading program, and multiple download modes are set in the thread pool;
  • the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the download management method of the application wherein the step pre-installs an application download program on the smart device, and creates a download queue and a thread pool inside the application download program, and further includes:
  • the application downloading program initializes a plurality of download modes in the thread pool.
  • the download management method of the application wherein the step application download program initializes a plurality of download modes in the thread pool, and further includes:
  • the application download program monitors all applications on the smart device after startup and waits to receive a download request from the application.
  • the download management method of the application wherein the step, when the application download program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, specifically include:
  • the download management method of the application wherein the step, when the application download program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, specifically include:
  • the download management method of the application wherein the step, when the application download program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, specifically include:
  • the application downloading program When the application downloading program receives multiple download requests of different applications, the multiple download requests are added to the download queue, and the multiple download requests are simultaneously downloaded through different download modes in the thread pool. H.
  • the download management method of the application wherein the step, when the application download program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, specifically include:
  • the download request is added to the download queue, and the downloading method with the fastest download speed in the thread pool is selected to download the corresponding resource.
  • the download management method of the application wherein the download mode comprises a CDN download and/or a P2P download.
  • the download management method of the application wherein the step, when the application download program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, and then include:
  • the application is notified to use the downloaded resource.
  • An application downloading program is installed on the smart device in advance, and a download queue and a thread pool are created inside the application downloading program, and multiple download modes are set in the thread pool;
  • the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the storage medium wherein a plurality of instructions are stored, the instructions being adapted to be loaded by a processor and executed specifically:
  • the storage medium wherein a plurality of instructions are stored, the instructions being adapted to be loaded by a processor and executed specifically:
  • the storage medium wherein a plurality of instructions are stored, the instructions being adapted to be loaded by a processor and executed specifically:
  • the application downloading program When the application downloading program receives multiple download requests of different applications, the multiple download requests are added to the download queue, and the multiple download requests are simultaneously downloaded through different download modes in the thread pool. H.
  • the storage medium wherein a plurality of instructions are stored, the instructions being adapted to be loaded by a processor and executed specifically:
  • the download request is added to the download queue, and the downloading method with the fastest download speed in the thread pool is selected to download the corresponding resource.
  • a smart device comprising a processor adapted to implement an instruction; and a memory adapted to store a plurality of instructions adapted to be loaded by the processor and to perform the steps of a download management method of any one of the above applications .
  • the present invention provides a download management method for an application, by installing an application download program on a smart device in advance, and creating a download queue and a thread pool inside the application download program, and the thread pool is provided with various types.
  • the download mode when the application downloader receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool.
  • the invention controls all application download tasks on the smart device through an application download program. When the download speed is slow, only the download mode of the application download program needs to be switched, and each application does not need to switch downloads.
  • the application download management method provided by the present invention is simpler and faster, and in the present invention, when the download mode fails, the application download program can be upgraded only, and it is not necessary to upgrade all the applications in the system.
  • FIG. 1 is a flow chart of a preferred embodiment of a download management method for an application according to the present invention
  • FIG. 2 is a structural block diagram of a preferred embodiment of a smart device according to the present invention.
  • the present invention provides a download management method for an application, a storage medium, and an intelligent device.
  • the present invention will be further described in detail below in order to make the objects, technical solutions, and effects of the present invention more clear and clear. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • FIG. 1 is a flowchart of a preferred embodiment of a download management method for an application according to the present invention. As shown in the figure, the method includes the following steps:
  • the application downloading program receives the download request of the application, the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • existing smart TVs, educational devices, and the like all have customized systems, and the customized systems are implemented by various applications when downloading resources; when the customized system needs to be replaced with a download mode, such as from a CDN.
  • a download mode such as from a CDN.
  • each application needs to be switched separately.
  • the online application can only be upgraded separately through each application.
  • the existing resource download method has the following disadvantages: when using the new download method, Each application needs to be docked to the new solution separately; when the old download mode fails, the application that has not been connected to the new download mode must be upgraded before it can be used; when switching the new download mode, each application needs to be independent. Switching, the consistency of the switch cannot be completely guaranteed; for the new download mode, each application needs to be docked again, and there is no guarantee that there will be no error in the docking process.
  • the present invention provides a download management method for an application, by installing an application download program on a smart device in advance, and creating a download queue and a thread pool inside the application download program, where the thread pool is set.
  • the application downloader receives the download request of the application, the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the invention controls all application download tasks on the smart device through an application download program. When the download speed is slow, only the download mode of the application download program needs to be switched, and each application does not need to switch downloads.
  • the method of the application download management method provided by the present invention is obviously simpler and faster, and in the present invention, when the download mode fails, the application download program can be upgraded only, and all the applications in the system need not be upgraded, thereby reducing The error rate at which each application interfaces with the new download method.
  • the step S10 is that an application downloading program is installed on the smart device in advance, and a download queue and a thread pool are created inside the application downloading program, and multiple download modes are set in the thread pool. Specifically, it also includes:
  • the application downloading program initializes multiple download modes in the thread pool.
  • an application downloading program is pre-installed on the smart device, and when the smart device is powered on, the application downloading program is started and the application downloading program is continuously running in the background; specifically, the application is The download program internally creates a download queue and a thread pool.
  • the thread pool is provided with multiple download modes, and the application download program initializes multiple download modes in the thread pool after startup. Further, the application download program monitors all applications on the smart device after startup, and waits to receive a download request from the application.
  • the download mode includes CDN downloading and/or P2P downloading, etc., but is not limited thereto.
  • step S20 of the present invention when the application downloading program receives the download request of the application, the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the application download program thread pool is configured with multiple download modes, and pre-orders multiple download modes in the application download program thread pool according to the download speed, and the application download program can receive a single application.
  • a download request of the program may also receive multiple download requests of multiple applications simultaneously; when the application download program receives a download request of a single application, the single download request is added to the download queue and selected The fastest download method in the thread pool downloads the corresponding resources, which ensures that the resources are downloaded at the fastest speed, thus improving the download efficiency of the application.
  • the multiple download requests are added to the download queue and simultaneously downloaded through different download modes in the thread.
  • Resources corresponding to the plurality of download requests For example, when the CDN and P2P download modes are set in the thread pool at the same time, and the application download program receives the download requests of APP1 and APP2 at the same time, the CDN and P2P download modes can be simultaneously used for APP1 and APP2 respectively. Download resources to improve download efficiency.
  • step S20 when the application downloading program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, specifically include:
  • the download speed of the current download mode in the thread pool is slow, only another download mode of the application download program needs to be switched, and each application does not need to switch to another application.
  • the download mode provided by the present invention is fast and simple, and can ensure the consistency of the switching, and the invention does not need to go to another application after the application download program switches to another download mode.
  • the download mode is docked, thereby reducing the docking error rate.
  • the step S20 when the application downloading program receives the download request of the application, adds the download request to the download queue and downloads the corresponding resource through the thread pool, and specifically includes:
  • step S20 when the application downloading program receives the download request of the application, the download request is added to the download queue and the corresponding resource is downloaded through the thread pool, and then includes:
  • the download management method of the application program provided by the present invention is mainly applied to a smart device such as a television or an educational machine with a customized system, and the download task is uniformly managed by the application download program, and the download management provided by the present invention is provided.
  • the method can achieve the effect of fast switching, and when there is a problem in the download mode, the above problem can be solved by switching the download method of the application download program or upgrading the application download program.
  • the present invention also provides a storage medium in which a plurality of instructions are stored, the instructions being adapted to be loaded by a processor and to perform the steps of the download management method of the one application.
  • the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor and executed specifically:
  • An application downloading program is installed on the smart device in advance, and a download queue and a thread pool are created inside the application downloading program, and multiple download modes are set in the thread pool;
  • the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the present invention further provides a smart device, wherein, as shown in FIG. 2, the method includes:
  • processor 10 adapted to implement each instruction
  • the memory 20 is adapted to store a plurality of instructions adapted to be loaded by the processor 10 and to perform the steps of the download management method of the one of the applications.
  • the present invention provides a download management method for an application, by installing an application download program on a smart device in advance, and creating a download queue and a thread pool inside the application download program, where the thread pool is set.
  • the application downloader receives the download request of the application, the download request is added to the download queue and the corresponding resource is downloaded through the thread pool.
  • the invention controls all application download tasks on the smart device through an application download program. When the download speed is slow, only the download mode of the application download program needs to be switched, and each application does not need to switch downloads.
  • the application download management method provided by the present invention is simpler and faster, and in the present invention, when the download mode fails, the application download program can be upgraded only, and it is not necessary to upgrade all the applications in the system.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

本发明提供一种应用程序的下载管理方法、存储介质及智能设备,所述方法包括步骤:预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式,当应用下载程序接收到应用程序的下载请求时,则将下载请求添加到下载队列中并通过线程池下载相应的资源。本发明将智能设备上所有的应用程序下载任务通过一个应用下载程序来控制实现,当下载速度缓慢时,只需要切换应用下载程序的下载方式即可,并不需要每个应用程序都去切换下载方式,本发明提供的应用程序下载管理方法更加简便,快捷,并且本发明中,当下载方式出现故障时,可以单单只升级应用下载程序,并不需要升级系统中所有的应用程序。

Description

一种应用程序的下载管理方法、存储介质及智能设备 技术领域
本发明涉及应用程序下载管理技术领域,尤其涉及一种应用程序的下载管理方法、存储介质及智能设备。
背景技术
目前,各种智能设备上的应用程序(Application,APP)均是通过各自独立地从服务器上下载资源来完成资源的更新,这种下载方式没有经过统一管理,当下载的服务器出现问题时,则需要各个APP去升级修复问题或者各个APP自己切换下载方式,否则就会出现无法更新资源导致APP无法使用的问题。现有的应用程序资源下载方式复杂、耗时、且容错性较差,给用户带来极大的不便。
因此,现有技术还有待于改进和发展。
发明内容
鉴于上述现有技术的不足,本发明的目的在于提供一种应用程序的下载管理方法、存储介质及智能设备,旨在解决现有智能设备上的应用程序资源下载方式复杂、耗时、且容错性较差,给用户带来极大的不便的问题。
本发明的技术方案如下:
一种应用程序的下载管理方法,其中,包括步骤:
预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
所述的应用程序的下载管理方法,其中,所述步骤预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,还包括:
当智能设备开机时,启动并在后台运行所述应用下载程序;
所述应用下载程序对线程池中的多种下载方式进行初始化处理。
所述的应用程序的下载管理方法,其中,所述步骤应用下载程序对线程池中 的多种下载方式进行初始化处理,之后还包括:
所述应用下载程序在启动后对智能设备上的所有应用程序进行监控,并等待接收应用程序的下载请求。
所述的应用程序的下载管理方法,其中,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
当应用下载程序线程池中的当前下载方式下载速度较慢时,则切换另一种下载方式下载相应的应用程序资源。
所述的应用程序的下载管理方法,其中,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
当应用下载程序线程池中的当前下载方式发生故障时,则对所述应用下载程序进行升级。
所述的应用程序的下载管理方法,其中,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
当应用下载程序接收到不同应用程序的多个下载请求时,则将所述多个下载请求均添加到下载队列中,并通过线程池中不同的下载方式同时下载所述多个下载请求所对应的资源。
所述的应用程序的下载管理方法,其中,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
根据下载速度的快慢预先对应用下载程序线程池中的多种下载方式进行排序;
当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中,并选择线程池中下载速度最快的下载方式下载相应的资源。
所述的应用程序的下载管理方法,其中,所述下载方式包括CDN下载和/或P2P下载。
所述的应用程序的下载管理方法,其中,所述步骤当应用下载程序接收到应 用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,之后还包括:
当资源下载完成后,则通知应用程序使用下载完成的资源。
一种存储介质,其中,存储有多条指令,所述指令适于由处理器加载并执行:
预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
所述的存储介质,其中,存储有多条指令,所述指令适于由处理器加载并具体执行:
当应用下载程序线程池中的当前下载方式下载速度较慢时,则切换另一种下载方式下载相应的应用程序资源。
所述的存储介质,其中,存储有多条指令,所述指令适于由处理器加载并具体执行:
当应用下载程序线程池中的当前下载方式发生故障时,则对所述应用下载程序进行升级。
所述的存储介质,其中,存储有多条指令,所述指令适于由处理器加载并具体执行:
当应用下载程序接收到不同应用程序的多个下载请求时,则将所述多个下载请求均添加到下载队列中,并通过线程池中不同的下载方式同时下载所述多个下载请求所对应的资源。
所述的存储介质,其中,存储有多条指令,所述指令适于由处理器加载并具体执行:
根据下载速度的快慢预先对应用下载程序线程池中的多种下载方式进行排序;
当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中,并选择线程池中下载速度最快的下载方式下载相应的资源。
一种智能设备,其中,包括处理器,适于实现个指令;以及存储器,适于存储多条指令,所述指令适于由处理器加载并执行上述任意一种应用程序的下载管 理方法的步骤。
有益效果:本发明提供一种应用程序的下载管理方法,通过预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式,当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。本发明将智能设备上所有的应用程序下载任务通过一个应用下载程序来控制实现,当下载速度缓慢时,只需要切换应用下载程序的下载方式即可,并不需要每个应用程序都去切换下载方式,显然本发明提供的应用程序下载管理方法更加简便,快捷,并且本发明中,当下载方式出现故障时,可以单单只升级应用下载程序,并不需要升级系统中所有的应用程序。
附图说明
图1为本发明一种应用程序的下载管理方法较佳实施例的流程图;
图2为本发明一种智能设备较佳实施例的结构框图。
具体实施方式
本发明提供一种应用程序的下载管理方法、存储介质及智能设备,为使本发明的目的、技术方案及效果更加清楚、明确,以下对本发明进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
请参阅图1,图1为本发明一种应用程序的下载管理方法较佳实施例的流程图,如图所示,其中包括步骤:
S10、预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
S20、当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
具体来说,现有的智能电视、教育设备等机器均具有定制系统,所述定制系统在下载资源时,均是通过各个应用程序去实现的;当定制系统需要更换下载方式时,比如从CDN下载方式改成P2P下载方式,则需要各个应用程序各自去切换,对于在线的应用程序只能通过各个应用程序单独升级完成,现有的资源下载方法存在以下缺点:当使用新的下载方式时,则需要各个应用程序单独去对接新方案;当旧的下载方式出现故障时,没有对接过新下载方式的应用程序,必须全 部升级才能使用;当切换新的下载方式时,各个应用程序均需要独立切换,不能完全保证切换的一致性;对于新的下载方式,还需要各个应用程序对接一遍,不能保证在对接过程中不会出错。
为解决上述问题,本发明提供了一种应用程序的下载管理方法,通过预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式,当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。本发明将智能设备上所有的应用程序下载任务通过一个应用下载程序来控制实现,当下载速度缓慢时,只需要切换应用下载程序的下载方式即可,并不需要每个应用程序都去切换下载方式,显然本发明提供的应用程序下载管理方法更加简便,快捷,并且本发明中,当下载方式出现故障时,可以单单只升级应用下载程序,并不需要升级系统中所有的应用程序,从而降低了各个应用程序与新下载方式对接的错误率。
进一步地,在本发明中,所述步骤S10、预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式,具体还包括:
S11、当智能设备开机时,启动并在后台运行所述应用下载程序;
S12、所述应用下载程序对线程池中的多种下载方式进行初始化处理。
在本实施例中,所述智能设备上预先安装有应用下载程序,当智能设备开机时,则启动所述应用下载程序并使所述应用下载程序在后台持续运行;具体来说,所述应用下载程序内部创建有下载列队和线程池,所述线程池中设置有多种下载方式,所述应用下载程序在启动后便对线程池中的多种下载方式进行初始化处理。进一步地,所述应用下载程序在启动后对智能设备上的所有应用程序进行监控,并等待接收应用程序的下载请求。
较佳地,在本发明中,所述下载方式包括CDN下载和/或P2P下载等,但不限于此。
更进一步,在本发明所述步骤S20中,当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
具体来说,所述应用下载程序线程池中设置有多种下载方式,并且根据下载 速度的快慢预先对应用下载程序线程池中的多种下载方式进行排序,所述应用下载程序可接收单个应用程序的一个下载请求,也可以同时接收多个应用程序的多个下载请求;当应用下载程序接收到单个应用程序的一个下载请求时,则将所述单个下载请求添加到下载队列中,并选择线程池中下载速度最快的下载方式下载相应的资源,这样可保证资源以最快的速度下载完成,从而提升应用程序的下载效率
在一种较佳的实施例中,当应用下载程序接收到不同应用程序的多个下载请求时,则将所述多个下载请求添加到下载队列中,并通过线程中不同的下载方式同时下载所述多个下载请求所对应的资源。例如,当线程池中同时设置有CDN和P2P下载方式时,且应用下载程序同时收到APP1和APP2的下载请求时,则可同时使用所述CDN和P2P两种下载方式分别对APP1和APP2的资源进行下载,从而提升下载效率。
在另一种较佳地实施例中,所述步骤S20当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
S21、当应用下载程序线程池中的当前下载方式下载速度较慢时,则切换另一种下载方式下载相应的应用程序资源。
具体来说,在本发明中,当线程池中的当前下载方式下载速度较慢时,只需要切换应用下载程序的另一种下载方式即可,并不需要每个应用程序都去切换另一种下载方式,本发明提供的切换方式快速、简单,且能保证切换的一致性,并且本发明在应用下载程序切换至另一种下载方式之后,并不需要每个应用程序均去和另一种下载方式进行对接,从而能够降低对接失误率。
所述步骤S20当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
S22、当应用下载程序线程池中的当前下载方式发生故障时,则对所述应用下载程序进行升级。
具体来说,当线程池中的当前下载方式发生故障时,例如遇见Bug时,只需要对应用下载程序进行升级便可解决所述故障,并不需要升级智能设备中所有的使用下载的应用程序。
更进一步,所述步骤S20当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,之后还包括:
S30、当资源下载完成后,则通知应用程序使用下载完成的资源。
具体来说,本发明提供的应用程序的下载管理方法主要应用于具有定制系统的电视或教育机等智能设备,通过应用下载程序对系统各种的下载任务进行统一管理,本发明提供的下载管理方法能够达到快速切换的效果,并且当下载方式出现问题时,通过切换应用下载程序的下载方式或者对应用下载程序进行升级便可解决上述问题。
基于上述方法,本发明还提供一种存储介质,其中,存储有多条指令,所述指令适于由处理器加载并执行所述一种应用程序的下载管理方法的步骤。
具体地,所述存储介质存储有多条指令,所述指令适于由处理器加载并具体执行:
预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
基于上述一种应用程序的下载管理方法的实施例,本发明还提供一种智能设备,其中,如图2所示,包括:
处理器10,适于实现各指令;以及
存储器20,适于存储多条指令,所述指令适于由处理器10加载并执行所述一种应用程序的下载管理方法的步骤。
综上所述,本发明提供的一种应用程序的下载管理方法,通过预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式,当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。本发明将智能设备上所有的应用程序下载任务通过一个应用下载程序来控制实现,当下载速度缓慢时,只需要切换应用下载程序的下载方式即可,并不需要每个应用程序都去切换下载方式,显然本发明提供的应用程序下载管理方法更加简便,快捷,并且本发明中,当下载方式出现故障时,可以单单只升级应用下载程序,并不需要 升级系统中所有的应用程序。
应当理解的是,本发明的应用不限于上述的举例,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,所有这些改进和变换都应属于本发明所附权利要求的保护范围。

Claims (15)

  1. 一种应用程序的下载管理方法,其特征在于,包括步骤:
    预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
    当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
  2. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,还包括:
    当智能设备开机时,启动并在后台运行所述应用下载程序;
    所述应用下载程序对线程池中的多种下载方式进行初始化处理。
  3. 根据权利要求2所述的应用程序的下载管理方法,其特征在于,所述步骤应用下载程序对线程池中的多种下载方式进行初始化处理,之后还包括:
    所述应用下载程序在启动后对智能设备上的所有应用程序进行监控,并等待接收应用程序的下载请求。
  4. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
    当应用下载程序线程池中的当前下载方式下载速度较慢时,则切换另一种下载方式下载相应的应用程序资源。
  5. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
    当应用下载程序线程池中的当前下载方式发生故障时,则对所述应用下载程序进行升级。
  6. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
    当应用下载程序接收到不同应用程序的多个下载请求时,则将所述多个下载请求均添加到下载队列中,并通过线程池中不同的下载方式同时下载所述多个下 载请求所对应的资源。
  7. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,具体还包括:
    根据下载速度的快慢预先对应用下载程序线程池中的多种下载方式进行排序;
    当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中,并选择线程池中下载速度最快的下载方式下载相应的资源。
  8. 根据权利要求1所述的应用程序的下载管理方法,其特征在于,所述步骤当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源,之后还包括:
    当资源下载完成后,则通知应用程序使用下载完成的资源。
  9. 根据权利要求1-8任一所述的应用程序的下载管理方法,其特征在于,所述下载方式包括CDN下载和/或P2P下载。
  10. 一种存储介质,其特征在于,存储有多条指令,所述指令适于由处理器加载并执行:
    预先在智能设备上安装应用下载程序,并在所述应用下载程序内部创建下载队列和线程池,所述线程池中设置有多种下载方式;
    当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中并通过线程池下载相应的资源。
  11. 根据权利要求10所述的存储介质,其特征在于,存储有多条指令,所述指令适于由处理器加载并具体执行:
    当应用下载程序线程池中的当前下载方式下载速度较慢时,则切换另一种下载方式下载相应的应用程序资源。
  12. 根据权利要求10所述的存储介质,其特征在于,存储有多条指令,所述指令适于由处理器加载并具体执行:
    当应用下载程序线程池中的当前下载方式发生故障时,则对所述应用下载程序进行升级。
  13. 根据权利要求10所述的存储介质,其特征在于,存储有多条指令,所 述指令适于由处理器加载并具体执行:
    当应用下载程序接收到不同应用程序的多个下载请求时,则将所述多个下载请求均添加到下载队列中,并通过线程池中不同的下载方式同时下载所述多个下载请求所对应的资源。
  14. 根据权利要求10所述的存储介质,其特征在于,存储有多条指令,所述指令适于由处理器加载并具体执行:
    根据下载速度的快慢预先对应用下载程序线程池中的多种下载方式进行排序;
    当应用下载程序接收到应用程序的下载请求时,则将所述下载请求添加到下载队列中,并选择线程池中下载速度最快的下载方式下载相应的资源。
  15. 一种智能设备,其特征在于,包括处理器,适于实现个指令;以及存储器,适于存储多条指令,所述指令适于由处理器加载并执行上述权利要求1-9任意一种应用程序的下载管理方法的步骤。
PCT/CN2018/076104 2017-08-21 2018-02-10 一种应用程序的下载管理方法、存储介质及智能设备 WO2019037398A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710719729.8A CN107493337A (zh) 2017-08-21 2017-08-21 一种应用程序的下载管理方法、存储介质及智能设备
CN201710719729.8 2017-08-21

Publications (1)

Publication Number Publication Date
WO2019037398A1 true WO2019037398A1 (zh) 2019-02-28

Family

ID=60645774

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076104 WO2019037398A1 (zh) 2017-08-21 2018-02-10 一种应用程序的下载管理方法、存储介质及智能设备

Country Status (2)

Country Link
CN (1) CN107493337A (zh)
WO (1) WO2019037398A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352633A (zh) * 2020-02-24 2020-06-30 腾讯科技(深圳)有限公司 应用程序的资源下载方法、装置、终端及存储介质

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107493337A (zh) * 2017-08-21 2017-12-19 深圳创维-Rgb电子有限公司 一种应用程序的下载管理方法、存储介质及智能设备

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791102A (zh) * 2003-12-18 2006-06-21 腾讯科技(深圳)有限公司 网络下载工具
CN101141459A (zh) * 2007-10-25 2008-03-12 南京远古科技有限公司 使用http与p2p相结合实现数据传输或流媒体传输的方法
CN102355486A (zh) * 2011-08-11 2012-02-15 深圳市迅雷网络技术有限公司 一种下载数据的方法及装置
CN102724326A (zh) * 2012-07-02 2012-10-10 湖南赛格导航技术研究有限公司 一种wince下各应用程序使用统一下载接口的方法
US20130339485A1 (en) * 2012-06-13 2013-12-19 Motorola Mobility, Inc. Multi-Threaded Asynchronous Download of a Set of Script files Used in a Web Application
CN103888512A (zh) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 一种资源下载的方法与装置
CN104881307A (zh) * 2015-05-15 2015-09-02 广东小天才科技有限公司 下载实现方法和装置
CN106790525A (zh) * 2016-12-20 2017-05-31 广东小天才科技有限公司 一种文件下载方法及装置
CN107493337A (zh) * 2017-08-21 2017-12-19 深圳创维-Rgb电子有限公司 一种应用程序的下载管理方法、存储介质及智能设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8321858B1 (en) * 2003-12-31 2012-11-27 Google Inc. Systems and methods for providing software updates
CN106953898B (zh) * 2017-02-28 2020-11-13 腾讯科技(深圳)有限公司 一种获取软件包的方法和装置

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1791102A (zh) * 2003-12-18 2006-06-21 腾讯科技(深圳)有限公司 网络下载工具
CN101141459A (zh) * 2007-10-25 2008-03-12 南京远古科技有限公司 使用http与p2p相结合实现数据传输或流媒体传输的方法
CN102355486A (zh) * 2011-08-11 2012-02-15 深圳市迅雷网络技术有限公司 一种下载数据的方法及装置
US20130339485A1 (en) * 2012-06-13 2013-12-19 Motorola Mobility, Inc. Multi-Threaded Asynchronous Download of a Set of Script files Used in a Web Application
CN102724326A (zh) * 2012-07-02 2012-10-10 湖南赛格导航技术研究有限公司 一种wince下各应用程序使用统一下载接口的方法
CN103888512A (zh) * 2014-02-20 2014-06-25 上海聚力传媒技术有限公司 一种资源下载的方法与装置
CN104881307A (zh) * 2015-05-15 2015-09-02 广东小天才科技有限公司 下载实现方法和装置
CN106790525A (zh) * 2016-12-20 2017-05-31 广东小天才科技有限公司 一种文件下载方法及装置
CN107493337A (zh) * 2017-08-21 2017-12-19 深圳创维-Rgb电子有限公司 一种应用程序的下载管理方法、存储介质及智能设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352633A (zh) * 2020-02-24 2020-06-30 腾讯科技(深圳)有限公司 应用程序的资源下载方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN107493337A (zh) 2017-12-19

Similar Documents

Publication Publication Date Title
US10592290B2 (en) Accelerating and maintaining large-scale cloud deployment
US9819538B2 (en) Maintaining resource availability during maintenance operations
US9998467B2 (en) Application publishing using memory state sharing
US10891122B2 (en) Rolling upgrade of a distributed application
US10230786B2 (en) Hot deployment in a distributed cluster system
CN108089913B (zh) 一种超融合系统的虚拟机部署方法
US8484653B2 (en) Mechanism for delayed hardware upgrades in virtualization systems
US11663025B2 (en) Maintenance of and caching of suspended virtual computers in a pool of suspended virtual computers
US11301280B2 (en) System and method for managing a monitoring agent in an operating system of a virtual computing instance
US20100306337A1 (en) Systems and methods for cloning target machines in a software provisioning environment
US20090193407A1 (en) Methods and Systems for Automatic Patch Creation for Client Updates
US20150193481A1 (en) Installation and Update of Cartridges in a Multi-Tenant Platform-as-a-Service (PaaS) System
JP2002297411A (ja) 実行中アプリケーションソフトのモジュール化方式による更新システムおよびその方法
JP2015520468A (ja) クライアント・インタフェースを実行中のハンドシェークによる自動アップデート
US11477080B2 (en) Upgrade a version of a service
WO2019037398A1 (zh) 一种应用程序的下载管理方法、存储介质及智能设备
US9411604B2 (en) Booting a computing device to have a predefined functionality
CN110119279B (zh) 一种应用及其升级的方法和装置
US20150019698A1 (en) Non-invasive upgrades of server components in cloud deployments
US20220137997A1 (en) Platform update using self-installing containerized microservice
CN116107695A (zh) 一种虚拟机迁移方法、装置、设备及介质
US20140189076A1 (en) Configuration of computer systems via simple object access protocol connections

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18847803

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18847803

Country of ref document: EP

Kind code of ref document: A1