CN104252407A - Method and device for recording tasks under quartz frame - Google Patents

Method and device for recording tasks under quartz frame Download PDF

Info

Publication number
CN104252407A
CN104252407A CN201310538816.5A CN201310538816A CN104252407A CN 104252407 A CN104252407 A CN 104252407A CN 201310538816 A CN201310538816 A CN 201310538816A CN 104252407 A CN104252407 A CN 104252407A
Authority
CN
China
Prior art keywords
trigger
result
triggering
scheduler
time
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.)
Pending
Application number
CN201310538816.5A
Other languages
Chinese (zh)
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.)
Shenzhen Huaao Data Technology Co Ltd
Original Assignee
Shenzhen Huaao Data 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 Shenzhen Huaao Data Technology Co Ltd filed Critical Shenzhen Huaao Data Technology Co Ltd
Priority to CN201310538816.5A priority Critical patent/CN104252407A/en
Priority to PCT/CN2014/084620 priority patent/WO2015067087A1/en
Publication of CN104252407A publication Critical patent/CN104252407A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for recording tasks under a quartz frame. The method comprises the following steps: a dispatcher searches a trigger with a trigger task at the current time point; the dispatcher detects the trigger result of the trigger; the dispatcher types the trigger result into a trigger record. The invention also provides a corresponding device. According to the method provided by the embodiment of the invention, the trigger result of the trigger is detected by the dispatcher and the trigger record is recorded by the dispatcher, so that a user can check the trigger result conveniently.

Description

Task record method and apparatus under a kind of quartz framework
Technical field
The application relates to quartz technical field, particularly relates to task record method and apparatus under a kind of quartz framework.
Background technology
Quartz is that a java increases income job scheduling framework.Quartz can be used for creating simply or be operation ten, hundred, or even the day program list that a ten of thousands Jobs is complicated like this.Support to press number of times, day, week, time period, even Cron expression formula schedule job.In the product based on scheduling, must need the triggering of a monitoring operation, implementation status, such as, we need to know when an operation triggers and perform, and its triggering and execution result etc.Current Quartz does not trigger trigger and unsuccessfully records and process, and therefore, needs a kind of writing function, makes it be user-friendly to.
Summary of the invention
Technical problems to be solved in this application are to provide and a kind ofly can provide task record method and apparatus under the quartz framework of writing function.
In order to solve the problem, this application discloses a kind of task record method under quartz framework, comprising:
The trigger that current point in time has triggering tasks searched by scheduler;
Described scheduler detects the triggering result of described trigger;
Described scheduler is by described triggering result typing trigger recording.
Further, the triggering result of described scheduler detection triggers comprises:
Before described scheduler detects current time and current point in time, the triggering result that described triggering rises.
Further, the triggering result of described scheduler detection triggers comprises:
The triggering result of scheduler detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
Further, described scheduler will trigger result typing trigger recording:
Described scheduler is by scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
Present invention also provides task record device under a kind of quartz framework, comprising:
Searching module, having the trigger of triggering tasks for searching current point in time;
Detection module, for detecting the triggering result of described trigger;
Typing module, for by described triggering result typing trigger recording.
Further, described detection module also for:
Detect before current time and current point in time, the triggering result that described triggering rises.
Further, described detection module also for:
The triggering result of detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
Further, described typing module also for:
By scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
Compared with prior art, the application comprises following advantage: by the result of setting out of scheduler detection triggers, and record trigger recording, facilitate user and check.
accompanying drawing explanation
Fig. 1 is the process flow diagram of task record method one embodiment under a kind of quartz framework of the present invention;
Fig. 2 is the structural representation of task record device one embodiment under a kind of quartz framework of the present invention.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
With reference to Fig. 1, show the process flow diagram of task record method one embodiment under a kind of quartz framework of the application;
Task record method under a kind of quartz framework that the embodiment of the present invention provides, comprising:
The trigger that current point in time has triggering tasks searched by step S101, scheduler;
Scheduler Scheduler can open a thread Thread when startup, and Thread can not stop the trigger Trigger of the activity of operation that can trigger to this time point of data base querying according to current time circulated.
Step S102, scheduler detect the triggering result of described trigger;
Further, the triggering result of described scheduler detection triggers comprises:
Before described scheduler detects current time and current point in time, the triggering result that described triggering rises.
The triggering result of scheduler detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
Scheduler Scheduler sends before command request trigger Trigger detects it whether omitted triggering operation: according to triggering intervals D or the time point of last time complete time CT and current execution time ST and Trigger, calculates and omits number of times and time and reason thereof.Such as, being temporally calculated as of the Trigger of operation is triggered at interval: n=(CT-ST)/D.
Step S103, scheduler are by described triggering result typing trigger recording.
Further, described scheduler will trigger result typing trigger recording:
Described scheduler is by scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
The omission obtained described in step S102 is performed information (comprising Scheduler title, Trigger title, omission time reason together) and is entered into database.
The embodiment of the present invention by the result of setting out of scheduler detection triggers, and records trigger recording, facilitates user and checks.
With reference to the structural representation that Fig. 2 is task record device one embodiment under a kind of quartz framework of the present invention.
Task record device under a kind of quartz framework that the application provides, comprising:
Searching module 21, having the trigger of triggering tasks for searching current point in time;
Detection module 22, for detecting the triggering result of described trigger;
Typing module 23, for by described triggering result typing trigger recording.
Further, described detection module 22 also for:
Detect before current time and current point in time, the triggering result that described triggering rises.
Further, described detection module 22 also for:
The triggering result of detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
Further, described typing module 23 also for:
By scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.
Task record method and apparatus under a kind of quartz framework above the application provided, be described in detail, apply specific case herein to set forth the principle of the application and embodiment, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.

