CN109325057A - 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
CN109325057A
CN109325057A CN201810965370.7A CN201810965370A CN109325057A CN 109325057 A CN109325057 A CN 109325057A CN 201810965370 A CN201810965370 A CN 201810965370A CN 109325057 A CN109325057 A CN 109325057A
Authority
CN
China
Prior art keywords
middleware
file
document
duplicate
configuration
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.)
Granted
Application number
CN201810965370.7A
Other languages
Chinese (zh)
Other versions
CN109325057B (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of middleware management method, device, computer equipment and storage mediums, wherein, the described method includes: receiving configuration-direct, the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, and the configuration-direct includes the identification information of the file script of the middleware to be configured;The file of the middleware to be configured is obtained originally according to the identification information of the file script of the middleware to be configured in response to the configuration-direct;The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;The object run is executed to the duplicate of the document of the middleware to be configured, obtains the duplicate of the document of configured middleware;The duplicate of the document of the configured middleware is synchronized to destination application server.The embodiment of the present invention realizes the remote synchronization of middleware between platform and server, and need not repeatedly configure in platform or server to middleware, saves human cost.

Description

Middleware management method, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of middleware management method, device, computer equipment with And storage medium.
Background technique
Currently, the operation of the configuration for middleware file, be largely by artificially manually application platform with answer With corresponding configuration is carried out on server, it can not accomplish that synchronous progress (only carries out once in application platform for example, cannot achieve Middleware configuration, then synchronizes on application server, without carrying out secondary modification on the application server again), lead to people Power it is at high cost and configuration middleware management on be easy to produce confusion.
Summary of the invention
It is situated between in view of this, the embodiment of the present invention provides a kind of middleware management method, device, computer equipment and storage The remote synchronization of middleware between platform and server may be implemented in matter, and need not be repeatedly in platform and server in Between part configured, saved human cost.
On the one hand, the embodiment of the invention provides a kind of middleware management methods, this method comprises:
Configuration-direct is received, the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, the configuration Instruction includes the identification information of the file script of the middleware to be configured;
In response to the configuration-direct, according to the identification information of the file script of the middleware to be configured, described in acquisition The file of middleware to be configured is originally;
The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;
The object run is executed to the duplicate of the document of the middleware to be configured, obtains the file pair of configured middleware This;
The duplicate of the document of the configured middleware is synchronized to destination application server.
On the other hand, the embodiment of the invention provides a kind of middleware managing device, described device includes:
First receiving unit, for receiving configuration-direct, the configuration-direct, which is used to indicate, executes middleware to be configured Object run, the configuration-direct include the identification information of the file script of the middleware to be configured;
First execution unit is used in response to the configuration-direct, according to the file script of the middleware to be configured Identification information obtains the file of the middleware to be configured originally;
Backup units, for backing up the file script of the middleware to be configured, to obtain the middleware to be configured Duplicate of the document;
Second execution unit executes the object run for the duplicate of the document to the middleware to be configured, obtains Configure the duplicate of the document of middleware;
Synchronization unit, for the duplicate of the document of the configured middleware to be synchronized to destination application server.
Another aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On the memory and the computer program that can run on the processor, when the processor executes the computer program Realize middleware management method as described above.
It is described computer-readable to deposit in another aspect, the embodiment of the invention also provides a kind of computer readable storage medium Storage media be stored with one perhaps more than one program the one or more programs can by one or more than one Processor execute, to realize middleware management method as described above.
The embodiment of the present invention provides a kind of middleware management method, device, computer equipment and storage medium, wherein side Method includes: reception configuration-direct, and the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, and the configuration refers to Enable the identification information of the file script including the middleware to be configured;In response to the configuration-direct, according to described to be configured The identification information of the file script of middleware obtains the file of the middleware to be configured originally;Back up the centre to be configured The file script of part, to obtain the duplicate of the document of the middleware to be configured;The duplicate of the document of the middleware to be configured is held The row object run, obtains the duplicate of the document of configured middleware;The duplicate of the document of the configured middleware is synchronized to Destination application server.The embodiment of the present invention realizes the remote synchronization of middleware between platform and server, and need not be repeatedly Middleware is configured in platform or server, saves human cost.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram of middleware management method provided in an embodiment of the present invention;
Fig. 2 is a kind of another schematic flow diagram of middleware management method provided in an embodiment of the present invention;
Fig. 3 is a kind of another schematic flow diagram of middleware management method provided in an embodiment of the present invention;
Fig. 4 be another embodiment of the present invention provides a kind of middleware management method schematic flow diagram;
Fig. 5 be another embodiment of the present invention provides a kind of middleware management method schematic flow diagram;
Fig. 6 be another embodiment of the present invention provides a kind of middleware management method schematic flow diagram;
Fig. 7 is a kind of schematic block diagram of middleware managing device provided in an embodiment of the present invention;
Fig. 8 is a kind of another schematic block diagram of middleware managing device provided in an embodiment of the present invention;
Fig. 9 is a kind of another schematic block diagram of middleware managing device provided in an embodiment of the present invention;
Figure 10 is a kind of another schematic block diagram of middleware managing device provided in an embodiment of the present invention;
Figure 11 is a kind of another schematic block diagram of middleware managing device provided in an embodiment of the present invention;
Figure 12 is a kind of schematic block diagram of server provided in an embodiment of the present invention;
Figure 13 is a kind of structure composition schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram of middleware management method provided in an embodiment of the present invention.The party Method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and smart machine Etc. in terminals.As shown in Figure 1, the method comprising the steps of S101~S105.
S101 receives configuration-direct, and the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, described Configuration-direct includes the identification information of the file script of the middleware to be configured.
In embodiments of the present invention, the configuration-direct includes the identification information of the middleware document text to be configured, The identification information may include the filename of the middleware document text to be configured, can be flat in application using the identification information Corresponding middleware file to be configured is searched on platform originally.
S102 obtains institute according to the identification information of the middleware file script to be configured in response to the configuration-direct State the file of middleware to be configured originally.
In embodiments of the present invention, the configuration-direct includes the filename of the middleware file to be configured to be searched, According to the identification information of the middleware file script to be configured, the file script of the middleware to be configured is obtained, specifically, It can be retrieved and be looked into corresponding database in application platform by corresponding filename in the configuration-direct that receives Look for the file of middleware to be configured corresponding with file name originally.
S103 backs up the file script of the middleware to be configured, to obtain the duplicate of the document of the middleware to be configured.
In embodiments of the present invention, after finding the file script of corresponding middleware to be configured in application platform, lead to It crosses application platform in advance to back up the file of the middleware to be configured stored originally, and obtains the middleware to be configured Duplicate of the document;Specifically, the centre to be configured that can will be retrieved and be found in application platform by Ansible tool The document text of part is sent to transfer server, by the copy module in Ansible tool to the file of middleware to be configured Original text is copied and is obtained the duplicate of the document of the middleware to be configured, then the duplicate of the document of the middleware to be configured is sent To transfer server, wherein the transfer server refers to the code server in application platform.
S104 executes the object run to the duplicate of the document of the middleware to be configured, obtains configured middleware Duplicate of the document.
In embodiments of the present invention, the object run includes the behaviour that modifies to the duplicate of the document of middleware to be configured Make, specifically, executing modification operation to the duplicate of the document of middleware to be configured, the content of modification may include modification middleware text The filename of part, the service logic for modifying middleware file, the various interface parameters for modifying middleware file or modification are intermediate The user right etc. of part file can voluntarily be selected specifically, this is not restricted for modification content by user.
It should be noted that object run can also include addition behaviour other than modifying operation in the embodiment of the present invention Work, delete operation or inquiry operation etc., specifically herein without limitation.
Further, referring to Fig. 2, step S104 includes step S202~S206.
S202 obtains the corresponding file attribute to be configured of duplicate of the document of the middleware to be configured, the text to be configured Part attribute includes but is not limited to one or more of following information: filename, service logic or user right.
In embodiments of the present invention, the file attribute to be configured is used to define the heterogeneity of middleware duplicate of the document, File attribute to be configured in the present embodiment includes but is not limited to one or more of the information of act set forth below: file Name, service logic or user right.
It should be noted that the file attribute to be configured can also include document location, file in the embodiment of the present invention Occupied space or file read only attribute etc., specific file attribute are not limited thereto.
S204 determines position of the file attribute to be configured in the duplicate of the document of the middleware to be configured.
In embodiments of the present invention, each file attribute uniquely corresponds to a kind of file attribute extension name, can pass through institute The file extension for stating file attribute to be configured determines position of the file attribute in the duplicate of the document of the middleware to be configured, Wherein, the file attribute extends the suffix name of entitled file attribute, for example, the corresponding file attribute of the filename of duplicate of the document Entitled .doc .xml or .txt etc. are extended, is carried out in duplicate of the document using this document attribute extension name as search key Retrieval, and position of the file attribute in duplicate of the document is determined by search result.
S206 executes the object run to the file attribute to be configured based on identified position.
In embodiments of the present invention, file attribute to be configured can be one or more, corresponding, to the category to be configured Property the object run that executes may be one or more, for example, for ease of understanding, if file attribute to be configured is filename And user right, to file attribute performance objective to be configured operation to modify operation to filename, to user right into Row addition operation etc..Therefore, in the embodiment of the present application, the mode of configuration file attribute performance objective operation is not treated specifically herein not It limits.
The duplicate of the document of the configured middleware is synchronized to destination application server by S105.
In embodiments of the present invention, operation is such as modified when the duplicate of the document to the middleware to be configured carries out object run Afterwards, using the shell module in Ansible tool by the configured middleware being stored in the transfer server of application platform Duplicate of the document is synchronized in destination application server, specifically, being serviced transfer by the copy for executing shell module The duplicate of the document of configured middleware on device copies in destination application server, to reach the mesh of middleware file synchronization 's;More specifically, the destination application server refers to the server of installation application.
Further, referring to Fig. 3, step S105 includes step S302~S304.
S302 sends synchronization request to the destination application server.
In embodiments of the present invention, it when application platform needs synchronous middleware file, is sent to destination application server Synchronization request;The synchronization request includes the file identification for needing the duplicate of the document of synchronous configured middleware, This document mark is uniquely corresponding to need the duplicate of the document of synchronous configured middleware, the mark of the destination application server For the mark of the local middleware file of application platform for identification corresponding with application platform.
S304, if the response instruction for the synchronization request is received, by the file of the configured middleware Copies synchronized is to the destination application server.
In embodiments of the present invention, the destination application server receives the synchronization request, according to the text Part synchronization request searches the local file mark saved in destination application server, and local file is identified and the text File identification in part synchronization request compares, if local file mark and the file in the destination application server File identification in synchronization request is identical, and the duplicate of the document of the configured middleware is synchronized to the target application service Device.
As seen from the above, the embodiment of the present invention is used to indicate by receiving configuration-direct, the configuration-direct to be configured The operation of middleware performance objective, the configuration-direct includes the identification information of the file script of the middleware to be configured;Response The middleware to be configured is obtained according to the identification information of the file script of the middleware to be configured in the configuration-direct File originally;The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;It is right The duplicate of the document of the middleware to be configured executes the object run, obtains the duplicate of the document of configured middleware;It will be described The duplicate of the document of configured middleware is synchronized to destination application server.The embodiment of the present invention is realized between platform and server Between part remote synchronization, and need not repeatedly middleware is configured in platform or server, save human cost.
Referring to Fig. 4, Fig. 4 be another embodiment of the present invention provides a kind of middleware management method schematic flow diagram. This method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence In the terminals such as equipment.As shown in figure 4, the method comprising the steps of S401~S406.
S401 receives configuration-direct, and the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, described Configuration-direct includes the identification information of the file script of the middleware to be configured.
In embodiments of the present invention, the configuration-direct includes the identification information of the middleware document text to be configured, The identification information may include the filename of the middleware document text to be configured, can be flat in application using the identification information Corresponding middleware file to be configured is searched on platform originally.
S402 is obtained in response to the configuration-direct according to the identification information of the file script of the middleware to be configured The file of the middleware to be configured is originally.
In embodiments of the present invention, the configuration-direct includes the filename of the middleware file to be configured to be searched, According to the identification information of the middleware file script to be configured, the file script of the middleware to be configured is obtained, specifically, It can be retrieved and be looked into corresponding database in application platform by corresponding filename in the configuration-direct that receives Look for the file of middleware to be configured corresponding with file name originally.
S403 backs up the file script of the middleware to be configured, to obtain the duplicate of the document of the middleware to be configured.
In embodiments of the present invention, after finding the file script of corresponding middleware to be configured in application platform, lead to It crosses application platform in advance to back up the file of the middleware to be configured stored originally, and obtains the middleware to be configured Duplicate of the document;Specifically, the centre to be configured that can will be retrieved and be found in application platform by Ansible tool The document text of part is sent to transfer server, by the copy module in Ansible tool to the file of middleware to be configured Original text is copied and is obtained the duplicate of the document of the middleware to be configured, then the duplicate of the document of the middleware to be configured is sent To transfer server, wherein the transfer server refers to the code server in application platform.
S404 executes the object run to the duplicate of the document of the middleware to be configured, obtains configured middleware Duplicate of the document.
In embodiments of the present invention, the object run includes the behaviour that modifies to the duplicate of the document of middleware to be configured Make, specifically, executing modification operation to the duplicate of the document of middleware to be configured, the content of modification may include modification middleware text The filename of part, the service logic for modifying middleware file, the various interface parameters for modifying middleware file or modification are intermediate The user right etc. of part file can voluntarily be selected specifically, this is not restricted for modification content by user.
It should be noted that object run can also include addition behaviour other than modifying operation in the embodiment of the present invention Work, delete operation or inquiry operation etc., specifically herein without limitation.
S405 stores the duplicate of the document of configured middleware to update the file of corresponding middleware originally.
In embodiments of the present invention, application platform can store to application platform pair the duplicate of the document of configured middleware In the database answered, originally with the file of corresponding middleware in more new database.
The duplicate of the document of the configured middleware is synchronized to destination application server by S406.
After the duplicate of the document to the middleware to be configured is modified, the shell module in Ansible tool is utilized The duplicate of the document for the configured middleware being stored in the transfer server of application platform is synchronized in destination application server, Specifically, the duplicate of the document of the configured middleware on transfer server is copied by the copy for executing shell module Into destination application server, to achieve the purpose that middleware file synchronization;More specifically, the destination application server refers to It is the server of installation application.
Referring to Fig. 5, Fig. 5 be another embodiment of the present invention provides a kind of middleware management method schematic flow diagram. This method may operate in smart phone (such as Android phone, IOS mobile phone), tablet computer, laptop and intelligence In the terminals such as equipment.As shown in figure 5, the method comprising the steps of S501~S506.
S501 receives configuration-direct, and the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, described Configuration-direct includes the identification information of the file script of the middleware to be configured.
In embodiments of the present invention, the configuration-direct includes the identification information of the middleware document text to be configured, The identification information may include the filename of the middleware document text to be configured, can be flat in application using the identification information Corresponding middleware file to be configured is searched on platform originally.
S502 is obtained in response to the configuration-direct according to the identification information of the file script of the middleware to be configured The file of the middleware to be configured is originally.
In embodiments of the present invention, the configuration-direct includes the filename of the middleware file to be configured to be searched, According to the identification information of the middleware file script to be configured, the file script of the middleware to be configured is obtained, specifically, It can be retrieved and be looked into corresponding database in application platform by corresponding filename in the configuration-direct that receives Look for the file of middleware to be configured corresponding with file name originally.
S503 backs up the file script of the middleware to be configured, to obtain the duplicate of the document of the middleware to be configured.
In embodiments of the present invention, after finding the file script of corresponding middleware to be configured in application platform, lead to It crosses application platform in advance to back up the file of the middleware to be configured stored originally, and obtains the middleware to be configured Duplicate of the document;Specifically, the centre to be configured that can will be retrieved and be found in application platform by Ansible tool The document text of part is sent to transfer server, by the copy module in Ansible tool to the file of middleware to be configured Original text is copied and is obtained the duplicate of the document of the middleware to be configured, then the duplicate of the document of the middleware to be configured is sent To transfer server, wherein the transfer server refers to the code server in application platform.
S504 executes the object run to the duplicate of the document of the middleware to be configured, obtains configured middleware Duplicate of the document.
In embodiments of the present invention, the object run includes the behaviour that modifies to the duplicate of the document of middleware to be configured Make, specifically, executing modification operation to the duplicate of the document of middleware to be configured, the content of modification may include modification middleware text The filename of part, the service logic for modifying middleware file, the various interface parameters for modifying middleware file or modification are intermediate The user right etc. of part file can voluntarily be selected specifically, this is not restricted for modification content by user.
It should be noted that object run can also include addition behaviour other than modifying operation in the embodiment of the present invention Work, delete operation or inquiry operation etc., specifically herein without limitation.
S505 generates operation note corresponding with the object run, by operation note storage into database.
In embodiments of the present invention, the corresponding all operation notes of an operation note i.e. middleware duplicate of the document, including Modify middleware filename, modify middleware file service logic, modification middleware file in various interface parameters and The record for modifying user right in middleware file etc., using all operation notes of a middleware duplicate of the document as one Data is stored, the duplicate of the document of the middleware before utilizing the available any primary modification of stored data, in turn So that when backing up the duplicate of the document of current middleware without the data once backed up on retaining, and can take will directly go through The operation of the Backup Data covering of history reduces storage pressure to reduce the data volume of storage, and improves the inquiry effect of Backup Data Rate.
The duplicate of the document of the configured middleware is synchronized to destination application server by S506.
In embodiments of the present invention, after the duplicate of the document to the middleware to be configured is modified, Ansible is utilized The duplicate of the document for the configured middleware being stored in the transfer server of application platform is synchronized to by the shell module in tool In destination application server, specifically, by the copy for executing shell module, it will be in configured on transfer server Between the duplicate of the document of part copy in destination application server, to achieve the purpose that middleware file synchronization;More specifically, described Destination application server refers to the server of installation application.
Fig. 6 is please referred to, Fig. 6 is a kind of schematic flow diagram of middleware management method provided in an embodiment of the present invention.This reality Middleware management method described in example is applied applied to server, includes the following steps S601~S603.
S601 receives synchronization request, and searches local file mark according to the synchronization request.
The local file is identified and is compared with the file identification in the synchronization request by S602.
S603, if the local file mark it is identical with the file identification in the synchronization request, reception with it is described The duplicate of the document of the corresponding middleware of synchronization request and the text for updating corresponding middleware in the destination application server Part is originally;Otherwise the duplicate of the document of middleware corresponding with the synchronization request is received and saved.
Referring to Fig. 7, a kind of corresponding above-mentioned middleware management method, the embodiment of the present invention also propose a kind of middleware management Device, the device 100 include: the first receiving unit 101, the first execution unit 102, backup units 103, the second execution unit 104, synchronization unit 105.
Wherein, first receiving unit 101, for receiving configuration-direct, the configuration-direct, which is used to indicate to treat, matches The operation of middleware performance objective is set, the configuration-direct includes the identification information of the file script of the middleware to be configured.
First execution unit 102 is used in response to the configuration-direct, originally according to the file of the middleware to be configured Identification information, obtain the file of the middleware to be configured originally.
Backup units 103, for backing up the file script of the middleware to be configured, to obtain the middleware to be configured Duplicate of the document.
Second execution unit 104 executes the object run for the duplicate of the document to the middleware to be configured, obtains The duplicate of the document of configured middleware.
Synchronization unit 105, for the duplicate of the document of the configured middleware to be synchronized to destination application server.
As seen from the above, the embodiment of the present invention is used to indicate by receiving configuration-direct, the configuration-direct to be configured The operation of middleware performance objective, the configuration-direct includes the identification information of the file script of the middleware to be configured;Response The middleware to be configured is obtained according to the identification information of the file script of the middleware to be configured in the configuration-direct File originally;The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;It is right The duplicate of the document of the middleware to be configured executes the object run, obtains the duplicate of the document of configured middleware;It will be described The duplicate of the document of configured middleware is synchronized to destination application server.The embodiment of the present invention is realized between platform and server Between part remote synchronization, and need not repeatedly middleware is configured in platform or server, save human cost.
Referring to Fig. 8, second execution unit 104, comprising:
Acquiring unit 104a, the corresponding file attribute to be configured of duplicate of the document for obtaining the middleware to be configured, The file attribute to be configured includes but is not limited to one or more of following information: filename, service logic or user Permission.
Determination unit 104b, for determining the file attribute to be configured in the duplicate of the document of the middleware to be configured Position.
Second executes subelement 104c, for executing the mesh to the file attribute to be configured based on identified position Mark operation.
Referring to Fig. 9, the synchronization unit 105, comprising:
Transmission unit 105a, for sending synchronization request to the destination application server.
Synchronous subelement 105b, if having matched for receiving the response instruction for the synchronization request by described The duplicate of the document for setting middleware is synchronized to the destination application server.
Referring to Fig. 10, a kind of corresponding above-mentioned middleware management method, the embodiment of the present invention also propose a kind of middleware pipe Device is managed, which includes: the first receiving unit 201, the first execution unit 202, backup units 203, the second execution unit 204, storage unit 205, synchronization unit 206.
Wherein, first receiving unit 201, for receiving configuration-direct, the configuration-direct, which is used to indicate to treat, matches The operation of middleware performance objective is set, the configuration-direct includes the identification information of the file script of the middleware to be configured.
First execution unit 202 is used in response to the configuration-direct, originally according to the file of the middleware to be configured Identification information, obtain the file of the middleware to be configured originally.
Backup units 203, for backing up the file script of the middleware to be configured, to obtain the middleware to be configured Duplicate of the document.
Second execution unit 204 executes the object run for the duplicate of the document to the middleware to be configured, obtains The duplicate of the document of configured middleware.
Storage unit 205, for storing the duplicate of the document of configured middleware to update the file of corresponding middleware Originally.
Synchronization unit 206, for the duplicate of the document of the configured middleware to be synchronized to destination application server.
Figure 11, a kind of corresponding above-mentioned middleware management method are please referred to, the embodiment of the present invention also proposes a kind of middleware pipe Device is managed, which includes: the first receiving unit 301, the first execution unit 302, backup units 303, the second execution unit 304, generation unit 305, synchronization unit 306.
Wherein, first receiving unit 301, for receiving configuration-direct, the configuration-direct, which is used to indicate to treat, matches The operation of middleware performance objective is set, the configuration-direct includes the identification information of the file script of the middleware to be configured.
First execution unit 302 is used in response to the configuration-direct, originally according to the file of the middleware to be configured Identification information, obtain the file of the middleware to be configured originally.
Backup units 303, for backing up the file script of the middleware to be configured, to obtain the middleware to be configured Duplicate of the document.
Second execution unit 304 executes the object run for the duplicate of the document to the middleware to be configured, obtains The duplicate of the document of configured middleware.
Generation unit 305 stores the operation note for generating operation note corresponding with the object run Into database.
Synchronization unit 306, for the duplicate of the document of the configured middleware to be synchronized to destination application server.
Figure 12, a kind of corresponding above-mentioned middleware management method are please referred to, the embodiment of the present invention also proposes a kind of server, should Server 400 includes: the second receiving unit 401, comparison unit 402, third receiving unit 403.
Wherein, second receiving unit 401, for receiving synchronization request, and according to the synchronization request Search local file mark.
The comparison unit 402, for identifying and the file identification in the synchronization request local file It compares.
The third receiving unit 403, if for local file mark and the file in the synchronization request Identify identical, the duplicate of the document for receiving corresponding with synchronization request middleware simultaneously updates the destination application server In corresponding middleware file originally;Otherwise the file pair of middleware corresponding with the synchronization request is received and saved This.
Above-mentioned middleware managing device and above-mentioned middleware management method correspond, specific principle and process with it is upper It is identical to state embodiment the method, repeats no more.
Above-mentioned middleware managing device can be implemented as a kind of form of computer program, and computer program can such as scheme It is run in computer equipment shown in 13.
Figure 13 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be terminal, be also possible to Server, wherein terminal can be smart phone, tablet computer, laptop, desktop computer, personal digital assistant and wear Wear the electronic device that formula device etc. has communication function.Server can be independent server, be also possible to multiple servers The server cluster of composition.Referring to Fig.1 3, the computer equipment 500 include the processor 502 connected by system bus 501, Non-volatile memory medium 503, built-in storage 504 and network interface 505.Wherein, the non-volatile of the computer equipment 500 is deposited Storage media 503 can storage program area 5031 and computer program 5032, which is performed, and may make place Reason device 502 executes a kind of middleware management method.The processor 502 of the computer equipment 500 calculates and controls energy for providing Power supports the operation of entire computer equipment 500.The built-in storage 504 is the computer journey in non-volatile memory medium 503 The operation of sequence 5032 provides environment, when which is executed by processor, processor 502 may make to execute a kind of middleware Management method.The network interface 505 of computer equipment 500 such as sends the task dispatching of distribution for carrying out network communication.This field Technical staff is appreciated that structure shown in Figure 13, only the block diagram of part-structure relevant to application scheme, not The restriction for the computer equipment being applied thereon to application scheme is constituted, specific computer equipment may include than in figure Shown more or fewer components perhaps combine certain components or with different component layouts.
Wherein, following operation is realized when the processor 502 executes the computer program:
Configuration-direct is received, the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, the configuration Instruction includes the identification information of the file script of the middleware to be configured;
In response to the configuration-direct, according to the identification information of the file script of the middleware to be configured, described in acquisition The file of middleware to be configured is originally;
The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;
The object run is executed to the duplicate of the document of the middleware to be configured, obtains the file pair of configured middleware This;
The duplicate of the document of the configured middleware is synchronized to destination application server.
In one embodiment, the duplicate of the document to the middleware to be configured executes the object run, obtains Configured duplicate of the document, comprising:
Obtain the corresponding file attribute to be configured of duplicate of the document of the middleware to be configured, the file attribute to be configured One or more of including but not limited to following information: filename, service logic or user right;
Determine position of the file attribute to be configured in the duplicate of the document of the middleware to be configured;
The object run is executed to the file attribute to be configured based on identified position.
In one embodiment, the duplicate of the document by the configured middleware is synchronized to destination application server, Include:
Synchronization request is sent to the destination application server;
It is if receiving the response instruction for the synchronization request, the duplicate of the document of the configured middleware is same It walks to the destination application server.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
The duplicate of the document of configured middleware is stored to update the file of corresponding middleware originally.
In one embodiment, following operation is also realized when the processor 502 executes the computer program:
Operation note corresponding with the object run is generated, by operation note storage into database.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 13 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different component layouts.For example, in some embodiments, computer equipment only includes memory And processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 13, herein It repeats no more.
The present invention provides a kind of computer readable storage medium, computer-readable recording medium storage has one or one A above computer program, the one or more computer program can be held by one or more than one processor Row, to perform the steps of
Configuration-direct is received, the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, the configuration Instruction includes the identification information of the file script of the middleware to be configured;
In response to the configuration-direct, according to the identification information of the file script of the middleware to be configured, described in acquisition The file of middleware to be configured is originally;
The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;
The object run is executed to the duplicate of the document of the middleware to be configured, obtains the file pair of configured middleware This;
The duplicate of the document of the configured middleware is synchronized to destination application server.
In one embodiment, the duplicate of the document to the middleware to be configured executes the object run, obtains Configured duplicate of the document, comprising:
Obtain the corresponding file attribute to be configured of duplicate of the document of the middleware to be configured, the file attribute to be configured One or more of including but not limited to following information: filename, service logic or user right;
Determine position of the file attribute to be configured in the duplicate of the document of the middleware to be configured;
The object run is executed to the file attribute to be configured based on identified position.
In one embodiment, the duplicate of the document by the configured middleware is synchronized to destination application server, Include:
Synchronization request is sent to the destination application server;
It is if receiving the response instruction for the synchronization request, the duplicate of the document of the configured middleware is same It walks to the destination application server.
In one embodiment, the one or more computer program can be by one or more than one place It manages device to execute, also perform the steps of
The duplicate of the document of configured middleware is stored to update the file of corresponding middleware originally.
In one embodiment, the one or more computer program can be by one or more than one place It manages device to execute, also perform the steps of
Operation note corresponding with the object run is generated, by operation note storage into database.
Present invention storage medium above-mentioned include: magnetic disk, CD, read-only memory (Read-Only Memory, The various media that can store program code such as ROM).
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or pass through ASIC (Application Specific Integrated Circuit, specific integrated circuit) it realizes.
Step in middleware management method of the embodiment of the present invention can according to actual needs the adjustment of carry out sequence, merge and It deletes.
Unit in middleware managing device of the embodiment of the present invention can be merged according to actual needs, divides and be deleted Subtract.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of middleware management method, which is characterized in that the described method includes:
Configuration-direct is received, the configuration-direct, which is used to indicate, operates middleware performance objective to be configured, the configuration-direct The identification information of file script including the middleware to be configured;
It is obtained described wait match in response to the configuration-direct according to the identification information of the file script of the middleware to be configured Set the file of middleware originally;
The file script of the middleware to be configured is backed up, to obtain the duplicate of the document of the middleware to be configured;
The object run is executed to the duplicate of the document of the middleware to be configured, obtains the duplicate of the document of configured middleware;
The duplicate of the document of the configured middleware is synchronized to destination application server.
2. the method as described in claim 1, which is characterized in that the duplicate of the document to the middleware to be configured executes institute Object run is stated, configured duplicate of the document is obtained, comprising:
The corresponding file attribute to be configured of duplicate of the document of the middleware to be configured is obtained, the file attribute to be configured includes One or more of but be not limited to following information: filename, service logic or user right;
Determine position of the file attribute to be configured in the duplicate of the document of the middleware to be configured;
The object run is executed to the file attribute to be configured based on identified position.
3. the method as described in claim 1, which is characterized in that the duplicate of the document by the configured middleware is synchronized to Destination application server, comprising:
Synchronization request is sent to the destination application server;
If receiving the response instruction for the synchronization request, the duplicate of the document of the configured middleware is synchronized to The destination application server.
4. the method as described in claim 1, which is characterized in that executed in the duplicate of the document to the middleware to be configured The object run, after obtaining the duplicate of the document step of configured middleware, the method also includes:
The duplicate of the document of configured middleware is stored to update the file of corresponding middleware originally.
5. the method as described in claim 1, which is characterized in that the method also includes:
Operation note corresponding with the object run is generated, by operation note storage into database.
6. a kind of middleware management method, which is characterized in that the described method includes:
Synchronization request is received, and local file mark is searched according to the synchronization request;
The local file is identified and is compared with the file identification in the synchronization request;
If the local file mark is identical as the file identification in the synchronization request, reception is asked with the file synchronization It seeks the duplicate of the document of corresponding middleware and updates the file of corresponding middleware in the destination application server originally;Otherwise Receive and save the duplicate of the document of middleware corresponding with the synchronization request.
7. a kind of middleware managing device, which is characterized in that described device includes:
First receiving unit, for receiving configuration-direct, the configuration-direct is used to indicate to middleware performance objective to be configured Operation, the configuration-direct includes the identification information of the file script of the middleware to be configured;
First execution unit is used in response to the configuration-direct, according to the mark of the file script of the middleware to be configured Information obtains the file of the middleware to be configured originally;
Backup units, for backing up the file script of the middleware to be configured, to obtain the file of the middleware to be configured Copy;
Second execution unit executes the object run for the duplicate of the document to the middleware to be configured, obtains configured The duplicate of the document of middleware;
Synchronization unit, for the duplicate of the document of the configured middleware to be synchronized to destination application server.
8. a kind of server, which is characterized in that the server includes:
Second receiving unit searches local file mark for receiving synchronization request, and according to the synchronization request;
Comparison unit is compared for identifying the local file with the file identification in the synchronization request;
Third receiving unit connects if identical as the file identification in the synchronization request for local file mark It receives the duplicate of the document of middleware corresponding with the synchronization request and updates in corresponding in the destination application server Between part file originally;Otherwise the duplicate of the document of middleware corresponding with the synchronization request is received and saved.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes that claim 1-5 such as appoints when executing the computer program Middleware management method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or More than one computer program, the one or more computer program can be by one or more than one processors It executes, to realize middleware management method as described in any one in claim 1-5.
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 true CN109325057A (en) 2019-02-12
CN109325057B 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)

