CN108733468A - Timed task Dynamic Configuration and device, storage medium and server cluster - Google Patents

Timed task Dynamic Configuration and device, storage medium and server cluster Download PDF

Info

Publication number
CN108733468A
CN108733468A CN201710261061.7A CN201710261061A CN108733468A CN 108733468 A CN108733468 A CN 108733468A CN 201710261061 A CN201710261061 A CN 201710261061A CN 108733468 A CN108733468 A CN 108733468A
Authority
CN
China
Prior art keywords
timed task
information
task
configuration
timed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710261061.7A
Other languages
Chinese (zh)
Inventor
张嵩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710261061.7A priority Critical patent/CN108733468A/en
Publication of CN108733468A publication Critical patent/CN108733468A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This disclosure relates to a kind of timed task Dynamic Configuration, a kind of timed task dynamic configuration device, a kind of computer readable storage medium and a kind of server cluster.The method includes:By the timing task information in each server instance reading database in server cluster, and the timed task is configured in local memory according to the timing task information;Detect whether to receive the triggering information of the timed task;After detection receives the triggering information of the timed task, judge whether the configuration information of the timed task matches with current server example;Decide whether to execute the timed task in conjunction with judging result, and updates the status information of the timed task on interactive interface.Present disclose provides a kind of efficient timing task management methods, can effectively improve the efficiency of management of timed task.

Description

