Timing task processing method and device based on Spring MVC and computer device

A timing task and task technology, applied in the computer field, can solve problems affecting the normal use of the system

Pending Publication Date: 2019-10-15
PING AN TECH (SHENZHEN) CO LTD
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the above method, the system will no longer execute the step of obtaining the scheduled task according to the configuration file. The problem caused by this is that if the scheduled task is modified through the configuration file, the modified scheduled task will not be read and can only be accessed through After restarting the system, execute the modified scheduled task by reading the configuration file, but every time the configuration file of the scheduled task is modified, the system needs to be restarted, which will affect the normal use of the system

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
  • Timing task processing method and device based on Spring MVC and computer device
  • Timing task processing method and device based on Spring MVC and computer device
  • Timing task processing method and device based on Spring MVC and computer device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0058] The timing task processing method based on Spring MVC provided by this application can be applied to such as figure 1 shown in the application environment. Wherein, the timed task server 102 communicates with the database server 104 through the network. The timed task server 102 can obtain the latest attributes configured for the timed task in the database table of the database server 104, the attributes include trigger conditions, task identifiers and task paths of the timed task; and create events inherited from the attributes according to the attributes The eve...

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 relates to a timing task processing method and device based on Spring MVC and a computer device. The method relates to processing of timed tasks, and specifically comprises: acquiring latest attributes configured for the timed tasks in a database table, and the attributes comprising triggering conditions, task identifiers and task paths of the timed tasks; creating an event object inherited from an event interface class according to the attribute, and issuing the event object when the trigger condition is met; creating a monitor object which is used for monitoring whether the event object is published or not and inherits the self-monitor interface class; when it is monitored that the event object is published through the monitor object, obtaining a task identifier and a taskpath of a timing task corresponding to the event object; and transmitting the task identifier and the task path to a task scheduler, so that the task scheduler executes the timed task when querying the timed task corresponding to the task identifier according to the task path. By adopting the method, the system does not need to be restarted after the timing task is modified.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a Spring MVC-based timing task processing method, device, computer equipment and storage medium. Background technique [0002] A scheduled task is a task that needs to be executed regularly by the system, and the scheduled task will be triggered to execute under certain trigger conditions. Spring MVC is a "model-view-controller" framework of the Web layer. The existing method of triggering and executing scheduled tasks in Spring MVC is realized by adding and configuring scheduled tasks in the Spring MVC configuration file, which is read when the system starts The configuration file reads out the information of the scheduled task directly at one time and saves it in the memory, so as to execute the scheduled task when the trigger condition is met. [0003] However, in the above method, the system will no longer execute the step of obtaining the scheduled task accordin...

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): G06F16/2458G06F16/25G06F16/23G06F9/48G06F9/52G06F9/54
CPCG06F16/2477G06F16/258G06F16/2379G06F9/4881G06F9/526G06F9/546G06F2209/548
Inventor 许永夫
Owner PING AN TECH (SHENZHEN) CO LTD
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