CN106100779B - Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling - Google Patents

Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling Download PDF

Info

Publication number
CN106100779B
CN106100779B CN201610576608.8A CN201610576608A CN106100779B CN 106100779 B CN106100779 B CN 106100779B CN 201610576608 A CN201610576608 A CN 201610576608A CN 106100779 B CN106100779 B CN 106100779B
Authority
CN
China
Prior art keywords
instruction
control instruction
task
failure
real
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.)
Active
Application number
CN201610576608.8A
Other languages
Chinese (zh)
Other versions
CN106100779A (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.)
Sichuan Jiuzhou Electronic Technology Co Ltd
Original Assignee
Sichuan Jiuzhou Electronic Technology 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 Sichuan Jiuzhou Electronic Technology Co Ltd filed Critical Sichuan Jiuzhou Electronic Technology Co Ltd
Priority to CN201610576608.8A priority Critical patent/CN106100779B/en
Publication of CN106100779A publication Critical patent/CN106100779A/en
Application granted granted Critical
Publication of CN106100779B publication Critical patent/CN106100779B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/02Arrangements for generating broadcast information; Arrangements for generating broadcast-related information with a direct linking to broadcast information or to broadcast space-time; Arrangements for simultaneous generation of broadcast information and broadcast-related information
    • H04H60/06Arrangements for scheduling broadcast services or broadcast-related services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H20/00Arrangements for broadcast or for distribution combined with broadcast
    • H04H20/53Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers
    • H04H20/59Arrangements specially adapted for specific applications, e.g. for traffic information or for mobile receivers for emergency or urgency
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/09Arrangements for device control with a direct linkage to broadcast information or to broadcast space-time; Arrangements for control of broadcast-related services
    • H04H60/11Arrangements for counter-measures when a portion of broadcast information is unavailable
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04HBROADCAST COMMUNICATION
    • H04H60/00Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
    • H04H60/29Arrangements for monitoring broadcast services or broadcast-related services
    • H04H60/31Arrangements for monitoring the use made of the broadcast services

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention relates to fields of communication technology, it provides a kind of based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling regulation method and system, multi-stage platform can not be issued with solving the prior art, the task of type complexity carries out Effective Regulation problem, the system includes automatic regular polling module, Real-Time Scheduling module, command process module and fault processing module, technical solution proposed by the present invention uses automatic regular polling process, Real-Time Scheduling process regulates and controls the timing of multi-stage platform, real-time broadcast task, finally it is uniformly processed by instruction processing pipeline, the formal layout of subtask is used for broadcast (sites) in turn task, the execution of various broadcasting tasks is regulated and controled well, present invention introduces troubleshooting processes simultaneously, when there is Network Abnormal, instruction addition retransmission mechanism can be given, ensure that broadcasting instructions can execute at once in network recovery.

Description

Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling
Technical field
The invention belongs to field of communication technology, in particular to a kind of emergent broadcast based on automatic regular polling and Real-Time Scheduling is appointed Business regulation method and system.
Background technique
Emergent broadcast task is creating when broadcasting emergent broadcast for task, and it is multistage flat to generally comprise province, city, county, township, village etc. The task of platform, task type are divided into real-time task, timed task, and wherein timed task is divided into again: disposable timed task, per diem The timed task of circulation, by the timed task of Zhou Xunhuan, monthly timed task for recycling etc., task type complexity is higher, by Task can not issue to multi-stage platform in the prior art, type complexity carries out Effective Regulation, if abnormal, meeting occurs in network The case where causing instruction not execute normally.
Summary of the invention
[technical problems to be solved]
The object of the present invention is to provide it is a kind of based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling regulate and control method and System, to solve the problems, such as that task that the prior art can not issue multi-stage platform, type complexity carries out Effective Regulation.
[technical solution]
The present invention is achieved by the following technical solutions.
Method is regulated and controled based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling present invention firstly relates to a kind of comprising Automatic regular polling process, Real-Time Scheduling process, instruction processing pipeline and troubleshooting process,
The automatic regular polling process includes:
Emergent broadcast task in timing reading database is called for meeting the broadcasting tasks of condition of starting or stoping Instruction processing pipeline is handled,
The Real-Time Scheduling process includes:
The real-time broadcast instruction that user sends is received, instruction is verified after receiving real-time broadcast instruction, for Legal instruction, call instruction process flow is handled immediately, for illegal instruction, then returns to error code,
Described instruction process flow comprising steps of
B1, the director data for parsing regulation and control instruction generate corresponding control instruction according to director data;
B2, the control instruction that finding step B1 is generated in the control instruction queue to fail and the instruction queue being carrying out It whether there is, if the control instruction has existed, be transferred to step B8, it is on the contrary then the control instruction is added and is carrying out Instruction queue simultaneously executes step B3;
B3, the verification associated task of control instruction, if task associated by control instruction exists and task status is normal, Then follow the steps B4, it is on the contrary then be transferred to step B8;
B4, the type for judging control instruction are held if the type of control instruction is that TS wake up instruction generates service order Row step B5, it is on the contrary then be transferred to step B6;
B5, by control instruction by Platform communication service be sent to TS wake up instruction generate service execution, if execute at Function is then transferred to step B6, which is added to the control instruction queue of failure if executing failure, calls troubleshooting Process;
B6, control instruction is issued into TS transmission service execution by Platform communication service, step is transferred to if running succeeded The control instruction queue of failure is added in the control instruction by rapid B7 if executing failure, calls troubleshooting process;
B7, the state according to the content modification broadcasting tasks of control instruction;
B8, if there is other programs wait control instruction processing result, then obtain the processing result of the control instruction And result queue is written into processing result,
The troubleshooting process comprising steps of
Whether the control instruction of failure is had in the control instruction queue that C1, detection fail, if the control not failed refers to It enables and then enters dormant state, it is on the contrary then be transferred to step C2;
If the associated task of C2, control instruction exists and task status is normal and job end time does not arrive, it is transferred to Step C3, it is on the contrary then remove the control instruction and repaired back to step C1, while if the associated task of control instruction exists Change the state of the task;
C3, the state for the service for executing control instruction is detected, if the service for executing control instruction is not online, Back to step C1, if executing the service online of control instruction, C4 is thened follow the steps;
C4, the control instruction of failure is returned to instruction processing pipeline, call instruction process flow carries out instruction weight It sends out and returns to step C1.
As a preferred embodiment, the automatic regular polling process comprising steps of
Emergent broadcast task in A1, timing reading database, for the broadcasting tasks of circulation, if the same day needs to hold Row, then generate subtask in advance;
A2, the broadcasting tasks needed to be implemented on the day of filtering out unite for broadcasting the time less than the broadcasting tasks of current time It is current time that the time is broadcast in one modification, then to broadcasting tasks according to state of broadcasting, broadcast the time, task priority, task are repaired Changing the time is ranked up;
A3, the broadcasting tasks for meeting condition of starting or stoping, call instruction process flow are handled.
As another preferred embodiment, the emergent broadcast task in the database includes province, city, county, township, village The emergent broadcast task of multi-stage platform.
As another preferred embodiment, the step B8 uses the coincidence counter CountDownLatch of Java The program of wake-up waiting goes the processing result of acquisition instruction.
The invention further relates to a kind of emergent broadcast task regulator control system based on automatic regular polling and Real-Time Scheduling comprising fixed When poller module, Real-Time Scheduling module, command process module and fault processing module,
The automatic regular polling module is configured to:
Emergent broadcast task in timing reading database is called for meeting the broadcasting tasks of condition of starting or stoping Command process module is handled,
The Real-Time Scheduling module is configured to:
The real-time broadcast instruction that user sends is received, instruction is verified after receiving real-time broadcast instruction, for Legal instruction, call instruction processing module is handled immediately, for illegal instruction, then returns to error code,
Described instruction processing module includes:
Control instruction generation unit, is configured to: parsing the director data of regulation and control instruction, generates phase according to director data The control instruction answered;
Searching unit is instructed, is configured to: being looked into the control instruction queue to fail and the instruction queue being carrying out The control instruction for looking for control instruction generation unit to generate whether there is, if the control instruction has existed, processing be called to tie Fruit acquiring unit, it is on the contrary then the instruction queue that is carrying out is added in the control instruction and calls task verification unit;
Task verification unit, is configured to: the verification associated task of control instruction, if appointed associated by control instruction Business exists and task status is normal, then call instruction type judging unit, on the contrary then call processing result acquiring unit;
Instruction type judging unit, is configured to: the type of control instruction is judged, if the type of control instruction is TS Wake up instruction generates service order, then calls the first instruction execution unit, on the contrary then call the second instruction execution unit;
First instruction execution unit, is configured to: control instruction being sent to TS wake-up by Platform communication service and is referred to It enables and generates service execution, start the second instruction execution unit if running succeeded, by the control instruction if executing failure The control instruction queue of failure, startup separator processing module is added;
Second instruction execution unit, is configured to: control instruction being issued TS by Platform communication service and sends service It executes, status modifier unit is called if running succeeded, which is added to the control of failure if executing failure Instruction queue calls fault processing module;
Status modifier unit, for the state according to the content modification broadcasting tasks of control instruction;
Processing result acquiring unit, is configured to: if there is other programs are in the processing result for waiting control instruction, then It obtains the processing result of the control instruction and result queue is written into processing result.
The fault processing module includes:
Failure command detection unit, for whether there is the control instruction of failure in detecting the control instruction queue of failure, such as The control instruction that fruit does not fail then enters dormant state, on the contrary then call instruction associated task judging unit;
Associated task judging unit is instructed, is configured to: if the associated task of control instruction exists and task status Normal and job end time does not arrive, then calls state detection unit, on the contrary then remove the control instruction and continue through failure Whether the control instruction of failure is had in the control instruction queue of instruction detection unit detection failure, while if control instruction is associated with Task there is the state of the task then modified;
State detection unit is configured to: being detected to the state for the service for executing control instruction, if executing control The service for making instruction is not online, then malloc failure malloc instruction detection unit, if executing the service online of control instruction, calls mistake Lose instruction process unit;
Failure command processing unit, is configured to: the control instruction of failure being returned to command process module, is adjusted Command retransmission is carried out with command process module and is continued through in the control instruction queue of failure command detection unit detection failure Whether the control instruction of failure is had.
As a preferred embodiment, the automatic regular polling module includes:
Task reading unit, is configured to: the emergent broadcast task in timing reading database, the broadcast for circulation Task generates subtask if the same day needs to be implemented in advance;
Task ranking unit, is configured to: the broadcasting tasks needed to be implemented on the day of filtering out are less than for broadcasting the time It is current time that the time is broadcast in the unified modification of the broadcasting tasks of current time, then when to broadcasting tasks according to broadcasting state, broadcasting Between, task priority, task modification time be ranked up;
Task processing unit is configured to: the broadcasting tasks for meeting condition of starting or stoping, call instruction processing Module is handled.
As another preferred embodiment, the emergent broadcast task in the database includes province, city, county, township, village The emergent broadcast task of multi-stage platform.
As another preferred embodiment, the processing result acquiring unit uses the coincidence counter of Java The program of CountDownLatch wake-up waiting goes the processing result of acquisition instruction.
[beneficial effect]
Technical solution proposed by the present invention has the advantages that
The present invention regulates and controls the timing of multi-stage platform, real-time broadcast task using automatic regular polling process, Real-Time Scheduling process, It is finally uniformly processed by instruction processing pipeline, the formal layout of subtask is used for broadcast (sites) in turn task, is adjusted well The execution of various broadcasting tasks is controlled, while present invention introduces troubleshooting processes, it, can be to instruction when there is Network Abnormal Retransmission mechanism is added, ensures that broadcasting instructions can execute at once in network recovery.
Detailed description of the invention
Fig. 1 regulates and controls system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling for what the embodiment of the present invention one provided The structural principle block diagram of system.
Specific embodiment
It to make the object, technical solutions and advantages of the present invention clearer, below will be to a specific embodiment of the invention Carry out clear, complete description.
Fig. 1 is the emergent broadcast task regulator control system based on automatic regular polling and Real-Time Scheduling that the embodiment of the present invention one provides Structural principle block diagram.As shown in Figure 1, the emergent broadcast task regulator control system includes automatic regular polling module 1, Real-Time Scheduling module 2, command process module 3 and fault processing module 4.
In the present embodiment, province in 1 timing reading database of automatic regular polling module, city, county, township, village's multi-stage platform emergency Broadcasting tasks obtain emergent broadcast mission bit stream, and carry out the following processing to broadcasting tasks, specifically, automatic regular polling module packet Include task reading unit, task ranking unit and task processing unit.
Task reading unit is configured to: the emergent broadcast task in timing reading database, and the broadcast of circulation is appointed Business, if the same day needs to be implemented, generates subtask in advance.
Task ranking unit is configured to: being filtered out the broadcasting tasks that need to be implemented of the same day, is less than and works as broadcasting the time It is current time that the time is broadcast in the unified modification of the broadcasting tasks of preceding time, then to broadcasting tasks according to state of broadcasting, broadcast the time, Task priority, task modification time are ranked up.
Task processing unit is configured to: the broadcasting tasks for meeting condition of starting or stoping, and call instruction handles mould Block is handled.
In the present embodiment, Real-Time Scheduling module 2 and Platform communication service keep connecting, for receive user to province, city, The real-time broadcast instruction in county, township, village's multi-stage platform task, verifies instruction after receiving real-time broadcast instruction, for Legal instruction submits to the processing of command process module 3 immediately, for illegal instruction, then returns to error code.
In the present embodiment, command process module 3 is handled using multi-thread concurrent, is managed multithreading using thread pool, is mentioned The treatment effeciency of height instruction.Specifically, command process module 3 includes control instruction generation unit, instruction searching unit, task school Verification certificate member, instruction type judging unit, the first instruction execution unit, the second instruction execution unit, status modifier unit and processing As a result acquiring unit.
Control instruction generation unit is configured to: being parsed the director data of regulation and control instruction, is generated according to director data corresponding Control instruction.
Instruction searching unit is configured to: searching control in the control instruction queue to fail and the instruction queue being carrying out The control instruction that instruction generation unit processed generates whether there is, if the control instruction has existed, processing result be called to obtain Take unit, it is on the contrary then the instruction queue being carrying out is added in the control instruction and calls task verification unit.
Task verification unit is configured to: the verification associated task of control instruction, if task associated by control instruction In the presence of and task status it is normal, then call instruction type judging unit is on the contrary then call processing result acquiring unit.
Instruction type judging unit is configured to: the type of control instruction is judged, if the type of control instruction is called out for TS Instruction of waking up generates service order, then calls the first instruction execution unit, on the contrary then call the second instruction execution unit.
First instruction execution unit is configured to: control instruction is sent to the life of TS wake up instruction by Platform communication service At service execution, start the second instruction execution unit if running succeeded, the control instruction is added if executing failure The control instruction queue of failure, startup separator processing module 4.
Second instruction execution unit is configured to: control instruction being issued TS transmission service by Platform communication service and is held Row, calls status modifier unit if running succeeded, and refers to the control that failure is added in the control instruction if executing failure Queue is enabled, fault processing module 4 is called.
Status modifier unit is used for the state of the content modification broadcasting tasks according to control instruction.
Processing result acquiring unit is configured to: if there is other programs are in the processing result for waiting control instruction, then will Processing result write-in result queue simultaneously goes to obtain using the program of the coincidence counter CountDownLatch wake-up waiting of Java The processing result of instruction.
In the present embodiment, fault processing module 4 includes failure command detection unit, instruction associated task judging unit, shape State detection unit, failure command processing unit.
Failure command detection unit is used to detect the control instruction for whether having failure in the control instruction queue of failure, if The control instruction not failed then enters dormant state, on the contrary then call instruction associated task judging unit.
Instruction associated task judging unit is configured to: if the associated task of control instruction exists and task status is normal And job end time does not arrive, then calls state detection unit, it is on the contrary then remove the control instruction and continue through failure command Whether the control instruction of failure, while if control instruction associated times are had in the control instruction queue of detection unit detection failure There is the state for then modifying the task in business.
State detection unit is configured to: being detected to the state for the service for executing control instruction, if executing control The service of instruction is not online, then malloc failure malloc instruction detection unit, if executing the service online of control instruction, malloc failure malloc Instruction process unit.
Failure command processing unit is configured to: the control instruction of failure being returned to command process module 3, is called Command process module 3 carries out command retransmission and continues through in the control instruction queue of failure command detection unit detection failure The no control instruction for having failure.
The emergent broadcast task regulation side based on automatic regular polling and Real-Time Scheduling realized using the system in embodiment one Method can refer to following specific method embodiments.
Embodiment two
Embodiment two provides a kind of based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling regulation method, this method packet Automatic regular polling process, Real-Time Scheduling process, instruction processing pipeline and troubleshooting process are included, each process is carried out separately below It is described in detail.
(1) automatic regular polling process
Automatic regular polling process the following steps are included:
Emergent broadcast task in S11, timing reading database, for the broadcasting tasks of circulation, if the same day needs to hold Row, then generate subtask in advance;
S12, the broadcasting tasks needed to be implemented on the day of filtering out unite for broadcasting the time less than the broadcasting tasks of current time It is current time that the time is broadcast in one modification, then to broadcasting tasks according to state of broadcasting, broadcast the time, task priority, task are repaired Changing the time is ranked up;
S13, the broadcasting tasks for meeting condition of starting or stoping, call instruction process flow are handled.
(2) Real-Time Scheduling process
Real-Time Scheduling process includes: to receive user to instruct the real-time broadcast of province, city, county, township, village's multi-stage platform task, Instruction is verified after receiving real-time broadcast instruction, for legal instruction, call instruction process flow is handled immediately, For illegal instruction, then error code is returned.
(3) instruction processing pipeline
Instruction processing pipeline the following steps are included:
S21, the director data for parsing regulation and control instruction generate corresponding control instruction according to director data;
S22, the control that finding step S21 is generated in the control instruction queue to fail and the instruction queue being carrying out refer to Order whether there is, if the control instruction has existed, be transferred to step S28, on the contrary then holding control instruction addition Capable instruction queue simultaneously executes step S23;
S23, verification the associated task of control instruction, if task associated by control instruction exist and task status just Often, S24 is thened follow the steps, it is on the contrary then be transferred to step S28;
S24, the type for judging control instruction, if the type of control instruction is that TS wake up instruction generates service order, Step S25 is executed, it is on the contrary then be transferred to step S26;
S25, by control instruction by Platform communication service be sent to TS wake up instruction generate service execution, if execute at Function is then transferred to step S26, which is added to the control instruction queue of failure if executing failure, calls troubleshooting Process;
S26, control instruction is issued into TS transmission service execution by Platform communication service, step is transferred to if running succeeded The control instruction queue of failure is added in the control instruction by rapid S27 if executing failure, calls troubleshooting process;
S27, the state according to the content modification broadcasting tasks of control instruction;
S28, if there is other programs wait control instruction processing result, then by processing result write-in result queue simultaneously The processing result of acquisition instruction is gone using the program of the coincidence counter CountDownLatch wake-up waiting of Java.
(4) troubleshooting process
Troubleshooting process comprising steps of
Whether the control instruction of failure is had in the control instruction queue that S31, detection fail, if the control not failed refers to It enables and then enters dormant state, it is on the contrary then be transferred to step S32;
If the associated task of S32, control instruction exists and task status is normal and job end time does not arrive, it is transferred to Step S33, it is on the contrary then remove the control instruction and back to step S31, while if the associated task of control instruction exists Modify the state of the task;
S33, the state for the service for executing control instruction is detected, if the service for executing control instruction is not online, Step S31 is then returned to, if executing the service online of control instruction, thens follow the steps S34;
S34, the control instruction of failure is returned to instruction processing pipeline, call instruction process flow carries out instruction weight It sends out and returns to step S31.
As can be seen from the above embodiments, the embodiment of the present invention is regulated and controled using automatic regular polling process, Real-Time Scheduling process The timing of multi-stage platform, real-time broadcast task, are finally uniformly processed by instruction processing pipeline, and broadcast (sites) in turn task is adopted With the formal layout of subtask, the execution of various broadcasting tasks is regulated and controled well, while the embodiment of the present invention introduces at failure Process is managed, when there is Network Abnormal, instruction addition retransmission mechanism can be given, ensure that broadcasting instructions can be at once in network recovery It executes.
It is to be appreciated that the embodiment of foregoing description is a part of the embodiments of the present invention, rather than whole embodiments, also not It is limitation of the present invention.Based on the embodiment of the present invention, those of ordinary skill in the art are not making the creative labor premise Under every other embodiment obtained, belong to protection scope of the present invention.

