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 distributionFormula 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 methodApplication 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, toolBody 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 serverBreath;
According to the routing information that calls between given server in the corresponding subsystem, between generation given serverCall path.
Preferably, routing information is called between given server in the corresponding subsystem of the basis, clothes are specified in generationCan 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 subsystemUse routing information.
Preferably, preset the calling can include file configuration information list in routing information and database is configuredInformation 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 modificationNew 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 obtainedPart configuration information list is contrasted, by the difference in the preset file configuration information list called in routing information fileDifferent 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 fileStorehouse configuration information list is contrasted, by the preset database configuration information list called in routing information fileIn 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 functionForm;
Routing information generation module is called, for the function according to involved by current application, corresponding subsystem middle finger is configuredDetermine to call routing information between server;
Path configuration module is called, for calling path to believe according between given server in the corresponding subsystemPath 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 subsystemBar routing information between middle given server.
Preferably, preset the calling can include fileinfo configured list and database in routing information fileInformation 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 callRouting 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 letterCease configured list;
Configured list changes submodule, for that will obtain the Standard Edition fileinfo configured list and the configuration textFile recalls information configured list in part is contrasted, by the difference in the fileinfo configured list in the configuration filePart, 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 literaryDatabase information configured list in part is contrasted, by the difference in the database information configured list in the configuration filePart, 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 environmentDevice calls path, so as to meet the demand for the specific machine that needs in development environment accurately specify called and receipt to arrive.ThisThe mode for planting the automatic development environment for building distribution application system is participated in without person skilled, so as to simplify distributionApplication system environmental structure.
Also, the application can also voluntarily be investigated for build process produced problem, so as to reduce error rate, be carriedThe 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 understandableMode 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 artificialBuild, particularly call routing information to configure specific service device and specific service device, and to the inspection after information configuration allManually do.Great effort and time are not only so expended, error rate is also very high.The application is by building subsystem ringBorder, given server calls path between each subsystem of configuration generation in each Subsystem environment, so as to meet development environmentThe demand of the middle accurate specific machine for specifying called and receipt to arrive of needs, while simplifying distribution application system environmental structureProcess.
Reference picture 1, it illustrates a kind of development environment building method embodiment 1 of distribution application system of the applicationFlow 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 bothIn subsystem.And because the characteristics of multiple team's concurrent developments, each subsystem may have multiple servers, because exploitationThe 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, oftenThere 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 callWith reception receipt.
The subsystem is the collection for the server for providing a certain function in the application for distribution application system development environmentClose, 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 subsystemThe server network connection of sample functional task.
In the specific implementation, having some servers in a subsystem, these servers are for described Distributed ApplicationThe work of development environment provides similar function, but in each server application software version it is different, should in different distributionsIt is necessary to the corresponding server of selection software version in correspondence subsystem in being built with system development environment.For example, there is subsystemThere 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 x1Software version is corresponding, then server is built when calling path in server a1 and subsystem x2 in subsystem x1, choosingSelect 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 subsystemRouting information;
The operation of distribution application system development environment, can apply to many functions, for example:Retrieval, storage, data exchangeEtc. function, thus by special server provide a kind of function respectively, there is provided the server combination of same function as previously describedAs 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-systemsBetween call routing information, because subsystem is the combination of the server of same function, call path be need in different sonsBuilt between system.It should be noted that in the embodiment of the present application, the acquisition and return of calling path to refer to functionPath.
For example, when the server a that previous distribution application system provides browsing pages needs to call search function serviceDevice b search function, finds the data in store function server c.Thus this calls path to be server a using requiredInvoking server b function, invoking server c data message;Server c returned data informations give server b, then by servicingDevice b returns to server a.
Step 103, according between given server in the corresponding subsystem call routing information configuration server adjustUse 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 anyCarried out on server.The Software Edition that developer is based on according to oneself exploitation, selects correspondence in different sub-systemsThe 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 systemPath 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 takenBusiness device goes to download.
Sub-step S12, from it is described it is preset call routing information file, download specified services in the corresponding subsystemRouting 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 differentDevelopment and application pass through connection specify network site, you can with find it is corresponding required for class libraries, therefrom download needed for rely onProgram.
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-systemsServer.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 toThe 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 applicationRapid 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 systemRouting information;
Step 203, according between given server in the corresponding subsystem call routing information configuration server adjustUse path.
The configuration file of server in step 204, the detection subsystem;If noting abnormalities information, step is performed205;
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 somebodyPut list to be contrasted, in place of the difference in the fileinfo configured list in the configuration file, by the Standard EditionCorresponding informance in fileinfo configured list is modified;
Sub-step S23, the database in the Standard Edition database information configured list and the configuration file believedBreath configured list is contrasted, in place of the difference in the database information configured list in the configuration file, by the markCorresponding 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 filePart 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. 3With 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 systemsSystem 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 figureRepresent.
Two distribution application systems development environment X1 and X2 are now built, are remembered in the subsystem server for configurationRecord 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 serviceDevice 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 downloadedServer calls path information, generation corresponding server calls the fileinfo configured list of the information in path, and dataStorehouse information configuration list.
Corresponding server is called to the fileinfo configured list of the information in path, and database information configuration list configurationTo corresponding server.
From the standard edition distribution application system for including server and calling substantially routing information, extraction standard version file letterCease 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 listNormal information, abnormal information is repaiied according to the information in standard edition fileinfo configured list and database information configuration listChange, generate fileinfo configured list and the database information configuration list of new corresponding server configuration, reconfigure to pairThe server answered.
The fileinfo configured list and database information configuration list persistence that new corresponding server is configured, and according toConfiguration starts server, and the server calls path for obtaining distribution application system development environment X1 is called for SystemA-1SystemB-2, SystemB-2 can call SystemC-3, SystemC-3 to call SystemD-2;Another distribution shouldIt is that SystemA-1 must call SystemE-2, SystemE-2 to adjust with system development environment X2 server calls pathSystemG-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 respectivelyCompleted 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 groupClose, but those skilled in the art should know, the application is not limited by described sequence of movement, because according to this ShenPlease, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specificationDescribed 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 builtStructured 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 functionBuild and form;
Routing information generation module 302 is called, for the function according to involved by current application, is configured in corresponding subsystemRouting information is called between given server;
Path configuration module 303 is called, for calling path according between given server in the corresponding subsystemPath 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 itBetween 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 environmentBetween call routing information, download the dependence for calling routing information between given server in the correspondence corresponding subsystemClass libraries;
Routing information is called to compile submodule, for calling road according between given server in the corresponding subsystemThe dependence class libraries for calling routing information in footpath information, and the corresponding subsystem of the correspondence between given server, compiling is describedIn 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 subsystemFootpath 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 compilingRouting information profile information configured list;
Database Lists dispensing unit, for according to the tune between given server in the corresponding subsystem after the compilingWith 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 embodimentIn 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 builtStructured 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 functionBuild and form;
Routing information generation module 402 is called, for the function according to involved by current application, is configured in corresponding subsystemRouting information is called between given server;
Path configuration module 403 is called, for calling path according between given server in the corresponding subsystemPath 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 itselfWith 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 databasePut information list;
Listed files changes submodule, for that will obtain the Standard Edition file configuration information list and the configuration textFile configuration information list in part is contrasted, by the difference in the file configuration information list in the configuration file itPlace, 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 literaryDatabase configuration information list in part is contrasted, by the difference in the database configuration information list in the configuration filePart, 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 embodimentIn 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, serviceDevice computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top setBox, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer including any of the above system or equipmentDCE etc..
The application can be described in the general context of computer executable instructions, such as programModule.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data typePart, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, byRemote processing devices connected by communication network perform task.In a distributed computing environment, program module can be withPositioned 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 ofThe device that the development environment of distribution application system is built is described in detail, and specific case used herein is to the applicationPrinciple and embodiment be set forth, the explanation of above example is only intended to help and understands the present processes and its coreThought is thought;Simultaneously for those of ordinary skill in the art, according to the thought of the application, in embodiment and model is appliedPlace and will change, in summary, this specification content should not be construed as the limitation to the application.