CN104598214A - Method and device for timed task management of oil-gas pipeline system application service - Google Patents

Method and device for timed task management of oil-gas pipeline system application service Download PDF

Info

Publication number
CN104598214A
CN104598214A CN201310535028.0A CN201310535028A CN104598214A CN 104598214 A CN104598214 A CN 104598214A CN 201310535028 A CN201310535028 A CN 201310535028A CN 104598214 A CN104598214 A CN 104598214A
Authority
CN
China
Prior art keywords
information
timing task
oil
data
task information
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
CN201310535028.0A
Other languages
Chinese (zh)
Other versions
CN104598214B (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 Oil and Gas Pipeline Network Corp
Original Assignee
China Petroleum and Natural Gas 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 Petroleum and Natural Gas Co Ltd filed Critical China Petroleum and Natural Gas Co Ltd
Priority to CN201310535028.0A priority Critical patent/CN104598214B/en
Publication of CN104598214A publication Critical patent/CN104598214A/en
Application granted granted Critical
Publication of CN104598214B publication Critical patent/CN104598214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to the field of oil-gas pipeline application and provides a method and device for timed task management of oil-gas pipeline system application service. The method comprises the steps of sequentially reading timed task information data of designated memory addresses to perform classified data verification, obtaining primary-standby state information of various application states in an oil-gas pipeline system, sequentially matching the timed task information data passing the classified data verification with the primary-standby state information, obtaining time information data of the matched timed task information in a specific format, comparing the timed task information with current time and determining a task execution cycle period and conditions for timed execution starting according to comparison information. Therefore, the problem that configured and used crontab of various UNIX operating systems are different, cumbersome and the like is solved. Task execution is achieved under specific conditions according to oil-gas pipeline SCADA specific application server. When an oil-gas pipeline SCADA specific applicator develops tasks, attention is paid from the states of various application service and device nodes to definition, processing and planning of self tasks.

Description

The timing task management method of oil and gas pipes system applied business and device
Technical field
The invention relates to oil and gas pipes application, refer in particular to a kind of timing task management method and device of oil and gas pipes system applied business.
Background technology
In oil and gas pipes SCADA applies, in order to task and the instruction of executive system formulation periodically, the general crontab adopting operating system to provide realizes.But this scheme relies on the crontab of operating system, due to the using method difference of the crontab that different operating system provides, in causing oil and gas pipes SCADA to apply, timing task management using method is loaded down with trivial details, engineering construction is difficult; The timing task management function that this scheme provides simultaneously only can be satisfied with the cycle and execute the task and regularly execute the task, and can not be combined, realize according to the tasks carrying under specific transactions, specified conditions with oil and gas pipes SCADA applied business.
In order to realize applying with oil and gas pipes SCADA the timing task management combined, the way of general employing is, oil and gas pipes SCADA application staff development task, when realizing task self function, need to write a large amount of application programs or script to the running status of related application business in judging oil and gas pipes SCADA and applying, realize the tasks carrying under specific transactions, specified conditions, and this task was performed by the crontab cycle or timing execution is unappeasable.This method adds a large amount of work to the oil and gas pipes SCADA personnel that apply, and consumes the functional development that a large amount of energy has gone outside own service, and strength more can not be concentrated to have gone the definition of self task, write and plan.Therefore, current oil feed channel SCADA application is badly in need of a kind of based on oil and gas pipes field, simple to operate and can carry out the time control system of logical process.
Summary of the invention
For the problems referred to above, the object of the invention be to propose a kind of unification, based on oil and gas pipes SCADA applied business state logic, the timing task management method of triggering rule that specified conditions and time conditions judge and device.
In order to reach above-mentioned enforcement object, the invention provides a kind of timing task management method of oil and gas pipes system applied business, the method comprises: the timing task information data reading designated store address successively carry out grouped data verification; Obtain the activestandby state information of various application state in oil and gas pipes system; Successively by the timing task information that verified by grouped data and described activestandby state information matches; Obtain the time information data of timing task information by coupling according to specific format, described time information data and current time are compared, start the condition of execution according to the cycle period of comparison information determination tasks carrying and timing.
The present invention also provides a kind of timing task management device of oil and gas pipes system applied business, comprising: storage unit, for obtaining timing task information and being stored in designated store address; Reading unit, for specifying the timing task information in memory address in reading cells; Verification unit, for receiving the timing task information that reads in reading unit and carrying out grouped data verification; Matching unit, for obtain various application state in oil and gas pipes system activestandby state information and successively by the timing task information that verified by grouped data and described activestandby state information matches; Relatively processing unit: compare with current time for the temporal information that obtains by the timing task information of coupling, starts the condition performed according to the cycle period of comparison information determination tasks carrying and timing.
Advantageous Effects of the present invention is: can make up the single timed task providing crontab to realize by operating system by the application and cannot to judge concrete oil and gas pipes SCADA applied business state, specified conditions and the configuration of all kinds of UNIX operating system uses crontab difference, the defect such as loaded down with trivial details, realize according to the tasks carrying under oil and gas pipes SCADA application-specific business, specified conditions.Thus, allow oil and gas pipes SCADA application staff development task time, notice, from the concern to each applied business state or device node, transfers to the definition to self task, process and planning.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is present system timed task overall flow figure;
Fig. 2 is the process flow diagram of present system applied business condition adjudgement and time-triggered protocol;
Fig. 3 is data flow of the present invention and one-piece construction schematic diagram of the present invention.
Embodiment
Advantage in object of the present invention and structure function thereof, by according to the structure shown in the following drawings, coordinating specific embodiment to be explained, can have more deep and concrete understanding in order to do making juror to the present invention.
First, the invention provides a kind of timing task management method of oil and gas pipes system applied business, its overall flow as shown in Figure 1, by business personnel in man-machine interface to timing task management system incoming timing mission bit stream, the timing task information of reception is stored in the memory address of specifying based on file or database two kinds of modes by timing task management system, then by obtaining the timing task information of designated store address, after carrying out Various types of data verification, qualified timing task management information is loaded into actuating equipment, performs relevant task.
Wherein, by the application data information in the timing task information that acquires from file or database, device node name, user name, temporal information is come and the autonomous various application class offsets defined in this method, the device node name that system obtains and the user name that system obtains verify, thus distinguish the various timed task be configured in file or database be belong to which kind of application, whether meet device node, user name condition, if above-mentioned verification does not meet the condition of current system, again will take off a task from file or database again to verify, until get the task of meeting current system verification condition.
When above-mentioned verification by after, then Host Status and the standby host status information of various application state in oil and gas pipes SCADA system is detected by timing task management classification, again according to the Host Status of the application data information configured in task and application state in the oil and gas pipes SCADA system got compared with standby host status information, judge that whether this equipment be main process equipment under the application of certain class or standby host equipment, if do not meet Host Status and the standby host status information of current system, by again take off from file or database a verification by and meet system such apply the task of active and standby information, when all to application, information that device node name, user name are relevant all verify by after, finally start checking time information, compare with current time, determine that the cycle period of tasks carrying and timing start the condition performed, thus performance period, regularly, the method for executing the task under application-specific condition.
The timed task of oil and gas pipes SCADA system applied business configures the timed task data of SCADA system applied business in file or database by file operation or database manipulation mode, the inventive method reads out by circulation the every bar task record information in file or database that is configured in, then Logic judgment is carried out to the applied business state of task, carry out data layout checking procedure simultaneously, when meeting the necessary condition of whole system task start after the verification of read task, task will start the stage entering execution.
By the timing task information of SCADA system applied business got from file or database, whether the service condition that the inventive method can determine the various SCADA application that now equipment runs mates with the task application information read, realize realizing the cycle of class crontab, the function of timing to the format analysis processing of time data "-", " # ", " * ", ", " various asterisk wildcard and pure digi-tal simultaneously.Its particular flow sheet as shown in Figure 2, in implementation process, the timed task of oil and gas pipes SCADA system applied business is configured in file or database by external mode, and the inventive method is operated by file interface or the Procedure Acquisition related data of accessing database, then implementor name in oil and gas pipes SCADA system is verified successively, user name, the type of SCADA system application state, that applies is active and standby, whether whether execution time of task consistent with the current timed task being configured in file or database, when all conditions all mates unanimously, finally start the timed task of relevant application-specific business, otherwise, circulation goes to read next data.Only have the task of meeting these conditions, could performance period or startup regularly.
Such as, when timing task management system acceptance is to the timing task information of assigned address, first the implementor name in timing task information is extracted, then judge, whether meet designated equipment name to determine whether according to it and carry out user name judgement, user name judgment mode such as implementor name judges, at this not in repetition, after having carried out user name judgement, namely start to carry out the judgement of SCADA system application state, now, the application state of current device SCADA system will be detected, activestandby state, then obtain after the application state of described equipment SCADA system and activestandby state with above by user name, requirement specified conditions in timing task information after implementor name judges are done to judge.
Then time data judgement is carried out as met above-mentioned condition, herein, from timing task information, extraction time comprises, first to pure digi-tal and "; " data verify, then this partial data is exported, then verifying containing "-" and the data of ", ", and then exporting this partial data, secondly to the data check containing " * ", at this partial data of output, finally to the data check containing " # " and ", ", then export this part data, the data of therefore finally carrying out mating with current time are above-mentioned aggregation of data.Certainly, the step of said extracted time data is regardless of front and back, and symbol can be replaced as required, not in order to limit the present invention.
After judging through above-mentioned time data, as passed through, then start to perform timing task information, with the method that the application provides, not only achieve class crontab function, but also containing judgement to specified conditions, therefore allow the difference not only need not considering crontab between different system during oil and gas pipes SCADA application staff development task, the defect such as loaded down with trivial details, and realization is according to the tasks carrying under oil and gas pipes SCADA application-specific business, specified conditions.Thus, allow oil and gas pipes SCADA application staff development task time, notice, from the concern to each applied business state or device node, transfers to the definition to self task, process and planning.
According to above-mentioned description, first provided the place of read-write timed task by outside, such as store timed task with file mode or store timed task in a database.And the inventive method pays close attention to the application data information how reading, operate, verify the timed task that acquisition comes, whether final decision starts relevant timed task.Side's data flow of the present invention and one-piece construction schematic diagram are as shown in Figure 3.
In an embodiment of the present invention, the design of time control task each attribute structure is defined as each attribute structure designed and be stored in timed task in database or file, comprise each node name, user name, application type, application state, tasks carrying path, the moon, day, week, hour, minute, start-up time, startup result, the attribute information such as whether to enable;
Time control task is configured to pass external mode and is allocated into by the data message of task in file or database and (as by designing man-machine system, enter database by the man-machine configuration task information in interface) in the present invention;
Time control task acquisition module is read the timed task relevant information be stored in file or database in the present invention;
Time control task analyzing step is by timed task relevant information relevant in task acquisition module file reading or database in the present invention, task data information is resolved, obtain and be configured in all kinds data, the device data applied in file or database, and obtain the time data after parsing by the parsing of the time data to "-", " # ", " * ", ", " various asterisk wildcard and pure digi-tal form;
Device node, user name checking procedure are the device node, the user name that are read by task acquisition module in task, the implementor name got with this method, user name verify, satisfy condition, enter SCADA applied business state-detection and checking procedure, carry out the detection of applying and verifying work; Otherwise, task acquisition module will be returned and continue next timed task in circulation file reading or database;
SCADA applied business state-detection and checking procedure the business state information value (such as detect equipment runs be applied as the application of main frame or the application of standby host) equipment running each application detected, verified by various application conditions parameter value in the task list read with task acquisition module; When meeting the correlated condition of application, by starting, time data is verified; Otherwise, task acquisition module will be returned and continue next timed task in circulation file reading or database;
Time data verifies: after being verified confirmed by the applied business of SCADA applied business state-detection and checking procedure, time check is carried out to the time data of having resolved through analyzing step, when the time that system is advanced meets the time data of having resolved, task execution step will be proceeded to and enter tasks carrying work; Otherwise, task acquisition module will be returned and continue next timed task in circulation file reading or database;
Task execution step be when all above-mentioned prerequisite conditions for validity all meet the startup of equipment to task require time, by the timed task performing the oil and gas pipes SCADA personnel that apply and configure in file or database; Otherwise, task acquisition module will be returned and continue next timed task in circulation file reading or database.
In oil and gas pipes SCADA system, run types of applications business, such as: water attack protection application, batch output monitoring and management application etc.As a concrete application example, when needing configuring timing tasks A to perform on the host server running water attack protection application, can the various attribute datas of timed task A be configured in database, be respectively: device node name (routine server1), user name (routine user1), application type (water machine protection application parameter value), application state (host application parameter value), tasks carrying path (example/home/user1/bin/A), time data (example 9: 37 Thursday morning of on August 1st, 2013) monthly (8), day (1), week (*), hour (9), divide (37) configuration, whether enable (enabling).Then, in oil and gas pipes SCADA system, each server apparatus node runs the inventive method, the equipment that all operations have oil and gas pipes SCADA to apply all will read this timed task A, when user be called user1 water machine protection application host server read timed task A time, and the system time of this server advances to 9: 37 Thursday morning of on August 1st, 2013, that is: identical with the time conditions of the configuration in timed task, path/the home/user1/bin configured by task is found timed task A, the timed task A under execution process water attack protection applied host machine is triggered at once on this server apparatus node.
Above-described embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only the specific embodiment of the present invention; the protection domain be not intended to limit the present invention; all within claim of the present invention, any amendment made, equivalent replacement, improvement etc., all should be included within claims protection domain of the present invention.

Claims (10)

1. a timing task management method for oil and gas pipes system applied business, is characterized in that, described method comprises:
The timing task information data reading designated store address successively carry out grouped data verification;
Obtain the activestandby state information of various application state in oil and gas pipes system;
Successively by the timing task information that verified by grouped data and described activestandby state information matches;
Obtain the time information data of timing task information by coupling according to specific format, described time information data and current time are compared, start the condition of execution according to the cycle period of comparison information determination tasks carrying and timing.
2. method according to claim 1, is characterized in that, the described timing task information data reading designated store address successively also comprise before carrying out grouped data verification:
Obtain timing task information and store information in designated store address based on file or database two kinds of modes.
3. method according to claim 1, is characterized in that, described according to memory address, reads timing task information data successively and carries out grouped data verification and comprise:
The timing task information data read are divided into application data information, device node name, user name, temporal information the user name that the device node name obtained with the various application class offsets in timing task management method, system and system obtain verify; As pedal system condition discontented in verification, then according to memory address, again read next timing task information data successively.
4. method according to claim 1, is characterized in that, describedly the timing task information verified by grouped data and described activestandby state information matches is also comprised successively:
The activestandby state of types of applications state in oil and gas pipes system is detected by timing task management classification, by the activestandby state information of types of applications state in the oil and gas pipes system detected and the timing task information verified by grouped data, obtain meeting the timing task information that oil and gas pipes system applies active and standby information.
5. method according to claim 1, is characterized in that, described acquisition is also comprised by the temporal information comparing with current time of the timing task information of coupling:
Detect the temporal information of the timing task information by coupling, the parsing according to the various asterisk wildcard of temporal information and the time data of pure digi-tal form obtains the time information data after parsing;
Described time information data and current time are compared, calculating and whether coincide with current time, as misfitted, then again reading timing task information.
6. a timing task management device for oil and gas pipes system applied business, is characterized in that, described device comprises:
Storage unit, for obtaining timing task information and being stored in designated store address;
Reading unit, for specifying the timing task information in memory address in reading cells;
Verification unit, for receiving the timing task information that reads in reading unit and carrying out grouped data verification;
Matching unit, for obtain various application state in oil and gas pipes system activestandby state information and successively by the timing task information that verified by grouped data and described activestandby state information matches;
Relatively processing unit: compare with current time for the temporal information that obtains by the timing task information of coupling, starts the condition performed according to the cycle period of comparison information determination tasks carrying and timing.
7. device according to claim 6, is characterized in that, described reading unit comprises: be divided into application data information, device node name, user name, temporal information to send out the timing task information data read and verify with verification unit; As pedal system condition discontented in verification, then according to memory address, again read next timing task information data successively.
8. device according to claim 6, it is characterized in that, described matching unit comprises: timing task management device is by the activestandby state of types of applications state in matching unit classification and Detection oil and gas pipes system, by the activestandby state information of types of applications state in the oil and gas pipes system detected and the timing task information verified by grouped data, obtain meeting the timing task information that oil and gas pipes system applies active and standby information.
9. device according to claim 6, is characterized in that, the described processing unit that compares comprises:
Detect in matching unit the timing task information by coupling obtained also to compare with current time, the conditioned disjunction starting execution according to the cycle period of comparison information determination tasks carrying and timing reads next timing task information and again verifies coupling.
10. device according to claim 9, is characterized in that, the described processing unit that compares also comprises:
Detect the temporal information in matching result, obtain expression format and the time asterisk wildcard thereof of temporal information, according to expression format and the time asterisk wildcard determination time information data thereof of temporal information;
Described time information data and current time are compared, starts the condition performed according to the cycle period of comparison information determination tasks carrying and timing.
CN201310535028.0A 2013-11-01 2013-11-01 The timing task management method and device of oil-gas pipeline system applied business Active CN104598214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310535028.0A CN104598214B (en) 2013-11-01 2013-11-01 The timing task management method and device of oil-gas pipeline system applied business

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310535028.0A CN104598214B (en) 2013-11-01 2013-11-01 The timing task management method and device of oil-gas pipeline system applied business

Publications (2)

Publication Number Publication Date
CN104598214A true CN104598214A (en) 2015-05-06
CN104598214B CN104598214B (en) 2018-01-05

Family

ID=53124037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310535028.0A Active CN104598214B (en) 2013-11-01 2013-11-01 The timing task management method and device of oil-gas pipeline system applied business

Country Status (1)

Country Link
CN (1) CN104598214B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138598A (en) * 2015-08-05 2015-12-09 深圳联友科技有限公司 Method and system for remotely timing task
CN108874658A (en) * 2017-12-25 2018-11-23 北京安天网络安全技术有限公司 A kind of sandbox analysis method, device, electronic equipment and storage medium
CN109375993A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Detection method, device, computer equipment and the storage medium of dispatch list
CN110941479A (en) * 2018-09-25 2020-03-31 广州虎牙信息科技有限公司 Task data execution method, server, and computer storage medium
CN112925622A (en) * 2021-02-26 2021-06-08 北信源系统集成有限公司 System timing task processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN101795208A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method and system for synchronizing display information on rack diagram

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN101795208A (en) * 2010-01-21 2010-08-04 中兴通讯股份有限公司 Method and system for synchronizing display information on rack diagram

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138598A (en) * 2015-08-05 2015-12-09 深圳联友科技有限公司 Method and system for remotely timing task
CN105138598B (en) * 2015-08-05 2018-11-09 深圳联友科技有限公司 The method and system of remote timing task
CN108874658A (en) * 2017-12-25 2018-11-23 北京安天网络安全技术有限公司 A kind of sandbox analysis method, device, electronic equipment and storage medium
CN109375993A (en) * 2018-08-21 2019-02-22 中国平安人寿保险股份有限公司 Detection method, device, computer equipment and the storage medium of dispatch list
CN109375993B (en) * 2018-08-21 2024-04-05 中国平安人寿保险股份有限公司 Method, device, computer equipment and storage medium for detecting schedule
CN110941479A (en) * 2018-09-25 2020-03-31 广州虎牙信息科技有限公司 Task data execution method, server, and computer storage medium
CN112925622A (en) * 2021-02-26 2021-06-08 北信源系统集成有限公司 System timing task processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN104598214B (en) 2018-01-05

Similar Documents

Publication Publication Date Title
US10073683B2 (en) System and method for providing software build violation detection and self-healing
US8677310B2 (en) Industry template abstracting and creation for use in industrial automation and information solutions
CN104598214A (en) Method and device for timed task management of oil-gas pipeline system application service
CN104331366A (en) Test case design efficiency promotion method and system
CN107491371B (en) Deployment monitoring method and device
EP2460258A1 (en) Method and device for auto-generating goose signal connection topology from substation level
CN105184166A (en) Kernel-based Android application real-time behavior analysis method and system
CN103646104A (en) Hard real-time fault diagnosis method and system
CN103605606B (en) A kind of embedded software test use-case batch execution method that can automatically change
CN104281520A (en) Tracking and debugging method, device and system
CN109254922A (en) A kind of automated testing method and device of server B MC Redfish function
CN107679423A (en) Partition integrity inspection method and device
CN109189679A (en) Interface test method and system, electronic equipment, storage medium
Lin et al. Test sequence reduction of wireless protocol conformance testing to internet of things
US11665165B2 (en) Whitelist generator, whitelist evaluator, whitelist generator/evaluator, whitelist generation method, whitelist evaluation method, and whitelist generation/evaluation method
Zhao et al. Model checking of adaptive programs with mode-extended linear temporal logic
CN106155880A (en) A kind of automated procedures based on strategy analyze system and method
Seehusen A technique for risk-based test procedure identification, prioritization and selection
CN108512688A (en) Network node configuration method and terminal
Khoshnevis An approach to variability management in service-oriented product lines
CN114143235A (en) NFV automatic test method, device, equipment and storage medium
Miao et al. A formal specification-based integration testing approach
Sulaiman et al. Coverage-based approach for model-based testing in Software Product Line
CN110519293A (en) A kind of message test method, device, equipment and storage medium
Nia et al. Ubiquitous IoT structure via homogeneous data type modelling

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
TR01 Transfer of patent right

Effective date of registration: 20211208

Address after: Room 08-10, 6 / F, block a, No. 5, Dongtucheng Road, Chaoyang District, Beijing 100013

Patentee after: National Petroleum and natural gas pipeline network Group Co.,Ltd.

Address before: 100007 No. 9 North Main Street, Dongcheng District, Beijing, Dongzhimen

Patentee before: PETROCHINA Co.,Ltd.

TR01 Transfer of patent right