Middleware processing method and device, equipment, medium and computer program product
By using target identity information and execution information in middleware installation for permission verification and determining process templates based on middleware parameters, the problem of low middleware installation efficiency is solved, and efficient and secure middleware processing is achieved.
Patent Information
- Application Number
- CN202411436183.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-18
AI Technical Summary
The existing middleware installation method is inefficient, requires writing execution files, requires staff to have high-level programming language capabilities, and requires modification of the installation environment.
By obtaining the target identity information and target execution information in the target middleware information for permission verification, the target process template is determined based on the target middleware parameters, and the middleware processing is completed using the target process template.
It improves the efficiency of middleware installation, reduces labor costs, reduces the requirements for programming language capabilities, and simplifies the installation process and enhances the security of processing.
Smart Images

Figure CN119473324A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a middleware processing method, device, equipment, medium and computer program product. Background Art
[0002] The installation of the middleware is generally performed by staff writing an execution file, in which the parameters required for installing the middleware are written, so that the middleware is installed through the execution file.
[0003] In the method of installing the middleware through the execution file, the execution file needs to be written in a strict programming language, which requires high programming language skills of the staff and has the problem of high labor costs; and the execution file requires a specific operating environment to run, so the environment for installing the middleware also needs to be modified, resulting in low middleware installation efficiency. Summary of the invention
[0004] The present application provides a middleware processing method, apparatus, device, medium and computer program product to solve the problem of low middleware installation efficiency.
[0005] In a first aspect, the present application provides a middleware processing method, comprising:
[0006] Acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters;
[0007] If the target identity information indicates that the target execution authority corresponding to the target execution information is present, then determining a target process template based on the target middleware parameters; wherein different middleware parameters correspond to process templates;
[0008] Based on the target process template, the target middleware completes processing corresponding to the target execution information.
[0009] In an implementable manner, before determining the target process template based on the target middleware parameter, the method further includes:
[0010] Obtaining the audit result of the target middleware information;
[0011] If the audit result indicates passing, then executing the step of determining the target process template based on the target middleware parameters;
[0012] If the audit result indicates failure, first information indicating modification of the target middleware information is generated.
[0013] In an implementable manner, the execution information includes execution upgrade information, execution installation information, execution recycling information and execution repair information; the method further includes:
[0014] Execution permissions corresponding to each execution information are allocated to different identity information; wherein each identity information has at least one execution permission corresponding to the execution information.
[0015] In an implementable manner, the target process template includes at least one process node; and completing the processing corresponding to the target execution information on the target middleware based on the target process template includes:
[0016] Based on the execution order between each process node in the target process template, calling the execution data corresponding to each process node in turn in the preset software center;
[0017] Based on the execution data corresponding to each process node and the execution order between the process nodes in the target process template, the target middleware completes the processing corresponding to the target execution information.
[0018] In an implementable manner, before sequentially calling the execution data corresponding to each process node in the preset software center based on the execution order between each process node in the target process template, the method further includes:
[0019] Acquire initial execution data, where the initial execution data corresponds to the middleware parameters;
[0020] If the initial execution data passes the review, the initial execution data is used as the execution data corresponding to each process node in the target process template;
[0021] If the initial execution data fails the review, second information instructing to modify the initial execution data is generated.
[0022] In an implementable manner, the target middleware includes external middleware; before determining the target process template based on the target middleware parameters, the method further includes:
[0023] Obtaining authorization information of the target middleware;
[0024] If the authorization information indicates that the target middleware has the target execution authority corresponding to the target execution information, a target process template is determined based on the target middleware parameters.
[0025] In one possible implementation, the method further includes:
[0026] When the target middleware completes the processing corresponding to the target execution information, generating target log information;
[0027] The target log information is displayed.
[0028] In a second aspect, the present application provides a middleware processing device, comprising: an information acquisition module, used to acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters;
[0029] A process template determination module, configured to determine a target process template based on the target middleware parameters if the target identity information indicates that the target execution authority corresponding to the target execution information is present; wherein different middleware parameters correspond to process templates;
[0030] A processing module is used to complete the processing corresponding to the target execution information on the target middleware based on the target process template.
[0031] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store instructions; the processor is used to execute the instructions in the memory, so that the electronic device executes the method described in the first aspect.
[0032] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0033] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0034] The middleware processing method, device, equipment, medium and computer program product provided by the present application perform permission verification through the target identity information and target execution information in the target middleware information. After the permission verification is passed, the target process template can be determined through the target middleware parameters, so that the middleware processing can be realized through the target process template. In this process, permission verification is performed through the target identity information and target execution information to improve the security of the target middleware processing, and the target middleware processing can be efficiently realized through the target process template by matching the target process template with indirect parameters in the target. In this process, the middleware processing can be realized without writing an execution file, so that the staff does not need to be familiar with the program language and does not need to modify the environment for installing the middleware, thereby improving the efficiency of middleware processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] Figure 1 This is an implementation scenario diagram shown for an exemplary embodiment;
[0037] Figure 2 A flowchart of a middleware processing method is shown as an exemplary embodiment;
[0038] Figure 3 A structural diagram of a middleware processing system is shown as an exemplary embodiment;
[0039] Figure 4 This is a structural diagram of a middleware processing device shown as an exemplary embodiment;
[0040] Figure 5 The present invention is a block diagram of an electronic device showing an exemplary embodiment.
[0041] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0042] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0043] It should be noted that the middleware information, identity information and other related information involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data understood and authorized by the relevant users or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of the relevant data comply with the laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and comply with the principles of legality, legitimacy and necessity.
[0044] Take the execution file Ansible Playbook as an example. Ansible Playbook (an open source execution file) is an execution file written in YAML (a programming language) and its file format is also YAML. The current middleware installation requires writing a playbook, writing the required parameters such as the installation address into the file, logging in to the machine where the middleware is installed, transferring the file to it, and commanding the file. After the execution of the file is completed, the execution result will be returned to the command line interface.
[0045] However, Ansible playbook files must be written in YAML format, and YAML syntax requirements are strict, requiring the programmer to be very familiar with the language; and Ansible playbook requires that the machine where the middleware is installed must have a Python environment. Therefore, when installing the middleware through Ansible playbook, it is necessary to set up a Python environment on the machine where the middleware is installed, resulting in low efficiency in middleware installation; at the same time, Ansible playbook only has the execution function and cannot monitor the execution of tasks in real time, and because there is no graphical interface, it is impossible to intuitively see the execution results; and Ansible playbook executes tasks serially, so for large-scale middleware installation, the waiting time will be too long; because the information required for installing the middleware must be written into the Ansible playbook file, it is not conducive to the permission management and confidentiality of sensitive information.
[0046] Based on this, this embodiment proposes a middleware processing method, device, equipment, medium and computer program product to improve the installation efficiency of the middleware, without the need to write execution files, reduce manual demand for programming languages, and facilitate permission management and confidentiality of sensitive information.
[0047] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] The middleware processing method provided in this application can be implemented on any electronic device with data processing capabilities, or it can be a middleware processing system. It should be noted that the middleware processing system can be deployed separately on an electronic device in any environment (for example: deployed separately on an edge server in an edge environment), or it can be deployed entirely in a cloud environment, or it can be deployed in different environments in a distributed manner.
[0049] For example, the middleware processing system can be logically divided into multiple parts, each with different functions. The parts in the middleware processing system can be deployed in any two or three of the electronic device (located on the user side, such as the client), the edge environment, and the cloud environment. The edge environment is an environment that includes a collection of edge electronic devices that are close to the electronic device. The edge electronic devices include: edge servers, edge stations with computing power, etc. The various parts of the middleware processing system deployed in different environments or devices work together to realize the functions of the data processing platform.
[0050] It should be understood that this application does not restrictively divide which parts of the middleware processing system are deployed in what specific environment. In actual application, it can be adaptively deployed according to the computing power of the electronic device, the resource usage of the edge environment and the cloud environment, or the specific application requirements.
[0051] like Figure 1 This is an implementation scenario diagram showing an exemplary embodiment. The middleware processing system corresponding to the implementation scenario includes a client 10 and a server 11. The client 10 and the server 11 are connected via network communication.
[0052] The execution subject of the method of the embodiment of the present application is the server 11, and the client 10 communicates with the server 11. The client 10 sends the target middleware information to the server 11 through the network. The server 11 is used for middleware processing, obtains the middleware processing result, and can feed back the middleware processing result to the client 10. The client 10 has a graphic user interface, and the middleware processing result can be displayed on the graphic interface.
[0053] In some embodiments, after the server 11 obtains the target middleware information, the target middleware information includes the target identity information, the target execution information of the target middleware and the target middleware parameters; if the target identity information indicates the target execution authority corresponding to the target execution information, the target process template is determined based on the target middleware parameters; wherein different middleware parameters correspond to process templates; based on the target process template, the processing corresponding to the target execution information is completed for the target middleware.
[0054] It is understandable that the middleware processing system can be set at Figure 1 In the server 11, but the example shown in this embodiment Figure 1 The implementation environment shown is only exemplary. In other embodiments, the middleware processing method may also be applied to other implementation environments, and the middleware processing system may also be set in other structures in other implementation environments, which is not specifically limited here.
[0055] In this embodiment, the client 10 is an electronic device on the user side, which can be a wired terminal with a visualization structure or a wireless terminal. In other embodiments, the terminal can be an electronic device with a visualization structure such as a mobile phone, a computer, a tablet, and a vehicle-mounted device.
[0056] The server 11 can be an edge environment and a cloud environment, such as a physical server, a server cluster, and a cloud server, etc., and no specific limitations are made here.
[0057] It is understandable that the middleware processing device can be set at Figure 1 In the server 11, but the example shown in this embodiment Figure 1The implementation environment shown is only exemplary. In other embodiments, the middleware processing method may also be applied to other implementation environments, and the middleware processing device may also be set in other structures in other implementation environments, which is not specifically limited here.
[0058] Figure 2 is a flowchart of a middleware processing method shown in an exemplary embodiment, which is applied to Figure 1 The server 11 in Figure 2 As shown, the method includes steps S210 to S230, which are described in detail as follows:
[0059] S210: Acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters.
[0060] In some embodiments, the middleware processing method can be implemented in Figure 3 The middleware processing system shown includes a task module, a software center, an authorization module and an audit module.
[0061] In the task module, target middleware information may be input, and the target middleware information instructs the middleware processing system to execute processing corresponding to the target execution information on the target middleware.
[0062] It can be understood that the task module may include an installation sub-module, an upgrade sub-module, a recovery sub-module and a repair sub-module. The corresponding target middleware information is written in different sub-modules, and the target execution information in the target middleware information corresponds to the sub-module written with the target middleware information, that is, different sub-modules correspond to different execution information, such as the installation sub-module corresponds to the execution installation information, the upgrade sub-module corresponds to the execution upgrade information, the recovery sub-module corresponds to the execution recovery information, and the repair sub-module corresponds to the execution repair information.
[0063] In some embodiments, the execution upgrade information indicates that the middleware is upgraded, the execution installation information indicates that the middleware is installed, the execution recycling information indicates that the middleware is recycled, and the execution repair information indicates that the middleware is repaired.
[0064] The target middleware parameter may be an identifier of the target middleware. In some embodiments, the target middleware information may also include a deployment address, a deployment mode, a deployment method, etc., which are not specifically limited here. The deployment address indicates that the target middleware completes the processing corresponding to the target execution information at the target address.
[0065] In some embodiments, the target middleware may be external middleware or internal middleware. The external middleware may be middleware developed by other users, while the internal middleware may be middleware developed by the user.
[0066] It can be understood that the task module may include external modules and internal modules. The external module may include installation sub-module, upgrade sub-module, recovery sub-module and repair sub-module, and the internal module may also include installation sub-module, upgrade sub-module, recovery sub-module and repair sub-module.
[0067] The target middleware information written in the installation submodule, upgrade submodule, recycle submodule and repair submodule in the external section corresponds to the external middleware; the target middleware information written in the installation submodule, upgrade submodule, recycle submodule and repair submodule in the internal section corresponds to the internal middleware.
[0068] In some embodiments, if the target middleware is an external middleware, the target middleware information also includes authorization information of the target middleware.
[0069] In this way, the authorization information of the target middleware is obtained; if the authorization information indicates that the target middleware has the target execution authority corresponding to the target execution information, the target process template is determined based on the target middleware parameters.
[0070] The authorization information indicates whether the target middleware obtains the permission granted by the developer of the target middleware in the current time period. If the authorization information exists, it means that the target middleware can be used normally. If there is no authorization information, it means that the permission granted by the developer of the target middleware has not been received, and the subsequent target execution information corresponding to the target middleware cannot be processed for the target middleware.
[0071] S220: If the target identity information indicates that the target execution authority corresponding to the target execution information is present, a target process template is determined based on the target middleware parameters; wherein different middleware parameters correspond to process templates.
[0072] In some embodiments, the task module is connected to the audit module, and the audit module first determines whether the target identity information has the target execution authority corresponding to the target execution information. The target identity information is the identity information of the user who writes the target middleware information.
[0073] In some embodiments, when the audit module determines whether the target identity information has the target execution authority, it can determine it based on the execution authority information corresponding to different preset identity information.
[0074] If the target identity information indicates that the target execution information does not have the target execution authority, an error window pops up.
[0075] In some embodiments, the authorization module may be connected to the audit module, which may allocate execution permissions corresponding to each execution information to different identity information; wherein each identity information has at least one execution permission corresponding to the execution information.
[0076] For example, for a certain identity information, it can be assigned the execution permission corresponding to the execution recovery information. However, if the target execution information is the execution installation information, and the identity information does not have the target execution permission corresponding to the execution installation information, an error window will pop up, indicating that the current user does not have the target execution permission corresponding to the execution installation information.
[0077] In some embodiments, the audit module may also check the authority of the deployment address, that is, determine whether the deployment address can complete the processing corresponding to the target execution information of the target middleware. If the check is successful, proceed to the subsequent steps.
[0078] In some embodiments, if the target identity information indicates that the target execution authority corresponding to the target execution information is present, the correctness of the target middleware information may also be audited by an audit module.
[0079] In this embodiment, the audit module, which is different from the target execution authority audit and verification of the target identity information, can audit the correctness of the target middleware information by sending the target middleware information to other users with target middleware information audit authority. Other users conduct the audit and obtain the audit results, which are then sent to the user corresponding to the target identity information.
[0080] In some embodiments, the audit result of the target middleware information is obtained; if the audit result indicates a pass, the step of determining the target process template based on the target middleware parameters is performed; if the audit result indicates a fail, first information indicating that the target middleware information is to be modified is generated.
[0081] The audit result is used to determine whether the target middleware information is correct, and further improve the correctness of subsequent processing of the target execution information by the target middleware.
[0082] When the first information is generated, the first information can be displayed on a corresponding graphical user interface of the client, so that a user corresponding to the target identity information can modify the target middleware information based on the first information.
[0083] The first information may also include the reason for failure of the review, which can be obtained by filling in other users with target middleware information review authority. In this way, the efficiency of users corresponding to subsequent target identity information in modifying the target middleware information based on the first information is improved. After modifying the target information, the modified target middleware information can be resubmitted. At this time, the target middleware information before the modification will be deleted to ensure that there will be no mutual interference. The modified target middleware information is reviewed here to obtain the review result until the review result indicates that the target middleware information has passed.
[0084] In some embodiments, if the target identity information indicates that the target has the target execution authority corresponding to the target execution information, the target process template is determined based on the target middleware parameters.
[0085] In some embodiments, the target process template is used to instruct the target middleware to complete the process of processing corresponding to the target execution information. Through each node in the target process template, the processing corresponding to the target execution information can be completed.
[0086] For example, in one embodiment, the target execution information is execution installation information, and the installation of the target middleware can be achieved through the target process template.
[0087] In some embodiments, different middleware parameters correspond to process templates, and the process templates may be pre-set. Different process templates may be set for different middleware parameters, so that the corresponding target process template may be determined later through the target middleware parameters.
[0088] S230: Based on the target process template, the target middleware completes the processing corresponding to the target execution information.
[0089] In some embodiments, the target process template includes at least one process node; based on the target process template, the target middleware completes the processing corresponding to the target execution information, including: based on the execution order between the process nodes in the target process template, calling the execution data corresponding to each process node in the preset software center in turn; based on the execution data corresponding to each process node and the execution order between the process nodes in the target process template, the target middleware completes the processing corresponding to the target execution information.
[0090] There is an execution order between each process node in the target process template, and the operation corresponding to each process node is executed according to the execution order.
[0091] In some embodiments, the task module is connected to the software center. There are process nodes in the target process target that need to call execution data. When the process node is executed, the execution data corresponding to each process node can be called in the software center to complete the processing of the process node through the execution data.
[0092] In this way, the target execution information is processed corresponding to the target middleware through the execution data corresponding to each process node and the execution order between each process node in the target process template.
[0093] In some embodiments, multiple execution data may be preset in the software center, and different execution data may correspond to each process node.
[0094] In some embodiments, the software center obtains initial execution data, and the initial execution data corresponds to the middleware parameters; if the initial execution data passes the review, the initial execution data is used as the execution data corresponding to each process node in the target process template; if the initial execution data fails the review, second information is generated to indicate that the initial execution data is to be modified.
[0095] The execution data may be a medium, such as a medium of a target middleware.
[0096] In this embodiment, the software center may include an execution data submodule, and initial execution data is written into the interface of the execution data submodule of the software center. The software center is connected to the audit module.
[0097] The initial execution data will first be reviewed in the review module. If the review passes, the initial execution data will be used as the execution data corresponding to each process node in the target process template; if the initial execution data review fails, the user corresponding to the target identity information can modify the initial execution data based on the second information.
[0098] When the second information is generated, the second information may be displayed on a corresponding graphical user interface of the client, so that a user corresponding to the target identity information may modify the initial execution data based on the second information.
[0099] In other embodiments, the software center may also include a middleware data submodule, which is used to store attribute parameters of the middleware, such as the version, purpose, deployment method, name, etc. of the middleware, so that users can log in to the middleware processing system for viewing.
[0100] In this embodiment, the initial attribute parameters of each middleware can be written in the corresponding interface of the middleware data submodule. The initial attribute parameters are also reviewed in the review module. If the review passes, the initial attribute parameters are the attribute parameters. If the review fails, the initial attribute parameters can be modified.
[0101] In other embodiments, the software center may further include a configuration file submodule, which is used to store the correspondence between the middleware and the execution data. The configuration file can be used to maintain and save the correspondence between different middleware and the execution data for subsequent data tracing.
[0102] In this embodiment, the correspondence between the middleware and the execution data can be written in the corresponding interface of the configuration file submodule, such as writing the correspondence between the target middleware and the execution data required for each process node in the target process template corresponding to the target middleware. The correspondence is also reviewed in the review module. If the review is passed, the correspondence between each middleware and the execution data can be viewed through the configuration file submodule later. If the review fails, the correspondence between each middleware and the execution data can be modified. It can be understood that when the correspondence between the middleware and the execution data is written in the corresponding interface of the configuration file submodule, the execution data corresponding to the middleware is written for each middleware respectively, so as to determine the correspondence between the middleware and the execution data.
[0103] In this embodiment, the audit of the correspondence between the middleware and the execution data, the initial execution data, and the initial attribute data in the audit module can be to send the corresponding information that needs to be audited to other users with corresponding audit permissions. Other users conduct the audit and obtain the audit results, and then send the audit results to the user corresponding to the target identity information.
[0104] In other embodiments, the configuration file submodule, the middleware data submodule and the execution data submodule may provide a data viewing function to display data on the client's graphical user interface, and may also provide a data downloading function to download data to the client's local computer.
[0105] In some embodiments, when the target middleware completes the processing corresponding to the target execution information, target log information is generated; and the target log information is displayed.
[0106] The log information may include log information during the processing of the target execution information executed by the target middleware, such as log information indicating installation processing, upgrade processing, etc.; it may also include log information after the target middleware completes the processing corresponding to the target execution information, such as log information indicating successful installation processing, failed installation processing, etc.
[0107] In some embodiments, the log information may also include target middleware information and information related to the target middleware information, such as the creation time of the target middleware information, the work order number corresponding to the target middleware information, etc., which is not specifically limited here.
[0108] In some embodiments, the log information corresponds to the target middleware information, that is, one target middleware may correspond to the log information, and for one target middleware, its log information in different time periods may be different, such as the log information indicating the installation process and the log information indicating the success of the installation process shown above.
[0109] In some embodiments, log information can be displayed in the task module. For the target middleware corresponding to the previously set target middleware information, the log information of the target middleware can be determined by clicking on the query; if there is a new target middleware that needs to be processed, a new task can be created in the task module for the new target middleware to write the target middleware information corresponding to the new target middleware.
[0110] The middleware processing system in this embodiment can provide a simple and clear graphic page, and can select the corresponding sub-module in the task module according to different middleware processing requirements to write the target middleware information, so as to automatically complete the subsequent target middleware processing through the target middleware information, with high efficiency and low labor cost; at the same time, log information can be fed back in real time during the middleware processing process, so that the required information can be obtained intuitively.
[0111] At the same time, sensitive information such as execution data is all encapsulated in the background, and through the permission verification and audit module of identity information, it can be ensured that the workflow of each stage of middleware processing is carried out within a safe range; and multiple target middleware information can be set at the same time, so as to complete the processing of each target middleware in parallel, and when completing large-scale middleware processing tasks, the time can be controlled within an acceptable range, thereby improving the efficiency of large-scale middleware processing.
[0112] In an embodiment of the present application, permission verification is performed through the target identity information and target execution information in the target middleware information. After the permission verification is passed, the target process template can be determined through the target middleware parameters, so that the middleware processing can be achieved through the target process template. In this process, permission verification is performed through the target identity information and the target execution information to improve the security of the target middleware processing, and the target middleware processing can be efficiently achieved through the target process template by matching the target process template with indirect parameters in the target. In this process, the processing of the middleware can be achieved without writing an execution file, so that the staff does not need to be familiar with the program language and does not need to modify the environment in which the middleware is installed, thereby improving the efficiency of the middleware processing.
[0113] Figure 4 4 is a structural diagram of a middleware processing device shown in an exemplary embodiment. The middleware processing device 400 includes:
[0114] The information acquisition module 410 is used to acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters;
[0115] A process template determination module 430 is used to determine a target process template based on a target middleware parameter if the target identity information indicates that the target execution authority corresponding to the target execution information is present; wherein different middleware parameters correspond to process templates;
[0116] The processing module 450 is used to complete the processing corresponding to the target execution information on the target middleware based on the target process template.
[0117] In one possible implementation, the middleware processing device further includes:
[0118] An audit result determination module is used to obtain the audit result of the target middleware information;
[0119] A first processing module, configured to execute a step of determining a target process template based on target middleware parameters if the audit result indicates a pass;
[0120] The second processing module is used to generate first information indicating modification of the target middleware information if the audit result indicates failure.
[0121] In an implementable manner, the execution information includes execution upgrade information, execution installation information, execution recycling information and execution repair information; and the middleware processing device further includes:
[0122] The authority allocation module is used to allocate execution authority corresponding to each execution information to different identity information; wherein each identity information has at least one execution authority corresponding to the execution information.
[0123] In an implementable manner, the target process template includes at least one process node; a processing module, including:
[0124] An execution data acquisition unit, used to call the execution data corresponding to each process node in the preset software center in turn based on the execution order between each process node in the target process template;
[0125] The processing unit is used to complete the processing corresponding to the target execution information on the target middleware based on the execution data corresponding to each process node and the execution order between the process nodes in the target process template.
[0126] In one possible implementation, the processing module further includes:
[0127] An initial execution data acquisition unit, used to acquire initial execution data, the initial execution data corresponding to the middleware parameters;
[0128] A first review processing unit, configured to use the initial execution data as execution data corresponding to each process node in the target process template if the initial execution data passes the review;
[0129] The second audit processing unit is used to generate second information indicating that the initial execution data should be modified if the initial execution data fails the audit.
[0130] In one possible implementation, the middleware processing device further includes:
[0131] An authorization information acquisition module is used to obtain the authorization information of the target middleware;
[0132] The template determination module is used to determine the target process template based on the target middleware parameters if the authorization information indicates that the target middleware has the target execution authority corresponding to the target execution information.
[0133] In one possible implementation, the middleware processing device further includes:
[0134] A log information generation module, used to generate target log information when the target middleware completes the processing corresponding to the target execution information;
[0135] The log information display module is used to display the target log information.
[0136] The middleware processing device provided in this embodiment can be used to execute the above-mentioned middleware processing method. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0137] Figure 5 is a block diagram of an electronic device according to an exemplary embodiment. Figure 5 The electronic device 500 may include: a processor 51 and a memory 52, wherein the processor 51 and the memory 52 can communicate; exemplarily, the processor 51 and the memory 52 communicate via a communication bus 53, the memory 52 is used to store instructions, and the processor 51 is used to call the instructions in the memory to execute the middleware processing method shown in any of the above method embodiments.
[0138] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0139] The present application provides a computer-readable storage medium, on which computer-executable instructions are stored; when the computer-executable instructions are executed by a processor, they are used to implement a middleware processing method as described in any of the above embodiments.
[0140] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the above-mentioned middleware processing method is implemented.
[0141] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0142] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A middleware processing method, characterized in that: include: Acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters; If the target identity information indicates that the target execution authority corresponding to the target execution information is present, then determining a target process template based on the target middleware parameters; wherein different middleware parameters correspond to process templates; Based on the target process template, the target middleware completes processing corresponding to the target execution information.
2. The method according to claim 1, characterized in that Before determining the target process template based on the target middleware parameters, the method further includes: Obtaining the audit result of the target middleware information; If the audit result indicates passing, then executing the step of determining the target process template based on the target middleware parameters; If the audit result indicates failure, first information indicating modification of the target middleware information is generated.
3. The method according to claim 1, characterized in that The execution information includes execution upgrade information, execution installation information, execution recovery information and execution repair information; the method further includes: Execution permissions corresponding to each execution information are allocated to different identity information; wherein each identity information has at least one execution permission corresponding to the execution information.
4. The method according to any one of claims 1 to 3, characterized in that The target process template includes at least one process node; The completing the processing corresponding to the target execution information on the target middleware based on the target process template includes: Based on the execution order between each process node in the target process template, calling the execution data corresponding to each process node in turn in the preset software center; Based on the execution data corresponding to each process node and the execution order between the process nodes in the target process template, the target middleware completes the processing corresponding to the target execution information.
5. The method according to claim 4, characterized in that Before calling the execution data corresponding to each process node in turn in the preset software center based on the execution order between each process node in the target process template, the method further includes: Acquire initial execution data, where the initial execution data corresponds to the middleware parameters; If the initial execution data passes the review, the initial execution data is used as the execution data corresponding to each process node in the target process template; If the initial execution data fails the review, second information instructing to modify the initial execution data is generated.
6. The method according to claim 1, characterized in that The target middleware includes external middleware; before determining the target process template based on the target middleware parameters, the method further includes: Obtaining authorization information of the target middleware; If the authorization information indicates that the target middleware has the target execution authority corresponding to the target execution information, a target process template is determined based on the target middleware parameters.
7. The method according to claim 1, characterized in that The method further comprises: When the target middleware completes the processing corresponding to the target execution information, generating target log information; The target log information is displayed.
8. A middleware processing device, characterized in that: include: An information acquisition module, used to acquire target middleware information; wherein the target middleware information includes target identity information, target execution information of the target middleware, and target middleware parameters; A process template determination module, configured to determine a target process template based on the target middleware parameters if the target identity information indicates that the target execution authority corresponding to the target execution information is present; wherein different middleware parameters correspond to process templates; A processing module is used to complete the processing corresponding to the target execution information on the target middleware based on the target process template.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; the memory is used to store instructions; the processor is used to execute the instructions in the memory, so that the electronic device executes the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.
11. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.