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 PDFInfo
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000007613 environmental effect Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 22
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 claims description 4
- 230000006870 function Effects 0.000 description 18
- 230000006854 communication Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000007599 discharging Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/76—Adapting program code to run in a different environment; Porting
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation 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)
- Telephone Function (AREA)
Abstract
The application discloses a heterogeneous deployment method and device of an application, a storage medium and an electronic device. The heterogeneous deployment method of the application adopts the method of obtaining the 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, extracting the first packet, and determining whether 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. The scheme can improve the heterogeneous deployment efficiency of the application.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a heterogeneous deployment method and device of an application, a storage medium and electronic equipment.
Background
With the development of computer technology, the variety of operating systems and processors is diversified, and various platforms are formed.
Due to differences of operating systems and/or processors between platforms, when the same application is deployed on heterogeneous platforms, the operating system and/or the processor of the current platform need to be manually checked, and whether the operating system and/or the processor are manually compatible with the application or not is judged. When the operating system and/or processor is incompatible with the application, the operating system and/or processor typically needs to be replaced to make the application compatible with the operating system and/or processor. However, this solution not only results in inefficient heterogeneous deployment of applications and increased time cost, but also results in waste of human resources.
Disclosure of Invention
The embodiment of the application provides a heterogeneous deployment method and device of an application, a storage medium and an electronic device, and heterogeneous deployment efficiency of the application can be improved.
In a first aspect, an embodiment of the present application provides a heterogeneous deployment method for an application, including:
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.
In the deployment method of an application provided in the embodiment of the present application, the deployment method of an application further includes:
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.
In the deployment method of an application provided in the embodiment of the present application, the deployment method of an application further includes:
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.
In the application deployment method provided in this embodiment of the application, after the deploying the application to be deployed on the target platform based on the first package or deploying the application to be deployed on the target platform based on the second package, the method further includes:
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.
In the deployment method of an application provided in the embodiment of the present application, the deployment method of an application further includes:
if the restoration is not successful, converting the application to be deployed according to the environment information to obtain a third package;
and extracting the third package, and deploying the application to be deployed on the target platform based on the third package.
In the deployment method of an application provided in the embodiment of the present application, before performing conversion processing on the application to be deployed according to the environment information, the method further includes:
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.
In the deployment method of an application provided in the embodiment of the present application, before the obtaining of the environment information of the target platform, the method further includes:
and pre-converting the application to be deployed to obtain a plurality of packets of the application to be deployed.
In a second aspect, an embodiment of the present application provides a heterogeneous deployment apparatus for an application, including:
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.
In a third aspect, an embodiment of the present application provides a storage medium, where a plurality of instructions are stored, and the instructions are suitable for being loaded by a processor to perform the method described in the foregoing embodiment.
In a fourth aspect, the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to the foregoing embodiments.
The heterogeneous deployment method of the application provided by the embodiment of the application obtains the 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, extracting the first packet, and determining whether 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. The scheme can improve the heterogeneous deployment efficiency of the application.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a heterogeneous deployment method of an application according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a heterogeneous deployment device of an application provided in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
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, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first" and "second", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to the listed steps or modules but may alternatively include other steps or modules not listed or inherent to such process, method, article, or apparatus.
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 application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides a heterogeneous deployment method, a heterogeneous deployment system, a storage medium and electronic equipment of an application. It should be noted that the heterogeneous deployment of the application provided in the embodiment of the present application may be integrated in a heterogeneous deployment device of the application, and the heterogeneous deployment device of the application may be specifically integrated in an electronic device, where the electronic device includes, but is not limited to, a computer, a mobile phone, a tablet computer, and other devices.
The following detailed description will be made separately, and the description sequence of each embodiment below does not limit the specific implementation sequence.
Referring to fig. 1, fig. 1 is a schematic flow chart of a heterogeneous deployment method of an application of the present application. The specific flow of the heterogeneous deployment method of the application may be as follows:
101. and acquiring the environmental information of the target platform.
The context information may include, among other things, an operating system and/or a processor.
It will be appreciated that different platforms typically have different operating systems and/or processors. For example, the operating system of the iPhone is IOS, and the operating system of huacheng is Android. Also, the same operating system has multiple versions. For example, IOS systems have versions 12.0, 13.0, and 14.0. Processors are also of many varieties, such as pentium, racing, core, to strong, and the like.
102. Determining whether a first package corresponding to the environment information exists in the application to be deployed.
It should be noted that the application formats supported by different operating systems are different. The application formats and/or versions supported by different processors may also differ. For example, two platforms have the same operating system and the same processor, and there is a 12.0 version of the package for 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 will be appreciated that each version of the application to be deployed has a corresponding version number.
Specifically, the format and/or version number of the application to be deployed corresponding to the environment information may be obtained based on the big data, and then the format and/or version number of the application to be deployed corresponding to the environment information may be matched with the plurality of packets of the application to be deployed stored in the overtaking platform, so as to determine whether the first packet corresponding to the environment information exists in the overtaking platform of the application to be deployed.
It will be appreciated that the packets have a format and/or version number. And matching the format and/or version number of the application to be deployed corresponding to the environment information with the plurality of packages of the application to be deployed stored in the super-rotation platform, namely comparing the format and/or version number of the application to be deployed corresponding to the environment information with the format and/or version number of the plurality of packages of the application to be deployed stored in the super-rotation platform one by one.
From the above, before the step "acquiring the environment information of the target platform", the method may further include:
and pre-converting the application to be deployed to obtain a plurality of packets 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 is pre-converted based on the format and/or version, so as to obtain a plurality of packets of the application to be deployed.
For example, the application to be deployed has version 1.0 and version 2.0 of the IOS format. Version 1.0 and version 2.0 in the Android format. At this time, the application to be deployed may be converted based on the format and the version, so as to obtain a 1.0 version package and a 2.0 version package of the IOS format of the application to be deployed, and a 1.0 version package and a 2.0 version package of the Android format.
It should be noted that, when pre-converting the application to be deployed, implementation may be performed according to actual situations. For example, to save the storage space, a format and/or a version of the application to be deployed with a higher usage rate may be obtained based on the big data, and then the application to be deployed is pre-converted based on the format and/or the version, so as to obtain a plurality of packages of the application to be deployed.
It should be noted that the higher usage rate may mean that the usage rate is before the usage rate ranking list preset position. The pre-conversion of the application to be deployed can be specifically performed in an overtorque platform.
For example, the format and/or version of the top five usage rates of the application to be deployed may be obtained based on the big data, and then the application to be deployed is pre-converted based on the format and/or version of the top five usage rates, so as to obtain five packages of the application to be deployed.
In some embodiments, before the step "pre-converting the application to be deployed to obtain a plurality of packages of the application to be deployed", the method may further include:
and registering the application to be deployed.
It is understood that the application to be deployed has information such as application name, number, format, and/or version.
In some embodiments, the step of "obtaining the format and/or version of the application to be deployed based on the big data" may be performed during the process of registering the application to be deployed. It is understood that registering the application to be deployed may also be performed in the overrun platform.
103. If so, determining whether the data information in the first packet is complete.
Specifically, when it is determined that the application to be deployed stored in the overtaking platform has the first packet corresponding to the environment information, the first packet may be extracted from the overtaking platform, and then it is determined whether the data information in the first packet is complete.
It can be appreciated that the first package of the application to be deployed is stored on the overrun platform. Therefore, when the application to be deployed needs to be deployed, the first package needs to be extracted from the over-running platform. In the process of extracting the first packet from the platform, the data information in the first packet may be lost due to network or operation problems.
In some embodiments, the first packet has an authentication key by which it can be determined 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 over-run platform does not have the first packet corresponding to the environment information, the application to be deployed is converted according to the environment information to obtain the first packet. Then, the step of determining whether the data information in the first packet is complete is performed.
Specifically, a prompt message carrying the environment information may be sent to the over-running platform, so that the over-running platform may perform conversion processing on the application to be deployed according to the environment information, thereby obtaining the first packet. And then returning to execute 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 overrun platform does not have the first package corresponding to the environment information, it may be determined whether the application to be deployed supports deployment on the target platform based on the environment information. If so, the application to be deployed can be converted according to the environment information. And if not, performing compatible processing on the environment information and the application to be deployed.
The specific process of the compatibility processing is common knowledge, and is not described in detail herein.
104. And if the first package is complete, deploying the application to be deployed on the target platform based on the first package.
It can be understood that, when it is determined that the data information in the first package is complete, the application to be deployed may 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 subjected to completion processing to obtain a second packet. It is 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 predetermined completion rule and/or a completion key, and when it is determined that the data information in the first packet is incomplete, the first packet may be subjected to completion processing according to the predetermined completion rule and/or the completion key, so as to obtain the second packet. The application to be deployed may then be deployed at the target platform based on the second package.
It should be noted that, in the process of extracting the first packet from the overrun platform, not only the data information may be lost, but also the data information may be damaged. Therefore, in the implementation process, there is a case where 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 fails to be deployed.
In some embodiments, after the step "deploying the application to be deployed at the target platform based on the first package" or the step "deploying the application to be deployed at the target platform based on the second package", the method may further include:
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.
It is understood that the data information of the first packet and the second packet in the above embodiments is complete. Therefore, the reason for the failure of deployment at this time is only data information damage.
In some embodiments, the first packet or the second packet has a predetermined repair rule and/or a repair key therein. When the application to be deployed fails to be deployed, the first package or the second package may be repaired according to the preset repair rule and/or the repair key.
It should be noted that the data information damage may be caused when the first packet or the second packet is extracted from the over-run platform, or when the conversion processing is performed on the application to be deployed. The data information damage caused in the extraction process is repairable, and the data information damage caused in the conversion processing process is not repairable.
Therefore, when the repair is not successful, the application to be deployed can be converted according to the environment information to obtain a third packet. Then, the application to be deployed can be deployed on the target platform based on the third package.
Specifically, a prompt message carrying the environment information may be sent to the over-running platform, so that the over-running platform may perform conversion processing on the application to be deployed according to the environment information to obtain a third package. And then, extracting the third package from the over-rotation platform so as to deploy the application to be deployed on the target platform based on the third package.
It should be noted that, the steps after the third packet is extracted from the overrun platform may refer to the steps after the first packet is extracted from the overrun platform, and are not described in detail herein.
In summary, the heterogeneous deployment method of the application provided by the embodiment of the present application acquires environment 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. According to the scheme, the application to be deployed is pre-converted on the over-running platform, and a plurality of packets of the application to be deployed are obtained. When the application to be deployed needs to be deployed, the package corresponding to the environment information of the application to be deployed and the target platform can be directly extracted from the overtorking platform for deployment. Compared with the prior art, the scheme can improve heterogeneous deployment efficiency of the application.
In order to better implement the heterogeneous deployment method of the application, an embodiment of the present application further provides a heterogeneous deployment device of the application. The meaning of the noun is the same as that in the above-mentioned heterogeneous deployment method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a heterogeneous deployment device for an application according to 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. Wherein,
the environment acquisition unit 201 may be configured to acquire environment information of a target platform;
the first determining unit 202 may be configured to determine whether a first package corresponding to the environment information exists in the application to be deployed;
the second determining unit 203 may be configured to determine whether data information in a first packet corresponding to the environment information is complete when the application to be deployed exists in the first packet;
the application deployment unit 204 may be configured to deploy, when the data information in the first package is complete, the application to be deployed on the target platform based on the first package.
Thus, the heterogeneous deployment device 200 of the application provided in the embodiment of the present application can obtain the environment information of the target platform through the environment obtaining unit 201; determining, by the first determining unit 202, whether a first package corresponding to the environment information exists in the application to be deployed; when the application to be deployed has a first packet corresponding to the environment information, determining whether data information in the first packet is complete by a second determining unit 203; when the data information in the first packet is complete, the application deployment unit 204 deploys the application to be deployed on the target platform based on the first packet. The scheme can improve the heterogeneous deployment efficiency of the application.
The embodiment of the present application further provides a server, as shown in fig. 3, which shows a schematic structural diagram of the server according to the embodiment of the present application, specifically:
the server may include components such as a processor 301 of one or more processing cores, memory 302 of one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will appreciate that the server architecture shown in FIG. 3 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 301 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the server. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by operating the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the 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, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The server further includes a power supply 303 for supplying power to the various components, and preferably, the power supply 303 may be logically connected to the processor 301 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 303 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The server may also include an input unit 304, the input unit 304 being operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 301 in the server loads the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 301 runs the application programs stored in the memory 302, thereby implementing various functions as follows:
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.
The above operations can be specifically referred to the previous embodiments, and are not described herein.
As can be seen from the above, the server provided in the embodiment of the present application obtains the environment information of the 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. The scheme can improve the heterogeneous deployment efficiency of the application.
Accordingly, an electronic device according to an embodiment of the present disclosure may include, as shown in fig. 4, a Radio Frequency (RF) circuit 401, a memory 402 including one or more computer-readable storage media, an input unit 403, a display unit 404, a sensor 405, an audio circuit 406, a Wireless Fidelity (WiFi) module 407, a processor 408 including one or more processing cores, and a power supply 409. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 401 may be used for receiving and transmitting signals during a message transmission or communication process, and in particular, for receiving downlink information of a base station and then sending the received downlink information to the one or more processors 408 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 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), a duplexer, and the like. In addition, the RF circuitry 401 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 402 may be used to store software programs and modules, and the processor 408 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the electronic device, and the like. Further, the 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 the processor 408 and the input unit 403 access to the memory 402.
The input unit 403 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in a particular embodiment, the input unit 403 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 408, and can receive and execute commands from the processor 408. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 403 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 404 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 404 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 408 to determine the type of touch event, and then the processor 408 provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 4 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The electronic device may also include at least one sensor 405, such as a light sensor, motion sensor, and other sensors. In particular, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the electronic device is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured to the electronic device, detailed descriptions thereof are omitted.
WiFi belongs to short distance wireless transmission technology, and the electronic device can help the user send and receive e-mail, browse web page and access streaming media, etc. through the WiFi module 407, which provides wireless broadband internet access for the user. Although fig. 4 shows the WiFi module 407, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 408 is a control center of the electronic device, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby monitoring the mobile phone as a whole. Optionally, processor 408 may include one or more processing cores; preferably, the processor 408 may integrate an application processor, which handles primarily the operating system, user interface, applications, etc., and a modem processor, which handles primarily the wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 408.
The electronic device may also include a power source 409 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 408 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 409 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the electronic device may further include a camera, a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 408 in the electronic device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 408 runs the application programs stored in the memory 402, thereby implementing various functions:
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.
The above operations can be specifically referred to the previous embodiments, and are not described herein.
As can be seen from the above, the electronic device provided in this embodiment obtains the environment information of the 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. The scheme can improve the heterogeneous deployment efficiency of the application.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in the heterogeneous deployment method of any one of the applications provided in the present application. For example, the instructions may perform the steps of:
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.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in the heterogeneous deployment method of any application provided in the embodiment of the present application, beneficial effects that can be achieved by the heterogeneous deployment method of any application provided in the embodiment of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above detailed description is given to a heterogeneous deployment method, a system and a storage medium of an application provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding 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 may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110133412.2A CN112860270A (en) | 2021-01-29 | 2021-01-29 | Heterogeneous deployment method and device of application, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110133412.2A CN112860270A (en) | 2021-01-29 | 2021-01-29 | Heterogeneous deployment method and device of application, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112860270A true CN112860270A (en) | 2021-05-28 |
Family
ID=75987147
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110133412.2A Pending CN112860270A (en) | 2021-01-29 | 2021-01-29 | Heterogeneous deployment method and device of application, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112860270A (en) |
Citations (7)
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 dispositions method, device, server and the 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 |
-
2021
- 2021-01-29 CN CN202110133412.2A patent/CN112860270A/en active Pending
Patent Citations (7)
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 dispositions method, device, server and the storage medium of PaaS platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107094294B (en) | Network connection method and device | |
US10853437B2 (en) | Method and apparatus for invoking application programming interface | |
CN106708554B (en) | Program operating method and device | |
CN106371964B (en) | Method and device for prompting message | |
CN106775833A (en) | device driver loading method, terminal and system | |
CN106919458B (en) | Method and device for Hook target kernel function | |
CN107783906A (en) | Method of testing, device and storage medium | |
CN113489630A (en) | Network distribution method, device, storage medium and electronic terminal | |
CN104917905B (en) | Processing method, terminal and the server of Stranger Calls | |
CN109688611B (en) | Frequency band parameter configuration method, device, terminal and storage medium | |
CN107317828B (en) | File downloading method and device | |
CN111273955A (en) | Thermal restoration plug-in optimization method and device, storage medium and electronic equipment | |
CN112328304B (en) | Script adaptation method, system, equipment and computer storage medium | |
CN105278942B (en) | Component management method and device | |
US20160314036A1 (en) | Method and Apparatus for Repairing Dynamic Link Library File | |
CN105703808A (en) | Method and device for transmitting data | |
US20160307216A1 (en) | Electronic information collection method and apparatus | |
CN108549552B (en) | Kernel loading method and device and storage medium | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
CN107979688B (en) | application program management method and mobile terminal | |
CN106933626B (en) | Application association method and device | |
CN113613310A (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN112860270A (en) | Heterogeneous deployment method and device of application, storage medium and electronic equipment | |
CN109558731B (en) | Feature code processing method, device and storage medium | |
CN105278967B (en) | System updating method, device and system of mobile terminal |
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 |