A method, system, storage medium and device for installing a service-dependent object
By analyzing and adjusting service dependencies, the orderly installation of indirect dependencies and direct dependencies is ensured, which solves the problems of uncontrollable installation order and single instance limitation in the existing technology, and improves the controllability of installation and the ease of use of the platform.
Patent Information
- Application Number
- CN202111065225.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-09-11
AI Technical Summary
In the existing technology, the installation sequence of direct and indirect dependencies during service installation is uncontrollable, resulting in installation failure or operation failure, and only supports single-instance dependencies, which cannot meet the needs of multiple instances, reducing the usability and stability of the platform.
By receiving service dependency files uploaded by users, it parses and adjusts dependencies, removes duplicate dependent objects, ensures that indirect dependent objects are installed first, and then directly dependent objects are installed, and multi-instance dependencies are supported.
It improves the controllability and reliability of installation, saves operation time, enhances the stability and ease of use of the management platform, and meets the needs of multi-instance dependencies.
Smart Images

Figure CN113805902B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of software technology, and in particular to a method, system, storage medium and device for installing a service-dependent object. Background Art
[0002] In recent years, with the rapid development of computer and information technology, the data generated by application systems in various industries has increased significantly. Insight (a big data tool management platform) big data platform came into being in this context. The Insight platform provides users with a variety of big data services and components, which users can install according to their business needs. Most services have dependent services and components. Dependencies refer to other services that are necessary for the operation of the service. Dependent services are mainly divided into two types: 1. Directly dependent services, that is, services that need to be used directly for the normal operation of the service; 2. Indirectly dependent services, that is, services that need to be used for the operation of the dependency. When installing services, it is necessary to ensure that direct and indirect dependencies are also installed normally.
[0003] The current direct and indirect dependency installation scheme for services is: when installing a service, the dependent services will be checked together on the page, and then installed uniformly by the backend service. In this way, the installation order of services is uncontrollable. If the dependent services are not installed first, the service installation or operation will fail. To solve this problem, users must first view the dependency graph, and perform multiple split installations based on all the dependencies of the installed services to ensure the installation order of the dependencies. This will reduce the usability of the platform and there is a risk of incorrect installation order. In addition, only single-instance dependencies are currently supported, and each service can only provide single-instance installation, which cannot meet users' needs for multiple service instances. Summary of the invention
[0004] In view of this, the purpose of the present invention is to propose a method, system, storage medium and device for installing service dependency objects, so as to solve the problem of inconvenience and confusion in installing direct dependencies and indirect dependencies when installing services in the prior art.
[0005] Based on the above purpose, the present invention provides a method for installing a service-dependent object, comprising the following steps:
[0006] Receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein;
[0007] Receiving, through the platform interface, adjustments made by the user to the dependencies of all services based on the dependency objects of all services to obtain updated services and corresponding updated dependencies, and parsing the updated dependencies to obtain direct dependency objects and indirect dependency objects of each service in the plurality of services;
[0008] Receiving multiple services to be installed from among the multiple services, obtaining direct dependent objects and indirect dependent objects of the multiple services to be installed, and removing duplicate dependent objects in a same-level dependency relationship;
[0009] Confirm that all indirect dependent objects after deduplication have been installed;
[0010] In response to all indirect dependent objects being installed, confirming in turn whether all direct dependent objects after deduplication are installed;
[0011] In response to a directly dependent object not being installed, the directly dependent object is added to an installation queue to wait for installation.
[0012] In some embodiments, receiving, through the platform interface, a user's adjustment of dependencies of all services based on dependency objects of all services includes:
[0013] The platform interface receives the modification and deletion of the user's dependencies on all services, and receives the user's addition of new services and corresponding new dependencies.
[0014] In some embodiments, obtaining direct dependency objects and indirect dependency objects of multiple services to be installed and removing duplicate dependency objects in a same-level dependency relationship includes:
[0015] Direct dependent objects and indirect dependent objects of multiple services to be installed are obtained, and duplicate direct dependent objects that are in a same-level dependency relationship are deduplicated, and duplicate indirect dependent objects that are in a same-level dependency relationship are deduplicated.
[0016] In some embodiments, the method further comprises:
[0017] In response to a directly dependent object being installed and having multiple instances, a user is prompted to select an instance from the multiple instances, and the instance selected by the user is added to an installation queue to wait for installation.
[0018] In some embodiments, the method further comprises:
[0019] In response to an indirect dependent object not being installed, the user is prompted with the name of the indirect dependent object not being installed, so that the user can install the indirect dependent object not being installed based on the name.
[0020] In some embodiments, the method further comprises:
[0021] In response to the completion of deduplication, directly dependent objects of the multiple services to be installed are sorted.
[0022] In some embodiments, sequentially confirming whether each directly dependent object after deduplication is installed includes:
[0023] Confirm whether each direct dependency object is installed in order.
[0024] Another aspect of the present invention further provides a system for installing a service-dependent object, comprising:
[0025] A dependency object acquisition module is configured to receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein;
[0026] A dependency object obtaining module configured to receive, through a platform interface, an adjustment of the dependency relationships of all services by a user based on the dependency relationship objects of all services, so as to obtain updated services and corresponding updated dependencies, and to parse the updated dependencies to obtain direct dependency objects and indirect dependency objects of each service in the services;
[0027] A deduplication module is configured to receive multiple services to be installed from among the multiple services, obtain direct dependent objects and indirect dependent objects of the multiple services to be installed, and deduplication duplicate dependent objects in the same level dependency relationship;
[0028] A first confirmation module is configured to confirm whether all indirect dependent objects after deduplication have been installed;
[0029] A second confirmation module is configured to confirm in sequence whether each direct dependent object after deduplication is installed in response to each indirect dependent object being installed; and
[0030] The installation module is configured to add a directly dependent object to an installation queue to wait for installation in response to a directly dependent object not being installed.
[0031] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer program instructions, and the computer program instructions implement any one of the above methods when executed by a processor.
[0032] According to another aspect of the present invention, a computer device is provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, any one of the above methods is executed.
[0033] The present invention has at least the following beneficial technical effects:
[0034] 1. The present invention can save operation time in the case of a large number of services and dependencies by parsing the file containing service dependencies and then adjusting all services and dependencies, and has strong flexibility;
[0035] 2. By removing duplicate dependent objects in the same level dependency relationship, it helps to install direct and indirect dependent objects in an orderly manner, avoiding installation confusion caused by multiple duplicate dependent objects;
[0036] 3. By installing all indirect dependent objects first and then installing direct dependent objects, it is beneficial to the controllability and reliability of the installation, and further ensures the stability and ease of use of the management platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a method for installing a service-dependent object according to an embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a system for installing a service-dependent object according to an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of a computer-readable storage medium for implementing a method for installing a service-dependent object according to an embodiment of the present invention;
[0041] Figure 4 A schematic diagram of the hardware structure of a computer device for executing a method for installing a service-dependent object according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0043] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are intended to distinguish two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, other steps or units inherent to a process, method, system, product or device that includes a series of steps or units.
[0044] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of a method for installing a service-dependent object. Figure 1FIG. 1 is a schematic diagram of an embodiment of a method for installing a service-dependent object provided by the present invention. Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0045] Step S10: receiving a file containing service dependencies uploaded by a user, and parsing the file to obtain dependency objects of all services therein;
[0046] Step S20: receiving, through the platform interface, an adjustment of the dependency relationships of all services by the user based on the dependency relationship objects of all services, so as to obtain updated services and corresponding updated dependency relationships, and parsing the updated dependency relationships to obtain direct dependency objects and indirect dependency objects of each service in the plurality of services;
[0047] Step S30: receiving multiple services to be installed from among the multiple services, obtaining direct dependent objects and indirect dependent objects of the multiple services to be installed, and removing duplicate dependent objects in the same level dependency relationship;
[0048] Step S40: confirm whether all the indirect dependent objects after deduplication have been installed;
[0049] Step S50: In response to all indirectly dependent objects being installed, confirm in turn whether all directly dependent objects after deduplication are installed;
[0050] Step S60: In response to a directly dependent object not being installed, adding the directly dependent object to an installation queue to wait for installation.
[0051] In this embodiment, the file containing service dependencies uploaded by the user can be an Excel file, which contains one or more services, and each service has its own corresponding dependency, including direct dependency and indirect dependency. Regarding direct dependency and indirect dependency, for example, service A requires component B when installing, and component B requires component C. At this time, component B and service A are in a direct dependency relationship, and component B is the direct dependency object of service A. Component C and service A are in an indirect dependency relationship, and component C is the indirect dependency object of service A.
[0052] After parsing the file to obtain the dependency objects of all services therein, the user can edit the services and the objects and the dependencies between them in the platform interface, wherein services may be increased or decreased, thereby obtaining several updated services.
[0053] By parsing the dependencies in the file and then editing the dependencies through the platform interface, new dependencies can be adjusted based on the original large number of dependencies, which greatly saves time. If the user directly edits the dependencies of each service and dependent object in the platform interface, a lot of time and energy will be wasted when there are a large number of services and dependencies.
[0054] The embodiment of the present invention can save operation time in the case of a large number of services and dependencies by parsing the file containing service dependencies and then adjusting all services and dependencies, and has strong flexibility; by deduplicating repeated dependent objects in the same level dependency relationship, it helps to ensure the orderliness of subsequent installation of direct dependent objects and indirect dependent objects, and avoids installation confusion caused by the existence of multiple repeated dependent objects; by installing all indirect dependent objects first and then installing direct dependent objects, it is beneficial to the controllability and reliability of the installation; and further ensures the stability and ease of use of the management platform.
[0055] In some embodiments, receiving through the platform interface a user's adjustment of dependencies on all services based on dependency objects of all services includes: receiving through the platform interface a user's modification and deletion of dependencies on all services, and receiving a user's addition of new services and corresponding new dependencies.
[0056] In this embodiment, the user can modify and delete the dependencies of existing services on the platform's web interface, and can also set dependencies for newly added services, which has strong flexibility.
[0057] In some embodiments, obtaining multiple direct dependent objects and indirect dependent objects of services to be installed and deduplicating duplicate dependent objects that are in the same level of dependency relationship includes: obtaining multiple direct dependent objects and indirect dependent objects of services to be installed, deduplicating duplicate direct dependent objects that are in the same level of dependency relationship, and deduplicating duplicate indirect dependent objects that are in the same level of dependency relationship.
[0058] In this embodiment, regarding the same-level dependency relationship, for example, if the direct dependency object of service A has component B, and the direct dependency object of service K also has component B, then the two components B are at the same level, and one of the components B is removed. For another example, if the indirect dependency object of service A has component C, and the indirect dependency object of service J also has component C, then the two components C are at the same level, and one of the components C is removed.
[0059] In some embodiments, the method further includes: in response to a directly dependent object being installed and having multiple instances, prompting a user to select an instance from the multiple instances, and adding the instance selected by the user to an installation queue to wait for installation.
[0060] This embodiment solves the problem in the prior art that services can only provide installation of single-instance dependent objects by prompting the user to select one installation from multiple embodiments, thereby meeting the user's demand for installation of multiple-instance dependent objects of the service.
[0061] In some embodiments, the method further includes: in response to an indirect dependent object not being installed, prompting the user with the name of the indirect dependent object that has not been installed, so that the user can install the indirect dependent object that has not been installed based on the name.
[0062] In this embodiment, by prompting the user with the name of the indirect dependent object that has not been installed, it is convenient for the user to directly install the indirect dependent object that has not been installed, which helps to complete the installation of all the indirect dependent objects.
[0063] In some embodiments, the method further includes: in response to completing deduplication, sorting directly dependent objects of the plurality of services to be installed.
[0064] In some embodiments, confirming in sequence whether each directly dependent object after deduplication is installed includes: confirming in sequence whether each directly dependent object is installed according to the order.
[0065] In this embodiment, in order to ensure the orderly installation of direct dependencies, they are sorted in advance, and then it is confirmed in turn whether each direct dependency object is installed, and the dependent objects that have not been installed are placed in a queue in order to wait for installation.
[0066] A second aspect of the embodiments of the present invention further provides a system for installing service-dependent objects. Figure 2 FIG. 1 is a schematic diagram of an embodiment of a system for installing a service-dependent object provided by the present invention. Figure 2As shown, a system for installing service dependency objects includes: a dependency object acquisition module 10, configured to receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein; a dependency object acquisition module 20, configured to receive, through a platform interface, an adjustment of the dependency relationships of all services by the user based on the dependency objects of all services, so as to obtain updated services and corresponding updated dependencies, and parse the updated dependencies to obtain direct dependency objects and indirect dependency objects of each service in the services; a deduplication module 30, configured to receive a plurality of services to be installed from the services, and obtain direct dependency objects and indirect dependency objects of the plurality of services to be installed and deduplication of repeated dependency objects in the same level dependency relationships; a first confirmation module 40, configured to confirm whether all indirect dependency objects after deduplication have been installed; a second confirmation module 50, configured to confirm whether all direct dependency objects after deduplication have been installed in turn in response to all indirect dependency objects being installed; and an installation module 60, configured to add a direct dependency object to an installation queue to wait for installation in response to a direct dependency object not being installed.
[0067] In some embodiments, the dependency object acquisition module 20 includes an addition, deletion and modification module configured to receive, through the platform interface, modifications and deletions of user dependencies on all services, and to receive additions of new services and corresponding new dependencies by users.
[0068] In some embodiments, the deduplication module 30 includes a same-level deduplication module, which is configured to obtain direct dependency objects and indirect dependency objects of multiple services to be installed, and to deduplicate duplicate direct dependency objects that are in a same-level dependency relationship, and to deduplicate duplicate indirect dependency objects that are in a same-level dependency relationship.
[0069] In some embodiments, the system further comprises an instance selection module configured to prompt a user to select an instance from the multiple instances in response to a directly dependent object being installed and having multiple instances, and to add the instance selected by the user to an installation queue to wait for installation.
[0070] In some embodiments, the system further includes an uninstalled module configured to prompt the user with the name of the uninstalled indirect dependent object in response to an indirect dependent object not being installed, so that the user can install the uninstalled indirect dependent object based on the name.
[0071] In some embodiments, the system further includes a sorting module configured to sort the direct dependency objects of the multiple services to be installed in response to completing deduplication.
[0072] In some embodiments, the second confirmation module 50 includes a sequential confirmation module configured to confirm in sequence whether each directly dependent object is installed.
[0073] A third aspect of the embodiments of the present invention further provides a computer-readable storage medium. Figure 3 A schematic diagram of a computer-readable storage medium for implementing a method for installing a service-dependent object according to an embodiment of the present invention is shown. Figure 3 As shown, the computer readable storage medium 3 stores computer program instructions 31. When the computer program instructions 31 are executed by the processor, the following steps are implemented:
[0074] Receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein;
[0075] Receiving, through the platform interface, adjustments made by the user to the dependencies of all services based on the dependency objects of all services to obtain updated services and corresponding updated dependencies, and parsing the updated dependencies to obtain direct dependency objects and indirect dependency objects of each service in the plurality of services;
[0076] Receiving multiple services to be installed from among the multiple services, obtaining direct dependent objects and indirect dependent objects of the multiple services to be installed, and removing duplicate dependent objects in a same-level dependency relationship;
[0077] Confirm that all indirect dependent objects after deduplication have been installed;
[0078] In response to all indirect dependent objects being installed, confirming in turn whether all direct dependent objects after deduplication are installed;
[0079] In response to a directly dependent object not being installed, the directly dependent object is added to an installation queue to wait for installation.
[0080] In some embodiments, receiving, through the platform interface, a user's adjustment of dependencies of all services based on dependency objects of all services includes:
[0081] The platform interface receives the modification and deletion of the user's dependencies on all services, and receives the user's addition of new services and corresponding new dependencies.
[0082] In some embodiments, obtaining multiple direct dependent objects and indirect dependent objects of services to be installed and deduplicating duplicate dependent objects that are in the same level of dependency relationship includes: obtaining multiple direct dependent objects and indirect dependent objects of services to be installed, deduplicating duplicate direct dependent objects that are in the same level of dependency relationship, and deduplicating duplicate indirect dependent objects that are in the same level of dependency relationship.
[0083] In some embodiments, the steps further include: in response to a directly dependent object being installed and having multiple instances, prompting a user to select an instance from the multiple instances, and adding the instance selected by the user to an installation queue to wait for installation.
[0084] In some embodiments, the steps further include: in response to an indirect dependent object not being installed, prompting the user with the name of the indirect dependent object that has not been installed, so that the user can install the indirect dependent object that has not been installed based on the name.
[0085] In some embodiments, the step further includes: in response to completing deduplication, sorting directly dependent objects of the multiple services to be installed.
[0086] In some embodiments, confirming in sequence whether each directly dependent object after deduplication is installed includes: confirming in sequence whether each directly dependent object is installed according to the order.
[0087] It should be understood that, in the absence of conflict, all the embodiments, features and advantages described above for the installation method of the service-dependent object according to the present invention are also applicable to the installation system and storage medium of the service-dependent object according to the present invention.
[0088] A fourth aspect of the embodiments of the present invention further provides a computer device, including a memory 402 and a processor 401, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method of any one of the above embodiments is implemented.
[0089] like Figure 4 FIG. 1 is a schematic diagram of the hardware structure of a computer device for executing the installation method of a service-dependent object provided by the present invention. Figure 4 Taking the computer device shown in FIG. 4 as an example, the computer device includes a processor 401 and a memory 402, and may also include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected via a bus or other means. Figure 4 The example of the bus connection is taken as an example. The input device 403 can receive input digital or character information, and generate key signal input related to user settings and function control of the installation system of the service dependent object. The output device 404 can include display devices such as display screens.
[0090] The memory 402, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the installation method of the service-dependent object in the embodiment of the present application. The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created by the use of the installation method of the service-dependent object, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 402 may optionally include a memory remotely arranged relative to the processor 401, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] The processor 401 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 402, that is, implements the installation method of the service-dependent object of the above method embodiment.
[0092] Finally, it should be noted that the computer-readable storage medium (e.g., memory) herein may be a volatile memory or a nonvolatile memory, or may include both a volatile memory and a nonvolatile memory. As an example and not by way of limitation, a nonvolatile memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. A volatile memory may include a random access memory (RAM), which may act as an external cache memory. As an example and not by way of limitation, RAM may be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to include, but are not limited to, these and other suitable types of memory.
[0093] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.
[0094] The various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure herein may be implemented or executed using the following components designed to perform the functions herein: a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination of these components. A general purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP, and / or any other such configuration.
[0095] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.
[0096] It should be understood that, as used herein, the singular form "a" or "an" is intended to include the plural form as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations of one or more of the items listed in association. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments.
[0097] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.
Claims
1. A method for installing a service-dependent object, characterized in that: The following steps are involved: Receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein; Receiving, through a platform interface, an adjustment of the dependencies of all the services by a user based on the dependency objects of all the services to obtain updated services and corresponding updated dependencies, and parsing the updated dependencies to obtain direct dependency objects and indirect dependency objects of each of the services; Receiving multiple services to be installed from the plurality of services, obtaining direct dependent objects and indirect dependent objects of the multiple services to be installed, and removing duplicate dependent objects in a same-level dependency relationship; Confirm that all indirect dependent objects after deduplication have been installed; In response to all indirect dependent objects being installed, confirming in turn whether all direct dependent objects after deduplication are installed; In response to a directly dependent object not being installed, the directly dependent object is added to an installation queue to wait for installation.
2. The method according to claim 1, characterized in that Receiving, through the platform interface, an adjustment of the dependency relationship of all the services by the user based on the dependency relationship objects of all the services includes: The platform interface receives the modification and deletion of the dependency relationships of all the services from the user, and receives the addition of new services and corresponding new dependency relationships from the user.
3. The method according to claim 1, characterized in that Acquiring the direct dependent objects and the indirect dependent objects of the multiple services to be installed and removing duplicate dependent objects in the same level dependency relationship includes: Direct dependent objects and indirect dependent objects of the multiple services to be installed are obtained, and duplicate direct dependent objects that are in a same-level dependency relationship are deduplicated, and duplicate indirect dependent objects that are in a same-level dependency relationship are deduplicated.
4. The method according to claim 1, characterized in that: Also includes: In response to a directly dependent object being installed and having multiple instances, a user is prompted to select an instance from the multiple instances, and the instance selected by the user is added to the installation queue to wait for installation.
5. The method according to claim 1, characterized in that Also includes: In response to an indirect dependent object not being installed, a name of the indirect dependent object not being installed is prompted to the user, so that the user can install the indirect dependent object not being installed based on the name.
6. The method according to claim 1, characterized in that Also includes: In response to the completion of deduplication, directly dependent objects of the multiple services to be installed are sorted.
7. The method according to claim 6, characterized in that Confirm in turn whether each directly dependent object after deduplication is installed, including: Confirm whether each direct dependency object is installed in order.
8. A system for installing a service-dependent object, characterized in that: include: A dependency object obtaining module is configured to receive a file containing service dependencies uploaded by a user, and parse the file to obtain dependency objects of all services therein; A dependency object obtaining module, configured to receive, through a platform interface, an adjustment made by a user on the dependency relationships of all the services based on the dependency relationship objects of all the services, so as to obtain updated services and corresponding updated dependencies, and to parse the updated dependencies to obtain direct dependency objects and indirect dependency objects of each of the services; a deduplication module configured to receive multiple services to be installed from the plurality of services, obtain direct dependent objects and indirect dependent objects of the multiple services to be installed, and deduplication duplicate dependent objects in a same-level dependency relationship; A first confirmation module is configured to confirm whether all indirect dependent objects after deduplication have been installed; A second confirmation module is configured to confirm in sequence whether each direct dependent object after deduplication is installed in response to each indirect dependent object being installed; as well as The installation module is configured to add the directly dependent object to an installation queue to wait for installation in response to a directly dependent object not being installed.
9. A computer-readable storage medium, characterized in that: Computer program instructions are stored, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 7 is performed.