Claims (8)

1. a task record method under quartz framework, is characterized in that, comprising:
The trigger that current point in time has triggering tasks searched by scheduler;
Described scheduler detects the triggering result of described trigger;
Described scheduler is by described triggering result typing trigger recording.
2. method according to claim 1, is characterized in that, the triggering result of described scheduler detection triggers comprises:
Before described scheduler detects current time and current point in time, the triggering result that described triggering rises.
3. method according to claim 2, is characterized in that, the triggering result of described scheduler detection triggers comprises:
The triggering result of scheduler detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
4. method according to claim 3, is characterized in that, described scheduler will trigger result typing trigger recording:
Described scheduler is by scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
5. a task record device under quartz framework, is characterized in that, comprising:
Searching module, having the trigger of triggering tasks for searching current point in time;
Detection module, for detecting the triggering result of described trigger;
Typing module, for by described triggering result typing trigger recording.
6. system according to claim 5, is characterized in that, described detection module also for:
Detect before current time and current point in time, the triggering result that described triggering rises.
7. system according to claim 6, is characterized in that, described detection module also for:
The triggering result of detection triggers, described triggering result comprises: trigger successfully, trigger unsuccessfully and trigger result unknown.
8. system according to claim 7, is characterized in that, described typing module also for:
By scheduler ID, the trigger ID of described triggering result and correspondence thereof and time typing trigger recording.
CN201310538816.5A 2013-11-05 2013-11-05 Method and device for recording tasks under quartz frame Pending CN104252407A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310538816.5A CN104252407A (en) 2013-11-05 2013-11-05 Method and device for recording tasks under quartz frame
PCT/CN2014/084620 WO2015067087A1 (en) 2013-11-05 2014-08-18 Attribute set recommendation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310538816.5A CN104252407A (en) 2013-11-05 2013-11-05 Method and device for recording tasks under quartz frame

Publications (1)

Publication Number Publication Date
CN104252407A true CN104252407A (en) 2014-12-31

Family

ID=52187334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310538816.5A Pending CN104252407A (en) 2013-11-05 2013-11-05 Method and device for recording tasks under quartz frame

Country Status (2)

