CN102004746A - Data transfer control method and device - Google Patents

Data transfer control method and device Download PDF

Info

Publication number
CN102004746A
CN102004746A CN 200910195026 CN200910195026A CN102004746A CN 102004746 A CN102004746 A CN 102004746A CN 200910195026 CN200910195026 CN 200910195026 CN 200910195026 A CN200910195026 A CN 200910195026A CN 102004746 A CN102004746 A CN 102004746A
Authority
CN
China
Prior art keywords
time
transfer
concluding
module
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200910195026
Other languages
Chinese (zh)
Other versions
CN102004746B (en
Inventor
陈林
白玫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN 200910195026 priority Critical patent/CN102004746B/en
Publication of CN102004746A publication Critical patent/CN102004746A/en
Application granted granted Critical
Publication of CN102004746B publication Critical patent/CN102004746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a data transfer control method and a data transfer control device. In the invention, the data transfer control method comprises the following steps of: reading configuration information; selecting a transfer mode according to the configuration information, and determining transfer starting time and transfer ending time by using the current time and a time slice of the system and the selected transfer mode; reading data records in turn according to the transfer starting time and the transfer ending time and accomplishing a transfer task record table; sending the transfer task record table to a transfer task executing module to accomplish a data transfer task; and re-determining the transfer starting time and the transfer ending time according to the current transfer mode and the time slice and performing subsequent treatment.

Description

Data handover control method and device
Technical field
The present invention relates to data transfering method and device, more specifically, relate to data handover control method and device.
Background technology
At present, along with becoming increasingly abundant of the class of business of the increasingly extensive and different field of network application, what keep that the consistance of the data in a plurality of servers and real-time become is more and more important.But, in the process that shifts lot of data, can run into a lot of technical matterss, for example, when data volume to be transferred is big, the transfer of finishing total data needs long period of time, during this period, if the user has carried out retouching operation to a certain record of source database, and this record has shifted and has finished, and then corresponding record will still keep the preoperative state of user in the target database.Therefore, in existing data transfering method, require all generally in the data transfer process, to forbid that the user operates data.Yet the existing batch data transfer method that carries out with regular halt mode can not satisfy real-time property and conforming requirement, effective control data transfer velocity, and can make that service is temporary transient to be interrupted.
Summary of the invention
In order to solve the existing defective of above-mentioned prior art scheme, the present invention proposes a kind of can the control data transfer velocity, and can keep real-time and the conforming data handover control method and the device of data.
The objective of the invention is to be achieved through the following technical solutions:
A kind of data handover control method, described data handover control method comprises the steps:
(A1) read configuration information;
(A2) select transfer mode according to described configuration information, and using system current time and timeslice and definite transfer start time of selected transfer mode and transfer concluding time;
(A3), and finish and shift the task record table based on described transfer start time and transfer concluding time reads data log successively;
(A4) described transfer task record table is sent to the transfer task execution module, shift task to finish data;
(A5) redefine the transfer start time and shift the concluding time according to current transfer mode and described timeslice, and return step (A3).
In the disclosed in the above scheme, preferably, described transfer mode comprises real-time mode and non real-time pattern.
In the disclosed in the above scheme, preferably, described data recording has the time correlation field, is used to write down this data recording and is operated current system time when finishing.
In the disclosed in the above scheme, alternatively, under described real-time mode, step (A2) further comprises the steps: to obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added timeslice as shifting the concluding time, and wherein, described special time is n second, and 0<n<60.
In the disclosed in the above scheme, alternatively, under described real-time mode, step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than the described transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.
In the disclosed in the above scheme, alternatively, under described real-time mode.Step (A5) further comprises the steps: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.
In the disclosed in the above scheme, alternatively, under described non real-time pattern, step (A2) further comprises the steps: to obtain current system time; According to configuration information transfer start time and transfer concluding time are set.
In the disclosed in the above scheme, alternatively, under described non real-time pattern, step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than the described transfer concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.
In the disclosed in the above scheme, alternatively, under described non real-time pattern, step (A5) further comprise the steps: with the described transfer concluding time as the new transfer start time, and the described transfer concluding time added the above timeslice as the new transfer concluding time; The reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and judge behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).
Purpose of the present invention also can be achieved through the following technical solutions:
A kind of data control-transferring device, described data control-transferring device comprise initialization module, mode selection module, main control module, data recording read module, shift task scheduling modules and shift the beginning and ending time is provided with module, wherein,
Described initialization module is connected with described main control module, is used to read configuration information, and described configuration information is sent to described main control module;
Described main control module respectively with initialization module, mode selection module, the data recording read module, the transfer task scheduling modules is provided with module with the transfer beginning and ending time and is connected, be used for calling the selection that described mode selection module carries out transfer mode according to the described configuration information that receives, and the transfer mode of selecting is sent to the described transfer beginning and ending time module is set, after the data recording that receives described data recording read module transmission, according to the transfer start time that module determines being set by described transfer the beginning and ending time and shifting the concluding time and finish and shift the task record table, and described transfer task record table is sent to described transfer task scheduling modules;
Described mode selection module is connected with described main control module, is used to accept calling of described main control module and selects transfer mode, and the transfer mode of selecting is sent to described main control module;
Described data recording read module is connected with described main control module, is used for reads data log, and the data recording that reads is sent to described main control module;
Described transfer task scheduling modules is connected with described main control module, and the transfer task record table that is used for receiving sends to the transfer task execution device.Shift task to finish data;
The described transfer beginning and ending time is provided with module and is connected with described main control module, is used for according to described selected transfer mode and timeslice and definite the transfer start time and transfer concluding time of current time in system.
In the disclosed in the above scheme, preferably, described transfer mode comprises real-time mode and non real-time pattern.
In the disclosed in the above scheme, preferably, described data recording has the time correlation field, is used to write down this data recording and is operated current system time when finishing.
In the disclosed in the above scheme, alternatively, under described real-time mode, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added timeslice as shifting the concluding time, and wherein, described special time is n second, and 0<n<60.
In the disclosed in the above scheme, alternatively, under described real-time mode, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time the non-first time: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.
In the disclosed in the above scheme, alternatively, under described real-time mode, described main control module comprises the following course of work: whether the operation deadline of judging every data recording successively is less than the described transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.
In the disclosed in the above scheme, alternatively, under described non real-time pattern, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; According to configuration information transfer start time and transfer concluding time are set.
In the disclosed in the above scheme, alternatively, under described non real-time pattern, the described transfer beginning and ending time is provided with module and comprises the following course of work when determine shifting the start time and shifting the concluding time the non-first time: the last time is shifted the concluding time as the new transfer start time, and the last time is shifted the concluding time add the above timeslice as the new transfer concluding time; The reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and judge behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).
In the disclosed in the above scheme, alternatively, under described non real-time pattern, described main control module comprises the following course of work: whether the operation deadline of judging every data recording successively is less than the described transfer concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.
Data handover control method disclosed in this invention and device have following advantage: because data handover control method disclosed in this invention and device have the data shift control mechanism based on timeslice, thereby can guarantee real-time and the consistance that data shift, and can be according to user's request control data transfer velocity, can adjust the size of timeslice arbitrarily according to the size of data volume, thereby control the speed of data transfers and the pressure that system resource is taken effectively.
Description of drawings
In conjunction with the accompanying drawings, technical characterictic of the present invention and advantage will be understood better by those skilled in the art, wherein:
Fig. 1 is the process flow diagram under the data handover control method real-time mode according to an embodiment of the invention;
Fig. 2 is the process flow diagram under the data handover control method non real-time pattern according to an embodiment of the invention;
Fig. 3 is the structural drawing of data control-transferring device according to an embodiment of the invention.
Embodiment
Fig. 1 is the process flow diagram under the data handover control method real-time mode according to an embodiment of the invention.Fig. 2 is the process flow diagram under the data handover control method non real-time pattern according to an embodiment of the invention.Shown in Fig. 1-2, data handover control method disclosed in this invention comprises the steps: that (A1) reads configuration information; (A2) select transfer mode according to described configuration information, and using system current time and timeslice and definite transfer start time of selected transfer mode and transfer concluding time; (A3), and finish and shift the task record table based on described transfer start time and transfer concluding time reads data log successively; (A4) described transfer task record table is sent to the transfer task execution module, finish data by described transfer task execution module and shift task; (A5) redefine the transfer start time and shift the concluding time according to current transfer mode and described timeslice, and return step (A3).Wherein, described transfer mode comprises real-time mode and non real-time pattern.Use described real-time mode, data handover control method disclosed in this invention can be transferred to target database with the data of harsh one-tenth from source database apace, and the may command transfer velocity.Use described non real-time pattern, data handover control method disclosed in this invention can be transferred to target database from source database with data integrity ground, and the may command transfer velocity.In data handover control method disclosed in this invention, the implication of described timeslice is as follows: is the some segments that are divided in logic according to configuration information with the time period people, and the described a bit of time is a timeslice.The configuration information that comprises described timeslice in the described configuration information.
In data handover control method disclosed in this invention, the data recording in the source database has the time correlation field, is used to write down this data recording and is operated current system time when finishing.
As shown in Figure 1, under real-time mode, the step of data handover control method disclosed in this invention (A2) further comprises the steps: to obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added that timeslice is as shifting the concluding time.Step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than the transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.Step (A5) further comprises the steps: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.Wherein, described special time for example, can be n second (0<n<60) by user's dynamic-configuration.As shown in Figure 1, the real-time transfer mode of data handover control method disclosed in this invention has following advantage: under the very big situation of data volume, can be with the target database of transferring to of the data in real time of n second before the current system time, be applicable to the exigent transfer system of real-time, for example monitoring in real time.
As shown in Figure 2, under the non real-time pattern, the step of data handover control method disclosed in this invention (A2) further comprises the steps: to obtain current system time; According to configuration information transfer start time and transfer concluding time are set.Step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than shifting the concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.Step (A5) further comprise the steps: with the described transfer concluding time as the new transfer start time, and the described transfer concluding time added the above timeslice as the new transfer concluding time; The reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and judge behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).As shown in Figure 2, the non real-time transfer mode of data handover control method disclosed in this invention has following advantage: can be by the difference configuration and then the control data transfer velocity of timeslice, and after shifting beginning, data recording can not lost, thereby can intactly be transferred to target database.
Fig. 3 is the structural drawing of data control-transferring device according to an embodiment of the invention.As shown in Figure 3, data control-transferring device disclosed in this invention comprises that initialization module 2, mode selection module 3, main control module 5, data recording read module 4, transfer task scheduling modules 6 and transfer beginning and ending time are provided with module 7.Wherein, described initialization module 2 is connected with main control module 5, is used to read configuration information 1, and described configuration information 1 is sent to main control module 5.Described main control module 5 is connected respectively at other each modules, be used for selecting module 3 that the data transfer mode is set and the data transfer mode of selecting sent to shift the beginning and ending time module 7 is set according to configuration information 1 invocation pattern that receives, after the data recording that receives data recordin module 4 transmissions, according to the transfer start times that module 7 determines are set and shift the concluding times and finish and shift the task record table, and described transfer task record table sent to shift task scheduling modules 6 by shifting the beginning and ending time.Described mode selection module 3 is connected with main control module 5, is used to accept calling of main control module 5 and selects the data transfer mode, and the data transfer mode of selecting is sent to main control module 5.Described data recording read module 4 is connected with main control module 5, is used for reads data log, and the data recording that reads is sent to main control module 5.Described transfer task scheduling modules 6 is connected with main control module 5, and the transfer task record table that is used for receiving sends to the transfer task execution device.Shift task to finish data.The described transfer beginning and ending time is provided with module 7 and is connected with main control module 5, is used for according to described selected data transfer mode and timeslice and definite the transfer start time and transfer concluding time of current time in system.Wherein, described data transfer mode comprises real-time mode and non real-time pattern.In data control-transferring device disclosed in this invention, comprise the configuration information of described timeslice in the described configuration information.
In data control-transferring device disclosed in this invention, the data recording in the source database has the time correlation field, is used to write down this data recording and is operated current system time when finishing.
As shown in Figure 3, under real-time mode, the described transfer beginning and ending time is provided with module 7 and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added that timeslice is as shifting the concluding time.Under real-time mode, the described transfer beginning and ending time is provided with module 7 and comprises the following course of work when determining to shift the start time and shifting the concluding time the non-first time: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.Under real-time mode, described main control module 5 comprises the following course of work: whether the operation deadline of judging every data recording successively is less than the transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.
Under the real-time transfer mode of data control-transferring device disclosed in this invention, described special time for example, can be n second (n<60) by user's dynamic-configuration.As shown in Figure 3, the real-time transfer mode of data control-transferring device disclosed in this invention has following advantage: under the very big situation of data volume, can be with the target database of transferring to of the data in real time of n second before the current system time, be applicable to the exigent transfer system of real-time, for example monitoring in real time.
As shown in Figure 3, under the non real-time pattern, the described transfer beginning and ending time is provided with module 7 and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; According to configuration information transfer start time and transfer concluding time are set.Under the non real-time pattern, the described transfer beginning and ending time is provided with module 7 and comprises the following course of work when determine shifting the start time and shifting the concluding time the non-first time: the last time is shifted the concluding time as the new transfer start time, and the last time is shifted the concluding time add the above timeslice as the new transfer concluding time; The reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and judge behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).Under the non real-time pattern, described main control module 5 comprises the following course of work: whether the operation deadline of judging every data recording successively is less than shifting the concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.As shown in Figure 2, the non-real-time data transfer mode of data control-transferring device disclosed in this invention has following advantage: can be by the difference configuration and then the control data transfer velocity of timeslice, and after shifting beginning, data recording can not lost, thereby can intactly be transferred to target database.
Although the present invention is described by above-mentioned preferred implementation, its way of realization is not limited to above-mentioned embodiment.Should be realized that: under the situation that does not break away from purport of the present invention and scope, those skilled in the art can make different variations and modification to the present invention.

