Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, technical scheme of the present invention is clearly and completely described.
Fig. 1 is the first embodiment dispatching patcher structural representation of application dispatching concentration method of the present invention.As shown in Figure 1, this dispatching patcher comprises multiple user terminal 10, data exchange server 20 and multiple application service subsystem 30.Wherein, this dispatching patcher with data exchange server 20 for core, the whole user terminals 10 in this dispatching patcher with for providing whole application service subsystems 30 of service all to adopt consistent communication clients mode to be connected to data exchange server 20 for user terminal 10.Application service subsystem 30 in this dispatching patcher carries out dividing according to provided business, namely each application service subsystem 30 is respectively used to provide different business service, and each application service subsystem 30 is relatively independent, logic is complete, all adopt " request/response " pattern to provide business service for user terminal, and can be deployed on different hardware devices.
Fig. 2 is the flow chart of dispatching concentration method of the present invention.Below in conjunction with reference to figure 1 and Fig. 2, dispatching concentration method of the present invention is described in detail.As depicted in figs. 1 and 2, this dispatching concentration method comprises:
Step S100, data exchange server 20 obtains the dispatch request carrying transmitting side marking information and recipient's identification information from user terminal 10;
Particularly, each independent particle system of the participation real time communication in Centralized Dispatching System is all regarded as CTC communication entity at (comprising user terminal 10 and application service subsystem 30), and each CTC communication entity possesses sole entity mark.This entity identification is a positive lint-long integer.The entity identification of the whole application service subsystems 30 in this dispatching patcher is configured with in each user terminal 10.Data exchange server is a transmission control protocol (Transmission Control Protocol, TCP) service end, comprise a group communication thread pool, for receiving the connection of process communication clients, and the entity identification of the whole user terminals 10 be configured with in data exchange server 20 in this dispatching patcher and application service subsystem 30.When user terminal 10 is wanted to obtain a certain service, search the entity identification of the application service subsystem 30 that this can be provided to serve therein, and be formed by the scheduling request message that TCP carries out communicating.This scheduling request message comprises frame head part and data division, and wherein frame header is divided and comprised the source entity mark sending this message, the target entity mark receiving this message, also can comprise the control domain such as data summarization and timestamp.
Step S200, data exchange server 20 is according to recipient's identification information, dispatch request is sent to the application service subsystem 30 corresponding with recipient's identification information, responds to make application service subsystem 30 pairs of dispatch request and return response message via data exchange server to user terminal 10 according to transmitting side marking information.
Particularly, after data exchange server 20 receives scheduling request message, extract the target entity mark of frame head part in scheduling request message, and this scheduling request message is forwarded to identifies corresponding application service subsystem 30 with this target entity.Application service subsystem 30 is for dividing according to the business service provided, such as according to providing the model split of business service to be business service subsystem and interface service subsystem, wherein: business service subsystem such as comprises Train operation plan service subsystem, dispatching command service subsystem, construction service subsystem, the real-time monitor service subsystem in field of standing etc.; Interface service subsystem such as comprises radio block center interface subsystem, row control interface subsystem, wireless train number interface subsystem etc.
After application service subsystem 30 receives the scheduling request message of data exchange server 20 forwarding, this message is resolved, according to the source entity mark of frame head part and the data of data division, response scheduling request performs corresponding business service, and execution result is back to user terminal 10 by data exchange server 20.
According to the dispatching concentration method of above-described embodiment, because user terminal is by being forwarded to corresponding application service subsystem by the dispatch request comprising transmitting side marking information and recipient's identification information by data exchange server, make user terminal that the dispatch request of request different business service is sent to different application service subsystems, namely the decomposition of the application server for providing business service for user terminal is achieved, thus when making when a certain service needed change or increase a certain business, such as Train operation plan logical process function needs upgrading, only need the Train operation plan service subsystem that increase by is new, and its entity identification is registered in data exchange server and each user terminal, fully achieve seamless replacement, greatly reduce the impact for Centralized Dispatching System.
Further, in the dispatching concentration method of above-described embodiment, data exchange server is according to recipient's identification information, dispatch request is sent to the application service subsystem corresponding with recipient's identification information, to make application service subsystem described dispatch request is responded and comprise via the step of data exchange server to user terminal passback response message according to transmitting side marking information:
The entity identification list that data exchange server stores according to recipient's identification information-enquiry;
Know that recipient's identification information is user terminal entity identification if judge, then dispatch request is forwarded to the user terminal corresponding with user terminal entity identification;
Know that if judge recipient's identification information is application service Subsystem entity mark, then dispatch request is sent to and identifies corresponding application service subsystem with application service Subsystem entity, to make application service subsystem dispatch request responded and return response message via data exchange server to user terminal according to transmitting side marking information.
Particularly, data exchange server can not only be used for realizing the information interaction between user terminal and application service subsystem, can also be used for the communication realized between user terminal.When user terminal need to another user terminal to transmit data time, the entity identification of user terminal for the purpose of recipient's identification information that it identifies in sent dispatch request.After data exchange server receives this dispatch request, according to recipient's identification information of frame head part, this dispatch request can be sent to corresponding user terminal, thus achieve the communication between user terminal.
According to the dispatching concentration method of above-described embodiment, owing to passing through to send dispatch request to data exchange server, the communication that both can realize the information interaction between user terminal and application service subsystem, also can realize between user terminal, thus to make between each user terminal, without the need to extra connection, to greatly simplifie the structure of this Centralized Dispatching System.
Fig. 3 is the second embodiment dispatching patcher structural representation of application dispatching concentration method of the present invention.Further, in the dispatching concentration method of above-described embodiment, data exchange server 20 also comprises before carrying the step of the dispatch request of transmitting side marking information and recipient's identification information from user terminal 10 acquisition:
By interconnected for multiple data exchange server 20, and user terminal 10 corresponding with multiple data exchange server 20 respectively and the identification information of application service subsystem 30 are set in each data exchange server 20.
Particularly, by the data exchange server 20 in different Centralized Dispatching System being connected and being configured in connected Centralized Dispatching System by the configuration information (user terminal entity identification and application service Subsystem entity identify) in own schedule central system by each data exchange server 20, thus make the whole entity identifications in the Centralized Dispatching System after being provided with this synthesis in the data exchange server 20 in the Centralized Dispatching System after this synthesis, each user terminal 10 and each application service subsystem 30.After data exchange server 20 receives the dispatch request of user terminal transmission, know that recipient's identification information of this dispatch request is the entity identification of the user terminal 10 or application service subsystem 30 be connected with another data exchange server 20 if judge, then this dispatch request is forwarded to this another data exchange server 20, this dispatch request is forwarded to corresponding user terminal 10 or application service subsystem 30 by another data exchange server 20.The process of execution result passback is identical with it, therefore repeats no more.
According to the dispatching concentration method of above-described embodiment, the merging of multiple Centralized Dispatching System can be realized, namely make the communication entity in the plurality of Centralized Dispatching System to intercom mutually, thus extend function and the scope of this Centralized Dispatching System, improve the flexibility of Centralized Dispatching System.When each Railway Bureau in the whole nation Centralized Dispatching System all should by the dispatching concentration method of above-described embodiment time, interconnected by means of only simple data exchange server, the exchanges data of any two Centralized Dispatching System in the whole nation can be realized, thus realize the Premium Features such as adjustment, Long-distance Control adapter of compass of competency easily and reliably, improve centralization and the mobilism of dispatch control.
According to a further aspect in the invention, additionally provide a kind of Centralized Dispatching System, comprising: multiple user terminal, the data exchange server be connected with user terminal and the multiple application service subsystems be connected with data exchange server, wherein:
Data exchange server is used for obtaining from user terminal the dispatch request carrying transmitting side marking information and recipient's identification information; According to recipient's identification information, dispatch request is sent to the application service subsystem corresponding with recipient's identification information, to make application service subsystem described dispatch request is responded and return response message via data exchange server to user terminal according to transmitting side marking information.
As shown in Figure 1, the method for operation dispatching operation is identical with the dispatching concentration method of above-described embodiment, so place repeats no more for the structural representation of the Centralized Dispatching System of above-described embodiment.
According to the Centralized Dispatching System of above-described embodiment, owing to being provided with multiple application service subsystem, the entity identification of the application service subsystem of correspondence is arranged in dispatch request according to the service that will ask by user terminal, to make, through data exchange server, this dispatch request is sent to corresponding application service subsystem, thus provide asked service for user terminal.This Centralized Dispatching System achieves the decomposition by being used for the application server providing business service for user terminal, thus when making when a certain service needed change or increase a certain business, such as Train operation plan logical process function needs upgrading, only need the Train operation plan service subsystem that increase by is new, and its entity identification is registered in data exchange server and each user terminal, fully achieve seamless replacement, greatly reduce the impact for Centralized Dispatching System.
Further, in the Centralized Dispatching System of above-described embodiment, the entity identification list of data exchange server also for storing according to recipient's identification information-enquiry; Know that recipient's identification information is user terminal entity identification if judge, then dispatch request is forwarded to the user terminal corresponding with user terminal entity identification; Know that if judge recipient's identification information is application service Subsystem entity mark, then dispatch request is sent to and identifies corresponding application service subsystem with application service Subsystem entity, to make application service subsystem dispatch request responded and return response message via data exchange server to user terminal according to transmitting side marking information.
According to the Centralized Dispatching System of above-described embodiment, due to the communication that data exchange server both can realize information interaction between user terminal and application service subsystem, also can realize between user terminal, thus to make between each user terminal, without the need to extra connection, to greatly simplifie the structure of this Centralized Dispatching System.
Further, in the Centralized Dispatching System of above-described embodiment, the quantity of data exchange server is multiple, and each data exchange server is independently connected to multiple described user terminal and multiple described application service subsystem, and each described data exchange server is interconnected.The structure of the Centralized Dispatching System of this embodiment as shown in Figure 3.
According to the Centralized Dispatching System of above-described embodiment, by the interconnected merging achieving multiple Centralized Dispatching System of data exchange server, namely make the communication entity in the plurality of Centralized Dispatching System to intercom mutually, thus extend function and the scope of this Centralized Dispatching System.When each Railway Bureau in the whole nation all adopts the Centralized Dispatching System of above-described embodiment, interconnected by means of only simple data exchange server, the exchanges data of any two Centralized Dispatching System in the whole nation can be realized, thus realize the Premium Features such as adjustment, Long-distance Control adapter of compass of competency easily and reliably, improve centralization and the mobilism of dispatch control.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.