CN108399095B - Method, system, device and storage medium for supporting dynamic management of timed tasks - Google Patents

Method, system, device and storage medium for supporting dynamic management of timed tasks Download PDF

Info

Publication number
CN108399095B
CN108399095B CN201710064140.9A CN201710064140A CN108399095B CN 108399095 B CN108399095 B CN 108399095B CN 201710064140 A CN201710064140 A CN 201710064140A CN 108399095 B CN108399095 B CN 108399095B
Authority
CN
China
Prior art keywords
instance
trigger
schedule
jobinstance
creating
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.)
Active
Application number
CN201710064140.9A
Other languages
Chinese (zh)
Other versions
CN108399095A (en
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 CN201710064140.9A priority Critical patent/CN108399095B/en
Publication of CN108399095A publication Critical patent/CN108399095A/en
Application granted granted Critical
Publication of CN108399095B publication Critical patent/CN108399095B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a method for supporting dynamic management of timing tasks, which comprises the following steps: obtaining annotations through a reflection mechanism; analyzing the annotation to obtain annotation information; creating unique identifiers of the instances and the setting instances according to the annotation information; the instance and the unique identifier are stored in a corresponding container. The invention also relates to a system, an electronic device and a storage medium supporting dynamic management of timed tasks.

Description

Method, system, device and storage medium for supporting dynamic management of timed tasks
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, a device, and a storage medium for supporting dynamic management of a timing task.
Background
In enterprise software, many scenes do not need manual intervention, the system can be automatically completed, and generally the scenes can be solved through timing tasks. For example, a reporting system of a company sends a report file to a management layer of the company every day to check the operation condition of the company, and the system generates a report and sends the report without manual intervention, and the system can automatically execute the report at a certain moment. The function (timing task) automatically executed is worker, and the number of workers is particularly large in a large-scale electric business system.
For the implementation of the timing task, there are two schemes in the prior art, wherein one scheme implements the timing task for the SPRING annotation, and the other scheme implements the timing task for the configuration file. In the development process of software, in order to reduce development cost and improve development efficiency, a common POJO (simple Java object) is usually selected and written, and then schedule, trigger and job of worker are created in a configuration file through reflection. With the increase of the number of workers, a large amount of configuration information such as schedule, trigger, jobe and the like exists in the configuration file. Although the open source framework SPRING provides a function for annotating and realizing a timing task, the instance IDs of instances such as schedule, trigger and jobB are not exposed to the outside, so that worker managers cannot execute dynamic management functions such as schedule start, stop or trigger on the schedule on the worker during the operation of the system.
The SPRING annotation implementation timing task is a timing task created by analyzing the annotated attribute when the system is started, and the task is automatically started after the system is started. However, the technical scheme has the following problems: worker managers cannot manually turn on/off the worker; and the dynamic management functions of starting, stop, trigger one time and the like cannot be executed on the worker in the system operation process.
The configuration file realizes the timing task, the timing task is created by analyzing the attributes configured in the configuration file when the system is started, and the timing task can be managed by the configured instance ID. The technical scheme has the following problems: the workload of configuring the timing tasks increases linearly with the increase of the number of the timing tasks, and further, the development efficiency is low, and the later maintenance cost is high.
Disclosure of Invention
In view of the above, the present invention provides a method, a system, a device, and a storage medium for supporting dynamic management of a timing task, which can implement dynamic management of the timing task during operation through zero configuration, and also can reduce development cost and improve development efficiency, thereby solving the problems that at the present stage, dynamic management such as executing start and stop on a worker and triggering trigger once during the operation of a system cannot be performed, development efficiency is low, and maintenance cost in a later stage is high.
To achieve the above object, according to one aspect of the present invention, there is provided a method of supporting dynamic management of a timing task.
The method of the invention comprises the following steps: obtaining annotations through a reflection mechanism; analyzing the annotation to obtain annotation information; creating unique identifiers of the instances and the setting instances according to the annotation information; the instance and the unique identifier are stored in a corresponding container.
Optionally, the method of the present invention further comprises: the instance ID is encapsulated in the annotation, which is then set as the unique identification of the instance.
Optionally, the instance ID includes a schedule instance ID, a trigger instance ID, and a jobinstance ID, and the schedule instance ID, the trigger instance ID, and the jobinstance ID are set as unique identifiers of the schedule instance, the trigger instance, and the jobinstance, respectively.
Optionally, creating unique identifiers of the instances and the setting instances according to the annotation information includes: creating a jobinstance according to the annotation information, and setting a unique identifier of the jobinstance; creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance; creating a schedule instance according to the annotation information and the trigger instance, and setting a unique identifier of the schedule instance.
Optionally, the method of the present invention further comprises: creating a jobinstance container, a trigger instance container and a schedule instance container; storing the jobinstance and the unique identification of the jobinstance in a jobinstance container; storing the unique identifiers of the trigger instance and the trigger instance in a trigger instance container; and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
According to another aspect of the present invention, a system is provided for supporting dynamic management of timed tasks.
The system of the present invention comprises: an acquisition module for acquiring annotations by a reflection mechanism; the analysis module is used for analyzing the annotation to obtain annotation information; the creating module is used for creating an example and setting a unique identifier of the example according to the annotation information; and the storage module is used for storing the examples and the unique identification in corresponding containers.
Optionally, the system of the present invention further includes an encapsulation module, configured to encapsulate the instance ID in the annotation, and the creation module sets the instance ID as a unique identifier of the instance.
Optionally, the instance ID includes a schedule instance ID, a trigger instance ID, and a jobinstance ID, and the creation module sets the schedule instance ID, the trigger instance ID, and the jobinstance ID as unique identifiers of the schedule instance, the trigger instance, and the jobinstance, respectively.
Optionally, the creating module includes: a job instance creating unit, configured to create a job instance according to the annotation information, and set a unique identifier of the job instance; creating a trigger instance unit, creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance; and the creating schedule instance unit is used for creating a schedule instance according to the annotation information and the trigger instance and setting a unique identifier of the schedule instance.
Optionally, the creating module is further configured to create a jobinstance container, a trigger instance container, and a schedule instance container;
the storage module stores the jobinstance and the unique identification of the jobinstance in a jobinstance container; storing the unique identifiers of the trigger instance and the trigger instance in a trigger instance container; and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
According to another aspect of the present invention, an electronic device supporting dynamic management of timed tasks is provided.
The electronic device of the present invention includes one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement any of the above-described methods of supporting dynamically managed timed tasks.
According to another aspect of the present invention, there is provided a computer readable medium having stored thereon a computer program, characterized in that said program, when executed by a processor, implements any of the above-described methods of supporting dynamically managed timed tasks.
The non-transitory computer readable storage medium of the present invention stores computer instructions for causing the computer to perform any one of the above-described methods of supporting dynamically managed timed tasks.
According to the technical scheme of the invention, annotation information is obtained by analyzing the annotation in the runtime, and the unique identifier of the instance is set when the instance is created according to the annotation information, and the instance and the unique identifier are stored in the corresponding container. Furthermore, in the system operation process, when one operation needs to be executed on the schedule, the stop and the Trigger, the specific dynamic management operation can be executed on the schedule instance, the Trigger instance and the Job instance by respectively inquiring the unique identifier of the schedule instance, the unique identifier of the Trigger instance and the unique identifier of the Job instance in the schedule container, the Trigger container and the Job container, namely, the dynamic management of the timing task during the operation is supported.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a diagram illustrating the main steps of a method for supporting dynamic management of timed tasks according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of creating a jobinstance according to an embodiment of the present invention;
fig. 3 is a schematic diagram of creating a trigger instance according to an embodiment of the invention;
FIG. 4 is a schematic diagram of creating a schedule instance according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the main modules of a system supporting dynamic management of timed tasks according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an electronic device supporting dynamic management of timed tasks in accordance with an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device supporting dynamic management of timed tasks according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of the main steps of a method for supporting dynamic management of timed tasks according to an embodiment of the present invention. As shown in fig. 1, a method for supporting dynamic management of a timing task according to an embodiment of the present invention includes the following main steps:
s11: the annotation is obtained by a reflection mechanism.
Each worker must have a schedule class, Trigger class and Job class, wherein the schedule class is responsible for performing start and stop management operations on the worker, the Trigger triggers corresponding actions according to a set Trigger time expression, and only the Job class executes specific service logic. Based on the principle of focus separation, both the schedule instance and trigger instance can be created through reflection, and developers only need to develop logic related to services.
In the process of writing the annotation, the instance ID is packaged in the annotation, and then the instance ID can be set as the unique identifier of the instance after the instance is created, and certainly, other identifiers such as a name and the like can also be set as the unique identifier. Moreover, an annotation parameter auto start parameter value can be set, the annotation parameter auto start value is set to false or true, and whether a timing task automatically started exists or not is determined according to the annotation parameter auto start parameter value. The instance ID comprises a schedule instance ID, a trigger instance ID and a jobinstance ID, and the schedule instance ID, the trigger instance ID and the jobinstance ID are set as unique identifications of the schedule instance, the trigger instance and the jobinstance respectively. For example, attributes such as trigger execution time expression, schedule instance ID, trigger instance ID, Job instance ID and the like required by the trigger instance are all packaged through a comment type Worker schedule, and when a developer uses the method, the developer only needs to set the comment Worker schedule on a Job type of business logic and set corresponding parameters. The class attributes of an annotation class are as follows:
Figure GDA0001458202210000061
s12: and analyzing the annotation to obtain annotation information.
S13: unique identifications of the instances and the set instances are created from the annotation information. Creating unique identifiers for instances and setting instances from annotation information includes: creating a jobinstance according to the annotation information, and setting a unique identifier of the jobinstance; creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance; and creating a schedule instance according to the annotation information and the trigger instance, and setting a unique identifier of the schedule instance.
S14: the instance and the unique identifier are stored in a corresponding container. Creating a jobinstance container, a trigger instance container and a schedule instance container; storing the jobinstance and the unique identification of the jobinstance in a jobinstance container; storing the trigger instance and the unique identifier of the trigger instance in a trigger instance container; and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
Fig. 2 is a schematic diagram of creating a jobinstance according to an embodiment of the present invention. As shown in FIG. 2, when the system initializes the class, the annotation information set on the class is obtained through the reflection mechanism of Java, and if the annotation is set and the type of the annotation is WorkerScheduled, the type is a Job class. And then analyzing the annotation information to obtain a jobInstanceId value set in the annotation parameter. Creating an instance of the Job, setting a unique identification of the Job instance, namely setting an instance ID as a Job instanceId value in the annotation parameter, and storing the instance ID into a Job instance container in the form of a key-value pair, wherein key is the Job instanceId value (unique identification Job instance ID), and value is the Job instance.
Fig. 3 is a schematic diagram of creating a trigger instance according to an embodiment of the present invention. the trigger instance has the function of regularly triggering execution of the jobinstance, and triggering the execution time expression is set through the comment class WorkerScheduled attribute and is irrelevant to specific service implementation. As shown in fig. 3, when the system initializes the class, the annotation class information set on the Job class is parsed by the Java reflection mechanism, and the values of the annotation retrieval attributes cronExpression, triggerInstanceId, and jobInstanceId are parsed. And creating a trigger instance based on a Java reflection mechanism, wherein the trigger execution time expression of the instance is an annotation attribute cronExpression value, and the instance ID is an annotation attribute triggerInstanceId value. And taking the Job instance from the Job container through the Job instanceId value, and setting the Job instance to the Job attribute parameter of the trigger instance. Up to this point, the creation of the trigger instance is completed, and the trigger instance is stored in the trigger instance container in the form of a key-value key value pair, wherein the key is a trigger instanceid value (uniquely identifying the trigger instance ID), and the value is the trigger instance.
FIG. 4 is a diagram illustrating an example of creating a schedule according to an embodiment of the present invention. The role of the schedule instance is to manage the start and stop operations of the worker, and is irrelevant to the logic implementation of specific services. The schedule instance is created by reflection, again based on the point of interest separation principle. As shown in fig. 4, when the system initializes the class, the annotation information on the Job class is acquired through a Java reflection mechanism, and the annotation attributes scheduleinsatceid and triggerInstanceId are parsed. And taking out the corresponding Trigger instance from the Trigger container according to the Trigger instanceid, and setting the Trigger instance to the schedule instance. And after the creation is completed, saving the key-value key value into the schedule container.
Through the steps, the schedule instance, the trigger instance and the jobinstance are created and stored in the respective containers, and the instance IDs and the trigger execution time expression parameters of the schedule instance, the trigger instance and the jobinstance are set through the annotation attribute so as to be analyzed at runtime, and further unique identifications of the corresponding instance and the set instance are created. When a worker manager needs to dynamically manage the worker during running, unique schedule instances, trigger instances and job instances can be taken out from corresponding containers according to the attribute schedule entry Id, trigger instance Id and job instance Id values when a user sets annotations, and then messages are sent to the instances, so that dynamic management can be performed during running of the system.
Fig. 5 is a schematic diagram of the main modules of a system supporting dynamic management of timed tasks according to an embodiment of the present invention. As shown in fig. 5, a system for supporting dynamic management of a timing task according to an embodiment of the present invention includes: the system comprises an acquisition module, an analysis module, a creation module and a storage module, wherein the acquisition module is used for acquiring the annotation through a reflection mechanism, the analysis module is used for analyzing the annotation to acquire annotation information, the creation module is used for creating an example and setting a unique identifier of the example according to the annotation information, and the storage module is used for storing the example and the unique identifier in a corresponding container. The creating module comprises: a job instance creating unit used for creating a job instance according to the annotation information and setting a unique identifier of the job instance; creating a trigger instance unit, creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance; and the creating schedule instance unit is used for creating a schedule instance according to the annotation information and the trigger instance and setting the unique identifier of the schedule instance. The creating module is also used for creating a jobinstance container, a trigger instance container and a schedule instance container; the storage module stores the jobinstance and the unique identifier of the jobinstance in a jobinstance container; storing the trigger instance and the unique identifier of the trigger instance in a trigger instance container; and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
The system supporting dynamic management of the timing task further comprises a packaging module, wherein the packaging module is used for packaging the instance ID into the annotation, and then the creating module sets the instance ID as the unique identifier of the instance. The instance ID comprises a schedule instance ID, a trigger instance ID and a jobinstance ID, and the creation module respectively sets the schedule instance ID, the trigger instance ID and the jobinstance ID as unique identifications of the schedule instance, the trigger instance and the jobinstance. The system supporting dynamic management of the timing task, provided by the embodiment of the invention, can also set an annotation parameter auto start parameter value, set the annotation parameter auto start parameter value as false or true, and determine whether the automatically started timing task exists according to the annotation parameter auto start parameter value.
The system for supporting dynamic management of the timing task sets parameters such as schedule instance ID, trigger instance ID, jobinstance ID and jobexecution time expression to attribute parameters of annotations, automatically creates the schedule instance, trigger instance and jobinstance by reflection when the system initializes the class, stores the schedule instance, trigger instance and jobinstance in corresponding containers, and replaces the configuration through configuration files. The schedule instance ID uniquely identifies a schedule instance in the schedule container. Similarly, the trigger instance ID uniquely identifies one trigger instance in the trigger instance container, and the jobinstance ID uniquely identifies one jobinstance in the jobinstance container. In the operation process of the system, when one operation of starting and stop on the schedule and trigger on the trigger needs to be executed, the specific schedule instance, trigger instance and jobinstance can be inquired in the schedule instance container, trigger instance container and jobinstance container through the schedule instance ID, trigger instance ID and jobinstance ID, and the corresponding dynamic management operation is executed. Thus, development efficiency is improved, development cost is reduced, and maintainability of the system is improved.
FIG. 6 is a schematic diagram of an electronic device supporting dynamic management of timed tasks according to an embodiment of the present invention. As shown in fig. 6, an apparatus 6 for supporting dynamic management of timing tasks according to an embodiment of the present invention includes a memory 61 and at least one processor 62, where the memory 61 is connected to the at least one processor 62 via a bus, and the memory 61 stores instructions executable by the at least one processor, and when the apparatus of the present embodiment is operated, the instructions are executed by the at least one processor, so that the at least one processor can execute the method flows shown in fig. 1 to 4.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device supporting dynamic management of timed tasks according to an embodiment of the present invention. As shown in fig. 7 (taking a processor as an example), the electronic apparatus of the present embodiment further includes an input device 73 and an output device 74. The memory 71, the processor 72, the input device 73 and the output device 74 may be connected by a bus or other means, and fig. 7 illustrates the connection by a bus as an example. The memory 71 is a non-transitory computer readable storage medium, and can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method for supporting dynamic management timing task in the embodiment of the present application (for example, the acquiring module, the parsing module, the creating module, and the storing module shown in fig. 5). The processor 72 executes various functional applications of the server and data processing by running non-transitory software programs, instructions and modules stored in the memory 71, that is, implements the processing method supporting the dynamic management timing task in the above method embodiment.
The memory 71 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device supporting the dynamic management timing task, and the like. Further, the memory 71 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 71 optionally includes memory remotely located from the processor 72, and these remote memories may be connected over a network to an electronic device that supports dynamically managing timing tasks. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 73 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus supporting the dynamic management of the timing task. The output device 74 may include a display device such as a display screen.
One or more modules are stored in the memory 71 and, when executed by the one or more processors 72, perform the processing method of any of the above-described method embodiments that supports dynamically managing timed tasks.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-transitory computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for supporting dynamic management of timed tasks, comprising:
obtaining annotations through a reflection mechanism;
analyzing the annotation to obtain annotation information;
creating unique identifiers of the instances and the setting instances according to the annotation information;
storing the instances and the unique identifiers in corresponding containers, and querying specific schedule instances, Trigger instances and jobinstances to execute corresponding dynamic management operations through the unique identifiers of the schedule instances, the unique identifiers of the Trigger instances and the unique identifiers of the jobinstance in the schedule containers, the Trigger containers and the Job containers respectively;
wherein the instance ID is encapsulated in the annotation, which is in turn set as the unique identification of the instance.
2. The method of claim 1, wherein the instance ID comprises a schedule instance ID, a trigger instance ID and a jobinstance ID, and the schedule instance ID, the trigger instance ID and the jobinstance ID are set as unique identifiers of the schedule instance, the trigger instance and the jobinstance respectively.
3. The method of claim 1, wherein creating unique identifications of instances and settings instances from the annotation information comprises:
creating a jobinstance according to the annotation information, and setting a unique identifier of the jobinstance;
creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance;
creating a schedule instance according to the annotation information and the trigger instance, and setting a unique identifier of the schedule instance.
4. The method of claim 3, further comprising:
creating a jobinstance container, a trigger instance container and a schedule instance container;
storing the jobinstance and the unique identification of the jobinstance in a jobinstance container;
storing the unique identifiers of the trigger instance and the trigger instance in a trigger instance container;
and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
5. A system for supporting dynamic management of timed tasks, comprising:
an acquisition module for acquiring annotations by a reflection mechanism;
the analysis module is used for analyzing the annotation to obtain annotation information;
the creating module is used for creating an example and setting a unique identifier of the example according to the annotation information;
the storage module is used for storing the examples and the unique identifiers in corresponding containers so as to query specific schedule examples, Trigger examples and jobexamples to execute corresponding dynamic management operations in the schedule containers, Trigger containers and Job containers through the unique identifiers of the schedule examples, the unique identifiers of the Trigger examples and the unique identifiers of the jobexamples;
and the encapsulation module is used for encapsulating the instance ID into the annotation, and then the creation module sets the instance ID as the unique identifier of the instance.
6. The system of claim 5, wherein the instance ID comprises a schedule instance ID, a trigger instance ID and a jobinstance ID, and the creation module sets the schedule instance ID, the trigger instance ID and the jobinstance ID as unique identifiers of the schedule instance, the trigger instance and the jobinstance, respectively.
7. The system of claim 5, wherein the creation module comprises:
a job instance creating unit, configured to create a job instance according to the annotation information, and set a unique identifier of the job instance;
creating a trigger instance unit, creating a trigger instance according to the annotation information and the jobinstance, and setting a unique identifier of the trigger instance;
and the creating schedule instance unit is used for creating a schedule instance according to the annotation information and the trigger instance and setting a unique identifier of the schedule instance.
8. The system of claim 7, wherein the creation module is further configured to create a jobinstance container, a trigger instance container, and a schedule instance container;
the storage module stores the jobinstance and the unique identification of the jobinstance in a jobinstance container; storing the unique identifiers of the trigger instance and the trigger instance in a trigger instance container; and storing the schedule instance and the unique identification of the schedule instance in a schedule instance container.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-4.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN201710064140.9A 2017-02-04 2017-02-04 Method, system, device and storage medium for supporting dynamic management of timed tasks Active CN108399095B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710064140.9A CN108399095B (en) 2017-02-04 2017-02-04 Method, system, device and storage medium for supporting dynamic management of timed tasks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710064140.9A CN108399095B (en) 2017-02-04 2017-02-04 Method, system, device and storage medium for supporting dynamic management of timed tasks

Publications (2)

Publication Number Publication Date
CN108399095A CN108399095A (en) 2018-08-14
CN108399095B true CN108399095B (en) 2021-08-10

Family

ID=63093403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710064140.9A Active CN108399095B (en) 2017-02-04 2017-02-04 Method, system, device and storage medium for supporting dynamic management of timed tasks

Country Status (1)

Country Link
CN (1) CN108399095B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857529B (en) * 2019-01-15 2023-06-27 深圳业拓讯通信科技有限公司 Method and device for dynamically loading and scheduling timing tasks
CN110334126B (en) * 2019-05-23 2024-02-27 平安科技(深圳)有限公司 Timing task processing method and device based on Spring MVC and computer equipment
CN110780920B (en) * 2019-11-01 2023-11-03 腾讯音乐娱乐科技(深圳)有限公司 Data processing method, device, client and medium
CN115878097B (en) * 2023-03-03 2023-05-16 智慧眼科技股份有限公司 Method and system for creating timing task

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782992A (en) * 2010-03-18 2010-07-21 万易通国际科技(北京)有限公司 Online transaction system and method
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN104182484A (en) * 2014-08-07 2014-12-03 北京京东尚科信息技术有限公司 Method and device for realizing mapping of HBase data and Java domain objects
CN106302442A (en) * 2016-08-12 2017-01-04 广州慧睿思通信息科技有限公司 A kind of network communication packet analytic method based on Java language

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101782992A (en) * 2010-03-18 2010-07-21 万易通国际科技(北京)有限公司 Online transaction system and method
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN104182484A (en) * 2014-08-07 2014-12-03 北京京东尚科信息技术有限公司 Method and device for realizing mapping of HBase data and Java domain objects
CN106302442A (en) * 2016-08-12 2017-01-04 广州慧睿思通信息科技有限公司 A kind of network communication packet analytic method based on Java language

Also Published As

Publication number Publication date
CN108399095A (en) 2018-08-14

Similar Documents

Publication Publication Date Title
US11659020B2 (en) Method and system for real-time modeling of communication, virtualization and transaction execution related topological aspects of monitored software applications and hardware entities
CN107729139B (en) Method and device for concurrently acquiring resources
CN108399095B (en) Method, system, device and storage medium for supporting dynamic management of timed tasks
CN101799751B (en) Method for building monitoring agent software of host machine
CN105653425B (en) Monitoring system based on complex event processing engine
CN108874558B (en) Message subscription method of distributed transaction, electronic device and readable storage medium
US9473356B2 (en) Automatic configuration of applications based on host metadata using application-specific templates
US11150896B2 (en) Automated generation of service definitions for message queue application clients
WO2018126964A1 (en) Task execution method and apparatus and server
WO2018036342A1 (en) Csar-based template design visualization method and device
CN113220431B (en) Cross-cloud distributed data task scheduling method, device and storage medium
CN111694857B (en) Method, device, electronic equipment and computer readable medium for storing resource data
CN105099739A (en) Plug-in type software deployment method and apparatus, and application server
CN112000350B (en) Dynamic rule updating method, device and storage medium
CN104536819A (en) Task scheduling method based on WEB service
CN109905263A (en) A kind of automation O&M deployment system
CN109814957B (en) Label adding method and device for IOS (input/output system)
US20220182851A1 (en) Communication Method and Apparatus for Plurality of Administrative Domains
CN111984505A (en) Operation and maintenance data acquisition engine and acquisition method
CN109408376B (en) Configuration data generation method, device, equipment and storage medium
CN111435356A (en) Data feature extraction method and device, computer equipment and storage medium
WO2021036987A1 (en) Method and device for achieving operation and maintenance monitoring
US10417051B2 (en) Synchronizing shared resources in an order processing environment using a synchronization component
CN113704355A (en) Data synchronization method, electronic device and storage medium
CN117931325B (en) Method for automatically discovering java bean resources by micro-service system

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
GR01 Patent grant
GR01 Patent grant