Claims (18)

1. data handover control method, described data handover control method comprises the steps:
(A1) read configuration information;
(A2) select transfer mode according to described configuration information, and using system current time and timeslice and definite transfer start time of selected transfer mode and transfer concluding time;
(A3), and finish and shift the task record table based on described transfer start time and transfer concluding time reads data log successively;
(A4) described transfer task record table is sent to the transfer task execution module, finish data by described transfer task execution module and shift task;
(A5) redefine the transfer start time and shift the concluding time according to current transfer mode and described timeslice, and return step (A3).
2. data handover control method according to claim 1 is characterized in that, described transfer mode comprises real-time mode and non real-time pattern.
3. according to the described data handover control method of any claim among the claim 1-2, it is characterized in that described data recording has the time correlation field, be used to write down this data recording and be operated current system time when finishing.
4. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that under described real-time mode, step (A2) further comprises the steps: to obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added timeslice as shifting the concluding time, and wherein, described special time is n second, and 0<n<60.
5. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that under described real-time mode, step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than the described transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.
6. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that under described real-time mode, step (A5) further comprises the steps: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.
7. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that under described non real-time pattern, step (A2) further comprises the steps: to obtain current system time; According to configuration information transfer start time and transfer concluding time are set.
8. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that under described non real-time pattern, step (A3) comprises the steps: that further reading state is all data recording of " operation is finished "; Whether the operation deadline of judging every data recording successively is less than the described transfer concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.
9. according to the described data handover control method of any claim among the claim 1-3, it is characterized in that, under described non real-time pattern, step (A5) further comprise the steps: with the described transfer concluding time as the new transfer start time, and the described transfer concluding time added the above timeslice as the new transfer concluding time; The reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and judge behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).
10. data control-transferring device, described data control-transferring device comprise initialization module, mode selection module, main control module, data recording read module, shift task scheduling modules and shift the beginning and ending time is provided with module, wherein,
Described initialization module is connected with described main control module, is used to read configuration information, and described configuration information is sent to described main control module;
Described main control module respectively with initialization module, mode selection module, the data recording read module, the transfer task scheduling modules is provided with module with the transfer beginning and ending time and is connected, be used for calling the selection that described mode selection module carries out transfer mode according to the described configuration information that receives, and the transfer mode of selecting is sent to the described transfer beginning and ending time module is set, after the data recording that receives described data recording read module transmission, according to the transfer start time that module determines being set by described transfer the beginning and ending time and shifting the concluding time and finish and shift the task record table, and described transfer task record table is sent to described transfer task scheduling modules;
Described mode selection module is connected with described main control module, is used to accept calling of described main control module and selects transfer mode, and the transfer mode of selecting is sent to described main control module;
Described data recording read module is connected with described main control module, is used for reads data log, and the data recording that reads is sent to described main control module;
Described transfer task scheduling modules is connected with described main control module, and the transfer task record table that is used for receiving sends to the transfer task execution device, finishes data by described transfer task execution device and shifts task;
The described transfer beginning and ending time is provided with module and is connected with described main control module, is used for according to described selected transfer mode and timeslice and definite the transfer start time and transfer concluding time of current time in system.
11. data control-transferring device according to claim 10 is characterized in that, described transfer mode comprises real-time mode and non real-time pattern.
12. according to the described data control-transferring device of any claim among the claim 10-11, it is characterized in that described data recording has the time correlation field, be used to write down this data recording and be operated current system time when finishing.
13. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described real-time mode, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; Current system time is deducted special time as shifting the start time; The described transfer start time is added timeslice as shifting the concluding time, and wherein, described special time is n second, and 0<n<60.
14. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described real-time mode, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time the non-first time: the reading system current time; The described current time in system is deducted described special time as the alternative transfer start time; The described alternative transfer start time is added the above timeslice as the new transfer concluding time; Judge that whether the described alternative transfer start time is greater than the last transfer concluding time, if the described alternative transfer start time is greater than the last transfer concluding time, then with the described alternative transfer start time as the new transfer start time, otherwise, with the last transfer concluding time as the new transfer start time.
15. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described real-time mode, described main control module comprises the following course of work: whether the operation deadline of judging every data recording successively is less than the described transfer concluding time and greater than the described transfer start time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time and greater than the described transfer start time, and upgrade described transfer task record table simultaneously.
16. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described non real-time pattern, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time for the first time: obtain current system time; According to configuration information transfer start time and transfer concluding time are set.
17. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described non real-time pattern, the described transfer beginning and ending time is provided with module and comprises the following course of work when determining to shift the start time and shifting the concluding time the non-first time: the last time is shifted the concluding time as the new transfer start time, and the last time is shifted the concluding time add the above timeslice as the new transfer concluding time, the reading system current time also judges that whether the described current time in system is greater than the described new transfer concluding time; If the described current time in system less than the described new transfer concluding time, is then waited for and repeats to read and deterministic process behind special time, if the described current time in system greater than the described new transfer concluding time, is then returned step (A3).
18. according to the described data control-transferring device of any claim among the claim 10-12, it is characterized in that, under described non real-time pattern, described main control module comprises the following course of work: whether the operation deadline of judging every data recording successively is less than the described transfer concluding time; If the operation deadline of data recording, then the state with described data recording was updated to " to be transferred " less than the described transfer concluding time, and upgrade described transfer task record table simultaneously.
CN 200910195026 2009-09-02 2009-09-02 Data transfer control method and device Active CN102004746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910195026 CN102004746B (en) 2009-09-02 2009-09-02 Data transfer control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910195026 CN102004746B (en) 2009-09-02 2009-09-02 Data transfer control method and device

