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

JAVA TIMER high availability-based timer logic realization method

An implementation method and high-availability technology, which can be used in the generation of response errors, redundancy in hardware for error detection of data, program startup/switching, etc. Effect

Active Publication Date: 2018-01-23
CHINA YOUKE COMM TECH
View PDF9 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] No matter what technology is used to implement the existing software timers, the task scheduling logic and business logic are generally written together, which causes a problem: once the server deploying the timer fails, the entire timer will stop working , the availability is not high
However, if the timer is deployed with multiple services, how to coordinate scheduling between the same timers becomes a difficult problem, because only one timer needs to execute business logic at the same time, and multiple timers execute the same business Logic has the potential to confuse the original logic

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
  • JAVA TIMER high availability-based timer logic realization method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0008] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments.

[0009] The purpose of the present invention is to provide a high-availability timer logic implementation method based on JAVA TIMER. It includes the following steps: S1: The timer is implemented by JAVA TIMER, and according to the set parameters, the task scheduling is executed at a certain time interval; S2: The business execution module is responsible for the specific business logic, and only when the task scheduling module meets the conditions Only then will the execution of the business module be triggered. The main way of execution is: when the task scheduling module determines that the task can be executed according to its own implementation logic, it sends an HTTP request to the JSP page of the business execution module, and enters the business logic using the JSP page as the entry point. execution. S3: According to the principle of con...

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 aims at providing a JAVA TIMER high availability-based timer logic realization method. According to the method, a competition mechanism is utilized to ensure that only one scheduling module can snag an operation right of a task at a same time, so that the operation of a business logic accords with expectations of users; and meanwhile, multiple business execution modules are deployed,and when one business execution module breaks down and cannot carry out execution, the executed logic can be transferred onto a server of another business execution module through modifying a URL address, so that the fault recovery speed is greatly improved.

Description

technical field [0001] The invention relates to a method for implementing timer logic based on high availability of JAVA TIMER. Background technique [0002] Most of the existing software products are used in the customer's production environment to provide services for customers' commercial purposes. This requires that software products and architectures have high availability, can recover in time when a failure occurs, and reduce manual intervention. There is an application scenario where specific task logic needs to be executed regularly, which is generally implemented through timers in software development. Most of the timers in JAVA are implemented through TIMER and the third-party Spring Quartz. There is no problem with the timing execution of the task code, and it can even be said that the execution time of the task is very accurate. However, when deployed to a production environment, how to improve the availability and fault recovery capabilities of timers becomes ...

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/48G06F11/20
Inventor 林宇范叔亮赖庆鑫
Owner CHINA YOUKE COMM TECH