Summary of the invention
The application's purpose provides the method that a kind of development environment of distribution application system is built, and in order to simplify distribution application system environmental structure process, reduces error rate, and improves efficient and the accuracy of investigation.
The device that the application also provides a kind of development environment of distribution application system to build is in order to guarantee said method application and realization in practice.
In order to address the above problem, the application discloses a kind of development environment building method of distribution application system, specifically can comprise:
Make up at least two subsystems, each subsystem is that the server structure of identical function forms;
The function related according to current application disposes in the corresponding subsystem routing information that calls between the given server;
According to calling routing information between the given server in the described corresponding subsystem, generate the path of calling between the given server.
Preferably, described according to calling routing information between the given server in the corresponding subsystem, the step of calling the path that generates between the given server can comprise:
In the server of arbitrary described subsystem, preset and call the routing information file;
From described calling the routing information file of presetting, download in the described corresponding subsystem routing information that calls between the given server.
Preferably, described calling of presetting can comprise file configuration information list and database configuration information tabulation in the routing information.
Preferably, described method also comprises:
Detect the described routing information that calls;
If note abnormalities information, then revise the described routing information that calls;
Each server records the call routing information relevant with self according to the routing information that calls of described modification, generates new file configuration tabulation, and/or the database configuration tabulation.
Preferably, the step of calling routing information that described modification is preset can comprise:
Obtain the tabulation of Standard Edition file configuration information list and Standard Edition database configuration information;
To obtain described Standard Edition file configuration information list and the described file configuration information list that calls in the routing information file that presets compares, with described preset call difference part in the file configuration information list in the routing information file, make amendment by the corresponding informance in the described Standard Edition file configuration information list;
Described Standard Edition database configuration information tabulation and the described database configuration information tabulation of calling in the routing information file of presetting are compared, with described preset call difference part in the database configuration information tabulation in the routing information file, make amendment by the corresponding informance in the described Standard Edition database configuration information tabulation.
The application also discloses the device that a kind of development environment of distribution application system is built, and specifically can comprise:
Subsystem makes up module, is used for making up at least two subsystems, and each subsystem is that the server structure of identical function forms;
Call the routing information generation module, be used for the function related according to current application, dispose in the corresponding subsystem routing information that calls between the given server;
Call the path configurations module, be used for according to the routing information that calls between the described corresponding subsystem given server, generate the path of calling between the given server.
Preferably, the described path configurations module of calling can comprise:
Information is preset submodule, presets for the server at arbitrary described subsystem and calls the routing information file;
Information is downloaded submodule, be used for from described preset call the routing information file, download the bar routing information between the given server in the described corresponding subsystem.
Preferably, described calling of presetting can comprise fileinfo configured list and database information configured list in the routing information file.
Preferably, described device also comprises:
The configuration file detection module is for detection of the configuration file of described machine development environment;
The configuration file modified module is used for then revising described configuration file if note abnormalities information;
The tabulation generation module is used for each server according to the configuration file of described modification, records the call routing information relevant with self, generates to call the routing information tabulation.
Preferably, described configuration file modified module may further include:
Standard list is obtained submodule, is used for obtaining Standard Edition fileinfo configured list and Standard Edition database information configured list;
Configured list is revised submodule, compare for the file recalls information configured list that will obtain described Standard Edition fileinfo configured list and described configuration file, with the difference part in the fileinfo configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition fileinfo configured list;
Database Lists is revised submodule, be used for the database information configured list of described Standard Edition database information configured list and described configuration file is compared, with the difference part in the database information configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition database information configured list.
Compared with prior art, the application has the following advantages:
The application is by making up the subsystem environment, and configuration generates the path of calling of given server between each subsystem in each subsystem environment, accurately specifies and is called and the demand of the concrete machine that receipt arrives thereby satisfy needs in the development environment.This mode of building the development environment of distribution application system automatically need not person skilled and participates in, thereby has simplified the distribution application system environmental structure.
And the application can also investigate voluntarily for the problem that build process occurs, thereby can reduce error rate, improves efficient and the accuracy of investigation.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments the application is described in further detail.
The application's core idea is: prior art all is manually to build when building the development environment of distribution application system, particularly the call routing information of concrete server with concrete server is disposed, and the inspection after the information configuration is all manually done.So not only expend a large amount of energy and times, error rate is also very high.The application is by making up the subsystem environment, configuration generates the path of calling of given server between each subsystem in each subsystem environment, accurately specify and be called and the demand of the concrete machine that receipt arrives thereby satisfy needs in the development environment, simplified distribution application system environmental structure process simultaneously.
With reference to Fig. 1, the flow chart of steps of development environment building method embodiment 1 that it shows a kind of distribution application system of the application specifically can may further comprise the steps:
Step 101, at least two subsystems of structure, each subsystem are that the server structure of identical function forms;
Because each distribution application system has multiple servers, given server need be inserted goal systems, is in the subsystem.And because the characteristics of a plurality of team concurrent development, each subsystem may have multiple servers, because the software version of developer's development project may be different, so each development teams need of work is isolated from each other, avoid interacting, therefore there is a set of environments in each team, certain system's specified server need be inserted development environment, makes it can normal call and receive receipt.
Described subsystem is the set that the server of a certain function is provided for the distribution application system development environment among the application, is the important elements in the whole distribution application system.In the embodiment of the present application, making up subsystem is by the server network connection of said function task will be provided.
In specific implementation, in the subsystem some servers are arranged, these servers provide similar function for the work of described Distributed Application development environment, but the version of application software is different in each server, in different distribution application system development environments is built, will in corresponding subsystem, select the software version corresponding server.For example, subsystem x1 and x2 are arranged, server a1 and b1 are arranged among the subsystem x1, server a2 and b2 are arranged among the subsystem x2, Software Edition among server a1 and the b1 is corresponding, so in subsystem x1 among server a1 and the subsystem x2 server build when calling the path, select to build with server b1 and call the path.
Step 102, the function related according to current application dispose in the corresponding subsystem routing information that calls between the given server;
The operation of distribution application system development environment; can apply to many functions; for example: retrieval; storage; exchanges data etc. function, thereby provide a kind of function by special server respectively, as previously mentioned; provide the server of same function to be combined into a subsystem, have a plurality of subsystems usually in the distribution application system.
Call routing information in the described subsystem between the given server, refer in the different sub-systems routing information that calls between the different server, because subsystem is the combination of the server of same function, calls the path and need build between different sub-systems.Need to prove that in the embodiment of the present application, the described path of calling refers to obtaining of function and return path.
For example, when the search function that previous distribution application system provides the server a of browsing pages need call search function server b, find the data among the memory function server c.Thereby this uses the required function that the path is server a invoking server b, the data message of invoking server c of calling; Server c return data information is given server b, returns to server a by server b again.
Step 103, call the path according to the routing information configuration server that calls between the given server in the described corresponding subsystem.
In a preferred embodiment of the present application, described step 103 may further include following substep:
Substep S11, in the server of arbitrary described subsystem, preset and call the routing information file;
In specific implementation, the developer presets the rule of calling of server as required, and this work can be carried out at any server.The developer according to oneself exploitation institute based on Software Edition, select the server of corresponding version in the different sub-systems, need only needed server record and send with these servers and build the path.
The developer mainly will formulate according to the exploitation needs, and each server calls path source information is written as code in the subsystem of distribution application system, code is uploaded in the network of a distribution application system again, allow each server goes to download in each subsystem.
Substep S12, from described calling the routing information file of presetting, download in the described corresponding subsystem routing information that calls between the given server;
Relying on class libraries is the set of some third party's programs of required dependence when developing software operation among the application, and different Application and Development namely can find corresponding needed class libraries by connecting the specified network position, therefrom downloads the program of required dependence.
For example: having 9 station servers now, is respectively A1, A2, A3, B1, B2, B3, C1, C2, C3.
With A1, A2 and A3, B1, B2 and B3, C1, C2 and C3, per three are built into a subsystem respectively, and the server that is respectively in X1, X2 and the X3 system provides same function, and the version difference of Single-Server interconnects between the subsystem.
In this machine development environment, according to oneself exploitation based on version, select the server of corresponding version in the different sub-systems.Wherein A1, B2 and C2 are the server of same version.
In local development environment, record and send the information that server A 1, B2 and C2 build the path.
Server A 1, B2 and C2 are built the information configuration in path in server A 1, B2 and C2, and keeping records, the information of finishing according to configuration starts server.
With reference to Fig. 2, show the flow chart of steps of development environment building method embodiment 2 of a kind of distribution application system of the application, specifically can may further comprise the steps:
Step 201, at least two subsystems of structure, each subsystem are that the server structure of identical function forms;
Step 202, the function related according to current application preset in the corresponding single system routing information that calls between the given server;
Step 203, call the path according to the routing information configuration server that calls between the given server in the described corresponding subsystem.
The configuration file of server in step 204, the described subsystem of detection; If note abnormalities information, then execution in step 205;
In specific implementation, described configuration file and database configuration can comprise the recalls information between the server.
Step 205, the described configuration file of modification and database configuration;
In a kind of preferred embodiment of the application, described step 205 may further include following substep:
Substep S21, obtain the Standard Edition file and call routing information tabulation and Standard Edition database information configured list;
Substep S22, the fileinfo configured list that will obtain in described Standard Edition fileinfo configured list and the described configuration file compare, with the difference part in the fileinfo configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition fileinfo configured list;
Substep S23, the database information configured list in described Standard Edition database information configured list and the described configuration file is compared, with the difference part in the database information configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition database information configured list.
Step 206, each server record the call routing information relevant with self according to described configuration file, spanned file tabulation and Database Lists.
Those skilled in the art understand the application better for convenience, and a distribution application system structural drawing below in conjunction with shown in Figure 3 illustrates further the application by a complete example:
Distribution application system needs the co-ordination of a lot of subsystems, makes up some subsystems (being designated as: A system, B system etc.) and represents with round rectangle in the drawings.
Each subsystem comprises that again a lot of machine (as: there are SystemA-1, SystemA-2 etc. in the A system) is in the drawings with the circle representative.
Now to build two distribution application system development environment X1 and X2, call the information in path at the subsystem server recording and sending required service device that is used for configuration.
Participate in building the server in path above, the information in the distribution application system development environment X1 that download is preset and the server calls path of X2.And according to the information in the server calls path of downloading, download auxiliary dependence class libraries, the information in the server calls path that compiling is downloaded generates fileinfo configured list and database information configured list that the corresponding with service device calls the information in path.
The fileinfo configured list and the database information configured list that the corresponding with service device are called the information in path are configured to corresponding server.
From including the standard edition distribution application system that server calls routing information substantially, extract standard edition fileinfo configured list and database information configured list; With standard edition fileinfo configured list and database information configured list, compare with fileinfo configured list and the database information configured list of the configuration of corresponding with service device, finding has unusual information in the tabulation, abnormal information is revised according to the information in standard edition fileinfo configured list and the database information configured list, generate fileinfo configured list and the database information configured list of new corresponding with service device configuration, reconfigure to corresponding server.
Fileinfo configured list and database information configured list persistence with new corresponding with service device configuration, and according to configuration startup server, the server calls path that obtains distribution application system development environment X1 is that SystemA-1 calls SystemB-2, SystemB-2 can call SystemC-3, and SystemC-3 must call SystemD-2; The server calls path of another distribution application system development environment X2 is that SystemA-1 must call SystemE-2, and SystemE-2 must call SystemF-1, and SystemF-1 must call SystemG-3.
In specific implementation, the structure of the configuration of each server, detection and subsystem can distribute a thread to finish respectively in the system.
Need to prove, for method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the application is not subjected to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action might not be that the application is necessary.
With reference to Fig. 4, the structured flowchart of the device embodiment 1 that its development environment that shows a kind of distribution application system of the application is built specifically can comprise with lower module:
Subsystem makes up module 301, is used for making up at least two subsystems, and each subsystem is that the server structure of identical function forms;
Call routing information generation module 302, be used for the function related according to current application, dispose in the corresponding subsystem routing information that calls between the given server;
Call path configurations module 303, be used for according to the routing information that calls between the described corresponding subsystem given server, generate the path of calling between the given server.
In a preferred embodiment of the present application, described path configurations module 303 can comprise following submodule:
Routing information is downloaded submodule, calls routing information between the subsystem given server that is used for generating according to described machine development environment, downloads in the described corresponding subsystem routing information that calls between the given server;
Database information is downloaded submodule, is used for downloading the dependence class libraries that calls routing information between the given server in the corresponding described corresponding subsystem according to the routing information that calls between the subsystem given server of described machine development environment generation;
Call routing information compiling submodule, be used for according to the routing information that calls between the described corresponding subsystem given server, the dependence class libraries that calls routing information in the corresponding subsystem with described correspondence between the given server compiles in the described corresponding subsystem routing information that calls between the given server;
Call routing information configuration submodule, be used for according to the routing information that calls between the described corresponding subsystem given server, dispose in the corresponding subsystem after the described compiling and call routing information between the given server, and start.
In a preferred embodiment of the present application, the described routing information configuration submodule that calls may further include:
The listed files dispensing unit is used for according to calling routing information profile information configured list between the corresponding subsystem given server after the described compiling;
The Database Lists dispensing unit is used for tabulating according to the routing information configuration database information configuration of calling between the corresponding subsystem given server after the described compiling.
Because device embodiment shown in Figure 4 is corresponding to aforementioned method embodiment shown in Figure 1, so not detailed part in the description of present embodiment can just not given unnecessary details at this referring to the related description in the previous embodiment.
With reference to Fig. 5, the structured flowchart of the device embodiment 2 that its development environment that shows a kind of distribution application system of the application is built specifically can comprise with lower module:
Subsystem makes up module 401, is used for making up at least two subsystems, and each subsystem is that the server structure of identical function forms;
Call routing information generation module 402, be used for the function related according to current application, dispose in the corresponding subsystem routing information that calls between the given server;
Call path configurations module 403, be used for according to the routing information that calls between the described corresponding subsystem given server, generate the path of calling between the given server;
Configuration file detection module 404 is for detection of the configuration file of described machine development environment;
Configuration file modified module 405 is used for then revising described configuration file if note abnormalities information;
Tabulation generation module 406 is used for each server according to the configuration file of described modification, records the call routing information relevant with self, generates to call the routing information tabulation.
In a preferred embodiment of the present application, described information modified module 405 can comprise following submodule:
Standard list is obtained submodule, is used for obtaining Standard Edition fileinfo configured list and Standard Edition database information configured list;
Listed files is revised submodule, compare for the fileinfo configured list that will obtain described Standard Edition fileinfo configured list and described configuration file, with the difference part in the fileinfo configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition fileinfo configured list;
Database Lists is revised submodule, be used for the database information configured list of described Standard Edition database information configured list and described configuration file is compared, with the difference part in the database information configured list in the described configuration file, make amendment by the corresponding informance in the described Standard Edition database information configured list.
Because device embodiment shown in Figure 5 is corresponding to aforementioned method embodiment shown in Figure 2, so not detailed part in the description of present embodiment can just not given unnecessary details at this referring to the related description in the previous embodiment.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise distributed computing environment of above any system or equipment etc.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract data type, program, object, assembly, data structure etc.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, be executed the task by the teleprocessing equipment that is connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
More than the development environment of a kind of distribution application system that the application the is provided method of building, and, the device that a kind of development environment of distribution application system is built is described in detail, used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.