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

Quartz framework-based task scheduling method and system, and terminal device

A task scheduling and task technology, applied in the computer field, can solve the problems of forgetting multi-account management, cumbersome account and password login operations, etc.

Pending Publication Date: 2019-05-24
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a task scheduling method, system and terminal device based on the Quartz framework to solve the current multi-account management problems of forgetting account passwords and cumbersome login operations

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
  • Quartz framework-based task scheduling method and system, and terminal device
  • Quartz framework-based task scheduling method and system, and terminal device
  • Quartz framework-based task scheduling method and system, and terminal device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0034] Such as figure 1 As shown, the present embodiment provides a task scheduling method based on the Quartz framework, which specifically includes:

[0035] Step S101: Obtain the configuration file of the server, determine the cluster name variable corresponding to the server according to the configuration file of the server, and configure the attributes of the task scheduler of the Quartz framework according to the cluster name variable; the cluster name variable is used to distinguish Each cluster system.

[0036] It should be noted that the Quartz framework includes a task (JOB), a task trigger (Trigger) and a task scheduler (Scheduler). The task (JOB) is the object for scheduling and management by the Quartz framework. The task (JOB) provides an interface to the task implementation class. The task implementation class is the specific code for task execution. When the Quaqrtz framework executes the task (JOB), it will create A task instance (JobDeatail), through (JobDe...

Embodiment 2

[0050] Such as figure 2 As shown, in this embodiment, step S101 in Embodiment 1 specifically includes:

[0051] Step S201: Create a task scheduler through the interface of the Quartz framework.

[0052] Step S202: Set the instance name of the task scheduler to the cluster name variable.

[0053] In a specific application, a task scheduler (Scheduler) is created through the StdSchedulerFactory interface of the Quartz framework. The properties of the task scheduler are configured through the quartz.properties property configuration file of the scheduler. The above quartz.properties property configuration file is used to configure the properties of the task scheduler, thread pool and job storage.

[0054] In a specific application, the instance name (org.quartz.scheduler.instanceName) of the task scheduler is set as the above-mentioned cluster name variable through the quartz.properties attribute configuration file.

Embodiment 3

[0056] Such as image 3 As shown, in this embodiment, step S104 in Embodiment 1 specifically includes:

[0057] Step S301: Issue a task execution instruction through the task scheduler according to the task management table.

[0058] In a specific application, each task is assigned an execution time according to the execution status field, start time field, and end time field of each task in the task management table. The above execution status field is used to identify the execution status of the task, and the execution status includes not executed, in progress and executed. The above start time field and end time field are used to identify the time point when the execution of the task starts and the time point when the execution ends. The task scheduler generates and issues task execution instructions according to the task execution time, task code and task implementation class.

[0059] In a specific application, the above-mentioned task execution time may also consider ...

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 method is applicable to the technical field of computers. The invention provides a Quartz framework-based task scheduling method and system and terminal equipment, and the method comprises the steps: obtaining a configuration file of a server, determining a cluster name variable corresponding to the server according to the configuration file of the server, and configuring the attribute of a task scheduler of a Quartz framework according to the cluster name variable; creating a task management table, and importing the cluster name variables into the task management table; and performing task scheduling according to the task management table through the task scheduler, and storing a task scheduling result in a database; obtaining a cluster name variable according to the configuration file of the server, configuring an attribute and a task management table of the task scheduler according to the cluster name variable; The task scheduler based on the same database schedules and managestasks of different cluster systems, unified management of the multi-cluster system is achieved, and the problem that at present, management and scheduling cannot be conducted on the tasks of the cluster systems on the basis of the same database based on a Quartz framework is effectively solved.

Description

technical field [0001] The invention belongs to the technical field of computers, and in particular relates to a task scheduling method, system and terminal equipment based on a Quartz framework. Background technique [0002] The Quartz framework is an open source job scheduling framework written entirely in java. It is widely used in the task management and scheduling of timed tasks. However, the current Quartz framework is mainly used to realize the task management and scheduling of single cluster tasks in the same database, and cannot implement task management and scheduling of tasks in multiple cluster systems based on the same database. scheduling. [0003] To sum up, there is currently a problem that it is impossible to manage and schedule tasks of multiple cluster systems on the basis of the same database based on the Quartz framework. Contents of the invention [0004] In view of this, the embodiment of the present invention provides a task scheduling method, sys...

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
IPC IPC(8): G06F9/50
Inventor 徐定伟
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN