CN112860270A - Heterogeneous deployment method and device of application, storage medium and electronic equipment - Google Patents

Heterogeneous deployment method and device of application, storage medium and electronic equipment Download PDF

Info

Publication number
CN112860270A
CN112860270A CN202110133412.2A CN202110133412A CN112860270A CN 112860270 A CN112860270 A CN 112860270A CN 202110133412 A CN202110133412 A CN 202110133412A CN 112860270 A CN112860270 A CN 112860270A
Authority
CN
China
Prior art keywords
application
deployed
packet
package
target platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110133412.2A
Other languages
Chinese (zh)
Other versions
CN112860270B (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.)
Shenzhen Biocome Security Technology Co ltd
Original Assignee
Shenzhen Biocome Security Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Biocome Security Technology Co ltd filed Critical Shenzhen Biocome Security Technology Co ltd
Priority to CN202110133412.2A priority Critical patent/CN112860270B/en
Publication of CN112860270A publication Critical patent/CN112860270A/en
Application granted granted Critical
Publication of CN112860270B publication Critical patent/CN112860270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种应用的异构部署方法、装置、存储介质及电子设备。该应用的异构部署方法采用获取目标平台的环境信息;确定待部署应用是否存在与所述环境信息对应的第一封包;若存在,则提取所述第一封包,并确定所述第一封包中的数据信息是否完整;若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案可以提高应用的异构部署效率。

Figure 202110133412

The present application discloses a heterogeneous deployment method, apparatus, storage medium and electronic device of an application. The heterogeneous deployment method of the application adopts obtaining the environment information of the target platform; determining whether the application to be deployed has a first package corresponding to the environment information; if so, extracting the first package and determining the first package Whether the data information in is complete; if complete, deploy the application to be deployed on the target platform based on the first packet. This solution can improve the efficiency of heterogeneous deployment of applications.

Figure 202110133412

Description

应用的异构部署方法、装置、存储介质及电子设备Application heterogeneous deployment method, device, storage medium and electronic device

技术领域technical field

本申请实施例涉及计算机技术领域,具体涉及一种应用的异构部署方法、装置、存储介质及电子设备。The embodiments of the present application relate to the field of computer technologies, and in particular, to a method, apparatus, storage medium, and electronic device for heterogeneous deployment of applications.

背景技术Background technique

随着计算机技术的发展,操作系统和处理器的种类层出不穷,形成了多种平台。With the development of computer technology, the types of operating systems and processors emerge in an endless stream, forming a variety of platforms.

由于平台之间操作系统和/或处理器的差异,同一应用在异构平台进行部署时,需要人工对当前平台的操作系统和/或处理器进行检验,判断人工对操作系统和/或处理器是否与应用兼容。当操作系统和/或处理器与应用不兼容时,通常需要对操作系统和/或处理器进行更换,以使应用与操作系统和/或处理器兼容。然而,该方案不仅会导致应用的异构部署效率低而增加时间成本,还会造成人力资源的浪费。Due to differences in operating systems and/or processors between platforms, when the same application is deployed on heterogeneous platforms, it is necessary to manually check the operating system and/or processor of the current platform, and determine whether the operating system and/or processor are manually Is it compatible with the application. When the operating system and/or processor is not compatible with the application, it is usually necessary to replace the operating system and/or processor to make the application compatible with the operating system and/or processor. However, this solution will not only lead to low efficiency of heterogeneous deployment of applications and increase time costs, but also cause waste of human resources.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种应用的异构部署方法、装置、存储介质及电子设备,可以提高应用的异构部署效率。Embodiments of the present application provide a method, apparatus, storage medium, and electronic device for heterogeneous deployment of applications, which can improve the efficiency of heterogeneous deployment of applications.

第一方面,本申请实施例提供了一种应用的异构部署方法,包括:In a first aspect, an embodiment of the present application provides a heterogeneous deployment method for applications, including:

获取目标平台的环境信息;Obtain the environment information of the target platform;

确定待部署应用是否存在与所述环境信息对应的第一封包;determining whether the application to be deployed has a first packet corresponding to the environment information;

若存在,则确定所述第一封包中的数据信息是否完整;If it exists, then determine whether the data information in the first packet is complete;

若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。If it is complete, the application to be deployed is deployed on the target platform based on the first packet.

在本申请实施例提供的应用的部署方法中,所述应用的部署方法还包括:In the application deployment method provided by the embodiment of the present application, the application deployment method further includes:

若不存在,则根据所述环境信息对所述待部署应用进行转换处理,得到所述第一封包;If it does not exist, converting the application to be deployed according to the environment information to obtain the first packet;

返回执行所述确定所述第一封包中的数据信息是否完整的步骤。Return to the step of determining whether the data information in the first packet is complete.

在本申请实施例提供的应用的部署方法中,所述应用的部署方法还包括:In the application deployment method provided by the embodiment of the present application, the application deployment method further includes:

若不完整,则对所述第一封包进行补全处理,得到第二封包;If it is not complete, the first packet is complemented to obtain a second packet;

基于所述第二封包在所述目标平台对所述待部署应用进行部署。The application to be deployed is deployed on the target platform based on the second packet.

在本申请实施例提供的应用的部署方法中,在所述基于所述第一封包在所述目标平台对所述待部署应用进行部署或基于所述第二封包在所述目标平台对所述待部署应用进行部署之后,还包括:In the application deployment method provided by the embodiment of the present application, in the deployment of the application to be deployed on the target platform based on the first packet or the deployment of the application on the target platform based on the second packet After the application to be deployed is deployed, it also includes:

确定所述待部署应用是否部署成功;determining whether the application to be deployed is successfully deployed;

若部署失败,则对所述第一封包或所述第二封包进行修复处理;If the deployment fails, repair the first packet or the second packet;

确定所述第一封包或所述第二封包是否修复成功;determining whether the first packet or the second packet is successfully repaired;

若修复成功,则基于修复后的所述第一封包或所述第二封包在所述标平台对所述待部署应用进行部署。If the repair is successful, the application to be deployed is deployed on the target platform based on the repaired first packet or the second packet.

在本申请实施例提供的应用的部署方法中,所述应用的部署方法还包括:In the application deployment method provided by the embodiment of the present application, the application deployment method further includes:

若未修复成功,则根据所述环境信息对所述待部署应用进行转换处理,得到第三封包;If the repair is not successful, converting the application to be deployed according to the environment information to obtain a third packet;

