Specific embodiment
Purpose, technical scheme and advantage to make the application are clearer, below in conjunction with the application specific embodiment and
Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one
Section Example, instead of all the embodiments.Based on the embodiment in this specification, those of ordinary skill in the art are not having
All other embodiments obtained under the premise of creative work are made, shall fall in the protection scope of this application.
In current techniques, when system provides business service for business scenario, generally directed in the curing configuration of some scene
Hold or even a configurationization page is provided.This curing is essentially all customized development, and page newly developed is then needed when scene increase
Face.Compound scene can not also be multiplexed other scenes.It can not possibly be covered substantially when scene is various, characteristic intersects complete.
For example assume that there are 3 separate traffic characteristics, according to permutation and combination, this is it is possible that 7 scenes.Alternatively, based on business field
Scape is manually assembled according to scene and is configured, and various due to being configured, cost of making a mistake is high.And since scene does not cure, substantially entirely
By personal experience, new person's learning cost is high.Start from scratch substantially every time, no accumulation, no progress is unfavorable for efficiency and persistently carries
It rises.
Based on this, this specification embodiment provides a kind of system configuration item allocation plan based on configuration external member:Using pre-
The configuration external member organization system configuration of definition defines filling external member data, then further according to the item in configuration external member according to external member
Mapping relations assemble system configuration object, are defined finally by reference and the service of actual motion system is called to realize business.
In the scheme provided in this specification embodiment, 3 configuration levels are defined using external member is configured, i.e. system is matched
Put layer, atom model layer, built-up pattern layer.As described in Figure 1, Fig. 1 is involved by this specification embodiment carries to its system architecture
Organizational structure schematic diagram.In the figure, system configuration is the system configuration item being scattered in each system, is to support some industry
The system for characteristic of being engaged in is realized;Atom model is that one layer of integration has been done on the basis of system configuration, supports the industry of some small grain size
Business scene;And built-up pattern is integrated again on the basis of atom model, represents some compound scene.As shown in FIG., this theory
The scheme that bright book embodiment is provided reorganizes the configuration of each system by the way that external member is configured, while is configured between external member and also may be used
With recombinant, system configuration according to business scenario can not only be cured by above-mentioned tissue, but also realized between scene
Free multiplexed combinations.
Below by the embodiment that this specification based on framework as shown in Figure 1, is described in detail provide based on configuration external member
System configuration item configuration device, simultaneously effective coordination and can integrate each system configuration item independently of each system, including:Match
External member definition module 201 and configuration external member data module 203 are put, the configuration external member definition module 201 includes:Config set defines
Submodule 2011, configuration item define submodule 2013, and reference defines submodule 2015 and parameter definition submodule 2017, such as Fig. 2
The structure diagram of the system configuration item configuration device based on configuration external member shown, that Fig. 2 is provided by this specification embodiment.
External member definition module 201 is configured for generating configuration external member definition.External member defines configuration external member and includes
The mapping relations that concrete configuration item and configuration item are realized with system, similar to metadata, in other words, external member definition description needs
Which type of configuration.
In above-mentioned external member definition module, the configuration item defines submodule 2011, and generation configuration external member configuration item is determined
Justice, for determining the mapping relations of existing system configuration item in configuration external member configuration item and operating system.Configuration item is specific
The content of configuration, definition and the mapping relations of system configuration object.For example, configuration external member configuration item accountName mappings
To accountCfg.name fields.Configuration item defines, a such as newly-increased people closely related with operating system with business scenario
Scene, people system have the ability that the ability of newly-increased personnel's essential information, education experience system have newly-increased education experience, then match
It puts during external member defines for the definition of configuration external member configuration item comprising the ID from people system, name, age etc. and from religion
Educate the ID of experience system, period, school etc..
The config set defines submodule 2013, generation config set definition, for determining the configuration according to service logic
External member configuration item is configured included in external member.Config set is unified concept definition, represents configuration content and is closed according to certain logic
It is the set of tissue.In this process, it can be uniline or multirow that config set, which defines,.Such as configuration
It is exactly a uniline record for collection defines " personnel's name ", it, may be just for config set definition " education experience "
It is a multirow record.Multiple config sets are combined according to business demand can also form complex configuration collection.For example, 2
Uniline config set is combined into complex configuration collection.
The reference defines submodule 2015, generation object reference definition, for determining cited in the configuration external member
Object.Reference is the bridge between the operation of configuration external member and operating system.Operating system provides system configuration object and to it
Additions and deletions, which change, looks into operation, and can define its mapping relations in quoting.For example account configuration object is AccountInfo, increases service newly
For AccountFacade.addnew, then the entitled accountCfg of reference, system configuration object are defined in reference
AccountInfo preserves operation and is mapped to the newly-increased service.In other words, the operation that external member is configured will be defined according to reference,
It is mapped on reference object, for example, being increased newly to configuration external member, then reflection to system configuration object is newly-increased.Described is
Object under unified central planning of putting can be the diversified forms such as json, xml, java object, and service can be RPC, HTTP, webservice etc..
The parameter definition submodule 2017 generates parameter definition, for tagged traffic scene.Parameter is scene toolization
Necessary mode.For example the configuration external member of a channel access scene is defined, to meet the types such as credit card, APM, can define
" channel type " parameter is incoming by the external world;Title with stylish access channel can be widely used in external member, then during internal use
Only need the parameter name of reference " channel title ".
Further, submodule 2011 is defined for above-mentioned configuration item, defines the title of the configuration external member configuration item
And map field, determine the mapping relations between the configuration item title and map field, the map field belongs to described and draws
Object.Configuration field of the configuration item in external member from some configuration object of some system is configured.It is configured in object
Comprising multiple configuration items, configuration item can be understood as a field of configuration object.Such as:" personal information " is that a system is matched
Object is put, " name " is a system configuration item, corresponding to a field in " personal information " object.
Further, the config set definition module 2017 determines the configuration item with nested structure, for the nesting
Structure defines corresponding variable.For example, object properties B there are one A, and B has multiple field b1, b2, b3, if be directly configured
Mapping may be very complicated, than if any a configuration item b1-》A.B.b1 and if corresponding to nested structure A.B with a variable v,
As long as this mapping b1-》V.b1.Also it is simpler in this way when object B is constructed, as long as being initially formed a v object,
It is assigned to nested structure A.B again.For example, account (account) there are currency type (Currency), there is coding, title etc. in currency type,
This can replace nested structure accountCfg.currency with defined variable accountCurrency.
As a kind of specific embodiment, described device further includes configuration item grouping submodule 2019, generates configuration item
Grouping definition, for according in config set it is identified configuration external member configuration item feature, to it is described configuration external member configuration item into
Row grouping.For example, it is grouped according to dimensions such as the role of configuration, ranges.
Part is defined hence for configuration external member, structure is as shown in figure 3, what Fig. 3 was provided by this specification embodiment
The structure diagram that configuration external member defines.The concrete form that configuration external member defines can be xml, json, yaml or other programmings
Object.
External member data module 203 is configured, the configuration external member definition is determined according to business scenario and the system configuration item
Corresponding configuration external member data.It is corresponding with configuration external member definition that external member data are configured.Its relationship is similar to Object-Oriented Programming
In class and object.For example account is described in configuration external member definition and includes the fields such as account, alias, configuration external member data then illustrate
The account of account is 001, and alias is Zhang San.Configuration external member data concrete form may be xml, json, yaml or other
Programming object.
Specifically, the configuration external member defines corresponding configuration external member data, including:With the configuration external member configuration
Item defines corresponding configuration item data;With define corresponding config set data with the config set;With with the parameter definition pair
The parameter value answered.And when be configured in external member there are configuration item grouping definition and complex configuration collection define when, be configured external member data
Further include corresponding configuration item grouping and complex configuration collection data.So as to as shown in figure 4, Fig. 4 is this specification embodiment
The model schematic of the configuration external member of offer, it is main to be defined comprising configuration external member and external member data two parts are configured, therebetween
In the presence of association correspondence.
In the model, the definition of configuration external member includes parameter definition, config set definition and reference definition.It has been defined
Title facilitates reference and lookup, and the configuration external member definition has unique name, in any configuration external member, the configuration item
Definition, reference object definition or parameter definition have unique name.
As a kind of specific embodiment, due to clear and definite configuration item and grouping in set configuration part definition, described device
Visualized operation module is further included, the visual configuration page (such as configuration work platform) is generated according to the configuration external member definition,
So that external member data are configured according to the configuration external member defining operation, system configuration object is created, and preserve the system
Object is configured to the operating system.As shown in figure 5, Fig. 5 visualizes behaviour by the configuration external member that this specification embodiment provides
Involved configuration diagram when making.In the schematic diagram, (1) carries out configuration external member based on the configuration in system according to scene
Definition.(2), the generation visual configuration page (configuration work platform) is defined based on external member, is defined based on external member and carry out actual scene
Access.(3), each actual motion system is applied to using external member is configured after the completion of configuration, so as to make configuration take-effective.It configures
External member is configured into rear utilization and is applied to each actual motion system, so as to make configuration take-effective.The generality such as look into addition to additions and deletions change
Operation can also be based on mirror image and provide versioned management.It can certainly textual operative configuration external member data.
For example, for there are a configuration item C1 in defined configuration external member S, S;And the configuration of the C1 and system P
Item F1 is corresponded to, then needs the clear and definite S.C1- in external member S is configured>Such a mapping relations of P.F1.In this way in newly-increased configuration,
Can be according to the system configuration object of the configuration content generation system P of S, and be stored in the system of P.So as to which external member reference be configured
Object is exactly the system configuration object of the system P, has drawn a circle to approve the configurable range of configuration external member S.
Since configuration will finally come into force and adjust in each real system, loading of the external member operation comprising external member data is protected
It deposits, update, delete.When configuration just starts newly-built, define establishment external member data according to external member and be saved in each system;If
Want to check original configuration, then reversely loaded by external member definition and call parameter.Think the adjustment then update or complete on the basis of loading
Portion is built again after deleting.Simultaneously on this basis, it can be achieved that the complex operations such as mirror image, rollback, version management.Whole operation process
Logical construction it is as follows:Determine that the existing configuration item of each system → configuration external member reorganizes definition → workbench and shows and operate
→ typing external member configuration data → is converted to each system of the configuration object of each system → be saved in.The operation that external member is configured is finally anti-
It reflects in the relevant operation of system configuration object, simultaneously because the reference hierarchical relationship of configuration external member, the behaviour of combination configuration external member
Make reflect it includes configuration external member operation on.As shown in fig. 6, the configuration set that Fig. 6 is provided by this specification embodiment
The involved system architecture schematic diagram of part operation.
All kinds of configuration external members then can be achieved by configuration item mapping relations and reference to operate.When configuration creates preservation, first root
Filling external member data are defined according to external member, then system configuration object is assembled further according to configuration item mapping relations and preserves to being
System defines finally by reference and calls real system service.When configuration is checked, according to parameter value and the key message of historical storage
It checks that object is configured in service acquisition system by system, then restores concrete configuration content according to configuration item mapping relations.Update,
The operations such as deletion and the above are substantially similar, can first be checked before operation.
By being directed to business scenario, using predefined configuration external member organization system configuration, filling set is defined according to external member
Then number of packages evidence assembles system configuration object further according to the item mapping relations in configuration external member, adjusted finally by reference definition
Business is realized with the service of actual motion system.The scheme that this specification embodiment is provided, by system configuration according to business field
Scape is cured by the way that external member is configured, and realizes the free multiplexed combinations between scene;On the other hand, configuration external member also makes business
Configuration is purer, avoids realizing progress close coupling with system.System configuration is carried out from business visual angle, realizes cross-system tissue,
The experience accumulation of daily configuration can be passed on simultaneously.In addition, different grains can be realized by the hierarchical relationship being configured in external member
The scene recombinant of degree, facilitates management.
Based on same thinking, the present invention also provides a kind of system configuration item configuration method based on configuration external member, such as Fig. 7
The flow diagram of the system configuration item configuration method based on configuration external member shown, that Fig. 7 is provided by this specification embodiment,
Including:
S701, based on the system configuration item in business scenario and operating system, generation configuration external member definition;
S703 determines that the configuration external member defines corresponding configuration external member data;
S705 based on the configuration external member definition loading configuration external member data, creates system configuration object;
S707 preserves the system configuration object to the operating system.
Further, for above-mentioned S701, the system configuration item based in business scenario and operating system, generation
External member definition is configured, including:Generation configuration external member configuration item definition, for determining in configuration external member configuration item and operating system
The mapping relations of some system configuration items;Config set definition is generated, for determining institute in the configuration external member according to service logic
Comprising configuration external member configuration item;Object reference definition is generated, for determining the object cited in the configuration external member;Generation ginseng
Number definition, for tagged traffic scene.
Further, for above-mentioned generation configuration external member configuration item definition, for determining configuration external member configuration item and fortune
The mapping relations of existing system configuration item in row system, including:Define the title of the configuration external member configuration item and mapping word
Section, determines the mapping relations between the names and map field of the configuration external member configuration item, and the map field belongs to
The object of the reference.
Further, above-mentioned generation config set is defined, including:Determine the configuration item with nested structure, for
The nested structure defines corresponding variable.
Further, for preceding method, generation configuration item grouping definition is further included, including:According to institute in config set really
The feature of fixed configuration external member configuration item is grouped the configuration external member configuration item.
Further, the reference object definition includes the definition of system configuration object reference and/or configuration external member reference is fixed
Justice;Object cited in the configuration external member, including:System configuration object and/or other configurations external member.
Further, the above method further includes:According to the configuration external member definition generation visual configuration page, so as to root
According to external member data described in the configuration external member defining operation.
Further, the configuration external member defines corresponding configuration external member data, including:With the configuration external member configuration item
Define corresponding configuration item data;With define corresponding config set data with the config set;With with the parameter definition pair
The parameter value answered.
Further, the configuration external member definition has unique name, and in any configuration external member, the configuration item is determined
Justice, reference object definition or parameter definition have unique name.
Corresponding, the embodiment of the present application also provides a kind of data processing equipment, and the equipment includes:
Memory stores the configurator based on configuration external member;
Processor:The configurator based on configuration external member in the memory is called, and is performed:
Based on the system configuration item in business scenario and operating system, generation configuration external member definition;
Determine that the configuration external member defines corresponding configuration external member data;
Based on the configuration external member definition loading configuration external member data, system configuration object is created;
The system configuration object is preserved to the operating system.
Based on same invention thinking, the embodiment of the present application additionally provides a kind of corresponding non-volatile computer storage and is situated between
Matter, is stored with computer executable instructions, and the computer executable instructions are set as:
Based on the system configuration item in business scenario and operating system, generation configuration external member definition;
Determine that the configuration external member defines corresponding configuration external member data;
Based on the configuration external member definition loading configuration external member data, system configuration object is created;
The system configuration object is preserved to the operating system.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for method,
For equipment and medium class embodiment, since it is substantially similar to device embodiment, so description is fairly simple, related part
Illustrate referring to the part of device embodiment, just no longer repeat one by one here.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims
It is interior.In some cases, the action recorded in detail in the claims or step or module can be according to different from embodiments
Sequence performs and still can realize desired result.In addition, the process described in the accompanying drawings not necessarily requires what is shown
Particular order or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing
It is also possible or it may be advantageous.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow is programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming a digital display circuit " integrated " on a piece of PLD, designs and make without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also should
This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages,
The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing
The computer of computer readable program code (such as software or firmware) that device and storage can be performed by (micro-) processor can
Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller include but not limited to following microcontroller
Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited
Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to
Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic
Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact
Existing identical function.Therefore this controller is considered a kind of hardware component, and various to being used to implement for including in it
The device of function can also be considered as the structure in hardware component.Or even, the device for being used to implement various functions can be regarded
For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by having the function of certain product.A kind of typical realization equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit is realized can in the same or multiple software and or hardware during the embodiment of specification.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the present invention
Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the present invention
The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real
The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or
The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein
Machine readable medium does not include temporary computer readable media (transitory media), the data letter number and carrier wave of such as modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements are not only including those elements, but also wrap
Include other elements that are not explicitly listed or further include for this process, method, commodity or equipment it is intrinsic will
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described
Also there are other identical elements in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiment one or more in this specification can be provided as method, system or
Computer program product.Therefore, complete hardware embodiment, complete software embodiment or combination can be used in the embodiment of this specification
Form in terms of software and hardware.Moreover, the embodiment of this specification can be used wherein includes computer in one or more
The computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of usable program code
The form of the computer program product of upper implementation.
The embodiment of this specification can retouch in the general context of computer executable instructions
It states, such as program module.Usually, program module include perform particular transaction or realize particular abstract data type routine,
Program, object, component, data structure etc..The embodiment of this specification can also be put into practice in a distributed computing environment, at this
In a little distributed computing environment, by performing affairs by communication network and connected remote processing devices.It is counted in distribution
It calculates in environment, program module can be located in the local and remote computer storage media including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality
For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
The foregoing is merely the embodiments of this specification, are not limited to the application.For people in the art
For member, the embodiment of this specification can have various modifications and variations.The spirit and principle of all embodiments in this specification
Within any modification, equivalent replacement, improvement and so on, should be included among the interest field of the application.