Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
The terms that may be used herein will first be described as follows:
The terms "comprises," "comprising," "includes," "including," "has," "having" or other similar referents are to be construed to cover a non-exclusive inclusion. For example, inclusion of a feature (e.g., a starting material, component, ingredient, carrier, dosage form, material, size, part, component, mechanism, apparatus, step, procedure, method, reaction condition, processing condition, parameter, algorithm, signal, data, product or article of manufacture, etc.) should be construed as including not only the feature explicitly recited, but also other features known in the art that are not explicitly recited.
The term "consisting of" means excluding any technical feature elements not explicitly listed. If such term is used in a claim, the term will cause the claim to be closed, such that it does not include technical features other than those specifically listed, except for conventional impurities associated therewith. If the term is intended to appear in only a clause of a claim, it is intended to limit only the elements explicitly recited in that clause, and the elements recited in other clauses are not excluded from the overall claim.
The invention provides a dispatching centralized data updating and disaster recovery method based on a light memory. What is not described in detail in the embodiments of the present invention belongs to the prior art known to those skilled in the art. The specific conditions are not noted in the examples of the present invention and are carried out according to the conditions conventional in the art or suggested by the manufacturer.
As shown in fig. 1, a flowchart of a method for updating and disaster recovery of dispatching centralized data based on a light memory according to an embodiment of the present invention mainly includes the following steps:
and 1, constructing a dispatching concentrated data transmission model based on a light memory.
In the embodiment of the invention, a dispatching concentrated data transmission model (called dispatching concentrated data transmission model for short) based on a light memory is constructed as shown in fig. 3, wherein the dispatching concentrated data transmission model comprises a database for storing dispatching concentrated data, an application program cache and the light memory, a man-machine interface terminal of a dispatching concentrated system program is directly connected with the application program cache, the application program cache is remotely connected with the database, and a local access connection is established with the light memory, and for each type of dispatching concentrated data, the corresponding data type numbers are configured for the database, the application program cache and the light memory.
In the embodiment of the invention, the light memory belongs to a general technical term in the field, and is characterized by a data storage mode with a database, stored data is reserved in a computer hard disk in a file form, and the occupied storage space is obviously reduced compared with the traditional database.
In the implementation of the embodiment of the invention, the dispatching centralized data comprises four major types of static data, external data, table structure data and dynamic data, wherein the static data is data loaded when a dispatching centralized system program is started, the dynamic data is data accessed when the dispatching centralized system program is operated, the table structure data is information for describing a table structure of a database, and the external data refers to data which is stored in the database and is written and updated by other users.
The data type numbers of static data, external data and table structure data are the same, namely the database, the application program cache and the light memory in sequence from small to large, and the data type numbers of dynamic data are the application program cache, the light memory and the database in sequence from small to large.
And 2, when the remote connection is normal or disconnected, accurately controlling the flow direction of data transmission according to a preset updating rule, realizing data updating, and ensuring the integrity and accuracy of the data in the transmission process.
In this step, the data updating modes performed in the case of normal remote connection and disconnection are different, and are described below.
(1) When the remote connection is normal, the dispatching centralized system program combines the data operation state of the human-computer interface terminal and the configured data type number to control the transmission flow of the dispatching centralized data of the corresponding category in the database, the application program cache and the light memory to realize data updating.
In this case, the data operation state of the human-machine interface terminal includes that the human-machine interface terminal reloads the data in the scheduling set, the human-machine interface terminal performs the operation of writing the data, and the human-machine interface terminal performs the operation of reading the data. The following describes the data updating modes corresponding to the above three data operation states.
And (1.1) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal reloads the dispatching concentrated data, the data updating relates to the dispatching concentrated data types including structural data, static data, external data and dynamic data, the dispatching concentrated system program acquires the table structural data, the static data, the external data and the dynamic data from the database in sequence, and the dispatching concentrated data of each type is firstly transmitted to an application program cache and then transmitted to a light memory by the application program cache.
And (1.2) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data writing operation, the dispatching concentrated data type related to the data updating comprises dynamic data, and the dispatching concentrated system program acquires the dynamic data from the application program cache, firstly transmits the dynamic data to the database and then transmits the dynamic data to the light memory.
And (1.3) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data reading operation, the scheduling centralized data category related to the data updating comprises external data and dynamic data, the scheduling centralized system program acquires the external data from the database and transmits the external data to the application program cache and then transmits the external data to the light memory through the application program cache, and then the scheduling centralized system program acquires the dynamic data from the database and transmits the dynamic data to the application program cache and then transmits the dynamic data to the light memory through the application program cache.
(2) When the remote connection is disconnected, the dispatching centralized system program combines the data operation state of the human-computer interface terminal and the configured data type number to control the transmission flow of the dispatching centralized data of the corresponding category in the application program cache and the light memory to realize data updating.
In this case, the data operation state of the human-machine interface terminal includes that the human-machine interface terminal reloads the data in the scheduling set, the human-machine interface terminal performs the operation of writing the data, and the human-machine interface terminal performs the operation of reading the data. The following describes the data updating modes corresponding to the above three data operation states.
And (2.1) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal reloads the dispatching concentrated data, the dispatching concentrated data related to the data update comprises static data, external data and dynamic data, and the dispatching concentrated system program sequentially acquires the static data, the external data and the dynamic data from the light memory and sequentially transmits the static data, the external data and the dynamic data to the application program cache.
And (2.2) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data writing operation, the dispatch centralized data category related to the data updating comprises dynamic data, and the dispatch centralized system program acquires the dynamic data from the application program cache and then transmits the dynamic data to the light memory.
And (2.3) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data reading operation, the scheduling centralized data type related to the data updating comprises external data and dynamic data, and the scheduling centralized system program acquires the external data and the dynamic data from the light memory in sequence and sequentially transmits the external data and the dynamic data to the application program cache.
And step3, when the remote connection is recovered to be normal after being interrupted, starting a data disaster recovery scheme.
In the embodiment of the invention, when the remote connection is interrupted and returns to normal, a data disaster recovery method is triggered, and the dispatching centralized system program combines the data operation state of the human-computer interface terminal and the configured data type number to control the transmission flow of the dispatching centralized data of the corresponding category stored in the remote connection interruption period in the database, the application program cache and the light memory to realize the data disaster recovery.
In this case, the data operation state of the human-machine interface terminal includes the human-machine interface terminal performing the operation of writing data and the human-machine interface terminal performing the operation of reading data. The following describes the data disaster recovery mode corresponding to the two data operation states.
And (3.1) if the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data writing operation, the dispatch centralized data category related to the data disaster tolerance comprises dynamic data, and the dispatch centralized system program acquires the dynamic data stored in the remote connection interruption period from the light memory, and transmits the dynamic data to the application program cache firstly and then to the database by the application program cache.
(3.2) If the data operation state of the man-machine interface terminal is that the man-machine interface terminal executes the data reading operation, the dispatch centralized data category related to the data disaster tolerance comprises external data;
The dispatching centralized system program obtains the external data stored in the remote connection interruption period from the database, firstly transmits the external data to the application program cache, and then transmits the external data to the light-weight memory through the application program cache.
In order to more clearly demonstrate the technical scheme and the technical effects provided by the invention, the method provided by the embodiment of the invention is described in detail below by using specific embodiments.
1. A data transmission model is scheduled and centralized.
The invention provides a dispatching concentrated data transmission model based on a light memory, which is based on the existing dispatching concentrated data transmission model, as shown in figure 3, and replaces a local data file in the existing dispatching concentrated data transmission model with the light memory. The light memory is characterized by a data storage mode with a database, stored data is reserved in a computer hard disk in a file form, and the occupied storage space is obviously reduced compared with the traditional database. The light memory is a lightweight database, provides complete data storage, data persistence and data sharing functions, and data management complies with the principles of atomicity, consistency, isolation and persistence, so that the integrity and accuracy of database transactions can be ensured.
In addition, the data transmission model in the dispatching set provided by the invention is also used for adding the data transmission contents of external data and table structure data on the basis of the existing data transmission model in the dispatching set. External data refers to data stored in a database and written and updated by other users, and for the current user, only read operations can be performed on these external data, but not write or update operations. Such external data may come from different information systems or different data sources, which are not directly modifiable to the current user. The table structure data is information describing the table structure of the database, and includes the field name, data type, constraint and other attributes of the table, and in order to ensure the validity of data transmission, the light memory needs to be consistent with the definition of the table of the database, so that the table structure data needs to be acquired from the database to ensure the accuracy of the data in the transmission process.
In the embodiment of the invention, the symbol definition of the data transmission model in the dispatching set is shown in table 1 according to the difference of data sources and data types.
TABLE 1 symbol definition of data Transmission model
The table A, B, C, D in table 1 corresponds to static data, external data, table structure data, and dynamic data. Since the data in the scheduling set is stored in the database, the application program cache and the local database at the same time, in order to ensure the reliability of data update, data type numbers need to be defined for data of different sources and types. The numbers following the symbols in table 1 represent the data type numbers. Fig. 4 shows a specific data type number definition.
The light memory is used as a database backup mechanism in the invention, and can ensure that the man-machine interface terminal operates correctly according to design expectations when the database fails. The data type numbers of the static data, the external data and the table structure data are a database, an application program cache and a light memory in sequence. The dynamic data needs to be frequently accessed and read, the dynamic data is preferably updated in the light memory, and then the updating is synchronized into the database, so that the data access performance can be improved, the database load can be reduced, and the data type numbers of the dynamic data are sequentially an application program cache, the light memory and the database.
In the embodiment of the invention, the application scene of adding the data operation of the man-machine interface terminal on the basis of considering the existing remote connection state is shown in the table 2.
TABLE 2 application scenarios for remote connection and human-machine interface
In the embodiment of the invention, the remote connection of the dispatching centralized data transmission model is divided into 3 application scenes of disconnection, normal and recovery. And the man-machine interface terminal reloads static data, external data, table structure data and dynamic data when starting after the corresponding dispatching centralized system program is abnormally closed or switching every day. And the operation of writing data into the man-machine interface terminal to store the text content and the running chart information displayed by the interface into the database and the light memory by the corresponding dispatching centralized system program. And the man-machine interface terminal reads the operation of the corresponding dispatching centralized system program of the data, takes the database or the light memory as a data source, and refreshes the text content and the running chart information displayed on the interface. The application scenarios of the remote connection and the human-machine interface can be combined with each other to form a synchronous scenario of the data transmission model in the dispatch set as shown in table 3.
TABLE 3 synchronization scenario for a data Transmission model in a scheduling set
In the synchronous scenario of the data transmission model shown in table 3, the data updating method accurately controls the flow direction of data transmission according to preset updating rules when the remote connection is normal and when the remote connection is disconnected, so as to ensure the integrity and accuracy of the data in the transmission process. The data disaster recovery method is started when the remote connection is interrupted for some reason and then returns to normal. The data disaster recovery method follows a specific disaster recovery rule, aims to effectively recover the dispatching concentrated data possibly lost during the disconnection of the remote connection, and ensures the continuity and stability of dispatching command business when a dispatching concentrated system program faces data transmission problems. Because of the ubiquitous dependency between the schedule command business data items, the schedule centralized system program does not process static data, external data, table structure data and dynamic data at the same time, but processes data according to the sequence of the table structure data, the static data, the external data and the dynamic data. In the synchronous scene, the sequence of data transmission is consistent with the sequence of data processing by the system program in the dispatching set.
2. The data transmission stream in the synchronization scenario is introduced.
In the embodiment of the present invention, the data transmission flows of the 8 synchronization scenarios shown in the foregoing table 3 are respectively described.
1. The data transmission stream of scene 1 is synchronized.
When the remote connection is interrupted, the connection between the dispatching centralized system program and the database is disconnected, and the data transmission flow when the dispatching centralized system program calls the data updating method to reload data is shown in the formula (1). In the formula (1), (1) and (4) represent a synchronization scenario 1, in which the sequence of the execution of data transmission by the system program in the dispatch collection is static data, external data and dynamic data.
(1)(4){(A3,A2),(B3,B2),(D2,D1)}(1)
When the system program in the dispatching concentration reloads data during the connection interruption, static data and external data are obtained from the light-type memory and dumped to the application program cache, so that the dispatching concentration data can still be accessed under the condition that remote connection is unavailable, and the process corresponds to (A3, A2) and (B3, B2) in the formula (1) respectively. Because the connection with the database cannot be established, the dynamic data cannot be directly updated into the database, the dispatching centralized system program transfers the dynamic data from the light memory to the application program cache, the dynamic data is retransmitted and stored into the database after the remote connection is recovered, and the process corresponds to (D2 and D1) in the formula (1).
In the data transmission flow formula of each synchronous scene, two symbols in brackets represent that corresponding data is transmitted from a left term to a right term, and (A3, A2) is taken as an example to represent that static data in a light memory is transmitted to an application program cache.
2. The data transmission stream of scene 2 is synchronized.
When the remote connection is normal, the connection between the dispatching centralized system program and the database is available, and the data transmission flow when the dispatching centralized system program calls the data updating method to reload the data is shown in the formula (2). In the formula (2), (2) and (4), the synchronization scenario 2 is represented, and the sequence of the execution of data transmission by the system program in the dispatching and concentrating system in the scenario is table structure data, static data, external data and dynamic data.
(2)(4){(C1,C2),(C2,C3),(A1,A2),(A2,A3),(B1,B2),(B2,B3),(D3,D1),(D1,D2))(2)
When the dispatch centralized system program reloads data during normal connection, table structure data, static data and external data are acquired from the database, and are firstly loaded into an application program cache and then stored into a light memory for backup, wherein the process corresponds to (C1, C2), (C2, C3), (A1, A2), (A2, A3) and (B1, B2), (B2, B3) in the formula (2) respectively. Under the normal condition of remote connection, the dispatching centralized system program acquires dynamic data from the database and transmits the dynamic data to the application program cache. The dynamic data is then further stored in a lightweight memory as backup data in case of a remote connection interruption, which process corresponds to (D3, D1), (D1, D2) in equation (2).
3. The data transmission stream of scene 3 is synchronized.
When the remote connection is interrupted, the connection between the dispatching centralized system program and the database is disconnected, and the data transmission flow when the dispatching centralized system program calls the data updating method to execute the data writing operation is shown in a formula (3). In the formula (3), (1) and (5), a synchronization scenario 3 is represented, in which only dynamic data is used for scheduling the data transmission performed by the centralized system program.
(1)(5){(D1,D2)}(3)
Because the connection with the database cannot be established, the dynamic data cannot be directly updated into the database, the dispatching centralized system program transfers the dynamic data from the application program cache to the light memory for storage, the dynamic data is retransmitted and stored in the database after the remote connection is recovered, and the process corresponds to (D1 and D2) in the formula (3).
4. The data transmission stream of scene 4 is synchronized.
When the remote connection is normal, the connection between the dispatching centralized system program and the database is available, and the data transmission flow when the dispatching centralized system program calls the data updating method to execute the data writing operation is shown in the formula (4). In the formula (4), (2) and (5), the synchronization scenario 4 is represented, in which only dynamic data is used to schedule the data transmission by the centralized system program.
(2)(5){(D1,D3),(D1,D2)}(4)
Under the normal condition of remote connection, the dispatching centralized system program obtains dynamic data from the application program cache and transmits the dynamic data to the database. The dynamic data is then further stored in a lightweight memory as backup data in case of a remote connection interruption, which process corresponds to (D1, D3), (D1, D2) in equation (4).
5. The data transmission stream of scene 5 is synchronized.
When the remote connection is re-established and normal is restored, the dispatching centralized system program automatically triggers a data disaster recovery method to retransmit and store the data which is not successfully written into the database before because of connection interruption. The flow of data transfer when the dispatch collection system program writes non-repository data to the database is shown in equation (5). In the formula (5), (3) and (5) represent a synchronization scenario 5 in which only dynamic data is used for scheduling the data transmission by the centralized system program.
(3)(5){(D2,D1),(D1,D3)}(5)
When the remote connection is restored, the dispatch centralized system program retrieves the dynamic data stored during the connection interruption from the lightweight memory and transfers it to the application cache. The dynamic data is then reloaded and transferred back to the database for persistent storage, which corresponds to (D2, D1), (D1, D3) in equation (5).
6. The data transmission stream of scene 6 is synchronized.
When the remote connection is interrupted, the connection between the dispatching centralized system program and the database is disconnected, and the data transmission flow when the dispatching centralized system program calls the data updating method to execute the data reading operation is shown in a formula (6). In the formula (6), (1) and (6) represent a synchronization scenario 6 in which the sequence of the execution of data transmission by the system program in the dispatch collection is external data and dynamic data.
(1)(6){(B3,B2),(D2,D1)}(6)
In the case of remote connection disconnection, the dispatch centralized system program acquires the external data and dynamic data stored before from the light memory and transmits them to the application program cache, ensuring that the program can still read the dispatch centralized data normally in the case of remote connection disconnection, which corresponds to (B3, B2), (D2, D1) in equation (6).
7. The data transmission stream of scene 7 is synchronized.
When the remote connection is normal, the connection between the dispatching centralized system program and the database is available, and the data transmission flow when the dispatching centralized system program calls the data updating method to execute the data reading operation is shown in the formula (7). In the formula (7), (2) and (6) represent a synchronization scenario 7 in which the sequence of the execution of data transmission by the system program in the dispatch collection is external data and dynamic data.
(2)(6){(B1,B2),(B2,B3),(D3,D1),(D1,D2)}(7)
Under the normal condition of remote connection, the dispatching centralized system program acquires external data from the database and transmits the external data to the application program cache. These data are then stored in a lightweight memory as backup data at the time of remote connection interruption, which process corresponds to (B1, B2), (B2, B3) in equation (7). The dispatch centralized system program then retrieves the dynamic data from the database and transmits it to the application cache, which is then stored in lightweight memory as backup data at the time of remote connection interruption, which corresponds to (D3, D1), (D1, D2) in equation (7).
8. The data transmission stream of scene 8 is synchronized.
When the remote connection is re-established and normal is restored, the dispatching centralized system program automatically triggers a data disaster recovery method to retransmit and read the data which is not successfully updated before due to connection interruption. The flow of data transmission when the dispatch collection system program reads external data to the application cache is as shown in formula (8). In the formula (8), (3) and (6) represent a synchronization scenario 8 in which only external data is used for scheduling the centralized system program to perform data transmission.
(3)(6){(B1,B2),(B2,B3)}(8)
When the remote connection is restored, the dispatching centralized system program acquires the external data updated during the connection interruption from the database and transmits the external data to the application program cache so as to be timely processed by the application program. The external data is then rearranged and transferred to a lightweight memory for backup. This procedure corresponds to (B1, B2), (B2, B3) in formula (8).
3. An example is illustrated.
In order to further describe the above scheme of the present invention, taking a transmission process of scheduling command data (which is a specific scheduling centralized data) in a scheduling centralized system program as an example, the working mode of the scheduling centralized data updating and disaster recovery method can be shown as 8 specific application cases shown in table 4.
TABLE 4 application case of data update and disaster recovery method
According to the dispatching command business requirement, the dispatching centralized system program loads a text template or a construction command to a human-computer interface terminal for display, the user complements the dispatching command content at the blank of the text template, and the command text is stored after editing is completed. In the transmission process of the dispatching command data, the text template belongs to static data, the construction command belongs to external data, the attributes such as field names, data types, constraints and the like of the text template table and the construction command table in the database belong to table structure data, and the command text belongs to dynamic data.
In the application program cache, the text template, the command body and the construction command are respectively stored in different data structures. In the database and the light memory, the text template, the command text and the construction command are respectively stored in a text template table, a command text table and a construction command table, and the table structures of the data tables in the database and the light memory are consistent.
1. The scheduling command data is loaded offline.
When the shift-over operation is carried out or the error-reporting and the restarting is carried out under the condition of remote connection disconnection, the dispatching centralized system program calls a data updating method to execute the offline loading dispatching command data operation according to the data transmission flow direction in the synchronous scene 1. The scheduling command data loaded offline comprise a text template table, a command text table and a construction command table, and the data transmitted do not contain table structure data because the scheduling command data can not be connected to a database under the condition of remote connection and disconnection. The scheduling command data is loaded according to the sequence of the formula (1), and the specific steps are as follows:
(1.1) the dispatch centralized system program obtains the text template table from the lightweight memory and then transmits it to the application program cache. The system program in the dispatching set calls a text template table in the application program cache, and a text template is called at the man-machine interface.
(1.2) The dispatch centralized system program obtains the construction command list from the light memory and then transmits the construction command list to the application program cache. And the system program in the dispatching set calls a construction command table in the application program cache, and the construction commands of other data sources are displayed on the human-computer interface.
(1.3) The dispatch centralized system program obtains the command text table from the lightweight memory and then transfers it to the application cache. The system program in the dispatching set calls a command text table in the application program cache, and calls command text of the current shift and the historical shift in the human-computer interface.
2. The scheduling command data is loaded online.
When the remote connection is normally performed with shift-over operation or error-report-out restarting, the dispatching centralized system program calls a data updating method to execute the operation of loading dispatching command data on line according to the data transmission flow direction in the synchronous scene 2. The scheduling command data loaded on line comprises table structure data of a text template table, table structure data of a construction command table, a text template table, a command text table and a construction command table. The scheduling command data is loaded according to the sequence of the formula (2), and the specific steps are as follows:
and (2.1) the dispatching centralized system program acquires the table structure data of the text template table and the table structure data of the construction command table from the database and transmits the data to the application program cache. And (3) updating the table structures of the text template table and the construction command table in the light memory by the dispatching centralized system program through loading the table structure data in the application program cache, so that the table structures are consistent with the text template table and the construction command table in the database.
(2.2) The dispatch centralized system program obtains the text template table from the database and transmits it to the application cache. The text template table data is further transferred to a lightweight memory as backup data to enable the dispatch centralized system program to invoke the text template in the event of a remote connection interruption.
(2.3) The dispatch centralized system program obtains the construction command table from the database and transmits it to the application program cache. The construction order table data is further transmitted to the light memory as backup data, so that the dispatching centralized system program can display the construction orders of other data sources under the condition of remote connection interruption.
(2.4) The dispatch collection system program obtains the command text table from the database and transfers it to the application cache. The command text table is further transferred to the lightweight memory as backup data to enable the dispatch centralized system program to invoke the command text of the current shift and the historical shift in the event of a remote connection interruption.
3. The command body is stored offline.
When the command text is cached through the human-computer interface under the condition of remote connection disconnection, the dispatching centralized system program calls a data updating method to execute the operation of offline storage of the command text according to the data transmission flow direction in the synchronous scene 3. The offline stored command text is loaded into a command text table of the light memory, and the command text is loaded according to the sequence of the formula (3), and the specific steps are as follows:
After the dispatching centralized system program confirms and stores the command text, the dynamic data cannot be directly updated into the database because connection cannot be established with the database, the command text is transmitted from the application program cache into a command text table of the light memory as backup data, and the command text of the current shift and the historical shift is retransmitted and stored into the database after the remote connection is recovered.
4. The command body is stored online.
When the remote connection is in normal condition and the command text is cached through the human-computer interface, the dispatching centralized system program calls a data updating method to execute the operation of storing the command text on line according to the data transmission flow direction in the synchronous scene 4. The command text stored on line is respectively loaded into a database and a command text table of a light memory, and the command text is loaded according to the sequence of a formula (4), and the specific steps are as follows:
and (4.1) after the system program in the dispatching set confirms and stores the command text, the command text is transmitted from the application program cache to a command text table of the database, and the command text of the current shift or the historical shift is subjected to persistence storage.
And (4.2) after the dispatching centralized system program confirms and stores the command text, the command text is transmitted from the application program cache to a command text table of the light memory to serve as backup data, so that the dispatching centralized system program can call the command text of the current shift and the historical shift under the condition of remote connection interruption.
5. And restoring the on-line storage command text.
After the remote connection is recovered to be normal, the dispatching centralized system program can automatically trigger a data disaster recovery method to retransmit and store the command text which is not successfully written into the database due to connection interruption. And maintaining the data consistency of the command text in a database, an application program cache and a light memory. And the dispatching centralized system program calls a data disaster recovery method to execute the operation of storing the command text after restoring on line according to the data transmission flow direction in the synchronous scene 5. After the on-line state is restored, the command text is loaded into a database command text table, and the command text is loaded according to the sequence of a formula (5), and the specific steps are as follows:
(5.1) after the dispatch-centralized system program resumes with the remote connection, the dispatch-centralized system program obtains the command text stored during the connection interruption from the lightweight memory.
And (5.2) the dispatching centralized system program reloads the command text in the application program cache and transmits the reload to a command text table of the database, and the command text of the current shift or the historical shift is stored in a lasting mode.
6. The scheduling command data is read offline.
And when refreshing the construction command and the command text displayed on the man-machine interface under the condition of remote connection and disconnection, the dispatching centralized system program calls a data updating method to execute the operation of offline reading dispatching command data according to the data transmission flow in the synchronous scene 6. The offline read scheduling command data comprises a command text table and a construction command table. The command text table and the construction command table are loaded into the application program cache from the light memory, and the command text is loaded according to the sequence of the formula (6), and the specific steps are as follows:
and (6.1) after the program of the dispatching centralized system confirms the read construction command, the construction command is transmitted to an application program cache from the light memory, so that the program can display the construction commands of other data sources under the condition of remote connection disconnection.
And (6.2) after the dispatching centralized system program confirms the read command text, the command text is transmitted to an application program cache from the light memory, so that the program can normally read the command text of the current shift and the historical shift under the condition of remote connection disconnection.
7. The scheduling command data is read online.
When the construction command and the command text displayed on the man-machine interface are refreshed under the normal condition of remote connection, the dispatching centralized system program calls a data updating method to execute the operation of reading the dispatching command data on line according to the data transmission flow direction in the synchronous scene 7. The scheduling command data read on line comprises a command text table and a construction command table. After the command text table and the construction command table are loaded from the database to the application program cache, the application program cache is loaded into the light memory, and the command text is loaded according to the sequence of the formula (7), and the specific steps are as follows:
And (7.1) after the system program in the dispatching set confirms the read construction command, acquiring the construction command from the database and transmitting the construction command to the application program cache. These data are then stored in a lightweight memory as backup data in the event of a remote connection interruption, enabling the dispatch centralized system program to display construction commands for other data sources in the event of a remote connection interruption.
And (7.2) after the dispatching centralized system program confirms the read command text, acquiring the command text from the database and transmitting the command text to the application program cache. These data are then stored in the lightweight memory as backup data in the event of a remote connection interruption, enabling the dispatch centralized system program to call the command text of the current shift and the historical shift in the event of a remote connection interruption.
8. And reading the construction command after the on-line recovery.
After the remote connection is recovered to be normal, the scheduling command system program can automatically trigger a data disaster recovery method to retransmit and read the data which is not successfully updated before due to the connection interruption. And maintaining the data consistency of the construction command in a database, an application program cache and a light memory. And the dispatching centralized system program calls a data disaster recovery method to execute the operation of reading the construction command after the on-line recovery according to the data transmission flow direction in the synchronous scene 8. After the on-line recovery, the construction command is loaded into the application program cache by the database, and the construction command is loaded according to the sequence of the formula (8), and the specific steps are as follows:
(8.1) after the dispatch centralized system program resumes with the remote connection, the dispatch centralized system program obtains the construction command updated during the connection interruption from the database. From the database into the application cache.
And (8.2) reloading the construction commands in the application program cache by the dispatching concentrated system program and transmitting the reloaded construction commands to the light memory for backup, so that the dispatching concentrated system program can display the construction commands of other data sources under the condition of remote connection interruption.
From the description of the above embodiments, it will be apparent to those skilled in the art that the above embodiments may be implemented in software, or may be implemented by means of software plus a necessary general hardware platform. With such understanding, the technical solutions of the foregoing embodiments may be embodied in a software product, where the software product may be stored in a nonvolatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.), and include several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present invention.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions easily contemplated by those skilled in the art within the scope of the present invention should be included in the scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.