提取所述第三封包,并基于所述第三封包在所述目标平台对所述待部署应用进行部署。The third package is extracted, and the application to be deployed is deployed on the target platform based on the third package.

在本申请实施例提供的应用的部署方法中,在根据所述环境信息对所述待部署应用进行转换处理之前,还包括:In the application deployment method provided by the embodiment of the present application, before performing conversion processing on the to-be-deployed application according to the environment information, the method further includes:

基于所述环境信息确定所述待部署应用是否支持在所述目标平台进行部署;Determine whether the application to be deployed supports deployment on the target platform based on the environment information;

若不支持,则对所述环境信息和所述待部署应用进行兼容处理。If it is not supported, the environment information and the to-be-deployed application are subjected to compatibility processing.

在本申请实施例提供的应用的部署方法中,在所述获取目标平台的环境信息之前,还包括:In the application deployment method provided by the embodiment of the present application, before the obtaining of the environment information of the target platform, the method further includes:

对所述待部署应用进行预转换,得到所述待部署应用的多个封包。The application to be deployed is pre-converted to obtain multiple packages of the application to be deployed.

第二方面,本申请实施例提供一种应用的异构部署装置,包括:In a second aspect, an embodiment of the present application provides an apparatus for heterogeneous deployment of applications, including:

环境获取单元,用于获取目标平台的环境信息;an environment obtaining unit, used to obtain the environment information of the target platform;

第一确定单元,用于确定待部署应用是否存在与所述环境信息对应的第一封包;a first determining unit, configured to determine whether there is a first packet corresponding to the environment information in the application to be deployed;

第二确定单元,用于在所述待部署应用存在与所述环境信息对应的第一封包时,确定所述第一封包中的数据信息是否完整;a second determining unit, configured to determine whether the data information in the first packet is complete when the application to be deployed has a first packet corresponding to the environment information;

应用部署单元,用于在所述第一封包中的数据信息完整时,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。An application deployment unit, configured to deploy the application to be deployed on the target platform based on the first packet when the data information in the first packet is complete.

第三方面,本申请实施例提供了一种存储介质,所述存储介质存储有多条指令,所述指令适于处理器进行加载,以执行上述实施例所述的方法。In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to execute the method described in the foregoing embodiments.

第四方面,本申请实施例提供了一种电子设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如上述实施例所述的方法。In a fourth aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the following when executing the computer program. methods described in the above embodiments.

本申请实施例提供的应用的异构部署方法采用获取目标平台的环境信息;确定待部署应用是否存在与所述环境信息对应的第一封包;若存在,则提取所述第一封包,并确定所述第一封包中的数据信息是否完整;若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案可以提高应用的异构部署效率。The heterogeneous deployment method of the application provided by the embodiment of the present application adopts the method of obtaining the environment information of the target platform; determining whether the application to be deployed has a first package corresponding to the environment information; if so, extracting the first package, and determining Whether the data information in the first package is complete; if complete, the application to be deployed is deployed on the target platform based on the first package. This solution can improve the heterogeneous deployment efficiency of applications.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1是本申请实施例提供的应用的异构部署方法的流程示意图。FIG. 1 is a schematic flowchart of a method for heterogeneous deployment of applications provided by an embodiment of the present application.

图2是本申请实施例提供的应用的异构部署装置的结构示意图。FIG. 2 is a schematic structural diagram of an apparatus for heterogeneous deployment of applications provided by an embodiment of the present application.

图3是本申请实施例提供的服务器的结构示意图。FIG. 3 is a schematic structural diagram of a server provided by an embodiment of the present application.

图4是本申请实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

本申请中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first" and "second" and the like in this application are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or modules is not limited to the listed steps or modules, but optionally also includes unlisted steps or modules, or optionally also includes Other steps or modules inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本申请实施例提供一种应用的异构部署方法、系统、存储介质及电子设备。需要说明的是,本申请实施例提供的应用的异构部署可以集成在应用的异构部署装置中,该应用的异构部署装置具体可以集成在电子设备中,该电子设备包括但不限于计算机、手机、平板电脑等设备。Embodiments of the present application provide a heterogeneous deployment method, system, storage medium, and electronic device for applications. It should be noted that the heterogeneous deployment of applications provided by the embodiments of the present application may be integrated in a heterogeneous deployment device of applications, and the heterogeneous deployment device of applications may specifically be integrated in electronic equipment, and the electronic equipment includes but is not limited to a computer , mobile phones, tablets and other devices.

以下将分别进行详细说明,以下各个实施例的描述先后顺序并不构成对具体实施先后顺序的限定。Detailed descriptions will be given below, and the order of description of each embodiment below does not constitute a limitation on the order of specific implementation.

请参照图1,图1是本申请的应用的异构部署方法的流程示意图。该应用的异构部署方法的具体流程可以如下:Please refer to FIG. 1 , which is a schematic flowchart of a heterogeneous deployment method of an application of the present application. The specific process of the heterogeneous deployment method of the application may be as follows:

101、获取目标平台的环境信息。101. Obtain environmental information of the target platform.

其中,环境信息可以包括操作系统和/或处理器。The environment information may include an operating system and/or a processor.

可以理解的是,不同的平台通常具有不同的操作系统和/或处理器。比如,iPhone的操作系统是IOS,华为的操作系统是Android。并且,同一操作系统具有多个版本。比如,IOS系统具有12.0、13.0和14.0等版本。处理器也具有多种,比如,奔腾、赛扬、酷睿、至强等。It will be appreciated that different platforms typically have different operating systems and/or processors. For example, iPhone's operating system is IOS, and Huawei's operating system is Android. And, there are multiple versions of the same operating system. For example, the IOS system has versions 12.0, 13.0, and 14.0. There are also a variety of processors, such as Pentium, Celeron, Core, Xeon and so on.

102、确定待部署应用是否存在与所述环境信息对应的第一封包。102. Determine whether there is a first packet corresponding to the environment information in the application to be deployed.

需要说明的是,不同的操作系统所支持的应用格式也不同。不同的处理器所支持的应用格式和/或版本也可能不同。比如,某两个平台具有相同的操作系统和相同的处理器,现有某应用12.0版本的封包。第一平台支持该应用的版本号为11.0以下,第二平台支持该应用的版本号为13.0以下。当需要在这两个平台均部署该应用时,第一平台不支持该应用的部署,而第二平台支持该应用的部署。可以理解的是,待部署应用的每一个版本均具有相应的版本号。It should be noted that the application formats supported by different operating systems are also different. The application formats and/or versions supported by different processors may also vary. For example, two platforms have the same operating system and the same processor, and there is a package of version 12.0 of an application. The version number of the application supported by the first platform is below 11.0, and the version number of the application supported by the second platform is below 13.0. When the application needs to be deployed on both platforms, the first platform does not support the deployment of the application, while the second platform supports the deployment of the application. It can be understood that each version of the application to be deployed has a corresponding version number.