Claims (8)

1. a kind of regulate and control method based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling, it is characterised in that including automatic regular polling Process, Real-Time Scheduling process, instruction processing pipeline and troubleshooting process,
The automatic regular polling process includes:
Emergent broadcast task in timing reading database, for meeting the broadcasting tasks of condition of starting or stoping, call instruction Process flow is handled,
The Real-Time Scheduling process includes:
The real-time broadcast instruction that user sends is received, instruction is verified after receiving real-time broadcast instruction, for legal Instruction, immediately call instruction process flow handle, for illegal instruction, then return to error code,
Described instruction process flow comprising steps of
B1, the director data for parsing regulation and control instruction generate corresponding control instruction according to director data;
Whether B2, the control instruction that finding step B1 is generated in the control instruction queue to fail and the instruction queue being carrying out In the presence of, if the control instruction has existed, it is transferred to step B8, it is on the contrary then the control instruction is added to the instruction being carrying out Queue simultaneously executes step B3;
B3, the verification associated task of control instruction are held if task associated by control instruction exists and task status is normal Row step B4, it is on the contrary then be transferred to step B8;
B4, the type for judging control instruction execute step if the type of control instruction is that TS wake up instruction generates service order Rapid B5, it is on the contrary then be transferred to step B6;
B5, control instruction is sent to TS wake up instruction generation service execution by Platform communication service, if running succeeded It is transferred to step B6, which is added to the control instruction queue of failure if executing failure, calls troubleshooting process;
B6, control instruction is issued into TS transmission service execution by Platform communication service, step B7 is transferred to if running succeeded, The control instruction is added to the control instruction queue of failure if executing failure, calls troubleshooting process;
B7, the state according to the content modification broadcasting tasks of control instruction;
B8, if there is other programs wait control instruction processing result, then obtain the processing result of the control instruction and will Result queue is written in processing result,
The troubleshooting process comprising steps of
Whether the control instruction of failure is had in the control instruction queue that C1, detection fail, if the control instruction not failed It is on the contrary then be transferred to step C2 into dormant state;
If the associated task of C2, control instruction exists and task status is normal and job end time does not arrive, it is transferred to step C3, it is on the contrary then remove the control instruction and modification should back to step C1, while if the associated task of control instruction exists The state of task;
C3, the state for the service for executing control instruction is detected, if the service for executing control instruction is not online, is returned To step C1, if executing the service online of control instruction, C4 is thened follow the steps;
C4, the control instruction of failure is returned to instruction processing pipeline, call instruction process flow carries out command retransmission simultaneously Back to step C1.
2. according to claim 1 regulate and control method, feature based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling Be the automatic regular polling process comprising steps of
Emergent broadcast task in A1, timing reading database, for the broadcasting tasks of circulation, if the same day needs to be implemented, Subtask is generated in advance;
A2, the broadcasting tasks needed to be implemented on the day of filtering out are uniformly repaired for broadcasting the time less than the broadcasting tasks of current time Change broadcast the time be current time, then to broadcasting tasks according to state of broadcasting, broadcast the time, task priority, task modify when Between be ranked up;
A3, the broadcasting tasks for meeting condition of starting or stoping, call instruction process flow are handled.
3. according to claim 1 or 2 regulate and control method based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling, special Levy the emergent broadcast task that is in the database include province, city, county, township, village's multi-stage platform emergent broadcast task.
4. according to claim 1 regulate and control method, feature based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling It is that the step B8 goes to the place of acquisition instruction using the program of the coincidence counter CountDownLatch wake-up waiting of Java Manage result.
5. a kind of emergent broadcast task regulator control system based on automatic regular polling and Real-Time Scheduling, it is characterised in that including automatic regular polling Module, Real-Time Scheduling module, command process module and fault processing module,
The automatic regular polling module is configured to:
Emergent broadcast task in timing reading database, for meeting the broadcasting tasks of condition of starting or stoping, call instruction Processing module is handled,
The Real-Time Scheduling module is configured to:
The real-time broadcast instruction that user sends is received, instruction is verified after receiving real-time broadcast instruction, for legal Instruction, immediately call instruction processing module handle, for illegal instruction, then return to error code,
Described instruction processing module includes:
Control instruction generation unit, is configured to: parsing the director data of regulation and control instruction, is generated according to director data corresponding Control instruction;
Searching unit is instructed, is configured to: searching control in the control instruction queue to fail and the instruction queue being carrying out The control instruction that instruction generation unit processed generates whether there is, if the control instruction has existed, processing result be called to obtain Take unit, it is on the contrary then the instruction queue being carrying out is added in the control instruction and calls task verification unit;
Task verification unit, is configured to: the verification associated task of control instruction, if task associated by control instruction is deposited And task status it is normal, then call instruction type judging unit is on the contrary then call processing result acquiring unit;
Instruction type judging unit, is configured to: the type of control instruction is judged, if the type of control instruction is TS wake-up Instruction generates service order, then calls the first instruction execution unit, on the contrary then call the second instruction execution unit;
First instruction execution unit, is configured to: control instruction is sent to the life of TS wake up instruction by Platform communication service At service execution, start the second instruction execution unit if running succeeded, the control instruction is added if executing failure The control instruction queue of failure, startup separator processing module;
Second instruction execution unit, is configured to: control instruction issued into TS by Platform communication service and sends service execution, Status modifier unit is called if running succeeded, which is added to the control instruction team of failure if executing failure Column call fault processing module;
Status modifier unit, for the state according to the content modification broadcasting tasks of control instruction;
Processing result acquiring unit, is configured to: if there is other programs are in the processing result for waiting control instruction, then obtaining Simultaneously result queue is written in processing result by the processing result of the control instruction,
The fault processing module includes:
Failure command detection unit, for whether having the control instruction of failure in detecting the control instruction queue of failure, if do not had There is the control instruction of failure then to enter dormant state, on the contrary then call instruction associated task judging unit;
Associated task judging unit is instructed, is configured to: if the associated task of control instruction exists and task status is normal And job end time does not arrive, then calls state detection unit, it is on the contrary then remove the control instruction and continue through failure command Whether the control instruction of failure, while if control instruction associated times are had in the control instruction queue of detection unit detection failure There is the state for then modifying the task in business;
State detection unit is configured to: being detected to the state for the service for executing control instruction, is referred to if executing control The service of order is not online, then malloc failure malloc instruction detection unit, if executing the service online of control instruction, malloc failure malloc refers to Enable processing unit;
Failure command processing unit, is configured to: the control instruction of failure being returned to command process module, calling refers to Enable processing module carry out command retransmission and continue through failure command detection unit detection failure control instruction queue in whether There is the control instruction of failure.
6. the emergent broadcast task regulator control system according to claim 5 based on automatic regular polling and Real-Time Scheduling, feature It is that the automatic regular polling module includes:
Task reading unit, is configured to: the emergent broadcast task in timing reading database, and the broadcast of circulation is appointed Business, if the same day needs to be implemented, generates subtask in advance;
Task ranking unit, is configured to: the broadcasting tasks needed to be implemented on the day of filtering out, is less than currently for broadcasting the time It is current time that the time is broadcast in the unified modification of the broadcasting tasks of time, then to broadcasting tasks according to state of broadcasting, broadcast the time, appoint Business priority, task modification time are ranked up;
Task processing unit is configured to: the broadcasting tasks for meeting condition of starting or stoping, call instruction processing module It is handled.
7. the emergent broadcast task regulator control system according to claim 5 or 6 based on automatic regular polling and Real-Time Scheduling, special Levy the emergent broadcast task that is in the database include province, city, county, township, village's multi-stage platform emergent broadcast task.
8. the emergent broadcast task regulator control system according to claim 5 based on automatic regular polling and Real-Time Scheduling, feature It is that the processing result acquiring unit goes to obtain using the program of the coincidence counter CountDownLatch wake-up waiting of Java The processing result of instruction fetch.
CN201610576608.8A 2016-07-21 2016-07-21 Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling Active CN106100779B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610576608.8A CN106100779B (en) 2016-07-21 2016-07-21 Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610576608.8A CN106100779B (en) 2016-07-21 2016-07-21 Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling

Publications (2)

Publication Number Publication Date
CN106100779A CN106100779A (en) 2016-11-09
CN106100779B true CN106100779B (en) 2018-12-04

Family

ID=57449466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610576608.8A Active CN106100779B (en) 2016-07-21 2016-07-21 Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling

Country Status (1)

Country Link
CN (1) CN106100779B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921454A (en) * 2017-02-14 2017-07-04 刘恒茂 A kind of control method of secure broadcast system
CN109271548A (en) * 2018-07-25 2019-01-25 浙江工业大学 A kind of emergent broadcast sensitive information filter system
CN109347587B (en) * 2018-08-22 2021-11-23 广州市保伦电子有限公司 Task setting method and device based on time parameters

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642105A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing task management for network system
CN1792051A (en) * 2003-03-21 2006-06-21 第一人投资公司 Method and system for interactive broadcast communications
CN1873683A (en) * 2005-05-31 2006-12-06 北京富星创业科技发展有限公司 Management system of protection of security
CN102006670A (en) * 2010-11-16 2011-04-06 西安电子科技大学 Dynamic polling medium access control method of emergency response supported sensor network
CN102946506A (en) * 2012-10-22 2013-02-27 上海东方传媒集团有限公司 Globalized monitoring system in fields of radio and television broadcasting
CN103618581A (en) * 2012-09-11 2014-03-05 国家广播电影电视总局广播科学研究院 Method for waking up emergency broadcast remote terminal, remote wakeup terminal and remote wakeup system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3108640A4 (en) * 2014-02-17 2018-02-28 LG Electronics Inc. Apparatus for processing a hybrid broadcast service, and method for processing a hybrid broadcast service

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1792051A (en) * 2003-03-21 2006-06-21 第一人投资公司 Method and system for interactive broadcast communications
CN1642105A (en) * 2004-01-05 2005-07-20 华为技术有限公司 Method for realizing task management for network system
CN1873683A (en) * 2005-05-31 2006-12-06 北京富星创业科技发展有限公司 Management system of protection of security
CN102006670A (en) * 2010-11-16 2011-04-06 西安电子科技大学 Dynamic polling medium access control method of emergency response supported sensor network
CN103618581A (en) * 2012-09-11 2014-03-05 国家广播电影电视总局广播科学研究院 Method for waking up emergency broadcast remote terminal, remote wakeup terminal and remote wakeup system
CN102946506A (en) * 2012-10-22 2013-02-27 上海东方传媒集团有限公司 Globalized monitoring system in fields of radio and television broadcasting

