CN110502272A - One parameter configuration method, device, storage medium and computer equipment - Google Patents
One parameter configuration method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN110502272A CN110502272A CN201910757714.XA CN201910757714A CN110502272A CN 110502272 A CN110502272 A CN 110502272A CN 201910757714 A CN201910757714 A CN 201910757714A CN 110502272 A CN110502272 A CN 110502272A
- Authority
- CN
- China
- Prior art keywords
- parameter
- business
- data
- tables
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000004048 modification Effects 0.000 claims abstract description 42
- 238000012986 modification Methods 0.000 claims abstract description 42
- 241000208340 Araliaceae Species 0.000 claims description 13
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 13
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 13
- 235000008434 ginseng Nutrition 0.000 claims description 13
- 239000000284 extract Substances 0.000 claims description 4
- 230000008859 change Effects 0.000 description 6
- 238000000605 extraction Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 238000001727 in vivo Methods 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 230000035899 viability Effects 0.000 description 2
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Abstract
The invention discloses a parameter configuration methods, device, storage medium and computer equipment, the first business of parameter is needed to configure by determining, determining and matched first tables of data of first business, the first parameter that first business needs to configure is determined in first tables of data, load first parameter, to carry out the configuration of first parameter to first business, when business being made to need to modify to parameter or configure in operation, can directly the parameter in tables of data be modified or be configured, and, business can keep runing during modifying or configuring completion, without requiring business to restart after the completion of modification or configuration, it can be so that the modification and configuration of parameter can be completed in business in unbroken situation.
Description
Technical field
The present invention relates to computer fields more particularly to a parameter configuration method, device, storage medium and computer to set
It is standby.
Background technique
Cloud computing management platform can integrate a variety of different virtualization products, such as VMWare, Incloud Sphere
And OpenStack.Different virtualization products can install different operating system, and different operating system needs to configure difference
Operating system parameter, such as inner core, memory addressing width and whether there is real-time etc..Also, it is different
Virtualization product can run different business, and different business needs to configure different service parameters, such as of IP address
Number limitation.
Cloud computing manages platform needs according to the specifying information of virtualization product, carries out relevant parameter to the virtualization product
Configuration.The prior art can be defined in configuration file first each virtualization product relevant parameter (including operating system ginseng
Several and service parameter), correspondence can be transferred by function in configuration file according to the information of specific virtualization product later
The parameter of the virtualization product, to carry out parameter configuration to the virtualization product.
But if to modify operating system parameter or service parameter during service operation, it must just modify and match in advance
File and reboot operation system are set, this will lead to the interruption of service operation.
Summary of the invention
In view of the above problems, the present invention provides a kind of ginseng for overcoming the above problem or at least being partially solved the above problem
Number configuration method, device, storage medium and computer equipment, technical solution are as follows:
One parameter configuration method, which comprises
Determine the first business for needing to configure parameter;
Determining and matched first tables of data of first business;
The first parameter that first business needs to configure is determined in first tables of data;
First parameter is loaded, to carry out the configuration of first parameter to first business.
Optionally, the method also includes:
Determine the second parameter that the second business for needing to modify parameter and second business need to modify;
Determining and matched second tables of data of second business;
It modifies second parameter to obtain third parameter in second tables of data;
The third parameter is loaded, to carry out the configuration of the third parameter to second business.
Optionally, the method also includes:
Create the parameter that each business needs to configure enumerates class data;
In business configuration tables of data parameter failure when, from it is described enumerate extract and load in class data business needs match
The parameter set.
Optionally, before determining and matched first tables of data of first business, further includes:
Database is created, creates tables of data in the database;
The parameter that each business needs to configure is added in the tables of data.
A kind of parameter configuration device, described device include: business determination unit, the first tables of data determination unit, the first ginseng
Number determination unit and the first parameter configuration unit, in which:
The business determination unit, for determining the first business for needing to configure parameter;
The first tables of data determination unit, for determining and matched first tables of data of first business;
First parameter determination unit, for determining what first business needed to configure in first tables of data
First parameter;
First parameter configuration unit, for loading first parameter, to carry out described the to first business
The configuration of one parameter.
Optionally, described device further includes modification determination unit, the second tables of data determination unit, gain of parameter unit and the
Two parameter configuration units, in which:
The modification determination unit, for determining that the second business for needing to modify parameter and second business need to modify
The second parameter;
The second tables of data determination unit, for determining and matched second tables of data of second business;
The gain of parameter unit, for modifying in second tables of data to second parameter to obtain
Three parameters;
Second parameter configuration unit, for loading the third parameter, to carry out described the to second business
The configuration of three parameters.
Optionally, described device further includes enumerating class creating unit and parameter loading unit, in which:
It is described to enumerate class creating unit, class data are enumerated for create parameter that each business needs to configure;
The parameter loading unit enumerates class data from described when failing for the parameter in business configuration tables of data
Middle extraction simultaneously loads the parameter that business needs to configure.
Optionally, described device further includes tables of data creating unit and parameter adding unit, in which:
The tables of data creating unit, for creating before determining and matched first tables of data of first business
Database creates tables of data in the database;
The parameter adding unit, the parameter for needing to configure each business are added in the tables of data.
A kind of storage medium is stored with computer executable instructions in the storage medium, and the computer is executable to be referred to
When order is loaded and executed by processor, as above method for parameter configuration described in any one of Claims 1-4 is realized.
A kind of computer equipment, including processor, memory and be stored on the memory and can be in the processor
The program of upper operation, the processor at least perform the steps of when executing program
Determine the first business for needing to configure parameter;
Determining and matched first tables of data of first business;
The first parameter that first business needs to configure is determined in first tables of data;
First parameter is loaded, to carry out the configuration of first parameter to first business.
Method for parameter configuration, device, storage medium and computer equipment proposed by the present invention, by needing to configure business
Parameter place into tables of data, make business operation when need to modify to parameter or configure when, can be directly to data
Parameter in table is modified or is configured, also, business can keep runing during modifying or configuring completion, modifying or matching
Without requiring business to restart after the completion of setting, it can so that business can be completed in unbroken situation parameter modification and
Configuration.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the flow chart for the parameter configuration method that the present embodiment proposes;
Fig. 2 is the flow chart for another parameter configuration method that the present embodiment proposes;
Fig. 3 is the flow chart for the parameter configuration method that the present embodiment proposes;
Fig. 4 is a kind of schematic diagram for parameter configuration device that the present embodiment proposes;
Fig. 5 is the schematic diagram for another parameter configuration device that the present embodiment proposes;
Fig. 6 is a kind of schematic diagram for parameter configuration device that the present embodiment proposes.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
A parameter configuration method is present embodiments provided, as shown in Figure 1, the method may include:
S100, the first business for needing to configure parameter is determined;
Wherein, business can be each virtualization product of Internet company's release, such as VMWare, Incloud
Sphere and OpenStack etc.;It can be operating system (such as Linux, Windows and Android);It is also possible to using journey
Sequence software, such as game, music application software and video jukebox software;It can also be that Internet company is supplied to all kinds of of user
Network service.It should be noted that the present invention to the concrete type of business without limitation.
Wherein, the parameter that business can configure may include ginseng involved in various operating systems and disparate networks service
Number.
For example, the type and version that the parameter that the present invention configures can be operating system are (such as when business is operating system
Windows10), it can be design parameter (kernel parameter and the network settings ginseng of such as operating system in certain edition operating system
Number etc.);When business is the application program of some service (such as KuGoo music player), the parameter that the present invention configures can be it
The maximum user's number that can connect the business simultaneously in network function, can be run the service business webpage can make
Color category, font size and pattern specification etc..It should be noted that the parameter that the present invention can configure business
Particular content is without limitation.
S200, determination and matched first tables of data of first business;
Optionally, in the method for parameter configuration that other embodiments provide, determining matched with first business the
Before one tables of data, can also include:
Database is created, creates tables of data in the database;
The parameter that each business needs to configure is added in the tables of data.
Wherein, the present invention for tables of data creation number without limitation, can be one, be also possible to two or more
It is a.
In practical applications, the present invention can be in portion equipment (such as computer, mobile phone and iPad) where service operation
When affixing one's name to operating system, i.e., database initializtion script and creation tables of data are write using programming language (such as database language),
For example, using the INSERT IGNORE sentence of structured query language (SQL, Structured Query Language).
Optionally, the present invention can be determined all business of parameter and each of needing to configure in advance by technical staff
The attributes such as the title and value of the parameter that business may relate to, later, the number of the determinant attribute according to parameter determine tables of data
Structure, for example, tables of data in the present invention can only there are two attribute, one be parameter title, another is the value of parameter,
Wherein, when the value of each parameter only one when, the columns of tables of data can be two column, and the line number of tables of data can be by parameter
Number determine.
Certainly, the present invention can also directly create only two column in advance (one is classified as the title of parameter, another parameter that is classified as
Value) or multiple row tables of data, determine the parameter that business and business need to configure again later.
Wherein, the corresponding value of a parameter can be one, be also possible to two or more.
Wherein, the parameter that each business needs to configure can be identical, be also possible to different, the present invention does not do this
It limits.
Optionally, the corresponding whole parameter of some business can be added in the same tables of data.It is of course also possible to add
It adds in different tables of data, which is not limited by the present invention.
S300, the first parameter that first business needs to configure is determined in first tables of data;
Wherein, business in online operation, come to the tables of data in database by the parameter that can be configured according to their needs
It is inquired and is read.
In practical applications, the present invention can be used programming language and write each business and can read parameter in tables of data
Code, allow multiple business to carry out the configuration of parameter simultaneously in online operation, improve the efficiency of service operation.
S400, load first parameter, to carry out the configuration of first parameter to first business.
Wherein, in business configuration parameter, the present invention can extract corresponding parameter in tables of data and carry out to business
In practical applications, the present invention using tables of data rather than carried using configuration file each business configuration ginseng
Number, if some parameter needs of business configuration change in business online operation, such as the title or value of the parameter need
It changing, the present invention can modify accordingly the parameter directly in tables of data, without modifying configuration file,
Avoid the problem of needing the service of restarting (service disruption) after modifying configuration parameter.
Wherein, some parameter is completed to postpone matching for the parameter in loaded, i.e. business, need to carry out phase according to the parameter
Answer the process of part.For example, the page color parameter of music player, in the music player in the page face for being loaded with blue
After color parameter, the page of the music player will be displayed as blue.
Method for parameter configuration disclosed in the present embodiment is placed into tables of data by the parameter for needing to configure business, is made
When business needs to modify to parameter or configure in operation, can directly the parameter in tables of data be modified or be matched
Set, also, modify or configure complete during business can keep runing, without requiring business after the completion of modification or configuration
Restart, it can so that the modification and configuration of parameter can be completed in business in unbroken situation.
Based on step shown in FIG. 1, the present embodiment proposes another parameter configuration method, as shown in Fig. 2, the method
Can with the following steps are included:
S501, the second parameter that the second business for needing to modify parameter and second business need to modify is determined;
Wherein, consistent with the first business in step S100, the present invention does not do the concrete type of the second business equally
It limits.
Wherein, the parameter of business modification can be the current configured parameter of business, is also possible in tables of data and is somebody's turn to do
Parameter business correspondence but be currently not configured.
Wherein, business has the needs of modification parameter during operation, for example, user's meeting when using music player
It is modified according to personal preference to page color.
Modification is made to the page color parameter of the music player, the page color for being originally used for blue is revised as red
Color, then, the page color parameter of the music player is the needs for modification parameter occur.
Optionally, the tool that user can need the parameter modified and the parameter to need to modify in respective interface incoming traffic
Hold in vivo, for example, user can be by the way that in the page setting parameter of music player, the option of page color be selected by blue
It is selected as red, to realize that the above-mentioned page color by music player is modified by blue variation for red parameter.
Certainly, the parameter of business can also carry out periodical configuration according to the needs of itself.In practical applications, of the invention
It can write code when initializing some parameter and make business every operation a period of time, the present invention will be corresponding in the parameter
Several values in randomly select a value business configured accordingly.For example, some music player is whenever online fortune
When seeking time satisfaction one week, the present invention will randomly select a kind of face in the multiple colors such as red, blue, yellow and green
Color carries out the configuration of page color parameter to music player.It should be noted that the present invention repairs the parameter of business
Change the source of needs without limitation.
S502, determination and matched second tables of data of second business;
It should be noted that step S502 is consistent with step S200, it is the tables of data where the parameter of determining business.
S503, it modifies second parameter to obtain third parameter in second tables of data;
Wherein, the modification of parameter can be and is related to the modification of the title of parameter, be also possible to be related to the value of parameter
Modification.
Wherein, the modification of the value of parameter include the number of the value of parameter increase or decrease and/or some value of parameter
Variation.
It should be noted that the parameter obtained after modifying to the second parameter is third parameter, also, in this step
The third parameter of acquisition is used in the configuration of business.
In practical applications, the present invention is after some parameter and modification content that the business that determines needs to modify, Ke Yizhi
It connects and modifies in the tables of data where the parameter to the parameter.For example, if the title of C parameter needs to modify, the present invention
It can modify directly in the tables of data where C parameter to the title C of the parameter;If the number of the value of C parameter or some value
It needs to change, then the present invention can be modified directly in tables of data accordingly.
S504, the load third parameter, to carry out the configuration of the third parameter to second business.
Wherein, after the parameter to business is modified, modified parameter can be configured in real time business by the present invention.
For example, the present invention can be real when the option of the page color parameter of music player can be selected as red by blue by user
When red is configured at the page color of music player.
It should be noted that needing to have modified business completion to the present invention by there is modification from the parameter of business
Parameter configuration during, business can continue operation without interrupting, for example, starting setting up the music player page from user
During color has modified completion to music player page color, music player can be continuously user play music without
Pause can exit service, i.e. business can be in the modification and configuration for the parameter for not interrupting operation or viability finishing service.
The method for parameter configuration that the present embodiment proposes, when the parameter of business occur modifying when needing, can be in tables of data
In directly modify and configure to parameter, also, to business parameter modification and configuration during be not necessarily to interrupting service, realize
Demand to the modification of service parameter and the continuity that ensure that service operation, improve the working efficiency of business.
Based on step shown in FIG. 1, the present embodiment proposes another parameter configuration method, as shown in figure 3, this method is also
It may comprise steps of:
The parameter that S601, each business of creation need to configure enumerates class data;
Wherein, in enumeration type data, the parameter of business can have multiple values.For example, the page of music player
Color can be any one in color set { red, green, yellow, blue, purple, black, grey }.Certainly, in industry
When configuration parameter of being engaged in, a value of the parameter can only be configured, i.e., in the page color of selection music player, no matter color set
How many kind color, can only all select a kind of color in color set in conjunction.
Wherein, enumerating may include the configuration parameter that configuration parameter is added to all business of tables of data in class data,
It also may include not by the configuration parameter of the business of configuration parameter addition tables of data.
In practical applications, the present invention each configuration parameter of business is added to enumerate class data during, respectively
The value of a parameter can be configured according to the actual situation by technical staff.Wherein, the value of the parameter of technical staff's setting can be with
The referred to as default value of the parameter, for example, music player is blue in the default value for enumerating the page color in class data.It needs
Illustrate, the present invention for the default value of parameter setting up procedure without limitation.
When S602, parameter failure in business configuration tables of data, is extracted in class data from described enumerate and load business
The parameter needed to configure.
Wherein, parameter of the business in configuration data table unsuccessfully can be reading database mistake, in reading tables of data
Parameter when there is mistake, the parameter not configured comprising business in tables of data or mistake occur in the process of configuration parameter
Situations such as, which is not limited by the present invention.
It should be noted that when business can not the success configuration parameter from tables of data when, the present invention can be from enumerating class number
According to the parameter of configuration required for middle extraction business, wherein the value of the parameter of extraction can be the default value of the parameter.
Method for parameter configuration proposed by the present invention enumerates class data by creating the parameter comprising each business, with
Business for business can not provide and configure the parameter enumerated in class data when parameter in configuration data table, improve business configuration
The stability of parametric procedure improves the efficiency of service operation.
Corresponding with step shown in Fig. 1, the present embodiment proposes a kind of parameter configuration device, as shown in figure 4, described device
It may include that business determination unit 100, the first tables of data determination unit 200, the first parameter determination unit 300 and the first parameter are matched
Set unit 400, in which:
The business determination unit 100, for determining the first business for needing to configure parameter;
Wherein, business can be each virtualization product of Internet company's release, such as VMWare, Incloud
Sphere and OpenStack etc.;It can be operating system (such as Linux, Windows and Android);It is also possible to using journey
Sequence software, such as game, music application software and video jukebox software;It can also be that Internet company is supplied to all kinds of of user
Network service.It should be noted that the present invention to the concrete type of business without limitation.
Wherein, the parameter that business can configure may include ginseng involved in various operating systems and disparate networks service
Number.
For example, the type and version that the parameter that the present invention configures can be operating system are (such as when business is operating system
Windows10), it can be design parameter (kernel parameter and the network settings ginseng of such as operating system in certain edition operating system
Number etc.);When business is the application program of some service (such as KuGoo music player), the parameter that the present invention configures can be it
The maximum user's number that can connect the business simultaneously in network function, can be run the service business webpage can make
Color category, font size and pattern specification etc..It should be noted that the parameter that the present invention can configure business
Particular content is without limitation.
The first tables of data determination unit 200, for determining and matched first tables of data of first business;
Optionally, in the parameter configuration device that other embodiments provide, described device can also include that tables of data creates
Unit and parameter adding unit, in which:
The tables of data creating unit, for creating before determining and matched first tables of data of first business
Database creates tables of data in the database;
The parameter adding unit, the parameter for needing to configure each business are added in the tables of data.
Wherein, the present invention for tables of data creation number without limitation, can be one, be also possible to two or more
It is a.
In practical applications, the present invention can be in portion equipment (such as computer, mobile phone and iPad) where service operation
When affixing one's name to operating system, i.e., database initializtion script and creation tables of data are write using programming language (such as database language),
For example, using the INSERT IGNORE sentence of structured query language (SQL, Structured Query Language).
Optionally, the present invention can be determined all business of parameter and each of needing to configure in advance by technical staff
The attributes such as the title and value of the parameter that business may relate to, later, the number of the determinant attribute according to parameter determine tables of data
Structure, for example, tables of data in the present invention can only there are two attribute, one be parameter title, another is the value of parameter,
Wherein, when the value of each parameter only one when, the columns of tables of data can be two column, and the line number of tables of data can be by parameter
Number determine.
Certainly, the present invention can also directly create only two column in advance (one is classified as the title of parameter, another parameter that is classified as
Value) or multiple row tables of data, determine the parameter that business and business need to configure again later.
Wherein, the corresponding value of a parameter can be one, be also possible to two or more.
Wherein, the parameter that each business needs to configure can be identical, be also possible to different, the present invention does not do this
It limits.
Optionally, the corresponding whole parameter of some business can be added in the same tables of data.It is of course also possible to add
It adds in different tables of data, which is not limited by the present invention.
First parameter determination unit 300, for determining that the first business needs are matched in first tables of data
The first parameter set;
Wherein, business in online operation, come to the tables of data in database by the parameter that can be configured according to their needs
It is inquired and is read.
In practical applications, the present invention can be used programming language and write each business and can read parameter in tables of data
Code, allow multiple business to carry out the configuration of parameter simultaneously in online operation, improve the efficiency of service operation.
First parameter configuration unit 400, for loading first parameter, described in being carried out to first business
The configuration of first parameter.
Wherein, in business configuration parameter, the present invention can extract corresponding parameter in tables of data and carry out to business
In practical applications, the present invention using tables of data rather than carried using configuration file each business configuration ginseng
Number, if some parameter needs of business configuration change in business online operation, such as the title or value of the parameter need
It changing, the present invention can modify accordingly the parameter directly in tables of data, without modifying configuration file,
Avoid the problem of needing the service of restarting (service disruption) after modifying configuration parameter.
Wherein, some parameter is completed to postpone matching for the parameter in loaded, i.e. business, need to carry out phase according to the parameter
Answer the process of part.For example, the page color parameter of music player, in the music player in the page face for being loaded with blue
After color parameter, the page of the music player will be displayed as blue.
Parameter configuration device disclosed in the present embodiment is placed into tables of data by the parameter for needing to configure business, is made
When business needs to modify to parameter or configure in operation, can directly the parameter in tables of data be modified or be matched
Set, also, modify or configure complete during business can keep runing, without requiring business after the completion of modification or configuration
Restart, it can so that the modification and configuration of parameter can be completed in business in unbroken situation.
Device based on shown in Fig. 4, the present embodiment proposes another parameter configuration device, as shown in figure 5, described device is also
It may include modification determination unit 501, the second tables of data determination unit 502, gain of parameter unit 503 and the second parameter configuration list
Member 504, in which:
The modification determination unit 501, for determining the second business for needing to modify parameter and the second business needs
Second parameter of modification;
Wherein, consistent with the first business in the business determination unit 100, concrete kind of the present invention for the second business
Type is equally without limitation.
Wherein, the parameter of business modification can be the current configured parameter of business, is also possible in tables of data and is somebody's turn to do
Parameter business correspondence but be currently not configured.
Wherein, business has the needs of modification parameter during operation, for example, user's meeting when using music player
It is modified according to personal preference to page color.
Modification is made to the page color parameter of the music player, the page color for being originally used for blue is revised as red
Color, then, the page color parameter of the music player is the needs for modification parameter occur.
Optionally, the tool that user can need the parameter modified and the parameter to need to modify in respective interface incoming traffic
Hold in vivo, for example, user can be by the way that in the page setting parameter of music player, the option of page color be selected by blue
It is selected as red, to realize that the above-mentioned page color by music player is modified by blue variation for red parameter.
Certainly, the parameter of business can also carry out periodical configuration according to the needs of itself.In practical applications, of the invention
It can write code when initializing some parameter and make business every operation a period of time, the present invention will be corresponding in the parameter
Several values in randomly select a value business configured accordingly.For example, some music player is whenever online fortune
When seeking time satisfaction one week, the present invention will randomly select a kind of face in the multiple colors such as red, blue, yellow and green
Color carries out the configuration of page color parameter to music player.It should be noted that the present invention repairs the parameter of business
Change the source of needs without limitation.
The second tables of data determination unit 502, for determining and matched second tables of data of second business;
It should be noted that the second tables of data determination unit 502 and the first tables of data determination unit 200 1
It causes, is the tables of data where the parameter of determining business.
The gain of parameter unit 503, for modifying second parameter to obtain in second tables of data
Obtain third parameter;
Wherein, the modification of parameter can be and is related to the modification of the title of parameter, be also possible to be related to the value of parameter
Modification.
Wherein, the modification of the value of parameter include the number of the value of parameter increase or decrease and/or some value of parameter
Variation.
It should be noted that the parameter obtained after modifying to the second parameter is third parameter, also, in this step
The third parameter of acquisition is used in the configuration of business.
In practical applications, the present invention is after some parameter and modification content that the business that determines needs to modify, Ke Yizhi
It connects and modifies in the tables of data where the parameter to the parameter.For example, if the title of C parameter needs to modify, the present invention
It can modify directly in the tables of data where C parameter to the title C of the parameter;If the number of the value of C parameter or some value
It needs to change, then the present invention can be modified directly in tables of data accordingly.
Second parameter configuration unit 504, for loading the third parameter, described in being carried out to second business
The configuration of third parameter.
Wherein, after the parameter to business is modified, modified parameter can be configured in real time business by the present invention.
For example, the present invention can be real when the option of the page color parameter of music player can be selected as red by blue by user
When red is configured at the page color of music player.
It should be noted that needing to have modified business completion to the present invention by there is modification from the parameter of business
Parameter configuration during, business can continue operation without interrupting, for example, starting setting up the music player page from user
During color has modified completion to music player page color, music player can be continuously user play music without
Pause can exit service, i.e. business can be in the modification and configuration for the parameter for not interrupting operation or viability finishing service.
The parameter configuration device that the present embodiment proposes, when the parameter of business occur modifying when needing, can be in tables of data
In directly modify and configure to parameter, also, to business parameter modification and configuration during be not necessarily to interrupting service, realize
Demand to the modification of service parameter and the continuity that ensure that service operation, improve the working efficiency of business.
Device based on shown in Fig. 4, the present embodiment proposes another parameter configuration device, as shown in fig. 6, described device
It can also include enumerating class creating unit 601 and parameter loading unit 602, in which:
It is described to enumerate class creating unit 601, class data are enumerated for create parameter that each business needs to configure;
Wherein, in enumeration type data, the parameter of business can have multiple values.For example, the page of music player
Color can be any one in color set { red, green, yellow, blue, purple, black, grey }.Certainly, in industry
When configuration parameter of being engaged in, a value of the parameter can only be configured, i.e., in the page color of selection music player, no matter color set
How many kind color, can only all select a kind of color in color set in conjunction.
Wherein, enumerating may include the configuration parameter that configuration parameter is added to all business of tables of data in class data,
It also may include not by the configuration parameter of the business of configuration parameter addition tables of data.
In practical applications, the present invention each configuration parameter of business is added to enumerate class data during, respectively
The value of a parameter can be configured according to the actual situation by technical staff.Wherein, the value of the parameter of technical staff's setting can be with
The referred to as default value of the parameter, for example, music player is blue in the default value for enumerating the page color in class data.It needs
Illustrate, the present invention for the default value of parameter setting up procedure without limitation.
The parameter loading unit 602 enumerates class number from described when failing for the parameter in business configuration tables of data
According to the middle parameter extracting and loading business and need to configure.
Wherein, parameter of the business in configuration data table unsuccessfully can be reading database mistake, in reading tables of data
Parameter when there is mistake, the parameter not configured comprising business in tables of data or mistake occur in the process of configuration parameter
Situations such as, which is not limited by the present invention.
It should be noted that when business can not the success configuration parameter from tables of data when, the present invention can be from enumerating class number
According to the parameter of configuration required for middle extraction business, wherein the value of the parameter of extraction can be the default value of the parameter.
Parameter configuration device proposed by the present invention enumerates class data by creating the parameter comprising each business, with
Business for business can not provide and configure the parameter enumerated in class data when parameter in configuration data table, improve business configuration
The stability of parametric procedure improves the efficiency of service operation.
The parameter configuration device includes processor and memory, and above-mentioned business determination unit 100, the first tables of data determine
Unit 200, the first parameter determination unit 300 and first parameter configuration unit 400 etc. are stored in memory as program unit
In, above procedure unit stored in memory is executed by processor to realize corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, parameter configuration is completed by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor
The existing method for parameter configuration.
The embodiment of the invention provides a kind of processor, the processor is for runing program, wherein described program operation
Method for parameter configuration described in Shi Zhihang.
The embodiment of the invention provides a kind of computer equipment, equipment includes processor, memory and is stored in memory
Program that is upper and can runing on a processor, processor perform the steps of when executing program
Determine the first business for needing to configure parameter;
Determining and matched first tables of data of first business;
The first parameter that first business needs to configure is determined in first tables of data;
First parameter is loaded, to carry out the configuration of first parameter to first business.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a parameter configuration method, which is characterized in that the described method includes:
Determine the first business for needing to configure parameter;
Determining and matched first tables of data of first business;
The first parameter that first business needs to configure is determined in first tables of data;
First parameter is loaded, to carry out the configuration of first parameter to first business.
2. the method according to claim 1, wherein the method also includes:
Determine the second parameter that the second business for needing to modify parameter and second business need to modify;
Determining and matched second tables of data of second business;
It modifies second parameter to obtain third parameter in second tables of data;
The third parameter is loaded, to carry out the configuration of the third parameter to second business.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
Create the parameter that each business needs to configure enumerates class data;
When parameter in business configuration tables of data fails, extract and load what business needed to configure in class data from described enumerate
Parameter.
4. the method according to claim 1, wherein in determining and matched first tables of data of first business
Before, further includes:
Database is created, creates tables of data in the database;
The parameter that each business needs to configure is added in the tables of data.
5. a kind of parameter configuration device, which is characterized in that described device includes: business determination unit, the determining list of the first tables of data
Member, the first parameter determination unit and the first parameter configuration unit, in which:
The business determination unit, for determining the first business for needing to configure parameter;
The first tables of data determination unit, for determining and matched first tables of data of first business;
First parameter determination unit, first needed to configure for determining first business in first tables of data
Parameter;
First parameter configuration unit, for loading first parameter, to carry out first ginseng to first business
Several configurations.
6. device according to claim 5, which is characterized in that described device further includes modification determination unit, the second data
Table determination unit, gain of parameter unit and the second parameter configuration unit, in which:
The modification determination unit, for determine need to modify parameter the second business and second business need to modify the
Two parameters;
The second tables of data determination unit, for determining and matched second tables of data of second business;
The gain of parameter unit, for modifying in second tables of data to second parameter to obtain third ginseng
Number;
Second parameter configuration unit, for loading the third parameter, to carry out the third ginseng to second business
Several configurations.
7. device according to claim 5 or 6, which is characterized in that described device further includes enumerating class creating unit and ginseng
Number loading unit, in which:
It is described to enumerate class creating unit, class data are enumerated for create parameter that each business needs to configure;
The parameter loading unit mentions when failing for the parameter in business configuration tables of data from described enumerate in class data
Take and load the parameter that business needs to configure.
8. device according to claim 5, which is characterized in that described device further includes that tables of data creating unit and parameter add
Add unit, in which:
The tables of data creating unit, for creating data before determining and matched first tables of data of first business
Library creates tables of data in the database;
The parameter adding unit, the parameter for needing to configure each business are added in the tables of data.
9. a kind of storage medium, which is characterized in that be stored with computer executable instructions, the computer in the storage medium
When executable instruction is loaded and executed by processor, as above parameter configuration side described in any one of Claims 1-4 is realized
Method.
10. a kind of computer equipment, which is characterized in that including processor, memory and be stored on the memory and can be
The program runed on the processor, the processor at least perform the steps of when executing program
Determine the first business for needing to configure parameter;
Determining and matched first tables of data of first business;
The first parameter that first business needs to configure is determined in first tables of data;
First parameter is loaded, to carry out the configuration of first parameter to first business.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757714.XA CN110502272A (en) | 2019-08-16 | 2019-08-16 | One parameter configuration method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910757714.XA CN110502272A (en) | 2019-08-16 | 2019-08-16 | One parameter configuration method, device, storage medium and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110502272A true CN110502272A (en) | 2019-11-26 |
Family
ID=68588119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910757714.XA Pending CN110502272A (en) | 2019-08-16 | 2019-08-16 | One parameter configuration method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110502272A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544807A (en) * | 2017-09-06 | 2018-01-05 | 郑州云海信息技术有限公司 | System configuration data table management method |
CN109766085A (en) * | 2018-12-29 | 2019-05-17 | 苏宁易购集团股份有限公司 | A kind of method and device handling enumeration type code |
-
2019
- 2019-08-16 CN CN201910757714.XA patent/CN110502272A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107544807A (en) * | 2017-09-06 | 2018-01-05 | 郑州云海信息技术有限公司 | System configuration data table management method |
CN109766085A (en) * | 2018-12-29 | 2019-05-17 | 苏宁易购集团股份有限公司 | A kind of method and device handling enumeration type code |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111694586A (en) * | 2020-06-05 | 2020-09-22 | 平安科技(深圳)有限公司 | Program initialization method, program initialization device, terminal device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762769B (en) | Microservice application arranging and deploying method and device and computer terminal | |
CN109472609B (en) | Wind control reason determining method and device | |
CN105511873B (en) | User interface control display method and device | |
CN110942387A (en) | Method and system for establishing electric ticket business function based on micro-service | |
US20140181497A1 (en) | User interface with splash screen | |
CN112558954A (en) | Information extraction method, device, medium and electronic equipment combining RPA and AI | |
CN102193960B (en) | Content sharing system | |
CN111031133B (en) | Operation method and device of business engine, storage medium and electronic device | |
CN110502272A (en) | One parameter configuration method, device, storage medium and computer equipment | |
JP2013246644A (en) | Software object correction support device, software object correction support method and program | |
US20130325152A1 (en) | Parameter setting device and parameter setting system | |
WO2014100713A1 (en) | Simplified product configuration using table-based rules, rule conflict resolution through voting, efficient model compilation, rule assignments and templating | |
US8010217B2 (en) | Reconfiguration of assets for reuse during manufacturing | |
US9110755B2 (en) | Aggregation of update sets | |
US10394529B2 (en) | Development platform of mobile native applications | |
CN106293922A (en) | Asynchronous task processing method and system | |
US20130091448A1 (en) | Transformative user interfaces | |
US10169737B2 (en) | Converting assets for reuse during manufacturing | |
US8452949B1 (en) | Optical boot to eliminate changing BIOS to boot externally attached storage device | |
US20140040785A1 (en) | Browser-based process flow control responsive to an external application | |
CN114493493A (en) | Decision engine and decision engine implementation method | |
CN113001538B (en) | Command analysis method and system | |
CN106407375A (en) | Method and device for upgrading database | |
US9430209B2 (en) | Processing framework for generating pre-configuration packages | |
US9003274B2 (en) | Scheduling start-up and shut-down of mainframe applications using topographical relationships |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191126 |