具体的,可以先基于大数据获取该环境信息所对应的待部署应用的格式和/或版本号,然后将该环境信息所对应的待部署应用的格式和/或版本号与超转平台中存储的待部署应用的多个封包进行匹配,从而确定待部署应用在超转平台中是否存在与所述环境信息对应的第一封包。Specifically, the format and/or version number of the to-be-deployed application corresponding to the environmental information can be obtained first based on big data, and then the format and/or version number of the to-be-deployed application corresponding to the environmental information is stored in the hypertransformation platform The multiple packages of the to-be-deployed application are matched, so as to determine whether the to-be-deployed application has a first package corresponding to the environment information in the hyperrotation platform.

可以理解的是,封包具有格式和/或版本号。将该环境信息所对应的待部署应用的格式和/或版本号与超转平台中存储的待部署应用的多个封包进行匹配,即为将该环境信息所对应的待部署应用的格式和/或版本号与超转平台中存储的待部署应用的多个封包的格式和/或版本号进行一一比对。As can be appreciated, the packets have formats and/or version numbers. Matching the format and/or version number of the application to be deployed corresponding to the environmental information with multiple packages of the application to be deployed stored in the hypertransform platform, that is, the format and/or the format of the application to be deployed corresponding to the environmental information Or the version number is compared one-to-one with the format and/or version number of the multiple packages of the application to be deployed stored in the hypertransfer platform.

由上,在步骤“获取目标平台的环境信息”之前,还可以包括:From the above, before the step "obtaining the environment information of the target platform", it may also include:

对待部署应用进行预转换,得到该待部署应用的多个封包。Pre-conversion is performed on the application to be deployed to obtain multiple packages of the application to be deployed.

具体的,可以先基于大数据获取该待部署应用具有的格式和/或版本,然后基于该格式和/或版本对待部署应用进行预转换,从而得到该待部署应用的多个封包。Specifically, the format and/or version of the application to be deployed may be obtained based on the big data, and then the application to be deployed may be pre-converted based on the format and/or version, thereby obtaining multiple packages of the application to be deployed.

比如,待部署应用具有IOS格式的1.0版本和2.0版本。具有Android格式的1.0版本和2.0版本。此时,可以基于格式和版本对该待部署应用进行转换处理,从而得到待部署应用IOS格式的1.0版本封包和2.0版本封包,以及Android格式的1.0版本封包和2.0版本封包。For example, the application to be deployed has versions 1.0 and 2.0 in IOS format. Has version 1.0 and 2.0 in Android format. At this time, the application to be deployed can be converted based on the format and version, so as to obtain the version 1.0 package and the version 2.0 package of the application to be deployed in IOS format, and the version 1.0 package and the version 2.0 package in Android format.

需要说明的是,对待部署应用进行预转换时,可以根据实际情况进行实施。比如,为了节省存储空间,可以基于大数据获取该待部署应用使用率较高的格式和/或版本,然后基于该格式和/或版本对待部署应用进行预转换,从而得到该待部署应用的多个封包。It should be noted that when the application to be deployed is pre-converted, it can be implemented according to the actual situation. For example, in order to save storage space, a format and/or version with a high usage rate of the application to be deployed can be obtained based on big data, and then pre-converted based on the format and/or version of the application to be deployed, so as to obtain a large number of the application to be deployed. packets.

需要说明是的,使用率较高可以指的是使用率在使用率排行榜预设位置之前。对待部署应用进行预转换具体可以在超转平台中进行。It should be noted that, a higher usage rate may mean that the usage rate is before the preset position of the usage rate ranking. The pre-conversion of the application to be deployed can be specifically performed in the hyper-transformation platform.

比如,可以基于大数据获取该待部署应用使用率排行前五的格式和/或版本,然后基于使用率排行榜前五的格式和/或版本对待部署应用进行预转换,从而得到该待部署应用的五个封包。For example, the top five formats and/or versions of the application to be deployed may be obtained based on big data, and then the application to be deployed may be pre-converted based on the top five formats and/or versions of the usage to be deployed, so as to obtain the application to be deployed of five packets.

在一些实施例中,在步骤“对待部署应用进行预转换,得到该待部署应用的多个封包”之前,还可以包括:In some embodiments, before the step of "pre-converting the application to be deployed to obtain multiple packages of the application to be deployed", it may further include:

对待部署应用进行注册。Register the application to be deployed.

可以理解的是,待部署应用具有应用名称、编号、格式和/或版本等信息。It can be understood that the application to be deployed has information such as application name, number, format and/or version.

在一些实施例中,步骤“基于大数据获取该待部署应用具有的格式和/或版本”可以在对待部署应用进行注册的过程中进行实施。可以理解的是,对待部署应用进行注册也可以在超转平台中进行。In some embodiments, the step of "acquiring the format and/or version of the application to be deployed based on big data" may be implemented in the process of registering the application to be deployed. It can be understood that the registration of the application to be deployed can also be performed in the hypertransformation platform.

103、若存在,则确定所述第一封包中的数据信息是否完整。103. If there is, determine whether the data information in the first packet is complete.

具体的,当确定超转平台中存储的待部署应用存在与环境信息对应的第一封包时,可以从超转平台中提取该第一封包,然后再确定该第一封包中的数据信息是否完整。Specifically, when it is determined that there is a first packet corresponding to the environment information in the application to be deployed stored in the hyperrotation platform, the first packet can be extracted from the hyperrotation platform, and then it is determined whether the data information in the first packet is complete .

可以理解的是,由于待部署应用的第一封包存储于超转平台。因此,当需要对该待部署应用进行部署时,需要从超转平台中提取该第一封包。而在从转平台中提取该第一封包的过程中,有可能由于网络或操作等问题导致第一封包中的数据信息丢失。It can be understood that, because the first packet of the application to be deployed is stored in the hyperrotation platform. Therefore, when the application to be deployed needs to be deployed, the first packet needs to be extracted from the hypertranslation platform. In the process of extracting the first packet from the transfer platform, data information in the first packet may be lost due to network or operation problems.