Also Published As

Publication number Publication date
CN106100779A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN106100779B (en) Regulate and control method and system based on the emergent broadcast task of automatic regular polling and Real-Time Scheduling
US8301935B2 (en) Distributed batch runner
EP2940596B1 (en) Data acquisition method and device
CN101996106B (en) Method for monitoring software running state
CN110611707B (en) Task scheduling method and device
CN108710536B (en) Multilevel fine-grained virtualized GPU (graphics processing Unit) scheduling optimization method
CN101464810A (en) Service program processing method and server
US20080077935A1 (en) Method and System for Automated Handling of Resolvable and Non-resolvable Errors in Execution of System Management Flows Consisting of System Management Tasks
CN108255585B (en) SDK abnormal control and application program operation method, device and equipment thereof
CN103279331A (en) Multi-task concurrent processing method and device for Android system
CN107491346A (en) A kind of task processing method of application, apparatus and system
CN105389207A (en) Adaptive data request processing method and apparatus, task scheduler and adaptive data request processing system
CN106445696B (en) Multi-process interactive processing method and system
CN113268352B (en) Multi-instruction responsive task collaborative management method for universal service robot
CN103309668A (en) Method and device for processing uncaught exception of application programs
CN102902574B (en) Cooperative processing method and device of multiple information flow nodes
CN110798339A (en) Task disaster tolerance method based on distributed task scheduling framework
CN111857987B (en) ICM-based abnormal task processing method and device
CN109815056A (en) Realize method, apparatus, storage medium and the equipment of message queue reconnection
CN106227615B (en) The stuck method and system of precautionary process in program start-up course
CN104572270A (en) Task execution method and device based on message queues
CN107621975B (en) TIMER logic implementation method based on JAVA TIMER high availability
US20220413978A1 (en) Methods and apparatuses for automatic operational maintenance
CN106933681B (en) It is a kind of multipair as blocking method and its system
WO2022087811A1 (en) Model inference abnormality processing method, and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant