CN107885537A - Configuration file loading method and device - Google Patents
Configuration file loading method and device Download PDFInfo
- Publication number
- CN107885537A CN107885537A CN201610860552.9A CN201610860552A CN107885537A CN 107885537 A CN107885537 A CN 107885537A CN 201610860552 A CN201610860552 A CN 201610860552A CN 107885537 A CN107885537 A CN 107885537A
- Authority
- CN
- China
- Prior art keywords
- parameter
- modification
- configuration file
- application program
- request
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention relates to a kind of configuration file loading method and device, methods described to include:Get parms modification request;Extract the application program identification in the parameter modification request and modification parameter;Search process corresponding to the application program identification;The process that the modification parameter extracted injection is found;Modification parameter in the process is modified to the parameter in configuration file corresponding to the application program identification, reloads amended configuration file.Configuration file loading method and device provided by the invention, parameter in configuration file corresponding to application program identification is modified, and server need not be restarted, amended configuration file can be reloaded, the time spent by the parameter modification in the configuration file of application program is shortened, improves the parameter modification efficiency of application program.
Description
Technical field
The present invention relates to software parameter administrative skill field, more particularly to a kind of configuration file loading method and device.
Background technology
With the development of computer technology, it is sometimes desirable to the configuration parameter of the program to being run on server is modified,
Modification is required for human configuration every time, it is necessary to restart server after human configuration, restarts it in server
Afterwards, the application program run on server could read amended parameter.During server restarts, using journey
Sequence must interrupt, and can not provide corresponding service.
However, after being modified to the parameter of application program, restarting is provided with the server of application program, so as to
So that the application program of installation on the server reads amended parameter, and provide corresponding service.So so that using journey
The parameter modification needs of sequence, which consume a longer time, could provide corresponding service.
The content of the invention
Based on this, it is necessary to change the problem of consuming a longer time for the parameter of application program, there is provided one kind configuration text
Part loading method and device.
A kind of configuration file loading method, methods described include:
Get parms modification request;
Extract the application program identification in the parameter modification request and modification parameter;
Search process corresponding to the application program identification;
The process that the modification parameter extracted injection is found;
Modification parameter in the process is carried out to the parameter in configuration file corresponding to the application program identification
Modification, reloads amended configuration file.
In one of the embodiments, the modification request that gets parms, including:
The connection and locating request that receiving terminal is sent;
Ask to search in connection pool according to the connection and locating received and can use connection;
If finding, the available connection found is distributed to the terminal;
Receive the parameter modification request for the available linkup transmit that the terminal passes through distribution.
In one of the embodiments, the connection and locating that the basis receives, which asks to search in connection pool, can use connection
Afterwards, in addition to:
If not finding, create and connect with the terminal;
Receive the parameter modification request for the linkup transmit that the terminal passes through establishment.
In one of the embodiments, the modification parameter in the process is corresponding to the application program identification
Configuration file in parameter modify, including:
Search configuration file corresponding with the application program identification;
Parameter corresponding with the modification parameter in the process is determined in the configuration file found;
The parameter that modification parameter pair in the process determines is modified, and is generated and the application program identification
Corresponding parameter changes daily record.
In one of the embodiments, it is described reload amended configuration file after, in addition to:
Obtain the modification revocation request that the terminal is sent;
Extract the application program identification in the modification revocation request;
Obtain parameter modification daily record and configuration file corresponding to the application program identification;
Daily record is changed according to the parameter of acquisition to recover the configuration file of acquisition.
Above-mentioned configuration file loading method, after parameter modification request is got, the application in extracting parameter modification request
Program identification and modification parameter.Process corresponding with application program identification is searched in process, the modification parameter extracted is noted
Enter into the process found, the modification parameter in process is entered to the parameter in configuration file corresponding to application program identification
Row modification, reloads amended configuration file.So as to realize to the parameter in configuration file corresponding to application program identification
Modify, and server need not be restarted, you can reload amended configuration file, shorten application program
The time spent by parameter modification in configuration file, improve the parameter modification efficiency of application program.
A kind of configuration file loading device, described device include:
Acquisition request module, for the modification request that gets parms;
Parameter extraction module, for extracting application program identification and modification parameter in the parameter modification request;
Process searching modul, for searching process corresponding to the application program identification;
Parameter injection module, for the process for finding the injection of the modification extracted parameter;
Parameter adapting module, for the modification parameter in the process to configuration corresponding to the application program identification
Parameter in file is modified, and reloads amended configuration file.
In one of the embodiments, the acquisition request module includes:
Search request receiving module, the connection and locating request sent for receiving terminal;
Connection and locating module, connection can be used for asking to search in connection pool according to the connection and locating received;
Distribute module is connected, for when finding available connection, the available connection found to be distributed to the terminal;
Request receiving module, the parameter modification request for the available linkup transmit for passing through distribution for receiving the terminal.
In one of the embodiments, described device also includes:
Creation module is connected, when can use connection for not finding, creates and connects with the terminal;
The request receiving module is additionally operable to receive the parameter modification request for the linkup transmit that the terminal passes through establishment.
In one of the embodiments, the parameter adapting module includes:
Configuration file searching modul, for searching configuration file corresponding with the application program identification;
Parameter determination module, it is corresponding with the modification parameter in the process for being determined in the configuration file found
Parameter;
Daily record generation module is changed, the parameter determined for the modification parameter pair in the process is modified, and
Generation parameter modification daily record corresponding with the application program identification.
In one of the embodiments, described device also includes:
Acquisition request module is cancelled, request is cancelled for obtaining the modification that the terminal is sent;
Program identification extraction module, for extracting the application program identification in the modification revocation request;
Log acquisition module is changed, for obtaining parameter modification daily record corresponding to the application program identification and configuration text
Part;
Configuration file recovery module, the configuration file of acquisition is recovered for changing daily record according to the parameter of acquisition.
Above-mentioned configuration file loading device, after parameter modification request is got, the application in extracting parameter modification request
Program identification and modification parameter.Process corresponding with application program identification is searched in process, the modification parameter extracted is noted
Enter into the process found, the modification parameter in process is entered to the parameter in configuration file corresponding to application program identification
Row modification, reloads amended configuration file.So as to realize to the parameter in configuration file corresponding to application program identification
Modify, and server need not be restarted, you can reload amended configuration file, shorten application program
The time spent by parameter modification in configuration file, improve the parameter modification efficiency of application program.
Brief description of the drawings
Fig. 1 is the applied environment figure of configuration file loading system in one embodiment;
Fig. 2 is the internal structure schematic diagram of server in configuration file loading system in one embodiment;
Fig. 3 is the schematic flow sheet of configuration file loading method in one embodiment;
Fig. 4 is to search schematic flow sheet the step of can using connection in one embodiment in connection pool;
The schematic flow sheet for the step of Fig. 5 is the modification revocation of configuration file in one embodiment;
Fig. 6 is the structured flowchart of configuration file loading device in one embodiment;
Fig. 7 is the structured flowchart of acquisition request module in one embodiment;
Fig. 8 is the structured flowchart of parameter adapting module in one embodiment;
Fig. 9 is the structured flowchart of configuration file loading device in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the applied environment figure of configuration file loading system in an implementation, and configuration file loading system includes terminal
110 and server 120, wherein terminal 110 and server 120 can be multiple.Terminal 110 is connected by network and server 120
Connect.Terminal 110 can be desktop computer or mobile terminal, and mobile terminal can be specifically tablet personal computer, smart mobile phone, individual number
According to assistant and can at least one of networked electronic reader.
Fig. 2 is the internal structure schematic diagram of the server 120 in Fig. 1 configuration file loading systems in one embodiment.Such as
Shown in Fig. 2, the server 120 includes processor, non-volatile memory medium, built-in storage and the net connected by system bus
Network interface.Wherein, the non-volatile memory medium of server 120 is stored with operating system, database, in addition to a kind of configuration text
Part loading device, the configuration file loading device are used to realize a kind of configuration file loading method.Processor is used to provide calculating
And control ability, support the operation of whole server 120, the built-in storage in server 120 is in non-volatile memory medium
The operation of configuration file loading device environment is provided, computer-readable instruction can be stored with the built-in storage, the computer
When readable instruction is executed by processor, a kind of configuration file loading method of computing device may be such that.Network interface is used for and end
End 110 carries out network service.
As shown in figure 3, in one embodiment, there is provided a kind of configuration file loading method, the present embodiment have in this way
The server 120 that body is applied to Fig. 1 configuration file loading systems comes for example, being provided with parameter modification journey in server 120
Sequence, parameter modification program are used to implement configuration file loading method, and this method specifically includes herein below:
S302, get parms modification request.
Specifically, the parameter modification page is shown in terminal 110, can be changed and believed with input parameter in parameter changes the page
Breath.Parameter modification information specifically includes modification parameter and application program identification, can also include server identification.Parameter is changed to use
Modified in the parameter being currently configured to application program.Terminal 110 gets parms and repaiied when detecting parameter modification instruction
Change the parameter modification information inputted in the page, parameter modification request is generated according to parameter modification information.Terminal 110 is in generation parameter
After modification request, parameter is changed into request and sent to server 120.
S304, application program identification and modification parameter in extracting parameter modification request.
Specifically, server 120 receive terminal 110 transmission parameter modification request after, to parameter modification ask into
Row parsing.Server 120 is parsed to obtain parameter modification information by changing request to parameter, is carried from parameter modification information
Take application program identification and modification parameter.Application program identification is the mark of the application program to be changed, application program identification
For unique mark application program.Application program identification can be specifically application name.
S306, search process corresponding to application program identification.
Specifically, the operation of server 120 has process corresponding to each application program identification.Process, which is one, to be had necessarily independently
Once operation activity of the program of function on some data acquisition system.Process is the elementary cell of operating system Dynamic Execution,
In traditional operating system, process is both basic allocation unit, and basic execution unit.Server 120 is extracting
After application program identification, process corresponding with application program identification is searched in the process of operation.
S308, the process that the modification parameter extracted injection is found.
Specifically, server 120, will be from parameter modification information after process corresponding with application program identification is found
In the process that the modification parameter injection extracted is found.After in the process for finding the injection of the modification extracted parameter,
Modification parameter in the process that reference program corresponding to application program identification is found according to injection is run.
In one embodiment, the parameter that server 120 extracts includes database address, and server is by database
Location is injected into process corresponding to application program identification.Application program is to corresponding to database address corresponding to application program identification
Data in data are operated.At least one of memory address and time-out time can also be included in the parameter extracted.
S310, the modification parameter in process are repaiied to the parameter in configuration file corresponding to application program identification
Change, reload amended configuration file.
Specifically, configuration file, configuration file storage corresponding with application program identification are store in server 120.Service
Device 120 searches configuration file corresponding with application program identification in the configuration file of storage.In the extraction process of server 120
The parameter identification of parameter is changed, parameter corresponding with the parameter identification extracted, repairing in process are searched in configuration file
Change parameter to modify to the parameter found, amended configuration file is preserved.Repaiied in the record profile of server 120
Parameter and amended parameter before changing, parameter modification daily record is generated according to the parameter of record, parameter is changed into daily record and application
Program identification is corresponding to be stored.Server 120 reloads amended configuration file after amended configuration file is preserved,
Make application program corresponding to application program identification according to amended Profile Up.It can also include in parameter modification daily record
Parameter modification time.
In one embodiment, S310 is specifically included:Search configuration file corresponding with application program identification;Finding
Configuration file in search corresponding with the modification parameter in process parameter;Modification parameter in process is to the ginseng that finds
Number is modified, and generates parameter modification daily record corresponding with application program identification.
In one embodiment, specifically herein below is also included after S310:The parametric statistics request that receiving terminal is sent;
The parameter configured according to each application program of parametric statistics request statistics;The parameter that each application program counted on is configured is returned
It is back to terminal and shows.
Specifically, when terminal 110 detects the clicking operation of parametric statistics button in the parameter modification page, generation parameter system
Meter request, parametric statistics request is sent to server 120.Server 120 obtains installation after parametric statistics request is received
The application program identification of each application program on server 120, the parameter that each application program is configured is counted, by what is counted on
The application program identification of the parameter that each application program is configured and each application program is sent to terminal 110.Terminal 110 will receive
The storage corresponding with the application program identification of each application program of the parameter that is configured of each application program, and journey is respectively applied into storage
Parameter display corresponding to sequence mark is in the display.
In one embodiment, specifically herein below is also included after S310:Receiving terminal sends parameter search request;Carry
Take the application program identification in parameter search request and parameter identification;Configuration file corresponding to application program identification is searched, from looking into
Parameter corresponding to extracting parameter mark in the configuration file found;The parameter extracted is back to terminal.
Specifically, terminal 110 obtains the application program identification of input when detecting that parameter searches the clicking operation of button
And parameter identification, parameter search request is generated according to the application program identification got and parameter identification.Terminal 110 is by generation
Parameter search request is sent to server 120.Server 120 enters after parameter search request is received to parameter search request
Row parsing, by parsing application program identification and parameter identification in extracting parameter search request.Server 120 is matched somebody with somebody storage
Put and configuration file corresponding with application program identification is searched in file, extraction and parameter identification pair in the configuration file found
The parameter answered, the parameter extracted is back to terminal 110.The parameter that terminal 110 returns to server 120 is included in display
On.
In the present embodiment, get parameter modification request after, extracting parameter modification request in application program identification and
Change parameter.Process corresponding with application program identification is searched in process, the modification parameter extracted is injected into and found
Process in, the modification parameter in process is modified to the parameter in configuration file corresponding to application program identification, weight
Newly load amended configuration file.The parameter in configuration file corresponding to application program identification is modified so as to realize,
And server need not be restarted, you can reload amended configuration file, shorten the configuration file of application program
In parameter modification spent time, improve the parameter modification efficiency of application program.
As shown in figure 4, in one embodiment, S302, which is specifically additionally included in connection pool to search, can use the step of connecting,
The step specifically includes herein below:
S402, the connection and locating request that receiving terminal is sent.
Specifically, the server identification that terminal 110 inputs in the modification page that gets parms, is generated according to server identification
Connection and locating is asked.Terminal 110 is after generation connection and locating request, by corresponding to connection and locating request transmission to server identification
Server 120.The connection and locating request that the receiving terminal 110 of server 120 is sent.
S404, connection can be used by asking to search in connection pool according to the connection and locating received;If finding, perform
S406;If not finding, S410 is performed.
Specifically, connection pool is configured with server 120, a plurality of available connection is stored with connection pool.Server 120 exists
After the connection and locating request for receiving the transmission of terminal 110, connection and locating request is parsed, in extraction connection and locating request
Terminal iidentification or user's mark.Server 120 is according to terminal iidentification and user's identifier lookup and the terminal iidentification extracted or use
Connection can be used corresponding to the mark of family.
In one embodiment, server 120 finds a plurality of available connection, when obtaining every establishment that can use connection
Between, according to can be ranked up with the creation time of connection to available connection, it is earliest that creation time is chosen from a plurality of available connection
Or available connection the latest.
In one embodiment, if server 120 does not find available connection, searched according to preset interval time
Connection can be used, when lookup number reaches preset times, stops searching, then performs S410.
S406, the available connection found is distributed to terminal.
Specifically, server 120 is found after being asked according to connection and locating in being asked according to connection and locating in connection pool
Connection can be used.Server 120 obtains the connection identifier of the available connection found, and connection identifier is sent to terminal 110, will
Connection distribution can be used corresponding to connection identifier to terminal 110.
S408, the parameter modification request for the available linkup transmit that receiving terminal passes through distribution.
Specifically, after terminal 110 is assigned to available connection, will be sent out according to parameter modification request by the available connection distributed
Deliver to server 120.The parameter modification that server 120 is sent by the available connection receiving terminal 110 distributed for terminal 110 please
Ask.
S410, create and connect with terminal.
Specifically, after server 120 is in connection pool to find available connection, then sends connection to terminal 110 and create
Information.Connection creates information and specifically includes server identification, and server identification can be specifically server address and port.Terminal
110 after the connection for receiving the transmission of server 120 creates information, and information generation connection request to create is created according to connection.Clothes
Business device 120 is verified after connection request to create is received to the checking information in connection request to create.After being verified,
Server 120 returns to connection to terminal 110 and creates successful information.
S412, the parameter modification request for the linkup transmit that receiving terminal passes through establishment.
Specifically, terminal 110 is created after the connection for receiving the return of server 120 creates successful information using connection
Parameter modification request is encrypted cipher mode in information, and the parameter modification request after encryption is sent to the company by creating
Server 120 is delivered in sending and receiving.
In the present embodiment, connection can be used by being searched according to connection and locating request in connection pool, after available connection is found,
The available connection found is distributed to terminal, the parameter sent by the available connection receiving terminal of distribution changes request, nothing
Connection need to be re-established, saves and establishes the connection spent time, improve data transmission efficiency.Meanwhile do not finding
After connection being used, then create and connect with terminal, the parameter sent by the connection receiving terminal of establishment changes request, ensure that
, being capable of effectively configured transmission modification request when not finding available connection.
As shown in figure 5, in one embodiment, the step of S310 specifically includes the modification and revocation of configuration file, the step
Suddenly herein below is specifically included:
S502, obtain the modification revocation request that terminal is sent;
Specifically, terminal 110 detects that modification revocation button in the parameter modification page when being clicked, obtains the modification page
In application program identification, according to application program identification generate modification revocation request.Terminal 110, which will be changed, cancels request transmission extremely
Server 120.Modification revocation request is used for the parameter by amended Parameter reconstruction to before changing.
S504, the application program identification in extraction modification revocation request.
Specifically, after server 120 receives modification revocation request, modification revocation request is parsed.Server 120
By parsing the application program identification extracted in modification revocation request.
S506, obtain parameter modification daily record and configuration file corresponding to application program identification.
Specifically, server 120 is searched and answered in the parameter modification daily record of storage after application program identification is extracted
Parameter changes daily record corresponding to program identification, obtains the parameter modification daily record found.Configuration text of the server 120 in storage
Configuration file corresponding with application program identification is searched in part, obtains the configuration file found.Parameter modification daily record includes
Parameter and amended parameter before modification.
S508, daily record is changed according to the parameter of acquisition the configuration file of acquisition is recovered.
Specifically, the parameter before the modification in the extracting parameter of server 120 modification daily record and amended parameter, are being configured
Amended parameter is searched in file.After server 120 finds amended parameter in configuration file, the ginseng that will find
Number replaces with the parameter before modification, and configuration file is reverted into the configuration file before modification.
In the present embodiment, after the modification revocation request of terminal transmission is got, the application program in being cancelled according to modification
Identifier lookup parameter changes daily record and configuration file, changes daily record according to parameter and configuration file is recovered.Ensure in parameter
When changing wrong, without re-entering the parameter before changing, it need to can only be saved by terminal transmission modification revocation request defeated
Enter the time spent by the parameter before modification, improve the resume speed of parameter in configuration file, improve in configuration file and join
The simple operation that number recovers.
As shown in fig. 6, in one embodiment, there is provided a kind of configuration file loading device 600, the device specifically include:
Acquisition request module 602, parameter extraction module 604, process searching modul 606, parameter injection module 608 and parameter adapting module
610。
Acquisition request module 602, for the modification request that gets parms.
Parameter extraction module 604, for the application program identification in extracting parameter modification request and modification parameter.
Process searching modul 606, for searching process corresponding to application program identification.
Parameter injection module 608, for the process for finding the injection of the modification extracted parameter.
Parameter adapting module 610, for the modification parameter in process to configuration file corresponding to application program identification
In parameter modify, reload amended configuration file.
In the present embodiment, get parameter modification request after, extracting parameter modification request in application program identification and
Change parameter.Process corresponding with application program identification is searched in process, the modification parameter extracted is injected into and found
Process in, the modification parameter in process is modified to the parameter in configuration file corresponding to application program identification, weight
Newly load amended configuration file.The parameter in configuration file corresponding to application program identification is modified so as to realize,
And server need not be restarted, you can reload amended configuration file, shorten the configuration file of application program
In parameter modification spent time, improve the parameter modification efficiency of application program.
As shown in fig. 7, in one embodiment, acquisition request module 602 specifically includes:Search request receiving module
602a, connection and locating module 604b, connection distribute module 604c, request receiving module 604d and connection creation module 604e.
Search request receiving module 602a, the connection and locating request sent for receiving terminal.
Connection and locating module 604b, connection can be used for asking to search in connection pool according to the connection and locating received.
Distribute module 604c is connected, for when finding available connection, the available connection found to be distributed to terminal.
Request receiving module 604d, the parameter modification request for the available linkup transmit for passing through distribution for receiving terminal.
Creation module 604e is connected, when can use connection for not finding, creates and connects with terminal.
Request receiving module 604d is additionally operable to the parameter modification request for the linkup transmit that receiving terminal passes through establishment.
In the present embodiment, connection can be used by being searched according to connection and locating request in connection pool, after available connection is found,
The available connection found is distributed to terminal, the parameter sent by the available connection receiving terminal of distribution changes request, nothing
Connection need to be re-established, saves and establishes the connection spent time, improve data transmission efficiency.Meanwhile do not finding
After connection being used, then create and connect with terminal, the parameter sent by the connection receiving terminal of establishment changes request, ensure that
, being capable of effectively configured transmission modification request when not finding available connection.
As shown in figure 8, in one embodiment, parameter adapting module 610 specifically includes:Configuration file searching modul
610a, parameter determination module 610b and modification daily record generation module 610c.
Configuration file searching modul 610a, for searching configuration file corresponding with application program identification.
Parameter determination module 610b, it is corresponding with the modification parameter in process for being determined in the configuration file found
Parameter.
Daily record generation module 610c is changed, the parameter determined for the modification parameter pair in process is modified, and
Generation parameter modification daily record corresponding with application program identification.
In the present embodiment, when the parameter in configuration file is modified, it can generate and join corresponding to application program identification
Number modification daily record, the modification content of log recording configuration file is changed by parameter.
As shown in figure 9, in one embodiment, configuration file loading device 600 specifically also includes:
Acquisition request module 612 is cancelled, the modification for obtaining terminal transmission cancels request.
Program identification extraction module 614, for extracting the application program identification changed in revocation request.
Log acquisition module 616 is changed, for obtaining parameter modification daily record and configuration file corresponding to application program identification.
Configuration file recovery module 618, it is extensive for changing configuration file progress of the daily record to acquisition according to the parameter of acquisition
It is multiple.
In the present embodiment, after the modification revocation request of terminal transmission is got, the application program in being cancelled according to modification
Identifier lookup parameter changes daily record and configuration file, changes daily record according to parameter and configuration file is recovered.Ensure in parameter
When changing wrong, without re-entering the parameter before changing, it need to can only be saved by terminal transmission modification revocation request defeated
Enter the time spent by the parameter before modification, improve the resume speed of parameter in configuration file, improve in configuration file and join
The simple operation that number recovers.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of configuration file loading method, methods described include:
Get parms modification request;
Extract the application program identification in the parameter modification request and modification parameter;
Search process corresponding to the application program identification;
The process that the modification parameter extracted injection is found;
Modification parameter in the process is modified to the parameter in configuration file corresponding to the application program identification,
Reload amended configuration file.
2. according to the method for claim 1, it is characterised in that the modification request that gets parms, including:
The connection and locating request that receiving terminal is sent;
Ask to search in connection pool according to the connection and locating received and can use connection;
If finding, the available connection found is distributed to the terminal;
Receive the parameter modification request for the available linkup transmit that the terminal passes through distribution.
3. according to the method for claim 2, it is characterised in that the connection and locating that the basis receives is asked in connection pool
After middle lookup can use connection, in addition to:
If not finding, create and connect with the terminal;
Receive the parameter modification request for the linkup transmit that the terminal passes through establishment.
4. according to the method any one of claim 1-3, it is characterised in that the modification ginseng in the process
Several parameters in configuration file corresponding to the application program identification are modified, including:
Search configuration file corresponding with the application program identification;
Parameter corresponding with the modification parameter in the process is determined in the configuration file found;
The parameter that modification parameter pair in the process determines is modified, and is generated corresponding with the application program identification
Parameter modification daily record.
5. according to the method for claim 4, it is characterised in that it is described reload amended configuration file after, also
Including:
Obtain the modification revocation request that the terminal is sent;
Extract the application program identification in the modification revocation request;
Obtain parameter modification daily record and configuration file corresponding to the application program identification;
Daily record is changed according to the parameter of acquisition to recover the configuration file of acquisition.
6. a kind of configuration file loading device, it is characterised in that described device includes:
Acquisition request module, for the modification request that gets parms;
Parameter extraction module, for extracting application program identification and modification parameter in the parameter modification request;
Process searching modul, for searching process corresponding to the application program identification;
Parameter injection module, for the process for finding the injection of the modification extracted parameter;
Parameter adapting module, for the modification parameter in the process to configuration file corresponding to the application program identification
In parameter modify, reload amended configuration file.
7. device according to claim 6, it is characterised in that the acquisition request module includes:
Search request receiving module, the connection and locating request sent for receiving terminal;
Connection and locating module, connection can be used for asking to search in connection pool according to the connection and locating received;
Distribute module is connected, for when finding available connection, the available connection found to be distributed to the terminal;
Request receiving module, the parameter modification request for the available linkup transmit for passing through distribution for receiving the terminal.
8. device according to claim 7, it is characterised in that described device also includes:
Creation module is connected, when can use connection for not finding, creates and connects with the terminal;
The request receiving module is additionally operable to receive the parameter modification request for the linkup transmit that the terminal passes through establishment.
9. according to the device any one of claim 6-8, it is characterised in that the parameter adapting module includes:
Configuration file searching modul, for searching configuration file corresponding with the application program identification;
Parameter determination module, for determining ginseng corresponding with the modification parameter in the process in the configuration file found
Number;
Daily record generation module is changed, the parameter determined for the modification parameter pair in the process is modified, and is generated
Parameter corresponding with the application program identification changes daily record.
10. device according to claim 9, it is characterised in that described device also includes:
Acquisition request module is cancelled, request is cancelled for obtaining the modification that the terminal is sent;
Program identification extraction module, for extracting the application program identification in the modification revocation request;
Log acquisition module is changed, for obtaining parameter modification daily record and configuration file corresponding to the application program identification;
Configuration file recovery module, the configuration file of acquisition is recovered for changing daily record according to the parameter of acquisition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610860552.9A CN107885537A (en) | 2016-09-28 | 2016-09-28 | Configuration file loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610860552.9A CN107885537A (en) | 2016-09-28 | 2016-09-28 | Configuration file loading method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107885537A true CN107885537A (en) | 2018-04-06 |
Family
ID=61769478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610860552.9A Pending CN107885537A (en) | 2016-09-28 | 2016-09-28 | Configuration file loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107885537A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110222242A (en) * | 2019-05-21 | 2019-09-10 | 无线生活(杭州)信息科技有限公司 | Configure method for tracing and device |
CN112948020A (en) * | 2021-03-18 | 2021-06-11 | 海南视联通信技术有限公司 | Configuration file processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050138348A1 (en) * | 2003-12-23 | 2005-06-23 | Bolay Frederick H. | Method and apparatus for remote modifcation of system configuration |
WO2006124430A2 (en) * | 2005-05-11 | 2006-11-23 | Applied Voice & Speech Technologies, Inc. | Messaging system configurator |
CN102024021A (en) * | 2010-11-04 | 2011-04-20 | 曙光信息产业(北京)有限公司 | Method for logging metadata in logical file system |
CN104142868A (en) * | 2013-05-10 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Connection establishment method and device |
CN105553738A (en) * | 2015-12-25 | 2016-05-04 | 北京奇虎科技有限公司 | Heat loading method and device of configuration information and distributed cluster system |
CN105677404A (en) * | 2015-12-31 | 2016-06-15 | 拉扎斯网络科技(上海)有限公司 | Zookeeper-based configuration updating method and device |
-
2016
- 2016-09-28 CN CN201610860552.9A patent/CN107885537A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050138348A1 (en) * | 2003-12-23 | 2005-06-23 | Bolay Frederick H. | Method and apparatus for remote modifcation of system configuration |
WO2006124430A2 (en) * | 2005-05-11 | 2006-11-23 | Applied Voice & Speech Technologies, Inc. | Messaging system configurator |
CN102024021A (en) * | 2010-11-04 | 2011-04-20 | 曙光信息产业(北京)有限公司 | Method for logging metadata in logical file system |
CN104142868A (en) * | 2013-05-10 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Connection establishment method and device |
CN105553738A (en) * | 2015-12-25 | 2016-05-04 | 北京奇虎科技有限公司 | Heat loading method and device of configuration information and distributed cluster system |
CN105677404A (en) * | 2015-12-31 | 2016-06-15 | 拉扎斯网络科技(上海)有限公司 | Zookeeper-based configuration updating method and device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110222242A (en) * | 2019-05-21 | 2019-09-10 | 无线生活(杭州)信息科技有限公司 | Configure method for tracing and device |
CN112948020A (en) * | 2021-03-18 | 2021-06-11 | 海南视联通信技术有限公司 | Configuration file processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103294487B (en) | The method of mounting software, equipment and system | |
JP5205449B2 (en) | Managing search index generation status | |
JP2015064897A (en) | Search of multiple content sources on user device | |
CN105376192A (en) | Prompting method and prompting device for logging-on account number | |
CN105512044B (en) | Update method and system for the library of object of keyword driving test | |
CN103902535A (en) | Method, device and system for obtaining associational word | |
CN102664874B (en) | A kind of method and system for secure logging in | |
CN111447245A (en) | Authentication method, authentication device, electronic equipment and server | |
CN105072608B (en) | A kind of method and device of administrative authentication token | |
CN103390003A (en) | Method and device for combining user data information among servers | |
CN102053973A (en) | Device and method for providing page navigation in multi-character supporting network application | |
CN109951318A (en) | The function configuration method and device of application | |
CN109324848A (en) | The interlock method of title bar and page elements, storage medium, electronic equipment and system | |
CN111985906A (en) | Remote office system, method, device and storage medium | |
CN109885535A (en) | A kind of method and relevant apparatus of file storage | |
CN111522744A (en) | Service testing method, device and computer readable storage medium | |
CN107291486A (en) | The installation method and device of a kind of operating system | |
CN107885537A (en) | Configuration file loading method and device | |
CN118075345A (en) | Information pushing method, device, electronic equipment and computer storage medium | |
CN115168064A (en) | Application service calling method and device and application program access method | |
CN109857716B (en) | System interaction log recording method and device, storage medium and server | |
CN105426183A (en) | Form verification method | |
KR102147978B1 (en) | User assist system using user assist app | |
CN115328786A (en) | Automatic testing method and device based on block chain and storage medium | |
CN113051178A (en) | Test data construction method, device, equipment and medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180406 |
|
RJ01 | Rejection of invention patent application after publication |