在一些实施例中,第一封包具有验证密钥,可以通过该验证密钥确定第一封包中的数据信息是否完整。In some embodiments, the first packet has a verification key, and it can be determined by the verification key whether the data information in the first packet is complete.

在一些实施例中,当确定超转平台中存储的待部署应用不存在与环境信息对应的第一封包时,根据环境信息对所述待部署应用进行转换处理,得到第一封包。然后执行确定第一封包中的数据信息是否完整的步骤。In some embodiments, when it is determined that the application to be deployed stored in the hypertransformation platform does not have a first package corresponding to the environment information, the application to be deployed is converted according to the environment information to obtain the first package. Then, the step of determining whether the data information in the first packet is complete is performed.

具体的,可以发送一携带该环境信息的提示信息至超转平台,以使超转平台可以根据该环境信息对待部署应用进行转换处理,从而得到第一封包。然后,返回执行确定所述第一封包中的数据信息是否完整的步骤。Specifically, a prompt message carrying the environmental information may be sent to the hyper-rotation platform, so that the hyper-rotation platform can convert the application to be deployed according to the environmental information, thereby obtaining the first packet. Then, return to the step of determining whether the data information in the first packet is complete.

在一些实施例中,当确定超转平台中存储的待部署应用不存在与环境信息对应的第一封包时,可以先基于该环境信息确定待部署应用是否支持在目标平台进行部署。若支持,则可以根据该环境信息对待部署应用进行转换处理。若不支持,则可以对环境信息和待部署应用进行兼容处理。In some embodiments, when it is determined that the application to be deployed stored in the hypertransformation platform does not have a first package corresponding to the environment information, it may be first determined whether the application to be deployed supports deployment on the target platform based on the environment information. If supported, the application to be deployed can be converted according to the environment information. If it is not supported, the environment information and the application to be deployed can be processed in a compatible manner.

其中,兼容处理的具体过程为公知常识,在此不再一一赘述。The specific process of the compatibility processing is common knowledge, and details are not repeated here.

104、若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。104. If complete, deploy the application to be deployed on the target platform based on the first packet.

可以理解的是,当确定第一封包中的数据信息完整时,可以直接在目标平台对待部署应用进行部署。It can be understood that, when it is determined that the data information in the first packet is complete, the application to be deployed can be directly deployed on the target platform.

在一些实施例中,当确定第一封包中的数据信息不完整时,可以对该第一封包进行补全处理,得到第二封包。可以理解的是,对第一封包进行补全处理即为对第一封包中的数据信息进行补全。In some embodiments, when it is determined that the data information in the first packet is incomplete, the first packet may be complemented to obtain the second packet. It can be understood that the completion of the first packet is to complete the data information in the first packet.

在一些实施例中,第一封包可以具有预设补全规则和/或补全密钥,当确定第一封包中的数据信息不完整时,可以根据该预设补全规则和/或补全密钥对该第一封包进行补全处理,从而得到第二封包。然后可以基于该第二封包在目标平台对待部署应用进行部署。In some embodiments, the first packet may have a preset completion rule and/or a completion key, and when it is determined that the data information in the first packet is incomplete, it may be completed according to the preset completion rule and/or completion key. The key is used to complete the first packet to obtain the second packet. Then, the application to be deployed may be deployed on the target platform based on the second package.

需要说明的是,在从超转平台提取第一封包的过程中,不仅可能存在数据信息丢失的情况,还可能存在数据信息损伤的情况。因此,在具体实施过程中,存在数据信息完整但是数据信息损伤的情况。It should be noted that, in the process of extracting the first packet from the hypertransfer platform, not only data information may be lost, but also data information may be damaged. Therefore, in the specific implementation process, there is a situation that the data information is complete but the data information is damaged.

可以理解的是,在数据信息不完整和/或数据信息损伤的情况下,待部署应用会部署失败。It can be understood that in the case of incomplete data information and/or damaged data information, the application to be deployed will fail to be deployed.

在一些实施例中,在步骤“基于第一封包在目标平台对待部署应用进行部署”或步骤“基于第二封包在目标平台对待部署应用进行部署”之后,还可以包括:In some embodiments, after the step "deploy the application to be deployed on the target platform based on the first packet" or the step "deploy the application to be deployed on the target platform based on the second packet", it may further include:

确定所述待部署应用是否部署成功;determining whether the application to be deployed is successfully deployed;

若部署失败,则对所述第一封包或所述第二封包进行修复处理;If the deployment fails, repair the first packet or the second packet;

确定所述第一封包或所述第二封包是否修复成功;determining whether the first packet or the second packet is successfully repaired;

若修复成功,则基于修复后的所述第一封包或所述第二封包在所述标平台对所述待部署应用进行部署。If the repair is successful, the application to be deployed is deployed on the target platform based on the repaired first packet or the second packet.

可以理解的是,上述实施例中的第一封包和第二封包的数据信息是完整的。因此,此时导致部署失败的原因仅为数据信息损伤。It can be understood that, the data information of the first packet and the second packet in the above embodiment are complete. Therefore, the reason for the deployment failure at this time is only the damage of data information.

在一些实施例中,第一封包或第二封包中具有预设修复规则和/或修复密钥。当待部署应用部署失败时,可以根据该预设修复规则和/或修复密钥对第一封包或第二封包进行修复处理。In some embodiments, the first packet or the second packet has preset repair rules and/or repair keys. When the deployment of the application to be deployed fails, the first packet or the second packet may be repaired according to the preset repair rule and/or the repair key.

需要说明的是,数据信息损伤可能是在从超转平台提取第一封包或第二封包时导致,或是在对待部署应用进行转换处理时导致。其中,提取过程中造成的数据信息损伤是可修复的,转换处理过程中造成的数据信息损伤是不可修复的。It should be noted that the damage to the data information may be caused when the first packet or the second packet is extracted from the hyperrotation platform, or when the application to be deployed is converted. Among them, the data information damage caused in the extraction process is repairable, and the data information damage caused in the conversion process is irreparable.

因此,当未修复成功时,可以根据该环境信息对待部署应用进行转换处理,得到第三封包。然后,可以基于该第三封包在目标平台对待部署应用进行部署。Therefore, when the repair is not successful, the application to be deployed can be converted according to the environment information to obtain the third packet. Then, the application to be deployed may be deployed on the target platform based on the third packet.

