A JAVA unifed task center scheduling method

A central scheduling and task technology, applied in the direction of program startup/switching, program control design, instruments, etc., can solve the problems of non-persistent task scheduling, simple configuration, inability to distinguish between horizontal clusters or vertical clusters, etc., and achieve efficient automatic task switching. Execution strategy, flexible configuration, and avoiding the effect of repeated task execution

Inactive Publication Date: 2018-12-14
北京中科梧桐网络科技有限公司
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In computer software programming, any job scheduler in the strict sense provides direct specification of execution time, storage of job information to various introductions, customization using hooks, and other more functions. Several mainstream job schedulers are mainly used now. , such as JDK's native Timer scheduler, which is suitable for simple scheduling, but the configuration is simple, it cannot support flexible scheduling, and only tasks can be executed serially. The result of the previous task affects the next task. If there is a scheduled task running, unprocessed If there is an exception, the current thread will stop, and all scheduled tasks will be stopped and affected, and need to be created repeatedly during execution. There is no concept of thread pool, and resources cannot be shared; for thread pool task scheduling, it is suitable for simple scheduling, task execution The time interval is not fixed, it does not support complex scheduling tasks, and it cannot achieve task cluster scheduling; for Quartz task scheduling, it is suitable for complex scheduling, but it is difficult to learn, difficult to master, and it is inconvenient to change time rules, and it cannot distinguish between horizontal clusters or vertical clusters
[0003] From the above-mentioned mainstream schedulers, we can see that all kinds of scheduling of the execution scheduler need to be learned, and the learning cycle is long. Some task scheduling cannot be distributed, and the task configuration is not uniform, scattered, difficult to manage, and there is no convenient and quick management. In the background, it is difficult to adjust in time. At the same time, task scheduling has no persistence, which is easy to lose and difficult to recover
The shortcomings of mainstream schedulers make it difficult for these schedulers to become a full-fledged job scheduler

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
  • A JAVA unifed task center scheduling method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The following drawings clearly and completely describe the technical solutions of the present invention in conjunction with specific implementation methods. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0017] according to figure 1 As shown, a JAVA unified task center scheduling method includes the following steps:

[0018] Q1. Access tasks through a unified task API interface;

[0019] Q2. Through the task scheduler, the access tasks are distributed to the local server or network server;

[0020] Q3. Select an idle server from any local server or network server to call the service to execute after receiving the task. If the execution result is successful, the execution of the call service is compl...

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 JAVA unified task center scheduling method, comprising the following steps: accessing a task through a unified task API interface; distributing the accessed tasks to a local server or a network server; processing the tasks through queuing. The invention provides sufficient task scheduling extension points through the unified task interface, and has flexible configuration and distributed task scheduling, avoids task repeated execution, and realizes flexible and efficient automatic task switching execution strategy.

Description

technical field [0001] The invention belongs to the technical field of task schedulers, and in particular relates to a JAVA unified task center scheduling method. Background technique [0002] In computer software programming, any job scheduler in the strict sense provides direct specification of execution time, storage of job information to various introductions, customization using hooks, and other more functions. Several mainstream job schedulers are mainly used now. , such as JDK's native Timer scheduler, which is suitable for simple scheduling, but the configuration is simple, it cannot support flexible scheduling, and only tasks can be executed serially. The result of the previous task affects the next task. If there is a scheduled task running, unprocessed If there is an exception, the current thread will stop, and all scheduled tasks will be stopped and affected, and need to be created repeatedly during execution. There is no concept of thread pool, and resources can...

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
CPCG06F9/4881
Inventor 宋国徽
Owner 北京中科梧桐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products