Timed task Dynamic Configuration and device, storage medium and server cluster
Technical field
This disclosure relates to field of computer technology, and in particular to a kind of timed task Dynamic Configuration, a kind of timing are appointed Business dynamic configuration device, a kind of computer readable storage medium and a kind of server cluster.
Background technology
In existing business management system, either foreground system or background system have many service logic needs The scene that timed task executes needs the demand for executing time point execution concrete operations being arranged in timed task.Also some industry Logic of being engaged in depends on third party's interface or application, but timed task implementing result cannot ensure.
The operating procedure of existing timed task is generally:Timed task service logic class is write first;Then it utilizes Spring frames and Quartz framework integrations;Finally configuring timing tasks execute the time in application configuration file.But in this way Method there is a problem of it is certain, such as:Timed task can not be run at any time, can not flexibly be prohibited to timed task With, start-up operation, and need modification of reaching the standard grade;Meanwhile also can not dynamic configuration, modification timing task carrying-out time, can not also move State specifies a certain example to execute timed task, also needs modification of reaching the standard grade.Also, user needs by way of print log It checks the implementing result of timed task, is not easy to check implementing result.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Invention content
The disclosure is designed to provide a kind of timed task Dynamic Configuration, timed task dynamic configuration device, one Kind computer readable storage medium and server cluster, and then the limitation due to the relevant technologies is overcome at least to a certain extent With one or more problem caused by defect.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to the disclosure in a first aspect, provide a kind of timed task Dynamic Configuration, including:
By the timing task information in each server instance reading database in server cluster, and according to described fixed When mission bit stream the timed task is configured in local memory;
Detect whether to receive the triggering information of the timed task;
After detection receives the triggering information of the timed task, judge the configuration information of the timed task with it is current Whether server instance matches;
Decide whether to execute the timed task in conjunction with judging result, and updates the timed task on interactive interface Status information.
In a kind of exemplary embodiment of the disclosure, the combination judging result decides whether that executing the timing appoints Business, and the status information for updating on interactive interface the timed task includes:
When the configuration information for judging the timed task is with current server example match, the timed task is executed, And update the status information of the timed task on the interactive interface;Alternatively,
When the configuration information for judging the timed task is mismatched with current server example, the timing is not executed and is appointed Business, and update the status information of the timed task on the interactive interface.
In a kind of exemplary embodiment of the disclosure, the timed task Dynamic Configuration further includes:
The timing task information of user's typing is received by the interactive interface, and the timing task information is stored in In the database.
In a kind of exemplary embodiment of the disclosure, the timed task Dynamic Configuration further includes:
After receiving the configuration modification information by a timed task of the interactive interface typing, appoint to the timing Be engaged in corresponding server instance send the timed task configuration modification request;
Timing task information described in configuration modification information update database according to the timed task.
In a kind of exemplary embodiment of the disclosure, the timed task Dynamic Configuration includes:
After updating the data timing task information described in library, call Zookeeper servers to server set pocket transmission The configuration modification information of the timed task so that in the server cluster each server instance obtain it is updated described fixed When task configuration information;
According to the timed task configuration information in local memory described in the updated configuration information update of the timed task.
In a kind of exemplary embodiment of the disclosure, the configuration information of the timed task includes:
One kind in the Job objects of the timed task, triggering information and corresponding destination server instance configuration information Or it is a variety of.
According to the second aspect of the disclosure, a kind of timed task dynamic configuration device is provided, including:
Local mission bit stream configuration module is appointed for the timing task information in reading database, and according to the timing Business information configures the timing task information in local memory;
Information detecting module is triggered, for detecting whether receiving the triggering information of the timed task;
Information matches judgment module, for after detection receives the triggering information of the timed task, it to be described fixed to judge When task configuration information whether matched with current server example;
Task execution module executes the timed task for deciding whether in conjunction with judging result;
State update module, the status information for updating the timed task on interactive interface;
Interactive interface, it is described fixed for the configuration information or configuration modification information of timed task described in typing, and display When task status information.
In a kind of exemplary embodiment of the disclosure, the timed task in the timed task dynamic configuration device Configuration information include:
One kind in the Job objects of the timed task, triggering information and corresponding destination server instance configuration information Or it is a variety of.
According to the third aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, Above-mentioned timed task Dynamic Configuration is realized when described program is executed by processor.
According to the fourth aspect of the disclosure, a kind of server cluster, including multiple servers are provided;The server configuration To execute following operation via the executable instruction is executed:
Timing task information in reading database, and described in being configured in local memory according to the timing task information Timed task;
Detect whether to receive the triggering information of the timed task;
After detection receives the triggering information of the timed task, judge the configuration information of the timed task with it is current Whether server instance matches;
Decide whether to execute the timed task in conjunction with judging result, and updates the timed task on interactive interface Status information.
In the timed task Dynamic Configuration that a kind of embodiment of the disclosure is provided, first in server cluster Each server instance reading database in timing task information, and institute is configured in local memory according to timing task information State timed task;Then it in the triggering information for receiving timed task, first determines whether the configuration information of the timed task and works as Whether preceding server instance matches, and is decided whether according to judging result to execute the timed task, to realize enable it is specified Server instance completion timing task.And the status information for updating the timed task on interactive interface makes user not Need print log that can read implementing result, to facilitate user's checking for timed task implementing result, and then conveniently Management of the user for timed task, effectively improves working efficiency.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of timed task Dynamic Configuration schematic diagram in disclosure exemplary embodiment;
Fig. 2 schematically shows a kind of timed task Dynamic Configuration execution flow chart in disclosure exemplary embodiment;
Fig. 3 schematically shows a kind of execution stream of timed task dynamic update configuration information in disclosure exemplary embodiment Cheng Tu;
Fig. 4 schematically shows a kind of timed task dynamic configuration device composition schematic diagram in disclosure exemplary embodiment;
Fig. 5 schematically shows another timed task dynamic configuration device schematic diagram in disclosure exemplary embodiment.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in attached drawing are work( Energy entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be used to realize these work( Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of timed task Dynamic Configuration is provided firstly in this example embodiment, can be applied to for timing The dynamic management of task.With reference to shown in figure 1, above-mentioned timed task Dynamic Configuration may include:
Step S1, by the timing task information in each server instance reading database in server cluster, and root The timed task is configured in local memory according to the timing task information;
Step S2 detects whether the triggering information for receiving the timed task;
Step S3, after detection receives the triggering information of the timed task, judge the timed task matches confidence Whether breath matches with current server example;
Step S4 decides whether to execute the timed task in conjunction with judging result, and update on interactive interface it is described fixed When task status information.
In the timed task Dynamic Configuration that this example embodiment is provided, first with each in server cluster Timing task information in server instance reading database, and configured in local memory according to timing task information it is described fixed When task;Then in the triggering information for receiving timed task, first determine whether the configuration information of the timed task with it is current Whether server instance matches, and is decided whether according to judging result to execute the timed task, and specified clothes are enabled to realize Business device example completion timing task.And the status information for updating the timed task on interactive interface makes user be not required to beat Print daily record can read implementing result, to facilitate user's checking for timed task implementing result, and then facilitate user Management for timed task, effectively improves working efficiency.
In the following, each steps of the Fig. 2 to Fig. 5 to the timed task Dynamic Configuration in this example embodiment will be combined It is described in detail.
Step S1, by the timing task information in each server instance reading database in server cluster, and root The timed task is configured in local memory according to the timing task information.
In this example embodiment, refering to what is shown in Fig. 2, when starting application server cluster, such as:Tomcat servers Cluster, each server instance in application server cluster then enter the configuration information that timed task is read in MySQL database, Then timed task is created in local memory according to the configuration information of the timing services, and timed task is being locally configured Information.
Above-mentioned timed task configuration information may include:Job objects (task object), the Trigger letters of timed task The contents such as breath (triggering information), the IP of destination server for executing timed task.
Step S2 detects whether the triggering information for receiving the timed task;
In this example embodiment, each server instance completes the establishment to timed task in local memory and configures it Afterwards, just start to detect whether to receive the triggering information of timed task.Above-mentioned triggering information can be the beginning of timed task Time or a certain preset execution action etc., the disclosure does not do particular determination herein to the triggering information of location tasks.
Step S3, after detection receives the triggering information of the timed task, judge the timed task matches confidence Whether breath matches with current server example;
In this example embodiment, after detecting the triggering information (such as trigger time) of timed task, every is answered It can all be triggered with server instance and execute timed task.But can judge before execution task the configuration information of timed task with Whether current server instance matches.Such as judge that the IP of Target IP and current server example in timed task configuration is No matching, etc..
Step S4 decides whether to execute the timed task in conjunction with judging result, and update on interactive interface it is described fixed When task status information.
In this example embodiment, refering to what is shown in Fig. 2, above-mentioned judging result may include following scenario described:
When the configuration information for judging the timed task is with current server example match, the timed task is executed, And update the status information of the timed task on the interactive interface.
Alternatively, when the configuration information for judging the timed task is mismatched with current server example, do not execute described Timed task, and update the status information of the timed task on the interactive interface.
For example, the configuration information content of first timed task set by user includes specified intended application service Device X is executed, and includes the IP address of application server instance X.When server cluster detects triggering information, first determine whether to work as Whether preceding server instance IP matches with the IP address in the first timed task configuration information.And only judging IP address Timing just executes first timed task;And timed task is updated in interactive interface after the first timed task executes Status information, such as:Timed task executes completion.Detecting that the configuration information of current server example and timed task is inconsistent When, then the timed task is not executed;And the status information of timed task is updated in interactive interface, such as:Timed task executes mistake Lose, and can with remarks content, such as:Current server IP and configuration information such as are not inconsistent at the contents.
By judging whether current server example IP matches with timed task configuration information before executing timed task, It may be implemented to execute timed task using specified server instance.
Based on the above, in this example embodiment, above-mentioned timed task Dynamic Configuration can also include:It is logical It crosses the interactive interface and receives the timing task information of user's typing, and the timing task information is stored in the database In.
By the way that a special interactive interface is arranged, allow user by the interactive interface typing timed task, and set The configuration information of timed task, and in the database by the timed task configured storage, from without in application configuration file Middle setting timed task can be added by the form dynamic of page configuration, delete timed task;And can by timed task by It detaches and is come out in database on line, facilitate setting of the user for timed task.Meanwhile user can also pass through interactive interface The status information and executive condition of real time inspection timed task allow users to the information for timely understanding timed task.
Based on the above, in this example embodiment, refering to what is shown in Fig. 3, above-mentioned timed task dynamic configuration side Method can also include:
Step S21, after receiving the configuration modification information by a timed task of the interactive interface typing, to institute State the configuration modification request that the corresponding server instance of timed task sends the timed task;
Step S22, timing task information described in the configuration modification information update database according to the timed task;
Step S23 calls Zookeeper servers to server after updating the data timing task information described in library After collecting the configuration modification information of timed task described in pocket transmission so that each server instance obtains update in the server cluster The timed task configuration information;
Step S24, according to the timed task in local memory described in the updated configuration information update of the timed task Configuration information.
Zookeeper is a kind of distributed, open source code distributed application program coordination service.When user pass through it is upper After interactive interface input is stated to the configuration modification information of timed task, then one is sent to the corresponding server instance of the timed task Timed task configuration modification is asked.After receiving the timed task configuration modification request in server instance, according to user Timed task configuration information in the configuration modification information update database of the timed task of input.Then pass through calling Zookeeper notifies the Servers-all example on backstage, and timed task is configured with update, and triggering background server cluster is actively Inquiry database is removed, the updated configuration information of timed task is obtained, then according to newest configuration information update local memory In Job objects and Trigger object informations, to achieve the purpose that dynamically update timed task configuration information.
The configuration information that timed task is changed by using interactive interface can be allowed the user to dynamically add, be deleted Timed task is reached the standard grade again without changing code.And flexible modification timed task can be realized by interactive interface The execution time, the configuration informations such as destination server example, need not also change code;It can also pass through interactive interface simultaneously Flexible disabling starts timed task, need not change code, to greatly facilitate management of the user to timed task, into And effectively promote working efficiency.
It should be noted that above-mentioned attached drawing is only showing for the processing included by method according to an exemplary embodiment of the present invention Meaning property explanation, rather than limit purpose.It can be readily appreciated that it is above-mentioned it is shown in the drawings processing do not indicate or limit these processing when Between sequence.In addition, being also easy to understand, these processing for example can be executed either synchronously or asynchronously in multiple modules.
Further, refering to what is shown in Fig. 4, additionally providing a kind of timed task dynamic configuration dress in this exemplary embodiment Set 2, including:Local mission bit stream configuration module 21, triggering information detecting module 22, information matches judgment module 23, task are held Row module 24, state update module 25 and interactive interface 26.Wherein:
The local mission bit stream configuration module 21 can be used for the timing task information in reading database, and according to institute It states timing task information and configures the timing task information in local memory;
The triggering information detecting module 22 can be used for detecting whether receiving the triggering information of the timed task;
Described information matching judgment module 23 can be used for after detection receives the triggering information of the timed task, sentence Whether the configuration information of the disconnected timed task matches with current server example;
The task execution module 24 can be used for deciding whether in conjunction with the judging result executing the timed task;
The state update module 25 can be used for updating the status information of the timed task on interactive interface;
The interactive interface 26 can be used for the configuration information or configuration modification information of timed task described in typing, Yi Jixian Show the status information of the timed task.
Timing task information is stored by using database;And interactive interface is set, so that user is passed through this Interactive interface flexibly modifies to the configuration information of timed task, and can dynamically add, delete timed task, avoids The complex operations that modification code is reached the standard grade again;And user can also check the state letter of timed task by interactive interface Breath has great convenience for the user the management for timed task, promotes working efficiency.
The detail of each timed task dynamic configuration device module is matched in corresponding timed task dynamic among the above It sets in method and is described in detail, therefore details are not described herein again.
Further, the present exemplary embodiment also discloses a kind of server cluster, including multiple servers;The service Device may include timed task dynamic configuration device as shown in Figure 4, and the server is configured to hold via described in execution Row instructs to execute following operation:Step S1, the timing task information in reading database, and according to the timing task information The timed task is configured in local memory;Step S2 detects whether the triggering information for receiving the timed task;Step S3 judges the configuration information and current service of the timed task after detection receives the triggering information of the timed task Whether device example matches;Step S4 decides whether to execute the timed task in conjunction with judging result, and is updated on interactive interface The status information of the timed task.
The timed task configuration information or configuration modification that each server instance is inputted by receiving user by interactive interface Information and timed task modification request, change the timing task information stored in the database, and the timing after execution is appointed Business status information is sent to interactive interface and is consulted for user, to provide a kind of efficient timing task management pattern, effectively Raising working efficiency.
In some possible embodiments, various aspects of the disclosure is also implemented as a kind of shape of program product Formula comprising program code, when described program product is run on the terminal device, said program code is for making the terminal Equipment, which executes, determines described in above-mentioned " illustrative methods " part of this specification according to the various illustrative embodiments of the disclosure When task Dynamic Configuration in step pass through for example, the terminal device can execute step S1 as shown in fig. 1 The timing task information in each server instance reading database in server cluster, and existed according to the timing task information The timed task is configured in local memory;Step S2 detects whether the triggering information for receiving the timed task;Step S3 judges the configuration information and current service of the timed task after detection receives the triggering information of the timed task Whether device example matches;Step S4 decides whether to execute the timed task in conjunction with judging result, and is updated on interactive interface The status information of the timed task.
The arbitrary combination of one or more readable mediums may be used in described program product.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or the arbitrary above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes:Electrical connection, portable disc with one or more conducting wires, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Refering to what is shown in Fig. 5, describing the program production of timed task Dynamic Configuration according to the embodiment of the present invention Product 40 may be used portable compact disc read only memory (CD-ROM) and include program code, and can in terminal device, Such as it is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or It is in connection.
Readable signal medium may include in a base band or as the data-signal that a carrier wave part is propagated, wherein carrying Readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, which can send, propagate either transmission for being used by instruction execution system, device or device or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for executing the program that operates of the present invention Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It executes on computing device, partly execute on a user device, being executed as an independent software package, partly in user's calculating Upper side point is executed or is executed in remote computing device or server completely on a remote computing.It is being related to far In the situation of journey computing device, remote computing device can pass through the network of any kind --- including LAN (LAN) or extensively Domain net (WAN)-be connected to user calculating equipment, or, it may be connected to external computing device (such as utilize Internet service Provider is connected by internet).
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (10)

1. a kind of timed task Dynamic Configuration, which is characterized in that including:
Appoint by the timing task information in each server instance reading database in server cluster, and according to the timing Business information configures the timed task in local memory;
Detect whether to receive the triggering information of the timed task;
After detection receives the triggering information of the timed task, the configuration information and current service of the timed task are judged Whether device example matches;
Decide whether to execute the timed task in conjunction with judging result, and updates the state of the timed task on interactive interface Information.
2. timed task Dynamic Configuration according to claim 1, which is characterized in that the combination judging result determines Whether the timed task is executed, and the status information for updating on interactive interface the timed task includes:
When the configuration information for judging the timed task is with current server example match, the timed task is executed, and more The status information of the timed task on the new interactive interface;Alternatively,
When the configuration information for judging the timed task is mismatched with current server example, the timed task is not executed, And update the status information of the timed task on the interactive interface.
3. timed task Dynamic Configuration according to claim 1, which is characterized in that the timed task dynamic configuration Method further includes:
The timing task information of user's typing is received by the interactive interface, and the timing task information is stored in described In database.
4. timed task Dynamic Configuration according to claim 1, which is characterized in that the timed task dynamic configuration Method further includes:
After receiving the configuration modification information by a timed task of the interactive interface typing, to the timed task pair The server instance answered sends the configuration modification request of the timed task;
Timing task information described in configuration modification information update database according to the timed task.
5. timed task Dynamic Configuration according to claim 4, which is characterized in that the timed task dynamic configuration Method includes:
After updating the data timing task information described in library, call Zookeeper servers to described in server set pocket transmission The configuration modification information of timed task is so that each server instance obtains the updated timing times in the server cluster The configuration information of business;
According to the timed task configuration information in local memory described in the updated configuration information update of the timed task.
6. according to claim 1-5 any one of them timed task Dynamic Configurations, which is characterized in that the timed task Configuration information include:
One kind or more in the Job objects of the timed task, triggering information and corresponding destination server instance configuration information Kind.
7. a kind of timed task dynamic configuration device, which is characterized in that including:
Local mission bit stream configuration module is believed for the timing task information in reading database, and according to the timed task Breath configures the timing task information in local memory;
Information detecting module is triggered, for detecting whether receiving the triggering information of the timed task;
Information matches judgment module, for after detection receives the triggering information of the timed task, judging that the timing is appointed Whether the configuration information of business matches with current server example;
Task execution module executes the timed task for deciding whether in conjunction with judging result;
State update module, the status information for updating the timed task on interactive interface;
Interactive interface is appointed for the configuration information or configuration modification information of timed task described in typing, and the display timing The status information of business.
8. timed task dynamic configuration device according to claim 7, which is characterized in that the timed task matches confidence Breath includes:
One kind or more in the Job objects of the timed task, triggering information and corresponding destination server instance configuration information Kind.
9. a kind of computer readable storage medium is stored thereon with computer program, is realized when described program is executed by processor Timed task Dynamic Configuration according to any one of claim 1 to 7.
10. a kind of server cluster, which is characterized in that
Including multiple servers;The server is configured to execute following operation via the executable instruction is executed:
Timing task information in reading database, and the timing is configured in local memory according to the timing task information Task;
Detect whether to receive the triggering information of the timed task;
After detection receives the triggering information of the timed task, the configuration information and current service of the timed task are judged Whether device example matches;
Decide whether to execute the timed task in conjunction with judging result, and updates the state of the timed task on interactive interface Information.
CN201710261061.7A 2017-04-20 2017-04-20 Timed task Dynamic Configuration and device, storage medium and server cluster Pending CN108733468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710261061.7A CN108733468A (en) 2017-04-20 2017-04-20 Timed task Dynamic Configuration and device, storage medium and server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710261061.7A CN108733468A (en) 2017-04-20 2017-04-20 Timed task Dynamic Configuration and device, storage medium and server cluster

Publications (1)

Publication Number Publication Date
CN108733468A true CN108733468A (en) 2018-11-02

Family

ID=63933483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710261061.7A Pending CN108733468A (en) 2017-04-20 2017-04-20 Timed task Dynamic Configuration and device, storage medium and server cluster

Country Status (1)

Country Link
CN (1) CN108733468A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764894A (en) * 2019-10-24 2020-02-07 北京锐安科技有限公司 Timed task management method, device, equipment and storage medium
CN111198753A (en) * 2018-11-16 2020-05-26 北京京东尚科信息技术有限公司 Task scheduling method and device
WO2020232878A1 (en) * 2019-05-23 2020-11-26 平安科技(深圳)有限公司 Spring mvc-based timed task processing method, apparatus and computer device
CN113672409A (en) * 2021-08-24 2021-11-19 贵州电子商务云运营有限责任公司 Method for executing multiple different service events based on one timing task

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100259A (en) * 2015-08-18 2015-11-25 北京京东尚科信息技术有限公司 Distributed timed task execution method and system
US9396031B2 (en) * 2013-09-27 2016-07-19 International Business Machines Corporation Distributed UIMA cluster computing (DUCC) facility
CN106201694A (en) * 2016-07-13 2016-12-07 北京农信互联科技有限公司 Configuration method and system for executing timing task under distributed system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9396031B2 (en) * 2013-09-27 2016-07-19 International Business Machines Corporation Distributed UIMA cluster computing (DUCC) facility
CN105100259A (en) * 2015-08-18 2015-11-25 北京京东尚科信息技术有限公司 Distributed timed task execution method and system
CN106201694A (en) * 2016-07-13 2016-12-07 北京农信互联科技有限公司 Configuration method and system for executing timing task under distributed system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XUELI.XUE: "《分布式任务调度平台》(最新版)", 《HTTPS://GITHUB.COM/XUXUELI/XXL-JOB/BLOB/V1.4/README.MD》 *
许武顺: "spring定时任务scheduler集群环境下防止多次执行", 《HTTPS://WWW.JIANSHU.COM/P/30C1FB5F7F04》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111198753A (en) * 2018-11-16 2020-05-26 北京京东尚科信息技术有限公司 Task scheduling method and device
WO2020232878A1 (en) * 2019-05-23 2020-11-26 平安科技(深圳)有限公司 Spring mvc-based timed task processing method, apparatus and computer device
CN110764894A (en) * 2019-10-24 2020-02-07 北京锐安科技有限公司 Timed task management method, device, equipment and storage medium
CN113672409A (en) * 2021-08-24 2021-11-19 贵州电子商务云运营有限责任公司 Method for executing multiple different service events based on one timing task

Similar Documents

Publication Publication Date Title
CN107979508B (en) Micro-service test method and device
CN105677335B (en) Improve the method and device that mobile terminal first powers on speed
CN108733468A (en) Timed task Dynamic Configuration and device, storage medium and server cluster
CN109408132A (en) A kind of configuration file processing method and server, user terminal, storage medium
CN108023808A (en) message distributing method and device in application program
CN109558202A (en) Original list development approach, device, equipment and storage medium based on small routine
CN109792460A (en) A kind of file updating method, file updating device and terminal device
CN108876619A (en) Processing method, device, equipment and medium based on block chain intelligence contract
CN112154420A (en) Automatic intelligent cloud service testing tool
CN110059011A (en) Interface test method, device, medium and electronic equipment
CN109254914A (en) Software development kit test method, system, computer installation and readable storage medium storing program for executing
CN110059456A (en) Code protection method, code protection device, storage medium and electronic equipment
CN110400217A (en) The regular changing process method and device of intelligent contract
CN106027365A (en) Information interaction method and device
JP2021002326A (en) Refinement of repair patterns for static analysis violations in software programs
CN109768962B (en) Firewall strategy generation method and device, computer equipment and storage medium
CN107844363B (en) Business transaction processing method, device, storage medium and equipment
CN105447384B (en) A kind of anti-method monitored, system and mobile terminal
CN106527979B (en) Data migration method and device
CN105335169A (en) Method and apparatus for starting up communication in intelligent terminal
WO2023169193A1 (en) Method and device for generating smart contract
CN110045952A (en) Code call method and device
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN113452776B (en) PaaS platform service scheduling method and device and PaaS platform
CN109859038A (en) A kind of take-effective method and device of block chain intelligence contract

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181102