具体的,可以发送一携带该环境信息的提示信息至超转平台,以使超转平台可以根据该环境信息对待部署应用进行转换处理,得到第三封包。然后,从超转平台提取该第三封包,以基于该第三封包在目标平台对该待部署应用进行部署。Specifically, a prompt message carrying the environmental information can be sent to the hyper-rotation platform, so that the hyper-rotation platform can convert the application to be deployed according to the environmental information to obtain a third packet. Then, the third package is extracted from the hypertransform platform, so as to deploy the application to be deployed on the target platform based on the third package.

需要说明的是,从超转平台提取该第三封包之后的步骤,可以参照从超转平台提取第一封包之后的步骤,在此不再一一赘述。It should be noted that, for the steps after extracting the third packet from the hyper-rotation platform, reference may be made to the steps after extracting the first packet from the hyper-rotation platform, and details are not repeated here.

综上,本申请实施例提供的应用的异构部署方法采用获取目标平台的环境信息;确定待部署应用是否存在与所述环境信息对应的第一封包;若存在,则确定所述第一封包中的数据信息是否完整;若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案通过在超转平台对待部署应用进行预转换,得到该待部署应用的多个封包。在需要对待部署应用进行部署时,可以直接从超转平台提取该待部署应用与目标平台的环境信息对应的封包进行部署。相对于现有技术而言,本方案可以提高应用的异构部署效率。To sum up, the heterogeneous deployment method of the application provided by the embodiment of the present application adopts the method of obtaining the environment information of the target platform; determining whether the application to be deployed has a first package corresponding to the environment information; if so, determining the first package Whether the data information in is complete; if complete, deploy the application to be deployed on the target platform based on the first packet. In this solution, multiple packets of the application to be deployed are obtained by pre-converting the application to be deployed on the hypertransformation platform. When the to-be-deployed application needs to be deployed, the package corresponding to the to-be-deployed application and the environment information of the target platform may be directly extracted from the hypertransform platform for deployment. Compared with the prior art, the solution can improve the heterogeneous deployment efficiency of applications.

为了更好地实施以上应用的异构部署方法,本申请实施例还提供一种应用的异构部署装置。其中名词的含义与上述应用的异构部署方法中相同,具体实现细节可以参考方法实施例中的说明。In order to better implement the above heterogeneous deployment method of applications, an embodiment of the present application further provides an apparatus for heterogeneous deployment of applications. The meanings of the nouns are the same as those in the heterogeneous deployment method of the above application, and the specific implementation details can refer to the description in the method embodiment.

请参阅图2,图2是本申请实施例提供的应用的异构部署装置的结构示意图。该应用的异构部署装置200可以包括环境获取单元201、第一确定单元202、第二确定单元203和应用部署单元204。其中,Please refer to FIG. 2. FIG. 2 is a schematic structural diagram of an apparatus for heterogeneous deployment of applications provided by an embodiment of the present application. The heterogeneous deployment apparatus 200 of the application may include an environment acquisition unit 201 , a first determination unit 202 , a second determination unit 203 and an application deployment unit 204 . in,

环境获取单元201可以用于获取目标平台的环境信息;The environment obtaining unit 201 can be used to obtain the environment information of the target platform;

第一确定单元202可以用于确定待部署应用是否存在与所述环境信息对应的第一封包;The first determining unit 202 may be configured to determine whether there is a first packet corresponding to the environment information in the application to be deployed;

第二确定单元203可以用于在所述待部署应用存在与所述环境信息对应的第一封包时,确定所述第一封包中的数据信息是否完整;The second determining unit 203 may be configured to, when the application to be deployed has a first packet corresponding to the environment information, determine whether the data information in the first packet is complete;

应用部署单元204可以用于在所述第一封包中的数据信息完整时,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。The application deployment unit 204 may be configured to deploy the application to be deployed on the target platform based on the first packet when the data information in the first packet is complete.

由上,本申请实施例提供的应用的异构部署装置200可以通过环境获取单元201获取目标平台的环境信息;由第一确定单元202确定待部署应用是否存在与所述环境信息对应的第一封包;由第二确定单元203在所述待部署应用存在与所述环境信息对应的第一封包时,确定所述第一封包中的数据信息是否完整;由应用部署单元204在所述第一封包中的数据信息完整时,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案可以提高应用的异构部署效率。From the above, the heterogeneous deployment apparatus 200 of the application provided by the embodiment of the present application can obtain the environment information of the target platform through the environment obtaining unit 201; the first determining unit 202 determines whether the application to be deployed has the first package; the second determining unit 203 determines whether the data information in the first package is complete when the application to be deployed has a first package corresponding to the environment information; the application deployment unit 204 determines whether the data information in the first package is complete; When the data information in the package is complete, the application to be deployed is deployed on the target platform based on the first package. This solution can improve the heterogeneous deployment efficiency of applications.

本申请实施例还提供一种服务器,如图3所示,其示出了本申请实施例所涉及的服务器的结构示意图,具体来讲:The embodiment of the present application further provides a server, as shown in FIG. 3 , which shows a schematic structural diagram of the server involved in the embodiment of the present application, specifically:

该服务器可以包括一个或者一个以上处理核心的处理器301、一个或一个以上计算机可读存储介质的存储器302、电源303和输入单元304等部件。本领域技术人员可以理解,图3中示出的服务器结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The server may include a processor 301 of one or more processing cores, a memory 302 of one or more computer-readable storage media, a power supply 303 and an input unit 304 and other components. Those skilled in the art can understand that the server structure shown in FIG. 3 does not constitute a limitation on the server, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

处理器301是该服务器的控制中心,利用各种接口和线路连接整个服务器的各个部分,通过运行或执行存储在存储器302内的软件程序和/或模块,以及调用存储在存储器302内的数据,执行服务器的各种功能和处理数据,从而对服务器进行整体监控。可选的,处理器301可包括一个或多个处理核心;优选的,处理器301可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器301中。The processor 301 is the control center of the server, using various interfaces and lines to connect various parts of the entire server, by running or executing the software programs and/or modules stored in the memory 302, and calling the data stored in the memory 302, Execute various functions of the server and process data to monitor the server as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 301.

存储器302可用于存储软件程序以及模块,处理器301通过运行存储在存储器302的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器302可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据服务器的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器302还可以包括存储器控制器,以提供处理器301对存储器302的访问。The memory 302 can be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302 . The memory 302 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the server, etc. Additionally, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 302 may also include a memory controller to provide processor 301 access to memory 302 .