Cited By (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

Cited By (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

Also Published As

Publication number Publication date
CN109325057B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
US9251163B2 (en) File sharing system and file sharing method
CN103457905B (en) Method of data synchronization, system and equipment
CN103180842B (en) Cloud computing system and the method for data synchronization for this cloud computing system
US20190245921A1 (en) Synchronized content library
US8001077B2 (en) Distributed method for synchronizing and updating bookmarks on multiple computer devices
JP4278299B2 (en) Communication system and method
CN103946844A (en) Synchronizing updates across cluster filesystems
CN107895049A (en) Data processing method and device, computer-readable recording medium, electronic equipment
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
US7657609B2 (en) Data transfer in a multi-environment document management system access
CN111881223B (en) Data management method, device, system and storage medium
CN101867607A (en) Distributed data access method, device and system
US20070011275A1 (en) Multi-environment document management system access
CN109144785A (en) Method and apparatus for Backup Data
CN109542907A (en) Database caches construction method, device, computer equipment and storage medium
CN110245145A (en) Structure synchronization method and apparatus of the relevant database to Hadoop database
CN103119551A (en) Optimized recovery
CN109617647A (en) Message forwarding method, device, computer equipment and computer readable storage medium
CN109656886B (en) Key value pair-based file system implementation method, device, equipment and storage medium
JP2002334006A (en) Device and program for information management, and recording medium where the same program is recorded
JP2012008854A (en) Storage virtualization device
CN105593839A (en) Distributed disaster recovery file sync server system
CN101873342A (en) Data access method, data access system and disk array storage system
CN114185991A (en) Method and related device for realizing data synchronization based on distributed database
CN110532254A (en) The method and apparatus of fused data table

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