The content of the invention
The purpose of the application is to provide a kind of method that development environment of distribution application system is built, to simplify distribution
Formula application system environmental structure process, reduces error rate, and improve the efficiency and accuracy of investigation.
Present invention also provides the device that a kind of development environment of distribution application system is built, to ensure the above method
Application and realization in practice.
In order to solve the above problems, this application discloses a kind of development environment building method of distribution application system, tool
Body can include:
At least two subsystems are built, each subsystem forms for the server construction of identical function;
Function according to involved by current application, configures in corresponding subsystem and calls path to believe between given server
Breath;
According to the routing information that calls between given server in the corresponding subsystem, between generation given server
Call path.
Preferably, routing information is called between given server in the corresponding subsystem of the basis, clothes are specified in generation
Can include the step of calling path between business device:
It is preset in the server of any subsystem to call routing information file;
From it is described it is preset call routing information file, download the tune between given server in the corresponding subsystem
Use routing information.
Preferably, preset the calling can include file configuration information list in routing information and database is configured
Information list.
Preferably, described method, in addition to:
Routing information is called described in detection;
If noting abnormalities information, routing information is called described in modification;
Each server records the call routing information related to itself, generation according to the routing information that calls of the modification
New file configuration list, and/or database configured list.
Preferably, the modification is preset can include the step of calling routing information:
Obtain the list of Standard Edition file configuration information and Standard Edition database configuration information list;
The Standard Edition file configuration information list and the preset text called in routing information file will be obtained
Part configuration information list is contrasted, by the difference in the preset file configuration information list called in routing information file
Different part, modifies by the corresponding informance in the Standard Edition file configuration information list;
By the Standard Edition database configuration information list and the preset data called in routing information file
Storehouse configuration information list is contrasted, by the preset database configuration information list called in routing information file
In place of difference, modified by the corresponding informance in the Standard Edition database configuration information list.
The device that a kind of development environment of distribution application system is built is also disclosed in the application, can specifically include:
Subsystem builds module, and for building at least two subsystems, each subsystem is the server construction of identical function
Form;
Routing information generation module is called, for the function according to involved by current application, corresponding subsystem middle finger is configured
Determine to call routing information between server;
Path configuration module is called, for calling path to believe according between given server in the corresponding subsystem
Path is called between breath, generation given server.
Preferably, it is described to call path configuration module to include:
Information presets submodule, and routing information file is called for preset in the server of any subsystem;
Information downloads submodule, for from it is described it is preset call routing information file, download the corresponding subsystem
Bar routing information between middle given server.
Preferably, preset the calling can include fileinfo configured list and database in routing information file
Information configuration list.
Preferably, described device, in addition to:
Configuration file detection module, the configuration file for detecting the machine development environment;
Configuration file modified module, if for the information that notes abnormalities, changing the configuration file;
List Generating Module, for configuration file of each server according to the modification, records related to itself call
Routing information list is called in routing information, generation.
Preferably, the configuration file modified module may further include:
Standard list acquisition submodule, for obtaining Standard Edition fileinfo configured list and Standard Edition database letter
Cease configured list;
Configured list changes submodule, for that will obtain the Standard Edition fileinfo configured list and the configuration text
File recalls information configured list in part is contrasted, by the difference in the fileinfo configured list in the configuration file
Part, modifies by the corresponding informance in the Standard Edition fileinfo configured list;
Database Lists change submodule, for the Standard Edition database information configured list and the configuration is literary
Database information configured list in part is contrasted, by the difference in the database information configured list in the configuration file
Part, modifies by the corresponding informance in the Standard Edition database information configured list.
Compared with prior art, the application has advantages below:
The application is by building Subsystem environment, the specified services between each subsystem of configuration generation in each Subsystem environment
Device calls path, so as to meet the demand for the specific machine that needs in development environment accurately specify called and receipt to arrive.This
The mode for planting the automatic development environment for building distribution application system is participated in without person skilled, so as to simplify distribution
Application system environmental structure.
Also, the application can also voluntarily be investigated for build process produced problem, so as to reduce error rate, be carried
The efficiency and accuracy of high investigation.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable above-mentioned purpose, the feature and advantage of the application more obvious understandable
Mode is applied to be described in further detail the application.
The core idea of the application is:Prior art, when building the development environment of distribution application system, is all artificial
Build, particularly call routing information to configure specific service device and specific service device, and to the inspection after information configuration all
Manually do.Great effort and time are not only so expended, error rate is also very high.The application is by building subsystem ring
Border, given server calls path between each subsystem of configuration generation in each Subsystem environment, so as to meet development environment
The demand of the middle accurate specific machine for specifying called and receipt to arrive of needs, while simplifying distribution application system environmental structure
Process.
Reference picture 1, it illustrates a kind of development environment building method embodiment 1 of distribution application system of the application
Flow chart of steps, specifically may comprise steps of:
Step 101, at least two subsystems of structure, each subsystem form for the server construction of identical function;
Because each distribution application system has multiple servers, it is necessary to which given server is accessed into goal systems, it is both
In subsystem.And because the characteristics of multiple team's concurrent developments, each subsystem may have multiple servers, because exploitation
The software version of staff development project may be different, so each development teams need of work is isolated from each other, it is to avoid interact, often
There is set of environmental in individual team, it is therefore desirable to which the server for specifying certain system accesses development environment, makes it can be with normal call
With reception receipt.
The subsystem is the collection for the server for providing a certain function in the application for distribution application system development environment
Close, be the important elements in whole distribution application system.In the embodiment of the present application, it is same by that will provide to build subsystem
The server network connection of sample functional task.
In the specific implementation, having some servers in a subsystem, these servers are for described Distributed Application
The work of development environment provides similar function, but in each server application software version it is different, should in different distributions
It is necessary to the corresponding server of selection software version in correspondence subsystem in being built with system development environment.For example, there is subsystem
There is the application having in server a1 and b1, subsystem x2 in server a2 and b2, server a1 and b1 in x1 and x2, subsystem x1
Software version is corresponding, then server is built when calling path in server a1 and subsystem x2 in subsystem x1, choosing
Select to build with server b1 and call path.
Step 102, the function according to involved by current application, configure calling between given server in corresponding subsystem
Routing information;
The operation of distribution application system development environment, can apply to many functions, for example:Retrieval, storage, data exchange
Etc. function, thus by special server provide a kind of function respectively, there is provided the server combination of same function as previously described
As a subsystem, multiple subsystems are generally had in a distribution application system.
Routing information is called between given server in described subsystem, refers to different server in different sub-systems
Between call routing information, because subsystem is the combination of the server of same function, call path be need in different sons
Built between system.It should be noted that in the embodiment of the present application, the acquisition and return of calling path to refer to function
Path.
For example, when the server a that previous distribution application system provides browsing pages needs to call search function service
Device b search function, finds the data in store function server c.Thus this calls path to be server a using required
Invoking server b function, invoking server c data message;Server c returned data informations give server b, then by servicing
Device b returns to server a.
Step 103, according between given server in the corresponding subsystem call routing information configuration server adjust
Use path.
In a preferred embodiment of the present application, the step 103 may further include following sub-step:
Sub-step S11, preset in the server of any subsystem call routing information file;
In the specific implementation, the calling rule of developer's preset service device as needed, this work can be any
Carried out on server.The Software Edition that developer is based on according to oneself exploitation, selects correspondence in different sub-systems
The server of version, as long as by required server record and sending and building path with these servers.
Developer mainly will need what is formulated according to exploitation, each server calls in the subsystem of distribution application system
Path source message composition is uploaded in the network of distribution application system into code, then by code, is allowed in each subsystem and is respectively taken
Business device goes to download.
Sub-step S12, from it is described it is preset call routing information file, download specified services in the corresponding subsystem
Routing information is called between device;
The set that class libraries is some third party's programs of required dependence when running software is developed in the application is relied on, it is different
Development and application pass through connection specify network site, you can with find it is corresponding required for class libraries, therefrom download needed for rely on
Program.
For example:9 servers are had now, are A1, A2, A3, B1, B2, B3, C1, C2, C3 respectively.
By A1, A2 and A3, B1, B2 and B3, C1, C2 and C3, every three are built into a subsystem respectively, respectively X1,
Server in X2 and X3 systems provides same function, and the version of single server is different, is connected with each other between subsystem.
In the machine development environment, the version being based on according to oneself exploitation selects correspondence version in different sub-systems
Server.Wherein A1, B2 and C2 are the server of same version.
In local development environment, the information that server A 1, B2 and C2 build path is recorded and sent.
Server A 1, B2 and C2 are built the information configuration in path into server A 1, B2 and C2, and keeping records, according to
The information completed according to configuration starts server.
Reference picture 2, shows a kind of step of the development environment building method embodiment 2 of distribution application system of the application
Rapid flow chart, specifically may comprise steps of:
Step 201, at least two subsystems of structure, each subsystem form for the server construction of identical function;
Calling between given server in step 202, the function according to involved by current application, preset corresponding single system
Routing information;
Step 203, according between given server in the corresponding subsystem call routing information configuration server adjust
Use path.
The configuration file of server in step 204, the detection subsystem;If noting abnormalities information, step is performed
205;
In the specific implementation, the configuration file and database configuration can include the recalls information between server.
Step 205, the modification configuration file and database configuration;
In a kind of preferred embodiment of the application, the step 205 may further include following sub-step:
Sub-step S21, acquisition Standard Edition fileinfo configured list and Standard Edition database information configured list;
Sub-step S22, the Standard Edition fileinfo configured list and the fileinfo in the configuration file matched somebody with somebody
Put list to be contrasted, in place of the difference in the fileinfo configured list in the configuration file, by the Standard Edition
Corresponding informance in fileinfo configured list is modified;
Sub-step S23, the database in the Standard Edition database information configured list and the configuration file believed
Breath configured list is contrasted, in place of the difference in the database information configured list in the configuration file, by the mark
Corresponding informance in quasi- edition data storehouse information configuration list is modified.
Step 206, each server record the call routing information related to itself, generation text according to the configuration file
Part list and Database Lists.
Those skilled in the art more fully understand the application for convenience, should below in conjunction with a distribution shown in Fig. 3
With system construction drawing, the application is illustrated further by a complete example:
Distribution application system needs the co-ordination of many subsystems, builds some subsystems and (is designated as:A systems, B systems
System etc.) represented in figure with round rectangle.
Each subsystem includes many machines (such as again:A systems have SystemA-1, SystemA-2 etc.) circle is used in figure
Represent.
Two distribution application systems development environment X1 and X2 are now built, are remembered in the subsystem server for configuration
Record and send the information that required service device calls path.
Participate in building the server in path above, download preset distribution application system development environment X1 and X2 service
Device calls the information in path.And the information in the server calls path according to download, the dependence class libraries of auxiliary is downloaded, compiling is downloaded
Server calls path information, generation corresponding server calls the fileinfo configured list of the information in path, and data
Storehouse information configuration list.
Corresponding server is called to the fileinfo configured list of the information in path, and database information configuration list configuration
To corresponding server.
From the standard edition distribution application system for including server and calling substantially routing information, extraction standard version file letter
Cease configured list and database information configuration list;By standard edition fileinfo configured list and database information configuration list,
The fileinfo configured list and database information configuration list configured with corresponding server is compared, and finds there is different in list
Normal information, abnormal information is repaiied according to the information in standard edition fileinfo configured list and database information configuration list
Change, generate fileinfo configured list and the database information configuration list of new corresponding server configuration, reconfigure to pair
The server answered.
The fileinfo configured list and database information configuration list persistence that new corresponding server is configured, and according to
Configuration starts server, and the server calls path for obtaining distribution application system development environment X1 is called for SystemA-1
SystemB-2, SystemB-2 can call SystemC-3, SystemC-3 to call SystemD-2;Another distribution should
It is that SystemA-1 must call SystemE-2, SystemE-2 to adjust with system development environment X2 server calls path
SystemG-3 must be called with SystemF-1, SystemF-1.
In the specific implementation, configuration, the detection of the server of each in system, and the structure of subsystem can divide respectively
Completed with a thread.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the application is not limited by described sequence of movement, because according to this Shen
Please, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification
Described in embodiment belong to necessary to preferred embodiment, involved action not necessarily the application.
Reference picture 4, it illustrates the device embodiment 1 that a kind of development environment of distribution application system of the application is built
Structured flowchart, specifically can include with lower module:
Subsystem builds module 301, and for building at least two subsystems, each subsystem is the server structure of identical function
Build and form;
Routing information generation module 302 is called, for the function according to involved by current application, is configured in corresponding subsystem
Routing information is called between given server;
Path configuration module 303 is called, for calling path according between given server in the corresponding subsystem
Path is called between information, generation given server.
In a preferred embodiment of the present application, the path configuration module 303 can include following submodule:
Routing information downloads submodule, for given server in the subsystem that is generated according to the machine development environment it
Between call routing information, download in the corresponding subsystem and call routing information between given server;
Database information downloads submodule, for given server in the subsystem that is generated according to the machine development environment
Between call routing information, download the dependence for calling routing information between given server in the correspondence corresponding subsystem
Class libraries;
Routing information is called to compile submodule, for calling road according between given server in the corresponding subsystem
The dependence class libraries for calling routing information in footpath information, and the corresponding subsystem of the correspondence between given server, compiling is described
In corresponding subsystem routing information is called between given server;
Routing information is called to configure submodule, for calling road according between given server in the corresponding subsystem
Footpath information, configures in the corresponding subsystem after the compiling and calls routing information between given server, and start.
It is described to call routing information configuration submodule may further include in a preferred embodiment of the present application:
Listed files dispensing unit, for according to calling between given server in the corresponding subsystem after the compiling
Routing information profile information configured list;
Database Lists dispensing unit, for according to the tune between given server in the corresponding subsystem after the compiling
With routing information configuration database information configuration list.
Because the device embodiment shown in Fig. 4 is corresponding to the embodiment of the method shown in earlier figures 1, therefore the description of the present embodiment
In not detailed part, may refer to the related description in previous embodiment, just do not repeat herein.
Reference picture 5, it illustrates the device embodiment 2 that a kind of development environment of distribution application system of the application is built
Structured flowchart, specifically can include with lower module:
Subsystem builds module 401, and for building at least two subsystems, each subsystem is the server structure of identical function
Build and form;
Routing information generation module 402 is called, for the function according to involved by current application, is configured in corresponding subsystem
Routing information is called between given server;
Path configuration module 403 is called, for calling path according between given server in the corresponding subsystem
Path is called between information, generation given server;
Configuration file detection module 404, the configuration file for detecting the machine development environment;
Configuration file modified module 405, if for the information that notes abnormalities, changing the configuration file;
List Generating Module 406, for configuration file of each server according to the modification, records the tune related to itself
With routing information, routing information list is called in generation.
In a preferred embodiment of the present application, described information modified module 405 can include following submodule:
Standard list acquisition submodule, matches somebody with somebody for obtaining the list of Standard Edition file configuration information and Standard Edition database
Put information list;
Listed files changes submodule, for that will obtain the Standard Edition file configuration information list and the configuration text
File configuration information list in part is contrasted, by the difference in the file configuration information list in the configuration file it
Place, modifies by the corresponding informance in the Standard Edition file configuration information list;
Database Lists change submodule, for the Standard Edition database configuration information list and the configuration is literary
Database configuration information list in part is contrasted, by the difference in the database configuration information list in the configuration file
Part, modifies by the corresponding informance in the Standard Edition database configuration information list.
Because the device embodiment shown in Fig. 5 is corresponding to the embodiment of the method shown in earlier figures 2, therefore the description of the present embodiment
In not detailed part, may refer to the related description in previous embodiment, just do not repeat herein.
The application can be used in numerous general or special purpose computing system environments or configuration.For example:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set
Box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer including any of the above system or equipment
DCE etc..
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with
Positioned at including in the local and remote computer-readable storage medium including storage device.
The method built above to a kind of development environment of distribution application system provided herein, and, it is a kind of
The device that the development environment of distribution application system is built is described in detail, and specific case used herein is to the application
Principle and embodiment be set forth, the explanation of above example is only intended to help and understands the present processes and its core
Thought is thought;Simultaneously for those of ordinary skill in the art, according to the thought of the application, in embodiment and model is applied
Place and will change, in summary, this specification content should not be construed as the limitation to the application.