服务器还包括给各个部件供电的电源303,优选的,电源303可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源303还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The server also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The power source 303 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

该服务器还可包括输入单元304,该输入单元304可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The server may also include an input unit 304 that may be operable to receive input numerical or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

尽管未示出,服务器还可以包括显示单元等,在此不再赘述。具体在本实施例中,服务器中的处理器301会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器302中,并由处理器301来运行存储在存储器302中的应用程序,从而实现各种功能,如下:Although not shown, the server may also include a display unit and the like, which will not be described herein again. Specifically in this embodiment, the processor 301 in the server loads the executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes them and stores them in the memory 302, so as to realize various functions, as follows:

获取目标平台的环境信息;Obtain the environment information of the target platform;

确定待部署应用是否存在与所述环境信息对应的第一封包;determining whether the application to be deployed has a first packet corresponding to the environment information;

若存在,则确定所述第一封包中的数据信息是否完整;If it exists, then determine whether the data information in the first packet is complete;

若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。If it is complete, the application to be deployed is deployed on the target platform based on the first packet.

以上操作具体可参见前面的实施例,在此不作赘述。For details of the above operations, reference may be made to the foregoing embodiments, which will not be repeated here.

由上可知,本申请实施例提供的服务器通过获取目标平台的环境信息;确定待部署应用是否存在与所述环境信息对应的第一封包;若存在,则确定所述第一封包中的数据信息是否完整;若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案可以提高应用的异构部署效率。As can be seen from the above, the server provided by the embodiment of the present application obtains the environment information of the target platform; determines whether the application to be deployed has a first packet corresponding to the environment information; if so, determines the data information in the first packet Whether it is complete; if complete, deploy the application to be deployed on the target platform based on the first packet. This solution can improve the heterogeneous deployment efficiency of applications.

相应的,本申请实施例还提供一种电子设备,如图4所示,该电子设备可以包括射频(RF,Radio Frequency)电路401、包括有一个或一个以上计算机可读存储介质的存储器402、输入单元403、显示单元404、传感器405、音频电路406、无线保真(WiFi,WirelessFidelity)模块407、包括有一个或者一个以上处理核心的处理器408、以及电源409等部件。本领域技术人员可以理解,图4中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:Correspondingly, an embodiment of the present application further provides an electronic device. As shown in FIG. 4 , the electronic device may include a radio frequency (RF, Radio Frequency) circuit 401, a memory 402 including one or more computer-readable storage media, Input unit 403 , display unit 404 , sensor 405 , audio circuit 406 , Wireless Fidelity (WiFi) module 407 , processor 408 including one or more processing cores, and power supply 409 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 4 does not constitute a limitation to the electronic device, and may include more or less components than the one shown, or combine some components, or arrange different components. in:

RF电路401可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,交由一个或者一个以上处理器408处理;另外,将涉及上行的数据发送给基站。通常,RF电路401包括但不限于天线、至少一个放大器、调谐器、一个或多个振荡器、用户身份模块(SIM,Subscriber Identity Module)卡、收发信机、耦合器、低噪声放大器(LNA,Low Noise Amplifier)、双工器等。此外,RF电路401还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(GSM,Global System of Mobile communication)、通用分组无线服务(GPRS,GeneralPacket Radio Service)、码分多址(CDMA,Code Division Multiple Access)、宽带码分多址(WCDMA,Wideband Code Division Multiple Access)、长期演进(LTE,Long TermEvolution)、电子邮件、短消息服务(SMS,Short Messaging Service)等。The RF circuit 401 can be used for receiving and sending signals during the process of sending and receiving information or talking. In particular, after receiving the downlink information of the base station, it is processed by one or more processors 408; in addition, it sends the data related to the uplink to the base station. . Typically, the RF circuit 401 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA, Low Noise Amplifier), duplexer, etc. In addition, the RF circuit 401 can also communicate with the network and other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to Global System for Mobile Communication (GSM, Global System of Mobile communication), General Packet Radio Service (GPRS, General Packet Radio Service), Code Division Multiple Access (CDMA, Code Division Multiple Access), Wideband Code Division Multiple Access (WCDMA, Wideband Code Division Multiple Access), Long Term Evolution (LTE, Long TermEvolution), email, Short Messaging Service (SMS, Short Messaging Service), etc.

存储器402可用于存储软件程序以及模块,处理器408通过运行存储在存储器402的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器408和输入单元403对存储器402的访问。The memory 402 can be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by running the software programs and modules stored in the memory 402 . The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required for at least one function, and the like; Data created by the use of electronic equipment (such as audio data, phone book, etc.), etc. Additionally, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide access to the memory 402 by the processor 408 and the input unit 403 .

输入单元403可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。具体地,在一个具体的实施例中,输入单元403可包括触敏表面以及其他输入设备。触敏表面,也称为触摸显示屏或者触控板,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触敏表面上或在触敏表面附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触敏表面可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器408,并能接收处理器408发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触敏表面。除了触敏表面,输入单元403还可以包括其他输入设备。具体地,其他输入设备可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 403 may be used to receive input numerical or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, in a specific embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. A touch-sensitive surface, also known as a touch display or trackpad, collects the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable operation near the surface), and drive the corresponding connection device according to the preset program. Alternatively, the touch-sensitive surface may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 408, and can receive the command sent by the processor 408 and execute it. Additionally, touch-sensitive surfaces can be implemented using resistive, capacitive, infrared, and surface acoustic wave types. In addition to touch-sensitive surfaces, input unit 403 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.

显示单元404可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元404可包括显示面板,可选的,可以采用液晶显示器(LCD,Liquid CrystalDisplay)、有机发光二极管(OLED,Organic Light-Emitting Diode)等形式来配置显示面板。进一步的,触敏表面可覆盖显示面板,当触敏表面检测到在其上或附近的触摸操作后,传送给处理器408以确定触摸事件的类型,随后处理器408根据触摸事件的类型在显示面板上提供相应的视觉输出。虽然在图4中,触敏表面与显示面板是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面与显示面板集成而实现输入和输出功能。The display unit 404 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which may be composed of graphics, text, icons, videos, and any combination thereof. The display unit 404 may include a display panel. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode). Further, the touch-sensitive surface may cover the display panel, and when the touch-sensitive surface detects a touch operation on or near it, it is transmitted to the processor 408 to determine the type of the touch event, and then the processor 408 displays the touch event according to the type of the touch event. The corresponding visual output is provided on the panel. Although in FIG. 4 the touch-sensitive surface and the display panel are implemented as two separate components to implement the input and input functions, in some embodiments, the touch-sensitive surface and the display panel may be integrated to implement the input and output functions.

