Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for configuring timing tasks based on Quartz frame

A technology for timed tasks and timed services, applied in multi-programming installations, program startup/switching, etc., can solve problems such as the inability to dynamically add pause, resume, and remove timed tasks, the inability of crontab to have built-in management, and the complexity of application migration.

Inactive Publication Date: 2010-11-17
北京伟库电子商务科技有限公司
View PDF3 Cites 59 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] Its disadvantages: (1), crontab is a system-level command, and the migration of applications between multiple systems is very complicated;
[0008] (2), crontab cannot be built into the web container for management;
[0009] (3) Professional system management personnel are required to operate each time the scheduled task is closed or suspended
[0012] Its disadvantages: Although the java.util.timer class is very practical, if the functions such as pausing or resuming scheduled tasks are implemented during the running of the program, secondary development is required
[0015] Its disadvantages: Although the function of Quartz is very practical, it cannot dynamically add, pause, resume, and remove scheduled tasks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for configuring timing tasks based on Quartz frame
  • Method and device for configuring timing tasks based on Quartz frame
  • Method and device for configuring timing tasks based on Quartz frame

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] Embodiments according to the present invention will be described in detail below with reference to the accompanying drawings.

[0035] figure 1 It is a flowchart of a method for configuring timing services based on a Quartz framework according to the present invention.

[0036] Such as figure 1 As shown, the present invention provides a method for configuring a timing task based on the Quartz framework, comprising: step 102, setting a timing service interface; step 104, the user adds a task through the timing service interface, specifies the time rule of the task, and Assigning a unique identifier to the task; step 106, according to the time rule, execute the task at a predetermined time according to the unique identifier using a corresponding service interface. In the technical solution, real-time configuration of the timing service is realized through the timing service interface.

[0037] In the above technical solution, the step 104 further includes: the user sus...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method for configuring timing tasks based on a Quartz frame, comprising the following steps of: 102, setting timing service interfaces; 104, increasing the tasks by users through the timing service interfaces, appointing the time rules of the tasks and allocating unique identification to the tasks; and 106, according to the time rules, executing the tasks by using the corresponding service interfaces according to the unique identifications in the preset time. The invention also provides a device for configuring timing tasks based on the Quartz frame. By adopting the technical scheme, the invention can be used for looking up the running states of the tasks in real time, dynamically increasing the tasks and suspending, recovering and removing the timing tasks.

Description

technical field [0001] The present invention relates to timing task scheduling, in particular to a method and device for configuring timing tasks based on a Quartz framework. Background technique [0002] In the SAAS (Software as a Service, software as a service) enterprise application system, it is often necessary to add a task scheduling function, which requires a specified time to execute business logic regularly. [0003] Existing implementation methods of timed tasks based on SAAS system: [0004] 1. crontab command [0005] Introduction: The crontab command is common in Unix and Unix-like operating systems, and is used to set periodically executed instructions. This command reads instructions from the standard input device and stores them in the "crontab" file for later reading and execution. [0006] The word comes from the Greek chronos (χρóνοζ), which means time. Usually, the instructions stored in crontab are activated by the daemon process, and crond often run...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48
Inventor 高磊沈行
Owner 北京伟库电子商务科技有限公司