Specific embodiment
Describe detailed features and advantage of the invention in detail in a specific embodiment below, content is enough to make any
Skilled in the art realises that technology contents of the invention and implementing accordingly, and according to specification disclosed by this specification, power
Benefit requires and attached drawing, skilled person readily understands that the relevant purpose of the present invention and advantage.
In some complication systems of today, it may relate to multiple operation systems.So-called operation system, can refer to for handling
The system of specific transactions.For example, in a kind of payment system, it may include clearance, accounting, reconciliation, exchange, emergency, fund are abnormal
Multiple operation systems such as disposition, may also include other operation systems.These operation systems each other may mutually indepedent or phase
Mutual correlation.In systems, there is the private file for being individually used for specific transactions system.In many cases, for information sharing
Or the shared needs to improve efficiency are configured, there is also public documents between these operation systems.
The application so-called " public documents " refers to the file shared by multiple operation systems.The example of public documents includes
But it is not limited to bottom data base configuration file, network profile, common profiles and other is total to by multiple operation systems
File etc..
In order to which the public documents shared to multiple operation systems are preferably managed, artificial treatment is reduced, improves system
Efficiency and reliability, present description provides based on control task push and timestamp technical solution.
Invention general view
Referring to attached drawing 1, it is shown according to this specification embodiment for managing the overall flow 100 of public documents
Synoptic chart.
Specifically, in some embodiments, overall flow 100 may include deployment phase under initial phase 102, line
104, modification check stage 106,108 four-stage of production environment deployment phase, below each process is illustrated.It should lead
Meeting, above-mentioned divided stages are only examples, and some in these stages can be omitted or merge or process 100 may include adding
Stage.In general, each stage of process 100 can execute under the control of version pipe control system.
Initial phase
Referring to Fig. 1, it illustrates the initial phases 102 of public documents.During initial phase 102, for managing
The version pipe control system of public documents can be reserved for the record of the last modification time of the working version of public documents, this is recorded in down
It can be described as configuration record in text.For never modified file, last modification time is equal to the public documents
The creation time of working version.And for the file of modified mistake, last modification time is equal to the public documents
The time of the Last modification of working version.
Last modification time by recording public documents can be subsequently used to determine that public documents are subsequent whether is modified.
In many examples, configuration record may also include other information.For example, configuration record may also include the position (example of public documents
Such as access path).In another example configuration record may also include the information such as the last modification people of public documents.The configuration record can
It is saved in database (including but not limited to cloud database etc.).
For example, it is assumed that three a kind of clearance of payment system, accounting and reconciliation operation systems share three public documents
Pom.xml, sql-map.xml and beal-config.xml.
Referring to the following table 1, it illustrates showing for the initial configuration record of the public documents of the initial phase 102 in this example
Example.
It will be appreciated by one skilled in the art that above-mentioned public documents are only exemplary rather than limitation.Two or more industry
Business system can share more or fewer public documents, and the format of public documents is also not necessarily limited to xml or any other particular bin
Formula.
Those skilled in the art will further recognize that, when last modification of the various other modes to record public documents can be used
Between.For example, in some instances, can record the last modification time etc. of this document in attribute of some files etc..
Those skilled in the art will further recognize that, not require the behaviour for executing the initial phase in all cases
Make.For example, no longer needing to execute above-mentioned in the case where the configuration of the last modification time of current public documents record has existed
Operation.
Deployment phase under line
Referring to Fig. 1, it illustrates deployment phases 104 under the line of public documents.Dispose for example that can be will be to file under line
Modification be submitted to test environment to be tested.During this period, copy of the developer of an operation system to public documents
Modification is made, version pipe control system generates control task and control task is pushed to the system manager of the operation system, under
The detailed process in this stage is described in detail in face.
In one embodiment of this specification, when developer modifies public documents, developer can obtain first
The copy of public documents.It may be for various reasons, such as in order to specific transactions system that developer, which modifies public documents,
It is iterated and updates to add new function, eliminate mistake in original operation system etc..For example, it is assumed that the exploit person of system for settling account
Member will be iterated update to system for settling account, to need to modify the public documents that system for settling account and other operation systems share.
For example, in some embodiments, developer can pass through Version Control software systems (such as Git or SVN etc.)
File Deng the operation system in duplication presence server (such as GitHub server or private server etc.) is to generate business
System branch, so that the copy of the file of operation system is downloaded to the machine.
Connect example, the available order clone clearance associated with Git version control system of the developer of system for settling account
The branch of the file of system, or pull the latest edition of the file of system for settling account.In general, not only duplication is each for this duplication operation
A file, and the relative path between each file and file is also maintained.
Other way can also be used to obtain the copy of the file of operation system.For example, others can be used in developer
Version Control mode, or can simply manual duplication service system file.The file of developer's acquisition operation system
The concrete mode of copy be well known to those skilled in the art, details are not described herein.
Then, developer can execute modification to the copy of the public documents, rather than directly modify public documents itself.
For example, the duplicate of the document that developer's editable is locally downloading, to modify to the file in operation system.It connects
, the code in each file of developer's editable system for settling account, to add new function or carry out other modifications.For example, should
Secondary iteration update can be named as uploadFileExchange.
Developer can will submit for test the modification of file after completing to the modification of file, that is, execute warp
It is disposed under the line of the file of modification.For example, developer can test test environment is submitted to the modification of file, so as to
It was found that in modified file there may be the problem of.The modification of the copy to the public documents is submitted to test receiving
When the request of environment, version pipe control system can record the modification time of the copy of public documents.
For example, it is assumed that following file is modified in the iteration reproducting periods of entitled uploadFileExchange,
Modification time is as follows:
cfmng/common/service/facade/InitStatusEnum.java 2018-06-22 15:13:06
cfmng/common/dal/resource/sql-map.xml 2018-06-22 19:13:08
cfmng/common/service/core/service/resource/beal-config.xml 2018-06-
2219:23:18
Wherein InitStatusEnum.java is not public documents, and sql-map.xml and beal-config.xml are
Public documents.At this point, the modification time of the copy of recordable public documents, remembers to generate the modification of copy of public documents
Record, example are as shown in table 2 below:
Certainly, it also can record other information in the table.For example, also recordable modification people etc. in the table, such as following table 3
It is described:
It is appreciated that developer can execute repeatedly modification to the copy of the public documents, or can be by multiple exploit persons
Member executes modification to the copy of the public documents.In the above example, the modification time finally modified only is described (and for example
Modify people etc.).However, also can record the modification time (and Lee such as modifies people) modified every time.
In this way, in this stage, the working version of public documents will not be changed, and only modify public documents
Copy, the working version of public documents is substituted when disposing on line after receiving for the subsequent person of being managed.
Then, version pipe control system can be by the working version of the modification time of the copy of the public documents and the public documents
Last modification time be compared.The working version of public documents refers to currently just using in production environment for public documents
Version.
The last modification time of the working version of the public documents for example can be the initial phase shown in the upper table 1
Public documents record obtained in.The modification time of the copy may, for example, be to be obtained from record shown in upper table 2
's.
If there is no the modification time of the copy of the public documents or the copy of the public documents earlier than the public text
The last modification time of the working version of part then illustrates that developer did not carry out modification to public documents.At this point, using should
The unmodified working version of public documents executes to be disposed under line.
If the last modification time of the copy of the public documents is later than the last modification of the working version of the public documents
Time then illustrates that developer carried out modification to public documents.At this point, version pipe control system can automatically generate control task.
When control task is generated, which can be set to original state.
After generating control task, version pipe control system can each operation system into related system administrator's push
The control task, the control mission requirements system manager, which makes the modification of the public documents, to be accepted or rejected.For example,
When making modification to public documents during being iterated update to the first operation system, version pipe control system can be by pipe
Control task is pushed to the system manager of the first operation system, makes and accepting or rejecting so as to it.
For example, connecting example, it is assumed that the developer of system for settling account is carrying out the update of uploadFileExchange iteration
Two files of sql-map.xml and beal-config.xml are modified in the process, and both of these documents are clearance, core
To and the shared public documents of three operation systems of reconciliation.Assuming that the administrator of system for settling account is flower elder sister, check system is responsible for
Artificial journey brother, reconciliation system it is responsible artificial luxuriant and bdautiful, then control task can be pushed to colored elder sister, journey brother and Fei by version control system
Phenanthrene is checked for it.
In general, the equipment of system principal, which can be configured to system for prompting administrator in some way, handles the pipe being pushed
Control task.For example, can be responsible for by modes such as vibration and top banners to system when system principal just uses mobile device
People notifies control task.
For example, connecting example, mobile device used in flower elder sister can be configured to show when receiving control task following
Top banner content: " you receive control task, please handle as early as possible!"
In addition, the equipment of system principal can be configured to when receiving control task, can be provided to system principal
Accept or reject the option of the modification to public documents.
Further it is assumed that system principal, without handling control task in time, the equipment of system principal is also repeatable to remind
System principal handles control task.
Version pipe control system can safeguard the record of control task.The example of the record of control task in original state can
It is as shown in table 4 below:
Alternatively, it can not only show the quantity of modified public documents, but be directed to each modified public documents
Separately maintain control record.At this point, another example of the record of the control task in original state can be as shown in table 5 below:
It is appreciated that the record of control task is not limited to upper type, but various other modes can be used.
By push control task, can by automation, it is timely and enforceable in a manner of so that system manager is perceived public affairs
The modification of total file simultaneously promotes system manager to make the decision for accepting or rejecting modification, to improve public documents management
Efficiency and reliability.
The stage is checked in modification
Referring to Fig. 1, it illustrates the modifications of public documents to check the stage 106.Stage 106, related service are checked in modification
The administrator of system accepts or rejects the modification of the copy of public documents, and correspondingly changes the state of control task.
Administrator can examine the modification of public documents after receiving the control task from version pipe control system
It reads, and correspondingly the modification of public documents is made and being accepted or rejected.For example, if administrator is in the modification for checking public documents
Think that there is no problem for modification later, is then subjected to the modification.If administrator thinks to repair after the modification for checking public documents
There are problems in changing, then are rejected by the modification.Then, this can be accepted or rejected and send version pipe control system to by administrator.
It, can in flower elder sister, journey brother and luxuriant and bdautiful after the control task for receiving the push of version pipe control system for example, connect example
Li Fei is checked to cfmng/common/dal/resource/sql-map.xml and cfmng/common/service/core/
The modification of service/resource/beal-config.xml.For example, flower elder sister, journey brother and luxuriant and bdautiful pulling by Li Fei to above-mentioned
The modification of file.Due to flower elder sister, journey brother and it is luxuriant and bdautiful be each responsible for clearance, verification and three operation systems of reconciliation, so they divide
It is other more familiar to the operation system being each responsible for, so as to more accurately judge the modification self-responsibility to public documents
Operation system influence.If system manager thinks the modification to public documents, there is no problem, is subjected to public text
Otherwise the modification of part is rejected by the modification to public documents.
For example, flower elder sister, journey brother and luxuriant and bdautiful can be accepted or rejected to public documents as shown by its equipment by clicking
The option of modification, to transmit accepting or rejecting for the modification to public documents to version control system.
After receiving the accepting or rejecting of system manager, the record of control task is may be updated in version pipe control system.Example
Such as, it after version pipe control system is received from the receiving of one or more system managers (such as spending elder sister), can will manage
The respective entries of task are updated to receive state.And when version pipe control system is received from one or more system managers
Refusal after, the respective entries for task of managing can be updated to disarmed state.
For example, the updated record for managing task can be such as the following table 6 institute after only receiving colored elder sister to the receiving of modification
Show:
In another example receive colored elder sister, journey brother and it is luxuriant and bdautiful to modification check result after, manage the updated of task
Record can be as shown in table 7 below:
It then, can be based on each taster checking result and determine the end-state of control task to modification.
Preferably, only after the whole system managers for being pushed the control task receive the copy of public documents,
It is determined as the end-state for task of managing to have received state.And when a system manager (such as spending elder sister) receiving modification is another
When one system manager (such as journey brother) refuses modification, the end-state of the control task can be determined as disarmed state.
In other examples, as long as task can will be managed by having the administrator of any one operation system to receive modification
End-state is determined as having received state.
Alternatively, it can be determined according to the priority of the administrator of each operation system and be updated to receive also by control task
It is disarmed state.When spending elder sister's receiving modification and journey brother refuses to modify for example, working as, and spending the priority of elder sister higher than journey brother, it will manage
Control task is updated to receive state.
End-state is that the example of the record of the control task of disarmed state is as shown in table 8 below:
It will be appreciated that above-mentioned example is not limiting;When there are multiple system managers, the final shape of task is managed
The determination of state can determine as needed.
Production environment deployment phase
Referring to Fig. 1, it illustrates the production environment deployment phases 108 of public documents.In production environment deployment phase, version
Managing and control system carries out the deployment of production environment based on the presence of control task and state.
After developer completes the movements such as the deployment test under line, need to modify being submitted to production environment to produce
Environment deployment.At this point, version pipe control system, which can receive, is deployed to life for the copy of public documents from such as developer
Produce the request of environment.
Before disposing to production environment, version pipe control system can first determine that control task whether there is.For example, ought not
When in the presence of control task, illustrates not carry out modification to public documents, the deployment to production environment can be performed.
If there is control task, then version pipe control system can determine the state of control task.If the task of control is
Receive state, then executes the deployment to production environment.And if control task is disarmed state, it does not execute to production environment
Deployment.
After disposing to production environment, the modification time in public documents original records may be updated.
For example, the public documents original records in table 1 will be modified to as shown in table 9 below:
After the completion of deployment, the operation of the operation system can be started in production environment.
By the presence and state that determine control task before disposing to production environment, it can be ensured that be deployed to production
System manager has received the public documents of environment, to improve the reliability of production environment.
Referring to fig. 2, it illustrates the processes of the method 200 according to this specification embodiment for managing public documents
Figure.As explained earlier, public documents are the files shared by multiple operation systems.
Method 200 can include: in step 202, can get the modification time of the copy of the public documents.Public documents
Copy is usually to be generated and modified by developer.In general, the copy of the public documents can be created by developer, then
Version pipe control system can receive the request that the modification of the copy to the public documents is submitted to test environment from developer.
After receiving the request for submitting modification, version pipe control system can record the modification time of the copy of public documents.Public documents
The modification of copy and the detail of record of modification time can refer to description above.
Method 200 may also include that the modification time that can get the working version of the public documents in step 204, described
The working version of public documents is the version of the public documents currently used in production environment.The working version of public documents
This modification time can record during the initialization of method.
Method 200 may also include that in step 206, by the modification time of the copy of the public documents and the public text
Whether the modification time of the working version of part is compared, be later than with the modification time of the copy of the determination public documents described
The last modification time of the working version of public documents.
Method 200 may also include that in step 208, if it is determined that the modification time of the copy of the public documents is later than institute
The last modification time of the working version of public documents is stated, then produce control task and is pushed to the control task described
The administrator of each operation system in multiple operation systems, the state of the control task are based on the multiple operation system
In each operation system administrator it is determining to accepting or rejecting for the modification.Specifically, the pipe can generated
Original state is set by the control task when control task.It then, can be based on each business in the multiple operation system
The administrator of system is updated to the control task to have received state or has refused shape to accepting or rejecting for the modification
State.Preferably, it can be also based further on the priority of the administrator of each operation system in the multiple operation system, it will
The control task is updated to receive state or disarmed state.It alternatively, can be only when every in the multiple operation system
The administrator of a operation system receives the modification, just is updated to the control task to have received state.
Method 200 may also include that in step 210, can be based on the state of the control task, it is determined whether will be described public
The copy of file is deployed to the production environment.Specifically, it illustrates be deployed to the copy of public documents referring to Fig. 3
The flow chart of the method 300 of production environment.
As shown in figure 3, method 300 can include: in step 302, can receive the copy of the public documents being deployed to institute
State the request of production environment.
Method 300 may also include that in step 304, it may be determined whether there are control tasks.If there is no control task,
Then the copy of the public documents can be deployed to the production environment in step 306.It, then can be in step if there is control task
Rapid 308 states based on the control task, it is determined whether the copy of the public documents is deployed to the production environment.?
In one example, if the control task is to have received state, the deployment to production environment is executed, and if the control
Task is disarmed state, then does not execute the deployment to production environment.The copy of the public documents is deployed to production environment
Working version including substituting the public documents with the copy of the public documents.
Preferably, method 300 may also include that in step 310, and the copy of the public documents is being deployed to production environment
Later, the last modification time of the working version of the public documents may be updated.
In addition, in addition, the system includes for realizing various embodiments described herein disclosed herein as well is a kind of system
Method device.
Moreover, disclosed herein as well is a kind of the computer-readable of computer executable instructions including being stored thereon to deposit
Storage media, the computer executable instructions make the processor execute each implementation as described herein when being executed by processor
The method of example.
It is appreciated that can be realized with software, firmware or combinations thereof according to the method for each embodiment of this specification.
It should be understood that the specific order or hierarchy of each step is the explanation of example process in disclosed method.It is based on
Design preference, it should be appreciated that the specific order or hierarchy of each step in these methods can be rearranged.Appended method right is wanted
The element that various steps are presented in sample order is sought, and is not meant to be defined to presented specific order or hierarchy, is removed
It is non-to have special narration herein.
It should be understood that being described with singular herein or only being shown that one element is not represented this yuan in the accompanying drawings
The quantity of part is limited to one.In addition, individual module can be combined by being described or be shown as separated module or element herein
Or element, and multiple modules or element can be split as by being described or be shown as single module or element herein.
It should also be understood that terminology employed herein and form of presentation are only intended to describe, the present invention should not be limited to these
Term and statement.It is not meant to exclude the equivalent spy of any signal and description (or in which part) using these terms and statement
Sign, it should be recognized that various modifications that may be present should also be included in scope of the claims.Other modifications, variations and alternatives can also
Can exist.Correspondingly, claim should be regarded as covering all these equivalents.
Equally, it should be pointed out that although the present invention is described with reference to current specific embodiment, this technology neck
Those of ordinary skill in domain it should be appreciated that more than embodiment be intended merely to illustrate the present invention, in no disengaging present invention
Various equivalent change or replacement can be also made in the case where spirit, therefore, as long as right in spirit of the invention
The variation, modification of above-described embodiment will all be fallen in the range of following claims.