CN109325057B - Middleware management method, device, computer equipment and storage medium - Google Patents

Middleware management method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109325057B
CN109325057B CN201810965370.7A CN201810965370A CN109325057B CN 109325057 B CN109325057 B CN 109325057B CN 201810965370 A CN201810965370 A CN 201810965370A CN 109325057 B CN109325057 B CN 109325057B
Authority
CN
China
Prior art keywords
file
middleware
copy
server
configuration instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810965370.7A
Other languages
Chinese (zh)
Other versions
CN109325057A (en
Inventor
黄桂钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810965370.7A priority Critical patent/CN109325057B/en
Publication of CN109325057A publication Critical patent/CN109325057A/en
Application granted granted Critical
Publication of CN109325057B publication Critical patent/CN109325057B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a middleware management method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured; responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured; backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured; executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware; and synchronizing the file copy of the configured middleware to a target application server. According to the embodiment of the invention, the remote synchronization of the middleware between the platform and the server is realized, the middleware is not required to be configured in the platform or the server for many times, and the labor cost is saved.

Description

Middleware management method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for middleware management, a computer device, and a storage medium.
Background
At present, for the configuration operation of the middleware files, the corresponding configuration is performed on the application platform and the application server manually by people, so that the synchronization cannot be performed (for example, the configuration of the middleware on the application platform only once cannot be realized, and then the configuration of the middleware is synchronized to the application server, and secondary modification on the application server is not needed), which results in high labor cost and easy confusion in the management of the configuration middleware.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a middleware management method, apparatus, computer device, and storage medium, which can implement remote synchronization of middleware between a platform and a server, and does not need to configure the middleware in the platform and the server multiple times, thereby saving labor cost.
In one aspect, an embodiment of the present invention provides a middleware management method, where the method includes:
receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured;
Responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured;
executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware;
and synchronizing the file copy of the configured middleware to a target application server.
In another aspect, an embodiment of the present invention provides a middleware management device, where the device includes:
the first receiving unit is used for receiving a configuration instruction, wherein the configuration instruction is used for indicating the execution of target operation on the middleware to be configured, and comprises the original identification information of the file of the middleware to be configured;
the first execution unit is used for responding to the configuration instruction and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
the backup unit is used for backing up the file script of the middleware to be configured to obtain a file copy of the middleware to be configured;
the second execution unit is used for executing the target operation on the file copy of the middleware to be configured to obtain the file copy of the configured middleware;
And the synchronization unit is used for synchronizing the file copy of the configured middleware to the target application server.
In yet another aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the middleware management method as described above when executing the computer program.
In still another aspect, embodiments of the present invention further provide a computer-readable storage medium storing one or more programs executable by one or more processors to implement the middleware management method as described above.
The embodiment of the invention provides a middleware management method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured; responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured; backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured; executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware; and synchronizing the file copy of the configured middleware to a target application server. According to the embodiment of the invention, the remote synchronization of the middleware between the platform and the server is realized, the middleware is not required to be configured in the platform or the server for many times, and the labor cost is saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a middleware management method according to an embodiment of the present invention;
FIG. 2 is another schematic flow chart of a middleware management method provided by an embodiment of the present invention;
FIG. 3 is another schematic flow chart of a middleware management method provided by an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a middleware management method according to another embodiment of the present invention;
FIG. 5 is a schematic flow chart diagram of a middleware management method according to another embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram of a middleware management method according to another embodiment of the present invention;
FIG. 7 is a schematic block diagram of a middleware management device according to an embodiment of the present invention;
FIG. 8 is another schematic block diagram of a middleware management device provided by an embodiment of the present invention;
FIG. 9 is another schematic block diagram of a middleware management device provided by an embodiment of the present invention;
FIG. 10 is another schematic block diagram of a middleware management device provided by an embodiment of the present invention;
FIG. 11 is another schematic block diagram of a middleware management device provided by an embodiment of the present invention;
FIG. 12 is a schematic block diagram of a server provided by an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, fig. 1 is a schematic flowchart of a middleware management method according to an embodiment of the invention. The method can be operated in terminals such as smart phones (such as Android mobile phones and IOS mobile phones), tablet computers, notebook computers and intelligent devices. As shown in fig. 1, the method includes steps S101 to S105.
S101, receiving a configuration instruction, wherein the configuration instruction is used for indicating the execution of target operation on the middleware to be configured, and the configuration instruction comprises the original identification information of the file of the middleware to be configured.
In the embodiment of the invention, the configuration instruction includes the identification information of the original to-be-configured middleware file, the identification information may include the file name of the original to-be-configured middleware file, and the corresponding original to-be-configured middleware file may be searched on the application platform by using the identification information.
S102, responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
In the embodiment of the invention, the configuration instruction comprises the file name of the to-be-configured middleware file to be searched, the file script of the to-be-configured middleware is obtained according to the identification information of the to-be-configured middleware file script, and specifically, the file script of the to-be-configured middleware corresponding to the file name can be searched in a corresponding database on an application platform through the corresponding file name in the received configuration instruction.
S103, backing up the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
In the embodiment of the invention, after the application platform searches the corresponding file script of the middleware to be configured, the application platform is used for backing up the stored file script of the middleware to be configured in advance, and a file copy of the middleware to be configured is obtained; specifically, the file original text of the middleware to be configured, which is searched and found on the application platform, can be sent to the transfer server through the conventional tool, the file original text of the middleware to be configured is copied through the copy module in the conventional tool, the file copy of the middleware to be configured is obtained, and then the file copy of the middleware to be configured is sent to the transfer server, wherein the transfer server refers to a code server on the application platform.
And S104, executing the target operation on the file copy of the middleware to be configured to obtain the file copy of the configured middleware.
In the embodiment of the present invention, the target operation includes performing a modification operation on the file copy of the middleware to be configured, specifically, performing a modification operation on the file copy of the middleware to be configured, where the modified content may include modifying a file name of the middleware file, modifying service logic of the middleware file, modifying various interface parameters of the middleware file, or modifying user rights of the middleware file, and specifically, the modified content is not limited herein and may be selected by a user.
In the embodiment of the present invention, the target operation may include an adding operation, a deleting operation, or a querying operation, in addition to the modifying operation, which is not limited herein.
Further, referring to fig. 2, step S104 includes steps S202 to S206.
S202, obtaining a file attribute to be configured corresponding to the file copy of the middleware to be configured, wherein the file attribute to be configured comprises one or more of the following information: file name, business logic, or user rights.
In the embodiment of the present invention, the attribute of the to-be-configured file is used to define different properties of the middleware file copy, and the attribute of the to-be-configured file in the embodiment includes, but is not limited to, one or more of the following listed information: file name, business logic, or user rights.
In the embodiment of the present invention, the attribute of the file to be configured may further include a file location, a file occupied space, a file read-only attribute, or the like, and the specific file attribute is not limited herein.
S204, determining the position of the attribute of the file to be configured in the file copy of the middleware to be configured.
In the embodiment of the invention, each file attribute uniquely corresponds to a file attribute extension, the position of the file attribute in the file copy of the middleware to be configured can be determined through the file extension of the file attribute to be configured, wherein the file attribute extension is a suffix name of the file attribute, for example, the file attribute extension corresponding to the file name of the file copy is.doc,.xml or.txt, and the like, the file attribute extension is used as a search key to search in the file copy, and the position of the file attribute in the file copy is determined through a search result.
S206, executing the target operation on the attribute of the file to be configured based on the determined position.
In the embodiment of the invention, the attribute of the file to be configured can be one or more, and the corresponding target operation to be executed on the attribute to be configured can also be one or more, for example, in order to facilitate understanding, the attribute of the file to be configured is set as a file name and a user authority, the target operation to be executed on the attribute of the file to be configured is a modification operation to the file name, an addition operation to the user authority, and the like. Therefore, in the embodiment of the present application, the manner of executing the target operation on the attribute of the file to be configured is not limited specifically herein.
S105, synchronizing the file copy of the configured middleware to a target application server.
In the embodiment of the invention, after target operations such as modification operations are carried out on the file copies of the middleware to be configured, the shell module in the active tool is utilized to synchronize the file copies of the configured middleware stored in the transit server of the application platform to the target application server, and specifically, the copying action of the shell module is executed to copy the file copies of the configured middleware on the transit server to the target application server so as to achieve the aim of synchronizing the files of the middleware; more specifically, the target application server refers to a server that installs an application.
Further, referring to fig. 3, step S105 includes steps S302 to S304.
S302, sending a file synchronization request to the target application server.
In the embodiment of the invention, when an application platform needs to synchronize a middleware file, a file synchronization request is sent to a target application server; the file synchronization request comprises a file identifier of a file copy of the configured middleware to be synchronized, the file identifier uniquely corresponds to the file copy of the configured middleware to be synchronized, and the identifier of the target application server is an identifier corresponding to the application platform and used for identifying a local middleware file of the application platform.
S304, if a response instruction for the file synchronization request is received, synchronizing the file copy of the configured middleware to the target application server.
In the embodiment of the invention, the target application server receives the file synchronization request, searches the local file identifier stored in the target application server according to the file synchronization request, compares the local file identifier with the file identifier in the file synchronization request, and synchronizes the file copy of the configured middleware to the target application server if the local file identifier in the target application server is the same as the file identifier in the file synchronization request.
From the above, the embodiment of the present invention receives a configuration instruction, where the configuration instruction is used to instruct a middleware to be configured to execute a target operation, and the configuration instruction includes identification information of a file script of the middleware to be configured; responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured; backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured; executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware; and synchronizing the file copy of the configured middleware to a target application server. According to the embodiment of the invention, the remote synchronization of the middleware between the platform and the server is realized, the middleware is not required to be configured in the platform or the server for many times, and the labor cost is saved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a middleware management method according to another embodiment of the invention. The method can be operated in terminals such as smart phones (such as Android mobile phones and IOS mobile phones), tablet computers, notebook computers and intelligent devices. As shown in fig. 4, the method includes steps S401 to S406.
S401, receiving a configuration instruction, wherein the configuration instruction is used for indicating the execution of target operation on the middleware to be configured, and the configuration instruction comprises the original identification information of the file of the middleware to be configured.
In the embodiment of the invention, the configuration instruction includes the identification information of the original to-be-configured middleware file, the identification information may include the file name of the original to-be-configured middleware file, and the corresponding original to-be-configured middleware file may be searched on the application platform by using the identification information.
S402, responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
In the embodiment of the invention, the configuration instruction comprises the file name of the to-be-configured middleware file to be searched, the file script of the to-be-configured middleware is obtained according to the identification information of the to-be-configured middleware file script, and specifically, the file script of the to-be-configured middleware corresponding to the file name can be searched in a corresponding database on an application platform through the corresponding file name in the received configuration instruction.
S403, backing up the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
In the embodiment of the invention, after the application platform searches the corresponding file script of the middleware to be configured, the application platform is used for backing up the stored file script of the middleware to be configured in advance, and a file copy of the middleware to be configured is obtained; specifically, the file original text of the middleware to be configured, which is searched and found on the application platform, can be sent to the transfer server through the conventional tool, the file original text of the middleware to be configured is copied through the copy module in the conventional tool, the file copy of the middleware to be configured is obtained, and then the file copy of the middleware to be configured is sent to the transfer server, wherein the transfer server refers to a code server on the application platform.
S404, executing the target operation on the file copy of the middleware to be configured to obtain the file copy of the configured middleware.
In the embodiment of the present invention, the target operation includes performing a modification operation on the file copy of the middleware to be configured, specifically, performing a modification operation on the file copy of the middleware to be configured, where the modified content may include modifying a file name of the middleware file, modifying service logic of the middleware file, modifying various interface parameters of the middleware file, or modifying user rights of the middleware file, and specifically, the modified content is not limited herein and may be selected by a user.
In the embodiment of the present invention, the target operation may include an adding operation, a deleting operation, or a querying operation, in addition to the modifying operation, which is not limited herein.
S405, storing the file copy of the configured middleware to update the file script of the corresponding middleware.
In the embodiment of the invention, the application platform stores the file copy of the configured middleware into the database corresponding to the application platform so as to update the file script of the corresponding middleware in the database.
S406, synchronizing the file copy of the configured middleware to a target application server.
After the file copy of the middleware to be configured is modified, synchronizing the file copy of the configured middleware stored in the transit server of the application platform to the target application server by utilizing a shell module in an active tool, and particularly, copying the file copy of the configured middleware on the transit server to the target application server by executing the copying action of the shell module so as to achieve the aim of synchronizing the files of the middleware; more specifically, the target application server refers to a server that installs an application.
Referring to fig. 5, fig. 5 is a schematic flowchart of a middleware management method according to another embodiment of the invention. The method can be operated in terminals such as smart phones (such as Android mobile phones and IOS mobile phones), tablet computers, notebook computers and intelligent devices. As shown in fig. 5, the method includes steps S501 to S506.
S501, receiving a configuration instruction, wherein the configuration instruction is used for indicating the execution of target operation on the middleware to be configured, and the configuration instruction comprises the original identification information of the file of the middleware to be configured.
In the embodiment of the invention, the configuration instruction includes the identification information of the original to-be-configured middleware file, the identification information may include the file name of the original to-be-configured middleware file, and the corresponding original to-be-configured middleware file may be searched on the application platform by using the identification information.
S502, responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
In the embodiment of the invention, the configuration instruction comprises the file name of the to-be-configured middleware file to be searched, the file script of the to-be-configured middleware is obtained according to the identification information of the to-be-configured middleware file script, and specifically, the file script of the to-be-configured middleware corresponding to the file name can be searched in a corresponding database on an application platform through the corresponding file name in the received configuration instruction.
S503, backing up the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
In the embodiment of the invention, after the application platform searches the corresponding file script of the middleware to be configured, the application platform is used for backing up the stored file script of the middleware to be configured in advance, and a file copy of the middleware to be configured is obtained; specifically, the file original text of the middleware to be configured, which is searched and found on the application platform, can be sent to the transfer server through the conventional tool, the file original text of the middleware to be configured is copied through the copy module in the conventional tool, the file copy of the middleware to be configured is obtained, and then the file copy of the middleware to be configured is sent to the transfer server, wherein the transfer server refers to a code server on the application platform.
S504, executing the target operation on the file copy of the middleware to be configured to obtain the file copy of the configured middleware.
In the embodiment of the present invention, the target operation includes performing a modification operation on the file copy of the middleware to be configured, specifically, performing a modification operation on the file copy of the middleware to be configured, where the modified content may include modifying a file name of the middleware file, modifying service logic of the middleware file, modifying various interface parameters of the middleware file, or modifying user rights of the middleware file, and specifically, the modified content is not limited herein and may be selected by a user.
In the embodiment of the present invention, the target operation may include an adding operation, a deleting operation, or a querying operation, in addition to the modifying operation, which is not limited herein.
S505, generating an operation record corresponding to the target operation, and storing the operation record into a database.
In the embodiment of the invention, the operation records, namely all operation records corresponding to one middleware file copy, comprise records of modifying the name of the middleware file, modifying business logic of the middleware file, modifying various interface parameters in the middleware file, modifying user permission in the middleware file and the like, all operation records of one middleware file copy are stored as one piece of data, the stored data can be utilized to obtain the file copy of the middleware before any modification, further, the last backup data is not required to be reserved when the current middleware file copy is backed up, and the operation of directly covering the historical backup data can be adopted, so that the stored data volume is reduced, the storage pressure is reduced, and the query efficiency of the backup data is improved.
S506, synchronizing the file copy of the configured middleware to a target application server.
In the embodiment of the invention, after the file copy of the middleware to be configured is modified, the shell module in the stable tool is utilized to synchronize the file copy of the configured middleware stored in the transit server of the application platform to the target application server, and concretely, the file copy of the configured middleware on the transit server is copied to the target application server by executing the copying action of the shell module, so that the aim of synchronizing the files of the middleware is fulfilled; more specifically, the target application server refers to a server that installs an application.
Referring to fig. 6, fig. 6 is a schematic flowchart of a middleware management method according to an embodiment of the invention. The middleware management method described in the present embodiment is applied to a server, and includes the following steps S601 to S603.
S601, receiving a file synchronization request, and searching a local file identifier according to the file synchronization request.
S602, comparing the local file identification with the file identification in the file synchronization request.
S603, if the local file identifier is the same as the file identifier in the file synchronization request, receiving a file copy of the middleware corresponding to the file synchronization request and updating a file script of the middleware corresponding to the target application server; otherwise, receiving and storing the file copy of the middleware corresponding to the file synchronization request.
Referring to fig. 7, corresponding to the above-mentioned method for managing middleware, an embodiment of the present invention further provides a device for managing middleware, where the device 100 includes: a first receiving unit 101, a first executing unit 102, a backup unit 103, a second executing unit 104, and a synchronizing unit 105.
The first receiving unit 101 is configured to receive a configuration instruction, where the configuration instruction is configured to instruct a middleware to be configured to execute a target operation, and the configuration instruction includes identification information of a file script of the middleware to be configured.
The first execution unit 102 is configured to obtain, in response to the configuration instruction, the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
And the backup unit 103 is used for backing up the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
And the second execution unit 104 is configured to execute the target operation on the file copy of the middleware to be configured, so as to obtain a file copy of the configured middleware.
And the synchronization unit 105 is used for synchronizing the file copy of the configured middleware to the target application server.
From the above, the embodiment of the present invention receives a configuration instruction, where the configuration instruction is used to instruct a middleware to be configured to execute a target operation, and the configuration instruction includes identification information of a file script of the middleware to be configured; responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured; backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured; executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware; and synchronizing the file copy of the configured middleware to a target application server. According to the embodiment of the invention, the remote synchronization of the middleware between the platform and the server is realized, the middleware is not required to be configured in the platform or the server for many times, and the labor cost is saved.
Referring to fig. 8, the second execution unit 104 includes:
an obtaining unit 104a, configured to obtain a to-be-configured file attribute corresponding to the file copy of the to-be-configured middleware, where the to-be-configured file attribute includes, but is not limited to, one or more of the following information: file name, business logic, or user rights.
A determining unit 104b, configured to determine a location of the attribute of the to-be-configured file in the file copy of the middleware to be configured.
A second execution subunit 104c, configured to execute the target operation on the attribute of the file to be configured based on the determined location.
Referring to fig. 9, the synchronization unit 105 includes:
a sending unit 105a, configured to send a file synchronization request to the target application server.
And the synchronization subunit 105b is configured to synchronize the file copy of the configured middleware to the target application server if a response instruction for the file synchronization request is received.
Referring to fig. 10, corresponding to the above-mentioned method for managing middleware, an embodiment of the present invention further provides a device for managing middleware, where the device 200 includes: a first receiving unit 201, a first executing unit 202, a backup unit 203, a second executing unit 204, a storing unit 205, and a synchronizing unit 206.
The first receiving unit 201 is configured to receive a configuration instruction, where the configuration instruction is configured to instruct a middleware to be configured to execute a target operation, and the configuration instruction includes identification information of a file script of the middleware to be configured.
The first execution unit 202 is configured to obtain, in response to the configuration instruction, the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
And the backup unit 203 is configured to backup the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
And the second execution unit 204 is configured to execute the target operation on the file copy of the middleware to be configured, so as to obtain a file copy of the configured middleware.
And the storage unit 205 is used for storing the file copy of the configured middleware to update the file script of the corresponding middleware.
And the synchronization unit 206 is configured to synchronize the file copy of the configured middleware to a target application server.
Referring to fig. 11, corresponding to the above-mentioned method for managing middleware, an embodiment of the present invention further provides a device for managing middleware, where the device 300 includes: a first receiving unit 301, a first executing unit 302, a backup unit 303, a second executing unit 304, a generating unit 305, and a synchronizing unit 306.
The first receiving unit 301 is configured to receive a configuration instruction, where the configuration instruction is configured to instruct a middleware to be configured to execute a target operation, and the configuration instruction includes identification information of a file script of the middleware to be configured.
The first execution unit 302 is configured to obtain, in response to the configuration instruction, the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured.
And the backup unit 303 is configured to backup the file script of the middleware to be configured to obtain a file copy of the middleware to be configured.
And the second execution unit 304 is configured to execute the target operation on the file copy of the middleware to be configured, so as to obtain a file copy of the configured middleware.
And the generating unit 305 is used for generating an operation record corresponding to the target operation and storing the operation record into a database.
And the synchronization unit 306 is configured to synchronize the file copy of the configured middleware to a target application server.
Referring to fig. 12, corresponding to the above-mentioned middleware management method, an embodiment of the present invention further provides a server, where the server 400 includes: a second receiving unit 401, a comparing unit 402, and a third receiving unit 403.
The second receiving unit 401 is configured to receive a file synchronization request, and search a local file identifier according to the file synchronization request.
The comparing unit 402 is configured to compare the local file identifier with a file identifier in the file synchronization request.
The third receiving unit 403 is configured to receive a file copy of the middleware corresponding to the file synchronization request and update a file script of the middleware corresponding to the target application server if the local file identifier is the same as the file identifier in the file synchronization request; otherwise, receiving and storing the file copy of the middleware corresponding to the file synchronization request.
The middleware management device corresponds to the middleware management method one by one, and the specific principle and process are the same as those of the method described in the above embodiment, and are not repeated.
The above-described middleware management means may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 13.
Fig. 13 is a schematic structural diagram of a computer device according to the present invention. The device may be a terminal or a server, where the terminal may be an electronic device having a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster formed by a plurality of servers. With reference to FIG. 13, the computer device 500 includes a processor 502, a non-volatile storage medium 503, internal memory 504, and a network interface 505, connected by a system bus 501. The non-volatile storage medium 503 of the computer device 500 may store an operating system 5031 and a computer program 5032, where the computer program 5032, when executed, may cause the processor 502 to perform a middleware management method. The processor 502 of the computer device 500 is used to provide computing and control capabilities, supporting the operation of the entire computer device 500. The internal memory 504 provides an environment for the execution of a computer program 5032 in the non-volatile storage medium 503, which when executed by the processor, causes the processor 502 to perform a middleware management method. The network interface 505 of the computer device 500 is used for network communication, such as sending assigned tasks, etc. It will be appreciated by those skilled in the art that the structure shown in fig. 13 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 502, when executing the computer program, performs the following operations:
receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured;
responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured;
executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware;
and synchronizing the file copy of the configured middleware to a target application server.
In one embodiment, the performing the target operation on the file copy of the middleware to be configured to obtain a configured file copy includes:
obtaining a to-be-configured file attribute corresponding to the file copy of the to-be-configured middleware, wherein the to-be-configured file attribute comprises one or more of the following information: file name, business logic or user rights;
Determining the position of the attribute of the file to be configured in the file copy of the middleware to be configured;
and executing the target operation on the attribute of the file to be configured based on the determined position.
In one embodiment, the synchronizing the file copy of the configured middleware to the target application server includes:
sending a file synchronization request to the target application server;
and if a response instruction for the file synchronization request is received, synchronizing the file copy of the configured middleware to the target application server.
In one embodiment, the processor 502 further performs the following operations when executing the computer program:
a copy of the configured middleware file is stored to update the corresponding middleware file script.
In one embodiment, the processor 502 further performs the following operations when executing the computer program:
and generating an operation record corresponding to the target operation, and storing the operation record into a database.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 13 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device includes only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 13, and will not be described again.
The present invention provides a computer readable storage medium storing one or more computer programs executable by one or more processors to implement the steps of:
receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured;
responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
backing up the original file of the middleware to be configured to obtain a file copy of the middleware to be configured;
executing the target operation on the file copy of the middleware to be configured to obtain a file copy of the configured middleware;
and synchronizing the file copy of the configured middleware to a target application server.
In one embodiment, the performing the target operation on the file copy of the middleware to be configured to obtain a configured file copy includes:
obtaining a to-be-configured file attribute corresponding to the file copy of the to-be-configured middleware, wherein the to-be-configured file attribute comprises one or more of the following information: file name, business logic or user rights;
Determining the position of the attribute of the file to be configured in the file copy of the middleware to be configured;
and executing the target operation on the attribute of the file to be configured based on the determined position.
In one embodiment, the synchronizing the file copy of the configured middleware to the target application server includes:
sending a file synchronization request to the target application server;
and if a response instruction for the file synchronization request is received, synchronizing the file copy of the configured middleware to the target application server.
In one embodiment, the one or more computer programs may be executed by one or more processors, further implementing the steps of:
a copy of the configured middleware file is stored to update the corresponding middleware file script.
In one embodiment, the one or more computer programs may be executed by one or more processors, further implementing the steps of:
and generating an operation record corresponding to the target operation, and storing the operation record into a database.
The aforementioned storage medium of the present invention includes: various media capable of storing program codes, such as magnetic disk, optical disk, read-Only Memory (ROM), etc.
The units in all embodiments of the invention may be implemented by general-purpose integrated circuits, such as a CPU (Central Processing Unit ), or by ASIC (Application Specific Integrated Circuit, application specific integrated circuit).
The steps in the middleware management method in the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
The units in the middleware management device can be combined, divided and deleted according to actual needs.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (6)

1. A middleware management method, applied to an application platform, the method comprising:
receiving a configuration instruction, wherein the configuration instruction is used for indicating to execute target operation on the middleware to be configured, and the configuration instruction comprises identification information of the original file of the middleware to be configured;
Responding to the configuration instruction, and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
searching on the application platform through an original tool, sending the found file original text of the middleware to be configured to a transfer server, copying the file original text of the middleware to be configured through a copy module in the original tool, obtaining a file copy of the middleware to be configured, and sending the file copy of the middleware to be configured to the transfer server, wherein the transfer server refers to a code server on the application platform;
obtaining a to-be-configured file attribute corresponding to the file copy of the to-be-configured middleware, wherein the to-be-configured file attribute comprises one or more of the following information: file name, business logic or user rights, file location, file footprint or file read-only properties; determining the position of the attribute of the file to be configured in the file copy of the middleware to be configured; performing the target operation on the to-be-configured file attribute based on the determined location, the target operation comprising: modifying operation, adding operation, deleting operation and inquiring operation;
Sending a file synchronization request to a target application server; if a response instruction for the file synchronization request is received, copying a file copy of the configured middleware stored in the transit server of the application platform to a target application server by using a shell module in the stable tool to execute a copying action; the file synchronization request comprises a file identifier of a file copy of the configured middleware to be synchronized, the file identifier uniquely corresponds to the file copy of the configured middleware to be synchronized, and the identifier of the target application server is an identifier corresponding to the application platform and used for identifying a local middleware file of the application platform.
2. The method of claim 1, wherein after the step of performing the target operation on the file copy of the middleware to be configured to obtain the file copy of the configured middleware, the method further comprises:
a copy of the configured middleware file is stored to update the corresponding middleware file script.
3. The method of claim 1, wherein the method further comprises:
and generating an operation record corresponding to the target operation, and storing the operation record into a database.
4. A middleware management device, applied to an application platform, the device comprising:
the first receiving unit is used for receiving a configuration instruction, wherein the configuration instruction is used for indicating the execution of target operation on the middleware to be configured, and comprises the original identification information of the file of the middleware to be configured;
the first execution unit is used for responding to the configuration instruction and obtaining the file script of the middleware to be configured according to the identification information of the file script of the middleware to be configured;
the backup unit is used for searching on the application platform through an active tool and sending the found file original text of the middleware to be configured to the transfer server, copying the file original text of the middleware to be configured through a copy module in the active tool and obtaining a file copy of the middleware to be configured, and sending the file copy of the middleware to be configured to the transfer server, wherein the transfer server refers to a code server on the application platform;
the second execution unit is configured to obtain a file attribute to be configured corresponding to the file copy of the middleware to be configured, where the file attribute to be configured includes, but is not limited to, one or more of the following information: file name, business logic or user rights, file location, file footprint or file read-only properties; determining the position of the attribute of the file to be configured in the file copy of the middleware to be configured; performing the target operation on the to-be-configured file attribute based on the determined location, the target operation comprising: modifying operation, adding operation, deleting operation and inquiring operation;
The synchronization unit is used for sending a file synchronization request to the target application server; if a response instruction for the file synchronization request is received, copying a file copy of the configured middleware stored in the transit server of the application platform to a target application server by using a shell module in the stable tool to execute a copying action; the file synchronization request comprises a file identifier of a file copy of the configured middleware to be synchronized, the file identifier uniquely corresponds to the file copy of the configured middleware to be synchronized, and the identifier of the target application server is an identifier corresponding to the application platform and used for identifying a local middleware file of the application platform.
5. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the middleware management method according to any of claims 1-3 when executing the computer program.
6. A computer readable storage medium storing one or more computer programs executable by one or more processors to implement the middleware management method of any of claims 1-3.
CN201810965370.7A 2018-08-23 2018-08-23 Middleware management method, device, computer equipment and storage medium Active CN109325057B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810965370.7A CN109325057B (en) 2018-08-23 2018-08-23 Middleware management method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810965370.7A CN109325057B (en) 2018-08-23 2018-08-23 Middleware management method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109325057A CN109325057A (en) 2019-02-12
CN109325057B true CN109325057B (en) 2024-02-02

Family

ID=65263235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810965370.7A Active CN109325057B (en) 2018-08-23 2018-08-23 Middleware management method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109325057B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109831340A (en) * 2019-03-15 2019-05-31 深圳前海微众银行股份有限公司 Server exchange method, equipment, server, client and readable storage medium storing program for executing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681860A (en) * 2016-12-01 2017-05-17 广东欧珀移动通信有限公司 Data backup method and data backup device
CN107579865A (en) * 2017-10-18 2018-01-12 北京奇虎科技有限公司 Right management method, the apparatus and system of distributed code server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681860A (en) * 2016-12-01 2017-05-17 广东欧珀移动通信有限公司 Data backup method and data backup device
CN107579865A (en) * 2017-10-18 2018-01-12 北京奇虎科技有限公司 Right management method, the apparatus and system of distributed code server

Also Published As

Publication number Publication date
CN109325057A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN108038114B (en) Path query method, terminal and computer readable storage medium
US9305002B2 (en) Method and apparatus for eventually consistent delete in a distributed data store
US8751442B2 (en) Synchronization associated duplicate data resolution
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
US20120059940A1 (en) Terminal device and data synchronization method
CN111399756B (en) Data storage method, data downloading method and device
CN107577420B (en) File processing method and device and server
WO2022222438A1 (en) Profile state synchronization method and apparatus, terminal, server, and storage medium
CN110830580B (en) Storage data synchronization method and device
CN112100152A (en) Service data processing method, system, server and readable storage medium
US11018860B2 (en) Highly available and reliable secret distribution infrastructure
CN114780615A (en) Error code management method and device thereof
KR101467583B1 (en) - - - identifying changes to media-device contents
CN109325057B (en) Middleware management method, device, computer equipment and storage medium
CN112948498A (en) Method and device for generating global identification of distributed system
CN107844483B (en) File management method and device
EP3343395A1 (en) Data storage method and apparatus for mobile terminal
CN104063377A (en) Information processing method and electronic equipment using same
US11789916B2 (en) Hash-based duplicate data element systems and methods
CN110377665B (en) Data synchronization method and device, electronic equipment and storage medium
CN109857719B (en) Distributed file processing method, device, computer equipment and storage medium
CN111953722B (en) Synchronization method and device for terminal address book
JP6178119B2 (en) Data migration system and data migration method
CN112783866A (en) Data reading method and device, computer equipment and storage medium
CN113760860B (en) Data reading method and device

Legal Events

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