电子设备还可以包括至少一种传感器405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板的亮度,接近传感器可在电子设备移动到耳边时,关闭显示面板和/或背光。作为运动传感器的一种,重力加速度传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于电子设备还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The electronic device may also include at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel according to the brightness of the ambient light, and the proximity sensor may turn off the display panel and/or when the electronic device is moved to the ear Backlight. As a kind of motion sensor, the gravitational acceleration sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used for applications that recognize the attitude of mobile phones (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. Repeat.

音频电路406、扬声器,传声器可提供用户与电子设备之间的音频接口。音频电路406可将接收到的音频数据转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,传声器将收集的声音信号转换为电信号,由音频电路406接收后转换为音频数据,再将音频数据输出处理器408处理后,经RF电路401以发送给比如另一电子设备,或者将音频数据输出至存储器402以便进一步处理。音频电路406还可能包括耳塞插孔,以提供外设耳机与电子设备的通信。Audio circuitry 406, speakers, and microphones may provide an audio interface between the user and the electronic device. The audio circuit 406 can convert the received audio data into an electrical signal, and transmit it to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is converted after being received by the audio circuit 406 In the form of audio data, the audio data is output to the processor 408 for processing, and then sent to, for example, another electronic device via the RF circuit 401, or the audio data is output to the memory 402 for further processing. Audio circuitry 406 may also include an earplug jack to provide for communication of peripheral headphones with the electronic device.

WiFi属于短距离无线传输技术,电子设备通过WiFi模块407可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图4示出了WiFi模块407,但是可以理解的是,其并不属于电子设备的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology, and the electronic device can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 407, which provides users with wireless broadband Internet access. Although FIG. 4 shows the WiFi module 407, it can be understood that it is not an essential component of the electronic device, and can be completely omitted as required within the scope of not changing the essence of the invention.

处理器408是电子设备的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器402内的软件程序和/或模块,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器408可包括一个或多个处理核心;优选的,处理器408可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器408中。The processor 408 is the control center of the electronic device, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 402, and calling the data stored in the memory 402, Perform various functions of electronic equipment and process data, so as to conduct overall monitoring of mobile phones. Optionally, the processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 408 .

电子设备还可以包括给各个部件供电的电源409(比如电池),优选的,电源可以通过电源管理系统与处理器408逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源409还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The electronic device may also include a power supply 409 (such as a battery) for supplying power to various components. Preferably, the power supply may be logically connected to the processor 408 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. . The power source 409 may also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and any other components.

尽管未示出,电子设备还可以包括摄像头、蓝牙模块等,在此不再赘述。具体在本实施例中,电子设备中的处理器408会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器402中,并由处理器408来运行存储在存储器402中的应用程序,从而实现各种功能:Although not shown, the electronic device may further include a camera, a Bluetooth module, and the like, which will not be repeated here. Specifically in this embodiment, the processor 408 in the electronic device loads the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 408 executes the execution and stores the executable files in the memory 402. The application program in the memory 402, thereby realizing various functions:

获取目标平台的环境信息;Obtain the environment information of the target platform;

确定待部署应用是否存在与所述环境信息对应的第一封包;determining whether the application to be deployed has a first packet corresponding to the environment information;

若存在,则确定所述第一封包中的数据信息是否完整;If it exists, then determine whether the data information in the first packet is complete;

若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。If it is complete, the application to be deployed is deployed on the target platform based on the first packet.

以上操作具体可参见前面的实施例,在此不作赘述。For details of the above operations, reference may be made to the foregoing embodiments, which will not be repeated here.

由上可知,本实施例提供的电子设备通过获取目标平台的环境信息;确定待部署应用是否存在与所述环境信息对应的第一封包;若存在,则确定所述第一封包中的数据信息是否完整;若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。本方案可以提高应用的异构部署效率。As can be seen from the above, the electronic device provided in this embodiment obtains the environment information of the target platform; determines whether the application to be deployed has a first package corresponding to the environment information; if so, determines the data information in the first package Whether it is complete; if complete, deploy the application to be deployed on the target platform based on the first packet. This solution can improve the heterogeneous deployment efficiency of applications.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructions, or by instructions that control relevant hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor.

为此,本申请实施例提供一种存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种应用的异构部署方法中的步骤。例如,该指令可以执行如下步骤:To this end, the embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in the heterogeneous deployment method of any application provided by the embodiments of the present application . For example, the instruction can perform the following steps:

获取目标平台的环境信息;Obtain the environment information of the target platform;

确定待部署应用是否存在与所述环境信息对应的第一封包;determining whether the application to be deployed has a first packet corresponding to the environment information;

若存在,则确定所述第一封包中的数据信息是否完整;If it exists, then determine whether the data information in the first packet is complete;

若完整,则基于所述第一封包在所述目标平台对所述待部署应用进行部署。If it is complete, the application to be deployed is deployed on the target platform based on the first packet.

以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of the above operations, reference may be made to the foregoing embodiments, and details are not described herein again.

其中,该存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。Wherein, the storage medium may include: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

由于该存储介质中所存储的指令,可以执行本申请实施例所提供的任一应用的异构部署方法中的步骤,因此,可以实现本申请实施例所提供的任一应用的异构部署方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Because the instructions stored in the storage medium can execute the steps in the heterogeneous deployment method of any application provided by the embodiment of the present application, the heterogeneous deployment method of any application provided by the embodiment of the present application can be implemented For the beneficial effects that can be achieved, refer to the foregoing embodiments for details, which will not be repeated here.

以上对本申请实施例所提供的一种应用的异构部署方法、系统和存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The heterogeneous deployment method, system, and storage medium of an application provided by the embodiments of the present application have been described in detail above. The principles and implementations of the present application are described with specific examples in this article. The descriptions of the above embodiments are only It is used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there will be changes in the specific embodiments and application scope. In summary, this specification The content should not be construed as a limitation on this application.

Claims (10)

1. A deployment method of an application, comprising:
acquiring environmental information of a target platform;
determining whether a first packet corresponding to the environment information exists in the application to be deployed;
if yes, determining whether the data information in the first packet is complete;
and if the first package is complete, deploying the application to be deployed on the target platform based on the first package.
2. The method for deploying an application according to claim 1, further comprising:
if the first packet does not exist, the application to be deployed is converted according to the environment information to obtain the first packet;
and returning to execute the step of determining whether the data information in the first packet is complete.
3. The method for deploying an application according to claim 1, further comprising:
if not, performing completion processing on the first packet to obtain a second packet;
and deploying the application to be deployed on the target platform based on the second package.
4. The application deployment method of claim 3, wherein after the deploying the application to be deployed at the target platform based on the first package or the deploying the application to be deployed at the target platform based on the second package, further comprising:
determining whether the application to be deployed is deployed successfully;
if the deployment fails, repairing the first packet or the second packet;
determining whether the first packet or the second packet is successfully repaired;
if the repairing is successful, deploying the application to be deployed on the target platform based on the repaired first package or the repaired second package.
5. The method for deploying an application according to claim 4, further comprising:
if the restoration is not successful, converting the application to be deployed according to the environment information to obtain a third package;
and deploying the application to be deployed on the target platform based on the third envelope.
6. The heterogeneous deployment method of the application according to claim 2, further comprising, before performing conversion processing on the application to be deployed according to the environment information:
determining whether the application to be deployed supports deployment on the target platform based on the environment information;
and if not, performing compatible processing on the environment information and the application to be deployed.
7. The heterogeneous deployment method of applications of any one of claims 1 to 6, further comprising, prior to said obtaining environmental information of the target platform:
and pre-converting the application to be deployed to obtain a plurality of packets of the application to be deployed.
8. A heterogeneous deployment apparatus of an application, comprising:
the environment acquisition unit is used for acquiring environment information of the target platform;
the first determining unit is used for determining whether a first packet corresponding to the environment information exists in the application to be deployed;
a second determining unit, configured to determine whether data information in a first packet is complete when the application to be deployed has the first packet corresponding to the environment information;
and the application deployment unit is used for deploying the application to be deployed on the target platform based on the first package when the data information in the first package is complete.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the method of any of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-7 when executing the computer program.
CN202110133412.2A 2021-01-29 2021-01-29 Heterogeneous deployment method, device, storage medium and electronic device for application Active CN112860270B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110133412.2A CN112860270B (en) 2021-01-29 2021-01-29 Heterogeneous deployment method, device, storage medium and electronic device for application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110133412.2A CN112860270B (en) 2021-01-29 2021-01-29 Heterogeneous deployment method, device, storage medium and electronic device for application

Publications (2)

Publication Number Publication Date
CN112860270A true CN112860270A (en) 2021-05-28
CN112860270B CN112860270B (en) 2024-12-06

Family

ID=75987147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110133412.2A Active CN112860270B (en) 2021-01-29 2021-01-29 Heterogeneous deployment method, device, storage medium and electronic device for application

Country Status (1)

Country Link
CN (1) CN112860270B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103701922A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Deployment method and system for application safety of PAAS (platform-as-a-service) platform
US20150169306A1 (en) * 2013-12-18 2015-06-18 Red Hat, Inc. Policy-Based Application Deployment and Continuous Best-Fit Placement Across Heterogeneous Computing Infrastructures
CN105892861A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Information processing method and system and electronic equipment
CN106550022A (en) * 2016-10-24 2017-03-29 上海瀚银信息技术有限公司 A kind of application program distributes control process method and system
CN107077361A (en) * 2014-10-14 2017-08-18 微软技术许可有限责任公司 Configuration conversion for application deployment
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application deployment method, device, server and storage medium of PaaS platform
US20190138287A1 (en) * 2017-11-09 2019-05-09 International Business Machines Corporation Dynamic selection of deployment configurations of software applications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150169306A1 (en) * 2013-12-18 2015-06-18 Red Hat, Inc. Policy-Based Application Deployment and Continuous Best-Fit Placement Across Heterogeneous Computing Infrastructures
CN103701922A (en) * 2013-12-31 2014-04-02 曙光云计算技术有限公司 Deployment method and system for application safety of PAAS (platform-as-a-service) platform
CN107077361A (en) * 2014-10-14 2017-08-18 微软技术许可有限责任公司 Configuration conversion for application deployment
CN105892861A (en) * 2016-03-31 2016-08-24 联想(北京)有限公司 Information processing method and system and electronic equipment
CN106550022A (en) * 2016-10-24 2017-03-29 上海瀚银信息技术有限公司 A kind of application program distributes control process method and system
US20190138287A1 (en) * 2017-11-09 2019-05-09 International Business Machines Corporation Dynamic selection of deployment configurations of software applications
CN108551487A (en) * 2018-04-26 2018-09-18 Oppo广东移动通信有限公司 Application deployment method, device, server and storage medium of PaaS platform

Also Published As

Publication number Publication date
CN112860270B (en) 2024-12-06

Similar Documents

Publication Publication Date Title
CN106357897B (en) Method and device for acquiring falling information
US10853437B2 (en) Method and apparatus for invoking application programming interface
CN106412249B (en) Drop information detection method and device
CN106649010B (en) A terminal equipment testing method and terminal equipment
CN107040610B (en) Data synchronization method, device, storage medium, terminal and server
CN106502681B (en) Sensor registration method and device and mobile terminal
CN106982097A (en) Radio frequency interference elimination method, device, storage medium and terminal
CN106708554B (en) Program operating method and device
CN108039963B (en) Container configuration method and device and storage medium
CN106502834A (en) The backup method of data, apparatus and system
CN106658354B (en) Data transmission method and equipment
CN106126411A (en) A kind of method and apparatus that tested program code is tested
CN106775827A (en) Application program update method and device, and computer equipment
CN107172671A (en) A kind of channel switching method, device, storage medium and terminal
CN106646440A (en) Drop height detection method and drop height detection device
CN106484563A (en) A kind of data migration method and terminal unit
CN114707793A (en) Emergency plan generation method and device, storage medium and electronic equipment
WO2022183552A1 (en) Communication device test method and apparatus, storage medium, terminal, and test system
CN106412250A (en) A drop statistics method and device
CN106126166A (en) Method and terminal for sound effect processing
CN106506623B (en) Data transmission method and equipment
US11869621B2 (en) Storage device having multiple storage dies and identification method
CN112860270B (en) Heterogeneous deployment method, device, storage medium and electronic device for application
CN112633770A (en) Asset state judgment method and device, storage medium and electronic equipment
CN114510417A (en) Image rendering effect testing method and device, electronic equipment and storage medium

Legal Events

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