Country Link
CN (1) CN104252407A (en)
WO (1) WO2015067087A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11727284B2 (en) 2019-12-12 2023-08-15 Business Objects Software Ltd Interpretation of machine learning results using feature analysis
US11580455B2 (en) 2020-04-01 2023-02-14 Sap Se Facilitating machine learning configuration

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005066587A1 (en) * 2003-12-30 2005-07-21 Ting-Mao Chang Proximity triggered job scheduling system and method
US20080066070A1 (en) * 2006-09-12 2008-03-13 Sun Microsystems, Inc. Method and system for the dynamic scheduling of jobs in a computing system
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102420709A (en) * 2011-12-23 2012-04-18 大唐移动通信设备有限公司 Method and equipment for managing scheduling task based on task frame
CN102880473A (en) * 2012-09-28 2013-01-16 五八有限公司 Method and device for task execution based on quartz framework
CN102902812A (en) * 2012-10-22 2013-01-30 飞天诚信科技股份有限公司 Method for realizing remote synchronization of database

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100421101C (en) * 2005-09-14 2008-09-24 华为技术有限公司 Data checking apparatus and checking method
CN101673203B (en) * 2008-09-10 2014-05-14 华硕电脑股份有限公司 Processing device and related data processing method thereof
CN102073921A (en) * 2010-12-08 2011-05-25 中国测绘科学研究院 Data management system based on rule knowledge base for automatic check

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005066587A1 (en) * 2003-12-30 2005-07-21 Ting-Mao Chang Proximity triggered job scheduling system and method
US20080066070A1 (en) * 2006-09-12 2008-03-13 Sun Microsystems, Inc. Method and system for the dynamic scheduling of jobs in a computing system
CN101604242A (en) * 2009-07-17 2009-12-16 深圳市珍爱网信息技术有限公司 Realize the system of timed task in the Java application system
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102420709A (en) * 2011-12-23 2012-04-18 大唐移动通信设备有限公司 Method and equipment for managing scheduling task based on task frame
CN102880473A (en) * 2012-09-28 2013-01-16 五八有限公司 Method and device for task execution based on quartz framework
CN102902812A (en) * 2012-10-22 2013-01-30 飞天诚信科技股份有限公司 Method for realizing remote synchronization of database

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DRAGONFLY29: "基于Quartz开发企业级任务调度应用", 《百度文库》 *
NEU0219: "Quartz使用说明及官方开发中文指南", 《百度文库》 *

Also Published As

Publication number Publication date
WO2015067087A1 (en) 2015-05-14

Similar Documents

Publication Publication Date Title
US11550628B2 (en) Performing runbook operations for an application based on a runbook definition
US8843684B2 (en) Performing call stack sampling by setting affinity of target thread to a current process to prevent target thread migration
RU2015153190A (en) COMBINATION OF GEOZONE EVENTS
US20140344119A1 (en) Apparatus and method for generating a chronological timesheet
JP2016521946A5 (en)
CN107025224B (en) Method and equipment for monitoring task operation
US20190377666A1 (en) Optimized testing system
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
WO2020232871A1 (en) Method and device for microservice dependency analysis
US20140068350A1 (en) Self-checking system and method using same
CN110879742B (en) Method, device and storage medium for asynchronously creating internal snapshot by virtual machine
WO2015116064A1 (en) End user monitoring to automate issue tracking
CN103744772A (en) Method and system for detecting task running performance
US20190340052A1 (en) System for monitoring a plurality of distributed devices
US9842044B2 (en) Commit sensitive tests
CN103903312A (en) Method and device for executing automatic inspection
JP6238221B2 (en) Apparatus, method and program for monitoring execution of software
CN102622300B (en) Infinite loop or similar infinite loop detection method in multitask system
CN104252407A (en) Method and device for recording tasks under quartz frame
CN113157569B (en) Automated testing method, apparatus, computer device and storage medium
CN107451056B (en) Method and device for monitoring interface test result
US20170344461A1 (en) Automated exception resolution during a software development session based on previous exception encounters
CN104376093B (en) A kind of video file searching method and device
US10372585B2 (en) Incident tracker
CN112988776B (en) Method, device and equipment for updating text parsing rule and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141231

RJ01 Rejection of invention patent application after publication