Summary of the invention
The problem that the present invention solves is, provide a kind of to recording the method controlled of service program recording, a kind of management Video Record Processor and a kind of performance recording system, the management Video Record Processor is controlled Video Record Processor at times, avoided many management Video Record Processor access conflict problem of operating database simultaneously.
The method that the Video Record Processor program recording is controlled concrete, that the embodiment of the invention provides comprises:
Whether many each management Video Record Processor of managing in the Video Record Processor all detect current is the working time of self controlling the Video Record Processor program recording;
By detecting to the management Video Record Processor that is is in state of activation and controls Video Record Processor program is recorded, other management Video Record Processor in described many management Video Record Processor then enter dormant state;
Wherein, described management Video Record Processor is used to control the Video Record Processor program recording.
Accordingly, a kind of management Video Record Processor provided by the invention comprises:
Detection module, whether be used to detect current is the working time of this management Video Record Processor control Video Record Processor program recording;
Control module links to each other with described detection module, is used for detecting when being when described detection module, makes this management Video Record Processor maintenance state of activation, and controls Video Record Processor by this management Video Record Processor program is recorded; And detect for not the time when described detection module, make this management Video Record Processor enter dormant state.
Accordingly, the performance recording system that the embodiment of the invention provides comprises many Video Record Processor that are used for program recording, it is characterized in that, also comprise many foregoing management Video Record Processor, described management Video Record Processor links to each other with described many Video Record Processor by router.
Implement the embodiment of the invention, have following beneficial effect:
Comprise many management Video Record Processor in the performance recording system of the embodiment of the invention, whether each the management Video Record Processor in described many management Video Record Processor all detects current is the working time of self controlling the Video Record Processor program recording; If detect to being, then program to be recorded by detecting to the management Video Record Processor that is is in state of activation and controls Video Record Processor, other management Video Record Processor in described many management Video Record Processor then enter dormant state.By such method, to there be different management Video Record Processor to control the Video Record Processor program recording in the different time, the management Video Record Processor is controlled Video Record Processor at times, also avoided many management Video Record Processor access conflict problem of operating database simultaneously.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described.
Fig. 1 is the configuration diagram of an embodiment of performance recording of the present invention system, as shown in Figure 1, performance recording of the present invention system can comprise at least one Video Record Processor (Video Record Processor shown in Fig. 1 10, Video Record Processor 11 and Video Record Processor 12), many management Video Record Processor (management Video Record Processor 20 shown in Fig. 1 and management Video Record Processor 21), be connected the router three 0 between described many management Video Record Processor and the Video Record Processor and be connected described many human-computer interactive control platforms of managing on the Video Record Processor 40.Wherein:
Described many Video Record Processor (comprising Video Record Processor 11 and Video Record Processor 12) are used for program recording.Be used to record in progress program such as being used at time shifted TV business.
Described many management Video Record Processor, be used to control described Video Record Processor program recording, concrete, whether each in described many management Video Record Processor all is used to detect current is the working time of this management Video Record Processor control Video Record Processor program recording; And when described detection when being, make this management Video Record Processor keep state of activation, and control Video Record Processor by this management Video Record Processor program is recorded; And detect for not the time when described detection module, make this management Video Record Processor enter dormant state.
Described man-machine interactive platform 40 is used for for the user described management Video Record Processor being carried out interface operation, and the data of described management Video Record Processor is exported with the interface form.In the specific implementation, man-machine interactive platform 40 is optional module.
In the specific implementation, the structure of an embodiment of management Video Record Processor of the present invention is formed as shown in Figure 2 (being that example is launched explanation with management Video Record Processor 20 mainly among Fig. 2), and it comprises detection module 201, control module 202 and configuration module 203, wherein:
Described configuration module 203, be used for writing down total platform number of many management Video Record Processor of the system that includes many management Video Record Processor, and the numbering of respectively managing Video Record Processor, each manages the serial number that is numbered arabic numeral of Video Record Processor, and each manages the arabic numeral that are numbered of Video Record Processor.Numbering such as the management Video Record Processor 20 among Fig. 1 can be 1, and the numbering of management Video Record Processor 21 can be 2.In the specific implementation, configuration module 203 is optional module, and management Video Record Processor 20 can obtain configuration information needed in the configuration module 203 from other management Video Record Processor of performance recording system.
Whether described detection module 201 is used to detect current is the working time of management Video Record Processor 20 control Video Record Processor program recordings; Concrete still with reference to figure 2, detection module 201 can further total duration calculation module 2011, first computing module 2012, second computing module 2013, judge module 2014, and is concrete:
Described total duration calculation 2011 is used to calculate described many total durations of managing the Video Record Processor circulation primary, and described total duration calculation mode is as follows: total platform of total duration=management Video Record Processor is counted the work duration of every management of * Video Record Processor.Such as, suppose to have disposed altogether in the performance recording system 4 management Video Record Processor, the work duration of every management Video Record Processor is 10 minutes (600 seconds), and total duration of 4 management Video Record Processor circulation primary is second for the 4*10*60=2400s(s representation unit so).Total duration calculation module 2011 be optional module in the specific implementation, and management Video Record Processor 20 can be managed from other of performance recording system obtain long data when total Video Record Processor.
First computing module 2012, be used to calculate the current Greenwich Mean Time (Greenwich Mean Time, GMT) total durations of many management Video Record Processor circulation primary in the system that includes many management Video Record Processor are got result after surplus, and be the very first time described result queue.Such as, will be scaled the current time and be 1303541311s after the GMT time, it is got after surplus 2400s be: 1303541311s%2400s=511s, then 511s promptly is marked as the very first time.
Second computing module 2013, be used to calculate the working time of this management Video Record Processor, the described working time is from the represented moment of result of calculation of the work duration of every management of work duration+0.5* Video Record Processor of every management of the numbering-1 of Video Record Processor (this management) * Video Record Processor, lasts till that represented moment of result of calculation of work duration of every management of numbering * Video Record Processor of this management Video Record Processor ends.Such as, that manages Video Record Processor 20 is numbered 1, and then its working time is as follows: during from (1-1) * 10*60+0.5*10*60=300s, last till that 1*10*60=600s ends, therefore, its concrete working time is 300s-600s.That manages Video Record Processor 21 is numbered 2, and then its working time is as follows: during from (2-1) * 10*60+0.5*10*60=900s, last till that 2*10*60=1200s ends, therefore, its concrete working time is 900s-1200s.
Judge module 2014 is used to judge whether the described very first time be positioned at the working time of this management Video Record Processor, if the judgment is Yes, shows that current is the working time of this management Video Record Processor control Video Record Processor program recording; If the judgment is No, show that then current is not the working time of this management Video Record Processor control Video Record Processor program recording.The working time of management Video Record Processor 20 is 300s-600s in above-mentioned example, and 511s just drops in this time range, shows that therefore current is the working time of management Video Record Processor 20 control Video Record Processor program recordings.At this moment, management Video Record Processor 20 will keep state of activation, and control Video Record Processor program is recorded, and other management Video Record Processor in the performance recording system enter dormant state such as 21 of Video Record Processor of management.
Accordingly, management Video Record Processor 21 also can have the structure identical with managing Video Record Processor 20, but because its numbering is different with management Video Record Processor 20, therefore its can be activated and control Video Record Processor program is recorded in another time period, such as, according to above-mentioned formula, the working time of management Video Record Processor 21 is the time period of 900s-1200s.If it is As time goes on follow-up, the very first time that calculates falls into the interval of 900s-1200s, then managing Video Record Processor 21 will activate, management Video Record Processor 20 will enter dormancy, thus, management Video Record Processor 20 and management Video Record Processor 21 are finished control to Video Record Processor 10, Video Record Processor 11 etc. in the mode of timesharing.Specifically can distribute synoptic diagram with reference to the working time of figure 5.
Fig. 3 is an embodiment schematic flow sheet of the method that the Video Record Processor program recording is controlled of the present invention.As shown in Figure 3, the method for the embodiment of the invention comprises:
Step S301, total platform number of management Video Record Processor in the register system on each management Video Record Processor of many management Video Record Processor, and the numbering of respectively managing Video Record Processor, each numbering of managing Video Record Processor can be arabic numeral.Describe such as performance recording system in conjunction with Fig. 1, in Fig. 1, always have two management Video Record Processor, be respectively management Video Record Processor 20 and management Video Record Processor 21, therefore, on management Video Record Processor 20 and management Video Record Processor 21, following configuration information can be arranged, total platform number is 2 in the system, and the numbering of management Video Record Processor 20 can be 1, and the numbering of management Video Record Processor 21 can be 2.
In the specific implementation, step S301 can be a foresee steps.
Step S310, whether many each management Video Record Processor of managing in the Video Record Processor all detect current is the working time of self controlling the Video Record Processor program recording.Further with reference to figure 4, step S310 specifically can comprise:
Step S3101, by arbitrary total duration that calculates described many management Video Record Processor circulation primary in described many management Video Record Processor, described total duration calculation mode is as follows:
Total platform of total duration=management Video Record Processor is counted the work duration of every management of * Video Record Processor.Such as, suppose to have disposed altogether in the performance recording system 4 management Video Record Processor, the work duration of every management Video Record Processor is 10 minutes (600 seconds), and total duration of 4 management Video Record Processor circulation primary is second for the 4*10*60=2400s(s representation unit so).
Step S3102 calculates the current Greenwich Mean Time described total duration is got result after surplus, and is the very first time with described result queue.Such as, will be scaled the current time and be 1303541311s after the GMT time, it is got after surplus 2400s be: 1303541311s%2400s=511s, then 511s promptly is marked as the very first time.
Step S3103, the working time of calculating each management Video Record Processor in described many management Video Record Processor, described working time account form is as follows:
The working time of a certain management Video Record Processor is from the represented moment of result of calculation of the work duration of every management of work duration+0.5* Video Record Processor of every management of the numbering-1 of Video Record Processor (this management) * Video Record Processor, lasts till that represented moment of result of calculation of work duration of every management of numbering * Video Record Processor of this management Video Record Processor ends.Such as, in the system of Fig. 1, that manages Video Record Processor 20 is numbered 1, and then its working time is as follows: during from (1-1) * 10*60+0.5*10*60=300s, last till that 1*10*60=600s ends, therefore, its concrete working time is 300s-600s.That manages Video Record Processor 21 is numbered 2, and then its working time is as follows: during from (2-1) * 10*60+0.5*10*60=900s, last till that 2*10*60=1200s ends, therefore, its concrete working time is 900s-1200s.
Step S3104, each management Video Record Processor judges whether the described very first time is positioned at the working time of this management Video Record Processor, if the judgment is Yes, showing current is the working time of this management Video Record Processor control Video Record Processor program recording, the state of activation that enters step S311; If the judgment is No, then showing current is not the working time of this management Video Record Processor control Video Record Processor program recording, the dormant state that enters step S311.
Step S311 records program by detecting to the management Video Record Processor that is is in state of activation and controls Video Record Processor, and other management Video Record Processor in described many management Video Record Processor then enter dormant state.
Such as, in system shown in Figure 1, the working time of management Video Record Processor 20 is 300s-600s, and 511s just drops in this time range, shows that therefore current is the working time of management Video Record Processor 20 control Video Record Processor program recordings.At this moment, management Video Record Processor 20 will keep state of activation, and control Video Record Processor program is recorded, and other management Video Record Processor in the performance recording system enter dormant state such as 21 of Video Record Processor of management.
Comprise many management Video Record Processor in the performance recording system of the embodiment of the invention, whether each the management Video Record Processor in described many management Video Record Processor all detects current is the working time of self controlling the Video Record Processor program recording; If detect to being, then program to be recorded by detecting to the management Video Record Processor that is is in state of activation and controls Video Record Processor, other management Video Record Processor in described many management Video Record Processor then enter dormant state.By such method, to there be different management Video Record Processor to control the Video Record Processor program recording in the different time, the management Video Record Processor is controlled Video Record Processor at times, avoided many management Video Record Processor access conflict problem of operating database simultaneously.
Above disclosed is preferred embodiment of the present invention only, can not limit the present invention's interest field certainly with this, and therefore the equivalent variations of doing according to claim of the present invention still belongs to the scope that the present invention is contained.