Publications (2)

Publication Number Publication Date
CN102004746A true CN102004746A (en) 2011-04-06
CN102004746B CN102004746B (en) 2013-10-23

Family

ID=43812116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910195026 Active CN102004746B (en) 2009-09-02 2009-09-02 Data transfer control method and device

Country Status (1)

Country Link
CN (1) CN102004746B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082104A1 (en) * 2019-10-29 2021-05-06 平安科技(深圳)有限公司 Method and apparatus for data migration, computer device, and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021082104A1 (en) * 2019-10-29 2021-05-06 平安科技(深圳)有限公司 Method and apparatus for data migration, computer device, and storage medium

Also Published As

Publication number Publication date
CN102004746B (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN104461521B (en) A kind of application program playback method and system
CN101770433B (en) General driving method and general driving device
CN104461744A (en) Resource allocation method and device
CN101227379B (en) Method and system for implementation of data synchronization
CN105912455A (en) Business execution method and server
CN101005486A (en) Resource access control method and system
CN104252405A (en) Log information output method and device
CN101226502B (en) Automatization test method and system
EP4203548A1 (en) Inter-core communication method and apparatus, electronic assembly, and electronic device
CN106294387A (en) Data migration method and device
CN104572279A (en) Node binding-supporting virtual machine dynamic scheduling method
CN102222036B (en) Automatic testing method and equipment
CN104683486A (en) Method and device for processing synchronous messages in distributed system and distributed system
CN101098359B (en) Time sharing test approach for tester
CN102004746B (en) Data transfer control method and device
CN110990363A (en) Distributed database multithreading collaborative transaction log playback method and system
CN102571311B (en) Master-slave switching communication system and master-slave switching communication method
CN105450679B (en) Carry out the method and system of data cloud storage
CN104426624B (en) A kind of image synchronous display method and device
CN112181806A (en) Embedded software testing device and method based on TFTP protocol
CN112084264A (en) Log data synchronization method and device and server
CN1984120B (en) Method for assuring bill document and primary data consistence during the process of dual system switch
US20040073649A1 (en) Stream data processing apparatus
CN100368979C (en) Device for implementing POS machine parallel interface data receiving and output for printing and method for use thereof
CN102045752B (en) User media face tracking and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant