CN112214220B - Method, apparatus and device for integrated system - Google Patents

Method, apparatus and device for integrated system Download PDF

Info

Publication number
CN112214220B
CN112214220B CN202010911289.8A CN202010911289A CN112214220B CN 112214220 B CN112214220 B CN 112214220B CN 202010911289 A CN202010911289 A CN 202010911289A CN 112214220 B CN112214220 B CN 112214220B
Authority
CN
China
Prior art keywords
integrated
application
installation package
information
applications
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010911289.8A
Other languages
Chinese (zh)
Other versions
CN112214220A (en
Inventor
蒋永俊
熊友军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youbixuan Intelligent Robot Co ltd
Original Assignee
Ubtech Robotics Corp
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 Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN202010911289.8A priority Critical patent/CN112214220B/en
Publication of CN112214220A publication Critical patent/CN112214220A/en
Application granted granted Critical
Publication of CN112214220B publication Critical patent/CN112214220B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Landscapes

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

Abstract

The application is applicable to the technical field of system integration, and provides a method for integrating a system, which comprises the following steps: traversing the application to be integrated in the application set to be integrated and acquiring attribute information of the application to be integrated; when the attribute information of the application to be integrated is associated with the tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information; when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitting record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated; and executing system integration operation by the installation package of each application to be integrated in the application set to be integrated and a prestored operating system to obtain the installation package of the system with the function of the application to be integrated. The system integration time can be saved, and the system integration efficiency can be improved.

Description

Method, apparatus and device for integrated system
Technical Field
The present application relates to the field of system integration technologies, and in particular, to a method, an apparatus, and a device for integrating a system.
Background
An Operating System (OS) is a computer program that manages computer hardware and software resources. Common operating systems are Android, IOS, UNIX, LINUX, macOS and Windows, etc. In the related art, it is generally required to integrate an operating system and at least one application to be integrated into one system by using a continuous integration tool (e.g., jenkins, etc.), so as to achieve a product with certain application functions. As an example, the Android operating system and the call making application may be integrated into one system, so as to achieve a mobile phone product with a call making function.
In the related art, there is a need to save system integration time to improve system integration efficiency.
Disclosure of Invention
The embodiment of the application provides a method, a device and equipment for integrating a system, and aims to solve the problem of low system integration efficiency in the related technology.
In a first aspect, an embodiment of the present application provides a method for integrating a system, the method including:
traversing the application to be integrated in the application set to be integrated and acquiring attribute information of the application to be integrated;
when the attribute information of the application to be integrated is associated with the tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information;
when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitting record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated;
and executing system integration operation by the installation package of each application to be integrated in the application set to be integrated and a prestored operating system to obtain the installation package of the system with the function of the application to be integrated.
Further, before traversing the applications to be integrated in the applications to be integrated set, the method further includes:
and when the preset integration conditions are met, determining to execute traversing the applications to be integrated in the application to be integrated set.
Further, the integration conditions include at least one of:
receiving integration request information input by a user;
reaching a preset integration time.
Further, in the installation package obtaining step, after compiling the obtained code to be compiled into the installation package of the current application to be integrated, the installation package obtaining step further includes:
when a preset storage condition is met, storing an installation package of the current application to be integrated, generating tag information for indicating a storage position of the stored installation package, and associating the generated tag information with the current application to be integrated.
Further, the storage conditions include: and receiving storage request information input by a user.
Further, before traversing the applications to be integrated in the applications to be integrated set, the method further includes:
and receiving and storing codes submitted by the user aiming at the applications to be integrated in the application set to be integrated, and writing code position information for describing the storage positions of the codes into the submitted record information of the corresponding applications to be integrated.
Further, submitting the record information includes: code location information for describing a storage location of the code, commit time information for describing commit time of the code, and modification description information for describing modification contents of the code.
Further, after executing the system integration operation by the installation package of each application to be integrated in the application set to be integrated and the pre-stored operating system to obtain the installation package of the system with the function of the application to be integrated, the method further comprises:
the method includes storing an installation package of the system, generating a system tag indicating a storage location of the installation package of the system, and associating the system tag with the installation package of the system.
In a second aspect, an embodiment of the present application provides an apparatus for an integrated system, the apparatus comprising:
the data acquisition unit is used for traversing the applications to be integrated in the application set to be integrated and acquiring attribute information of the applications to be integrated;
the first judging unit is used for acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information when the tag information is associated with the attribute information of the application to be integrated;
the second judging unit is used for acquiring codes to be compiled according to the submitting record information of the current application to be integrated when the attribute information of the application to be integrated is not associated with the tag information, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated;
and the system integration unit is used for executing system integration operation by the installation package of each application to be integrated in the application set to be integrated and the prestored operating system to obtain the installation package of the system with the function of the application to be integrated.
In a third 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 executable on the processor, the processor implementing the steps of the method for integrating a system described above when the computer program is executed by the processor.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method for integrating a system described above.
In a fifth aspect, embodiments of the present application provide a computer program product for, when run on an electronic device, causing the electronic device to perform the method for integrating a system of any of the above-described first aspects.
Compared with the related art, the embodiment of the application has the beneficial effects that: in the related art, codes of all applications to be integrated are directly compiled into an installation package each time, and then all the installation packages obtained through compiling are integrated with an operating system to obtain a system installation package. The application can compile only part of codes to be integrated to obtain the installation package, can reduce the time for compiling the codes to obtain the installation package, can save the system integration time, and is beneficial to improving the system integration efficiency.
It will be appreciated that the advantages of the second to fifth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method for integrating a system according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for integrating a system according to another embodiment of the present application;
FIG. 3 is a flow chart of a method for integrating a system provided by yet another embodiment of the present application;
FIG. 4 is a schematic diagram of an apparatus for an integrated system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The method for integrating the system provided by the embodiment of the application can be applied to an integrated server, wherein the integrated server can be hardware or software. When the integrated server is hardware, it may be implemented as a distributed server cluster that provides continuous integrated services, or as a single server. When the integrated server is software, it may be installed in the above-listed server. It may be implemented as a plurality of software or software modules or as a single software or software module, without specific limitation.
In order to explain the technical scheme of the application, the following examples are used for illustration.
Example 1
Referring to fig. 1, an embodiment of the present application provides a method for integrating a system, including:
and step 101, traversing the applications to be integrated in the application set to be integrated and acquiring attribute information of the applications to be integrated.
The applications to be integrated may be various applications to be integrated. Such as instant messaging class applications, search class applications, and the like. The above-described attribute information is generally information for describing attributes of applications to be integrated. In practice, the attribute information may include tag information, user submission information, and the like.
In the present embodiment, the execution subject of the method for the integrated system may be an integrated server (e.g., jenkins). The execution body may traverse the applications to be integrated in the application set to be integrated, and execute the installation package obtaining step when accessing the current applications to be integrated. Specifically, the execution body may traverse each application to be integrated in the set of applications to be integrated. In the traversing process, each time an application to be integrated is accessed, the executing body may execute an installation package obtaining step to obtain an installation package of the application to be integrated. In this way, one installation package may be obtained for each application to be integrated in the set of applications to be integrated.
It should be noted that an installation package (i.e., software installation package) is a collection of self-decompressing files, including all files of the software installation. The installation package (executable file) is operated, and all files of the software can be released to a hard disk to finish the work of modifying a registry, modifying system settings, creating a shortcut and the like.
Here, the above-described installation package acquisition step may include steps 102 to 103.
And 102, when the attribute information of the application to be integrated is associated with the tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information.
The tag information is used for indicating a storage position of an installation package of the application to be integrated.
Here, if the current application to be integrated is associated with tag information, the executing body may directly obtain the installation package of the current application to be integrated from the storage location indicated by the tag information. It should be noted that, associating attribute information of an application to be integrated with tag information generally means associating the application to be integrated with tag information.
And step 103, when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitted record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated.
Wherein the commit record information includes code location information describing a storage location of the code.
In this embodiment, if the current application to be integrated is not associated with a tag information, the executing body may compile a code submitted in advance by a user into an installation package, so as to obtain the installation package of the current application to be integrated. It should be noted that, attribute information of an application to be integrated is not associated with tag information, which generally means that the application to be integrated is not associated with tag information.
In practice, one commit record information is typically stored for each application to be integrated. When a user submits a code of an application to be integrated to an integration server, the integration server may typically store the code, and write code location information describing a storage location of the code to the submit record information. In this way, the execution body can find the code to be compiled of the application to be integrated by adopting the submitted record information of the application to be integrated. Thus, the code to be compiled is compiled into the installation package by adopting a compiling tool. In practice, the execution subject may typically compile the code into an installation package using a compilation tool carried by itself. It should be noted that the present application is not particularly limited as to how code is compiled into an installation package.
And 104, executing system integration operation by the installation packages of the applications to be integrated in the application set to be integrated and the prestored operating system to obtain the installation package of the system with the functions of the applications to be integrated.
The system integration operation generally refers to an operation of integrating an application and an operating system into an installation package of a system having a function of the application. The system integration operation may be one operation or a series of operations.
In this embodiment, after obtaining one installation package for each application to be integrated, the execution body may perform a system integration operation on all the obtained installation packages and the operating system, so as to obtain an installation package of a system having functions of all the applications to be integrated. Thus, the user can install the system by adopting the obtained installation package of the system so as to obtain a product with all functions of the application to be integrated.
In this embodiment, only part of the code to be integrated and applied may be compiled to obtain the installation package, so that the time for compiling the code to obtain the installation package may be reduced, the system integration time may be saved, and the system integration efficiency may be improved. In addition, in practice, since the stored installation packages are usually installation packages meeting design requirements, and since the code may be affected by the compiling environment during compiling the code into the installation packages, the installation packages meeting the design requirements may be obtained, but problematic installation packages are obtained. Therefore, the application directly adopts the stored installation package meeting the design requirement to integrate the system, and can ensure the stability of the functions of the system obtained after integration.
In an alternative implementation manner of the embodiments of the present application, before traversing the applications to be integrated in the applications to be integrated set, the method for integrating a system may further include the following steps: and when the preset integration conditions are met, determining to execute traversing the applications to be integrated in the application to be integrated set.
The integration conditions may be various conditions set in advance.
Here, the operation of traversing the applications to be integrated in the applications to be integrated set is performed only if the current situation satisfies the integration condition. It may be realized that the system integration is performed only in case the integration condition is satisfied. Unnecessary loss of computing resources can be reduced, contributing to saving of computing resources.
Optionally, the preset integration condition may include at least one of the following: and receiving integration request information input by a user. Reaching a preset integration time.
The integration request information may be information for requesting integration. As an example, the above-described integration request information may be "ask" or "integration". The present application is not particularly limited to the specific form of the integration request information. The integration time may be a predetermined time. For example, 2 am.
According to the implementation mode, the execution main body can start integration based on the request of the user, can start integration automatically when the preset integration time is reached, and can start integration when the request of the user is received and the integration time is reached. The mode of this realization mode start integration is various, and the practicality is high.
In some optional implementations of this embodiment, in the step of obtaining an installation package, after compiling the obtained code to be compiled into an installation package of the current application to be integrated, the method may further include:
when a preset storage condition is met, storing an installation package of the current application to be integrated, generating tag information for indicating a storage position of the stored installation package, and associating the generated tag information with the current application to be integrated.
The storage conditions may be various conditions set in advance.
Here, the execution subject described above may generate tag information indicating the storage location of the stored installation package in various ways. As an example, the execution body may directly use the address of the storage location of the installation package as the tag information. As another example, the execution body may further convert the address of the storage location according to a preset format to obtain tag information.
Here, when the current situation satisfies the storage condition, the above-described execution may store the installation package of the current application to be integrated. Therefore, the installation package of the application to be integrated can be directly used in later integration, the compiling time of the installation package can be saved, and the system integration efficiency can be improved.
Optionally, the storage condition includes: and receiving storage request information input by a user.
The storage request information may be information for requesting storage.
In this implementation manner, the execution body may store the obtained installation package based on a user request. The implementation method can realize the storage of the installation package licensed by the user, and is helpful for guaranteeing the reliability of the stored installation package.
In an alternative implementation manner of the embodiments of the present application, before traversing the applications to be integrated in the applications to be integrated set, the method for integrating a system may further include:
and receiving and storing codes submitted by the user aiming at the applications to be integrated in the application set to be integrated, and writing code position information for describing the storage positions of the codes into the submitted record information of the corresponding applications to be integrated.
The execution body may receive code submitted by a user for any one of a set of applications to be integrated. After receiving the code submitted by the user, the execution body may write the code location information of the code into the submitted record information of the application to be integrated. Therefore, the execution main body can adopt code position information in the submitted record information to timely and accurately find the code of the application to be integrated.
In alternative implementations of various embodiments of the application, submitting the record information may include: code location information for describing a storage location of the code, commit time information for describing commit time of the code, and modification description information for describing modification contents of the code.
Wherein the modified content generally refers to added content, pruned content, and the like.
Here, when the user submits the code to the integration server, the integration server may write the submission time information, the modification description information, and the code location information into the submission record information at the same time. In this way, the execution subject may select the code submitted at a preset point in time or within a preset period of time as the code to be compiled. The code corresponding to the preset modification content can also be selected as the code to be compiled. The code submitted in the preset time period and having the preset keyword in the modified content can also be selected as the code to be compiled. The implementation mode can enrich the acquisition mode of acquiring the code to be compiled of the application to be integrated by the execution subject based on the submitted record information.
Example two
The present application provides a method for integrating a system, and the present embodiment is further described in the first embodiment, and the same or similar parts as those of the first embodiment can be referred to in the related description of the first embodiment, which is not repeated here. Referring to fig. 2, the method for integrating a system in this embodiment includes:
step 201, traversing the applications to be integrated in the application set to be integrated and acquiring attribute information of the applications to be integrated.
Step 202, when the attribute information of the application to be integrated is associated with the tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information.
And 203, when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitted record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated.
And 204, executing system integration operation by the installation packages of the applications to be integrated in the application set to be integrated and the pre-stored operating system to obtain the installation package of the system with the functions of the applications to be integrated.
In this embodiment, the specific operations of steps 201 to 204 are substantially the same as those of steps 101 to 104 in the embodiment shown in fig. 1, and will not be described herein.
Step 205, storing an installation package of the system, generating a system tag for indicating a storage location of the installation package of the system, and associating the system tag with the installation package of the system.
In this embodiment, the execution body may generate the system tag in various manners. As an example, the execution body may directly use the address of the storage location of the installation package of the system as the system tag. As another example, the execution body may also combine the address of the storage location of the installation package of the system with the storage time of the system installation package to obtain the system tag.
In this embodiment, after obtaining the installation package of the system, the execution body may store the obtained installation package of the system. A system tag is then generated for the installation package of the system. Finally, the system tag is associated with the installation package of the system. Therefore, the system label can be used for rapidly and accurately acquiring the installation package of the system, and the acquisition efficiency of the installation package of the system can be improved. In addition, the installation package of the system is stored, the installation package of the system obtained through integration can be directly used, and the time for integrating the installation package of the system can be saved.
Example III
With continued reference to fig. 3, a flowchart of a method for integrating a system according to an embodiment of the present application is provided.
As shown in fig. 3, the method for integrating a system in this embodiment may include:
in step 301, a user submits a code to an application code repository to enable submitting the code of an application to be integrated to an integration server.
In practice, the integration server may be a Jenkins integration server.
Here, the user may submit the written code of the application to be integrated into the integration server. In this way, the integration server can store the code, and write code location information describing the storage location of the code into the commit record information of the application to be integrated. In this way, the execution body can find the code to be compiled of the application to be integrated by adopting the submitting record information of the application to be integrated, so that the code to be compiled of the application to be integrated is compiled into an installation package of the application.
In step 302, an application building step, the integration server builds an installation package for each application to be integrated.
Specifically, the application build step may include steps 3021 to 3023.
In step 3021, the integration server extracts an installation package of an application to be integrated, in which the installation package is stored, from the historical version repository.
In step 3022, the integration server compiles the installation package for the application to be integrated that does not store the installation package.
In step 3023, the integration server caches all the obtained installation packages of the applications to be integrated into the application cache to be integrated.
Here, the integration server may traverse applications to be integrated in the application set to be integrated and acquire attribute information of the applications to be integrated. And when the attribute information of the application to be integrated is associated with the tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information. And when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitted record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated.
Step 303, a system compiling step, in which the integrated server compiles the operating system.
Here, since the operating system is a computer program that manages computer hardware and software resources. Thus, the operating system may be compiled to obtain an operating system that is easy to integrate.
And 304, in the system integration step, the integration server adopts the cached installation packages and the operating system of all the applications to be integrated to perform system integration.
Here, performing the system integration step may result in an installation package of the system having the function of the application to be integrated.
And 305, outputting the new version, and storing the installation package of the application to be integrated with perfect functions and data related to the installation package into a historical version warehouse by the integration server.
Here, in the new version outputting step, the obtained installation package of the system may be stored in the history version repository. It should be noted that, the above-mentioned installation package of the application to be integrated with perfect functions and the data related to the installation package are stored in the historical version warehouse, which is generally referred to as the warehouse of the application version. And storing the obtained installation package of the system into a history version warehouse, which is generally referred to as warehousing of the system version. Version binning typically includes binning of application versions and binning of system versions. Wherein the system version is a collection of application versions.
In the output step, the data is stored in the historical version warehouse through executing version warehouse-in operation. The version-in operation is usually an operation of performing permanent tag record on the historical version. All necessary data of the historical version, such as an installation package of an application, data for compiling the installation package of the application, and data for carrying out system integration on the installation package of the application, can be subjected to warehouse labeling and backup through version warehousing operation. The labels and the historical versions have unique corresponding relations.
Example IV
Corresponding to the method for integrating a system of the above embodiments, fig. 4 shows a block diagram of an apparatus 400 for integrating a system provided by an embodiment of the present application, and for convenience of explanation, only a portion related to the embodiment of the present application is shown.
Referring to fig. 4, the apparatus includes:
a data obtaining unit 401, configured to traverse applications to be integrated in the application set to be integrated and obtain attribute information of the applications to be integrated;
a first judging unit 402, configured to obtain, when attribute information of an application to be integrated is associated with tag information, an installation package of the current application to be integrated from a storage location indicated by the associated tag information;
a second judging unit 403, configured to obtain a code to be compiled according to the submitted record information of the current application to be integrated when the attribute information of the application to be integrated is not associated with the tag information, and compile the obtained code to be compiled into an installation package of the current application to be integrated;
and the system integration unit 404 is configured to perform a system integration operation on the installation packages of the applications to be integrated in the application set to be integrated and the pre-stored operating system, so as to obtain an installation package of the system with the functions of the applications to be integrated.
In one embodiment, the apparatus further includes an execution judging unit configured to determine to execute traversing the applications to be integrated in the applications to be integrated set when a preset integration condition is satisfied.
In one embodiment, the integration conditions include at least one of:
receiving integration request information input by a user;
reaching a preset integration time.
In one embodiment, the installation package obtaining step further includes, after compiling the obtained code to be compiled into an installation package of the current application to be integrated:
when a preset storage condition is met, storing an installation package of the current application to be integrated, generating tag information for indicating a storage position of the stored installation package, and associating the generated tag information with the current application to be integrated.
In one embodiment, the storage conditions include: and receiving storage request information input by a user.
In one embodiment, the apparatus further includes an information recording unit for receiving and storing codes submitted by the user for applications to be integrated in the set of applications to be integrated, and writing code location information describing storage locations of the codes into the submitted recording information of the corresponding applications to be integrated.
In one embodiment, submitting the record information includes: code location information for describing a storage location of the code, commit time information for describing commit time of the code, and modification description information for describing modification contents of the code.
In one embodiment, the apparatus further comprises a system storage unit for storing an installation package of the system, generating a system tag for indicating a storage location of the installation package of the system, and associating the system tag with the installation package of the system.
According to the device provided by the embodiment, only part of codes to be integrated and applied can be compiled to obtain the installation package, the time for compiling the codes to obtain the installation package can be shortened, the system integration time can be saved, and the system integration efficiency can be improved. In addition, in practice, since the stored installation packages are usually installation packages meeting design requirements, and since the code may be affected by the compiling environment during compiling the code into the installation packages, the installation packages meeting the design requirements may be obtained, but problematic installation packages are obtained. Therefore, the application directly adopts the stored installation package meeting the design requirement to integrate the system, and can ensure the stability of the functions of the system obtained after integration.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein.
Example five
Fig. 5 is a schematic structural diagram of an electronic device 500 according to an embodiment of the application. As shown in fig. 5, the electronic apparatus 500 of this embodiment includes: at least one processor 501 (only one processor is shown in fig. 5), a memory 502, and a computer program 503 stored in the memory 502 and executable on the at least one processor 501, such as a program for an integrated system. The steps of any of the various method embodiments described above are implemented by processor 501 when executing computer program 503. The steps of the embodiments of the methods for integrating systems described above are implemented by the processor 501 when executing the computer program 503. The processor 501, when executing the computer program 503, performs the functions of the modules/units in the above-described device embodiments, such as the functions of the units 401 to 404 shown in fig. 4.
By way of example, the computer program 503 may be split into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing particular functions for describing the execution of the computer program 503 in the electronic device 500. For example, the computer program 503 may be divided into a data acquisition unit, a first determination unit, a second determination unit, and a system integration unit, and specific functions of each unit are described in the above embodiments, which are not described herein.
The electronic device 500 may be a computing device such as a server, desktop computer, tablet computer, cloud server, mobile terminal, and the like. Electronic device 500 may include, but is not limited to, processor 501, memory 502. It will be appreciated by those skilled in the art that fig. 5 is merely an example of an electronic device 500 and is not meant to limit the electronic device 500, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., an electronic device may also include an input-output device, a network access device, a bus, etc.
The processor 501 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 502 may be an internal storage unit of the electronic device 500, such as a hard disk or a memory of the electronic device 500. The memory 502 may also be an external storage device of the electronic device 500, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 500. Further, the memory 502 may also include both internal storage units and external storage devices of the electronic device 500. The memory 502 is used to store computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated modules, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, and the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the content of the computer readable medium can be appropriately increased or decreased according to the requirements of the jurisdiction's jurisdiction and the patent practice, for example, in some jurisdictions, the computer readable medium does not include electrical carrier signals and telecommunication signals according to the jurisdiction and the patent practice.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for integrating a system, wherein the method comprises:
traversing an application to be integrated in an application set to be integrated and acquiring attribute information of the application to be integrated;
when the attribute information of the application to be integrated is associated with tag information, acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information;
when the attribute information of the application to be integrated is not associated with the tag information, acquiring codes to be compiled according to the submitting record information of the current application to be integrated, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated;
and executing system integration operation on the installation packages of the applications to be integrated in the application set to be integrated and the prestored operating system to obtain the installation package of the system with the functions of the applications to be integrated.
2. The method of claim 1, wherein prior to the traversing the applications to be integrated in the set of applications to be integrated, the method further comprises:
and when the preset integration conditions are met, determining to execute the traversing application to be integrated in the application to be integrated set.
3. The method of claim 2, wherein the integration conditions include at least one of:
receiving integration request information input by a user;
reaching a preset integration time.
4. The method of claim 1, wherein in the installation package obtaining step, after the compiling the obtained code to be compiled into an installation package of the current application to be integrated, the method further comprises:
when a preset storage condition is met, storing an installation package of the current application to be integrated, generating tag information for indicating a storage position of the stored installation package, and associating the generated tag information with the current application to be integrated.
5. The method of claim 4, wherein the storage condition comprises: and receiving storage request information input by a user.
6. The method of one of claims 1-5, wherein prior to said traversing an application to be integrated in a set of applications to be integrated, the method further comprises:
and receiving and storing codes submitted by a user aiming at the applications to be integrated in the application set to be integrated, and writing code position information for describing the storage positions of the codes into the submitted record information of the corresponding applications to be integrated.
7. The method of one of claims 1-5, wherein the submitting record information comprises: code location information for describing a storage location of the code, commit time information for describing commit time of the code, and modification description information for describing modification contents of the code.
8. The method of claim 1, wherein after performing a system integration operation on the installation package of each application to be integrated in the set of applications to be integrated and the pre-stored operating system to obtain an installation package of a system having functions of the application to be integrated, the method further comprises:
storing an installation package of the system, generating a system tag indicating a storage location of the installation package of the system, and associating the system tag with the installation package of the system.
9. An apparatus for an integrated system, wherein the apparatus comprises:
the data acquisition unit is used for traversing the applications to be integrated in the application set to be integrated and acquiring attribute information of the applications to be integrated;
the first judging unit is used for acquiring an installation package of the current application to be integrated from a storage position indicated by the associated tag information when the tag information is associated with the attribute information of the application to be integrated;
the second judging unit is used for acquiring codes to be compiled according to the submitting record information of the current application to be integrated when the attribute information of the application to be integrated is not related to the tag information, and compiling the acquired codes to be compiled into an installation package of the current application to be integrated;
and the system integration unit is used for executing system integration operation on the installation packages of the applications to be integrated in the application set to be integrated and the prestored operating system to obtain the installation packages of the system with the functions of the applications to be integrated.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when the computer program is executed.
CN202010911289.8A 2020-09-02 2020-09-02 Method, apparatus and device for integrated system Active CN112214220B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010911289.8A CN112214220B (en) 2020-09-02 2020-09-02 Method, apparatus and device for integrated system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010911289.8A CN112214220B (en) 2020-09-02 2020-09-02 Method, apparatus and device for integrated system

Publications (2)

Publication Number Publication Date
CN112214220A CN112214220A (en) 2021-01-12
CN112214220B true CN112214220B (en) 2023-10-10

Family

ID=74048900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010911289.8A Active CN112214220B (en) 2020-09-02 2020-09-02 Method, apparatus and device for integrated system

Country Status (1)

Country Link
CN (1) CN112214220B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683899A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of software integrating method and device
CN110990020A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Software compiling method and device, electronic equipment and storage medium
CN111078223A (en) * 2018-10-22 2020-04-28 腾讯科技(深圳)有限公司 Application program packaging method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683899A (en) * 2017-10-18 2019-04-26 中移(苏州)软件技术有限公司 A kind of software integrating method and device
CN111078223A (en) * 2018-10-22 2020-04-28 腾讯科技(深圳)有限公司 Application program packaging method and device
CN110990020A (en) * 2019-11-24 2020-04-10 苏州浪潮智能科技有限公司 Software compiling method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112214220A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
CN110457277B (en) Service processing performance analysis method, device, equipment and storage medium
US7975257B2 (en) Iterative static and dynamic software analysis
CN111737564A (en) Information query method, device, equipment and medium
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN113010116A (en) Data processing method and device, terminal equipment and readable storage medium
CN112115105A (en) Service processing method, device and equipment
CN113946803A (en) Method and device for automatic bypass by having anti-debugging mechanism for target program
CN112068874A (en) Software project continuous integration method and device, terminal equipment and storage medium
CN110968339B (en) Method and device for front-end building tool and electronic equipment
CN112860802A (en) Database operation statement processing method and device and electronic equipment
CN112214220B (en) Method, apparatus and device for integrated system
CN110688320B (en) Global variable detection method and device and terminal equipment
CN109324838B (en) Execution method and execution device of single chip microcomputer program and terminal
CN116303820A (en) Label generation method, label generation device, computer equipment and medium
CN110908882A (en) Performance analysis method and device of application program, terminal equipment and medium
CN114936368A (en) Java memory Trojan detection method, terminal device and storage medium
CN110795259A (en) Method and device for analyzing application collapse
WO2013117142A1 (en) File processing method and system
CN114090514A (en) Log retrieval method and device for distributed system
CN112711602B (en) Method and device for running stored procedure, database system and storage medium
CN110647527B (en) Big data-based invalid label clearing method and device, equipment and readable medium
CN113722321A (en) Data export method and device and electronic equipment
CN112286572A (en) Configuration method and device of business process
US8495033B2 (en) Data processing

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
TR01 Transfer of patent right

Effective date of registration: 20231130

Address after: Room 601, 6th Floor, Building 13, No. 3 Jinghai Fifth Road, Beijing Economic and Technological Development Zone (Tongzhou), Tongzhou District, Beijing, 100176

Patentee after: Beijing Youbixuan Intelligent Robot Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Youbixuan Technology Co.,Ltd.

TR01 Transfer of patent right