CN107169129A - A kind of dispatching method and device - Google Patents

A kind of dispatching method and device Download PDF

Info

Publication number
CN107169129A
CN107169129A CN201710419473.9A CN201710419473A CN107169129A CN 107169129 A CN107169129 A CN 107169129A CN 201710419473 A CN201710419473 A CN 201710419473A CN 107169129 A CN107169129 A CN 107169129A
Authority
CN
China
Prior art keywords
file
target
time
target dispatch
dispatch
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.)
Granted
Application number
CN201710419473.9A
Other languages
Chinese (zh)
Other versions
CN107169129B (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.)
Inspur General Software Co Ltd
Original Assignee
Shandong Inspur Genersoft 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 Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN201710419473.9A priority Critical patent/CN107169129B/en
Publication of CN107169129A publication Critical patent/CN107169129A/en
Application granted granted Critical
Publication of CN107169129B publication Critical patent/CN107169129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Computational Linguistics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a kind of dispatching method and device, wherein, this method includes:In advance for each scheduler task, establishment schedule file table structure and scheduling rule table structure, the schedule file table structure, the information for storing schedule file, the scheduling rule table structure, for storing scheduling rule, in addition to:Receive the outside dispatch request sent;According to the dispatch request, target dispatch task is determined;According to the corresponding target dispatch file table structure of the target dispatch task and target dispatch rule list structure, the information and target dispatch rule of target dispatch file are determined;According to the information of the target dispatch file and target dispatch rule, the target dispatch file is dispatched.The scheme that the present invention is provided can improve recycling rate of waterused.

Description

A kind of dispatching method and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of dispatching method and device.
Background technology
With business administration requirement improve constantly, Back ground Information real-time synchronization, business scenario real-time update demand not It is disconnected to present.In practical application scene, the different scheduler tasks of different business scenario correspondences, how according to the change of scheduler task Change the scheduling for carrying out corresponding document, be the problem of developer pays close attention to always.
At present, in existing dispatching method, the relation of schedule file and scheduling rule is bound in advance so that the dispatching party Method is only used for specific business scenario, when scheduling rule changes, it is necessary to develop new call method.
Therefore, existing dispatching method recycling rate of waterused is low.
The content of the invention
The embodiments of the invention provide a kind of dispatching method and device, it is possible to increase recycling rate of waterused.
In a first aspect, the embodiments of the invention provide a kind of dispatching method, in advance for each scheduler task, creating and adjusting Spend file table structure and scheduling rule table structure, the schedule file table structure, the information for storing schedule file, the tune Rule list structure is spent, for storing scheduling rule, in addition to:
Receive the outside dispatch request sent;
According to the dispatch request, target dispatch task is determined;
According to the corresponding target dispatch file table structure of the target dispatch task and target dispatch rule list structure, it is determined that Information and the target dispatch rule of target dispatch file;
According to the information of the target dispatch file and target dispatch rule, the target dispatch file is dispatched.
Preferably,
The information of the schedule file, including:File type, file path, file name, NameSpace, class name and side Any one or more in religious name;
The file type, including:Any one in dynamic link library, executable file and SQL sentence Or it is a variety of.
Preferably,
The scheduling rule, including:When performing type, time type, Start Date, deadline, time started, cut-off Between, interval time, chronomere, perform the time, perform the moon, perform week and the execution day in any one or more;
The execution type, including:Developer's pattern and general mode;
The time type, including:Interval, daily and monthly.
Preferably,
Further comprise:
It is each described scheduler task in advance, timer is set;
When receiving the triggering command that outside is sent for the target dispatch task, the target dispatch task is triggered Corresponding target timer carries out timing;
The scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
It is described regular according to the information of the target dispatch file and the target dispatch, dispatch the target dispatch text Part, including:
The target timer is monitored according to the default time cycle, when monitoring the target timer Between reach the execution time, and the target timer time in the Start Date, the deadline, the beginning When in the time range that time and the deadline determine, according to the information of the target dispatch file, the target is dispatched Schedule file.
Second party is bright, the embodiments of the invention provide a kind of dispatching device, including:
Creating unit, for for each scheduler task, creating schedule file table structure and scheduling rule table structure, institute Schedule file table structure is stated, the information for storing schedule file, the scheduling rule table structure, for storing scheduling rule;
Receiving unit, the dispatch request for receiving outside transmission;
Determining unit, for the dispatch request received according to the receiving unit, determines target dispatch task;According to Target dispatch file table structure and target dispatch rule list knot that the corresponding creating unit of the target dispatch task is created Structure, determines the information and target dispatch rule of target dispatch file;
Scheduling unit, the information of the target dispatch file and the target for being determined according to the determining unit are adjusted Metric then, dispatches the target dispatch file.
Preferably,
The information of the schedule file, including:File type, file path, file name, NameSpace, class name and side Any one or more in religious name;
The file type, including:Any one in dynamic link library, executable file and SQL sentence Or it is a variety of.
Preferably,
The scheduling rule, including:When performing type, time type, Start Date, deadline, time started, cut-off Between, interval time, chronomere, perform the time, perform the moon, perform week and the execution day in any one or more;
The execution type, including:Developer's pattern and general mode;
The time type, including:Interval, daily and monthly.
Preferably,
Further comprise:
Setting unit, for for scheduler task each described, setting timer;
Timing unit, receives what the outside target dispatch task determined for the determining unit was sent for working as During triggering command, the target timer progress timing that the corresponding setting unit of the target dispatch task is set is triggered;
The scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
The scheduling unit, for being monitored according to the default time cycle to the target timer, when monitoring The time of the target timer reaches the execution time, and the target timer time in the Start Date, institute When stating in the time range of deadline, the time started and deadline determination, according to the target dispatch file Information, dispatch the target dispatch file.
The third aspect, the embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the place of storage control When managing the device execution execute instruction, the storage control performs the method described in any of the above-described embodiment.
Fourth aspect, the embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
The memory is used to store execute instruction, and the processor is connected with the memory by the bus, when During the storage control operation, the execute instruction of memory storage described in the computing device, so that the storage Controller performs the method described in any of the above-described embodiment.
The embodiments of the invention provide a kind of dispatching method and device, wherein, this method can be different business scene pair The scheduler task answered configures corresponding schedule file table structure and scheduling rule table structure, and according to outside dispatch request, presses According to the corresponding scheduling rule of target dispatch task, target dispatch file is scheduled according to the information of target dispatch file.It is existing Some dispatching methods are only used for specific business scenario, and the present invention can realize different business by changing scheduling rule Scheduling under scape, improves recycling rate of waterused.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of flow chart for dispatching method that one embodiment of the invention is provided;
Fig. 2 is a kind of flow chart for dispatching method that another embodiment of the present invention is provided;
Fig. 3 is a kind of structural representation for dispatching device that one embodiment of the invention is provided;
Fig. 4 is a kind of structural representation for dispatching device that another embodiment of the present invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of dispatching method, this method may comprise steps of:
Step 101:For each scheduler task, schedule file table structure and scheduling rule table structure, scheduling text are created Part table structure, the information for storing schedule file, scheduling rule table structure, for storing scheduling rule;
Step 102:Receive the outside dispatch request sent;
Step 103:According to dispatch request, target dispatch task is determined;
Step 104:According to the corresponding target dispatch file table structure of target dispatch task and target dispatch rule list structure, Determine the information and target dispatch rule of target dispatch file;
Step 105:According to the information of target dispatch file and target dispatch rule, regulation goal schedule file.
In the embodiment of the present invention shown in Fig. 1, this method can be the corresponding scheduler task configuration of different business scene Corresponding schedule file table structure and scheduling rule table structure, and according to outside dispatch request, according to target dispatch task pair The scheduling rule answered, is scheduled according to the information of target dispatch file to target dispatch file.Existing dispatching method can only For specific business scenario, and the present invention can realize scheduling under different business scene by changing scheduling rule, improve Recycling rate of waterused.
In one embodiment of the invention, in order to realize the accurate scheduling to various schedule files, the letter of schedule file Breath, including:Any one or more in file type, file path, file name, NameSpace, class name and method name;
File type, including:Any one in dynamic link library, executable file and SQL sentence is more Kind.
Shown in table 1 is a kind of schedule file table structure.By the volume for setting " function numbering " field definition scheduling function Number, it is the unique mark of scheduling function, is used as the tag field for obtaining scheduling setting.
Table 1
Field number Field name Field type
TYDDXT_FNCCODE Function is numbered Varchar(40)
TYDDXT_DOCTYPE File type Varchar(10)
TYDDXT_DLLPATH File path Varchar(200)
TYDDXT_DLLNAME File name Varchar(100)
TYDDXT_NAMESPACE NameSpace Varchar(100)
TYDDXT_CLASSNAME Class name Varchar(100)
TYDDXT_METHOD Method Varchar(100)
TYDDXT_SWITCH Switch Char(1)
In one embodiment of the invention, in order to adapt to the dispatching requirement of different business scene, scheduling rule, including: Perform type, time type, Start Date, deadline, time started, deadline, interval time, chronomere, execution Any one or more in time, the execution moon, execution week and execution day;
Type is performed, including:Developer's pattern and general mode;
Time type, including:Interval, daily and monthly.
Type is performed by the selection of " execution type " field, performing type includes developer's pattern, general mode.Pass through The time type that the selection of " time type " field is performed, time type is divided into interval, daily, monthly.
Interval:Select " interval time " and " chronomere ", timer is scanned according to the interval time of setting.
Daily:The time point that selection " performing the time " is performed as scheduling system.
Monthly:Select " the execution moon " and " execution day ", and " performing the time " is set.
Shown in table 2 is a kind of scheduling rule table structure.
Table 2
Field number Field name Field type
TYDDXTSET_FUCCODE Function is numbered Varchar(40)
TYDDXTSET_EXCUTETYPE Perform type Char(1)
TYDDXTSET_TIMETYPE Time type Char(1)
TYDDXTSET_STARTDATE Start Date Varchar(8)
TYDDXTSET_StopDATE Deadline Varchar(8)
TYDDXTSET_STARTTIME Time started Varchar(6)
TYDDXTSET_StopTIME Deadline Varchar(6)
TYDDXTSET_INTERVALTIME Interval time int
TYDDXTSET_TIMEUNIT Chronomere Char(2)
TYDDXTSET_EXCUTETIME The execution time Varchar(35)
TYDDXTSET_EXCUTEMONTH Perform the moon Varchar(36)
TYDDXTSET_EXCUTEDAY Execution day Varchar(100)
TYDDXTSET_WEEK Perform week Varchar(14)
No matter which kind of temporal mode, be required for set " Start Date ", " time started ", " deadline ", " during cut-off Between ", scheduling process is only effective within the setting time, and stop time point may be configured as forever effectively.
In one embodiment of the invention, this method also includes:It is each scheduler task in advance, timer is set;
When receiving the triggering command that outside is sent for target dispatch task, the corresponding mesh of triggering target dispatch task Mark timer and carry out timing;
Scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
Regular, the regulation goal schedule file according to the information of target dispatch file and target dispatch, including:
Target timer is monitored according to the default time cycle, when the time for monitoring target timer reaches and held Row time, and the time range that is determined in Start Date, deadline, time started and deadline of time of target timer When interior, according to the information of target dispatch file, regulation goal schedule file.
When timer is responsible for timing, sum function variable and judges whether current time meets the generation of the function setup Between, the Thread Count+1 if meeting.
Because the temporal mode that different files are called is different, timer can not be shared, therefore be each scheduler task One's own timer is all defined, distinctive time type, and unlatching and stopping between function can be thus set It will not influence each other.
When having multiple target dispatch tasks simultaneously, during code is realized, it can be prevented by way of locking Concurrently.
Specific code is as follows:
Perform third party's schedule file and use method for reflection:
As shown in Fig. 2 the embodiment of the present invention is so that the moon is dispatched as an example, dispatching method is described in detail, this method bag Include following steps:
Step 201:For each scheduler task, schedule file table structure and scheduling rule table structure, scheduling text are created Part table structure, the information for storing schedule file, scheduling rule table structure, for storing scheduling rule.
Different time types can be configured for processing different business scene, can also be entered for different time types The configuration of row flexible time, wherein main information include it is following some:
It is immediately performed:After scheduling process is performed, the schedule file of configuration is directly invoked, this function is mainly used in early stage Test job.
Interval scheduling:Be spaced scheduling method be applied to real time synchronization business scenario, by set interval time, It can flexibly configure the various intervals for meeting real business scenario every chronomere, execution period, execution week and dispatch.Interval Under pattern, if setting interval time to be 5 minutes, scheduling third party file performed the time for 3 minutes, and timer can be at first Timing next time is immediately entered after reaching within 5 minutes, rather than waits timing again after the completion of business processing, it is ensured that the standard of scheduling process True property.
Day scheduling:Day scheduling method is applied to daily settlement business scenario, can perform time points by setting five come clever Configuration living performs the time, in addition can with according to whether working day configured.Temporally put be scheduled basic Principle is also that, by setting interval time, whether the scanning of opening timing device reaches setup time point.To ensure that schedule file can Accurately performed in stipulated time point, pass through scope determination methods, it is ensured that the correct execution of schedule file.
Moon scheduling:The moon, scheduling method was applied to monthly billing business, and this pattern is except inheriting matching somebody with somebody substantially for day scheduling method Put outer, also add the moon, the selection of day, user can be according to complicated business scenario, and selection specifies the moon, day to perform scheduling text Part.In addition, by the selection to month, the moon scheduling method can also be changing into season scheduling method, meet season business The demand of scene.For the judgement at time point, the moon, scheduling method was equally using scope determining method, it is ensured that the execution of schedule file.
Step 202:For each scheduler task, timer is set.
Step 203:Receive the outside dispatch request sent.
Step 204:According to dispatch request, target dispatch task is determined.
Step 205:According to the corresponding target dispatch file table structure of target dispatch task and target dispatch rule list structure, Determine the information and target dispatch rule of target dispatch file.
Step 206:When receiving the triggering command that outside is sent for target dispatch task, target dispatch task is triggered Corresponding target timer carries out timing.
Step 207:Target timer is monitored according to the default time cycle, when monitoring target timer Between reach the execution time, and the time of target timer determines in Start Date, deadline, time started and deadline When in time range, according to the information of target dispatch file, regulation goal schedule file.
For example, Start Date, deadline, time started and deadline be respectively 2017.01.01,2017.12.31, 9:00:00、20:00:00, the time that performs is 12:00:00, when under day scheduling method, the 12 of every day:00:00 starts to perform Scheduling, and in 20:00:00 terminates scheduling.
As shown in figure 3, the embodiments of the invention provide a kind of dispatching device, including:
Creating unit 301, for for each scheduler task, creating schedule file table structure and scheduling rule table knot Structure, schedule file table structure, the information for storing schedule file, scheduling rule table structure, for storing scheduling rule;
Receiving unit 302, the dispatch request for receiving outside transmission;
Determining unit 303, for the dispatch request received according to receiving unit 302, determines target dispatch task;According to mesh Target dispatch file table structure and target dispatch rule list structure that the corresponding creating unit 301 of scheduler task is created are marked, it is determined that Information and the target dispatch rule of target dispatch file;
Scheduling unit 304, for the information of target dispatch file and the target dispatch rule determined according to determining unit 303 Then, regulation goal schedule file.
In one embodiment of the invention, the information of schedule file, including:File type, file path, filename Any one or more in title, NameSpace, class name and method name;
File type, including:Any one in dynamic link library, executable file and SQL sentence is more Kind.
In one embodiment of the invention, scheduling rule, including:Perform type, time type, Start Date, cut-off It is any in date, time started, deadline, interval time, chronomere, execution time, the execution moon, execution week and execution day It is one or more;
Type is performed, including:Developer's pattern and general mode;
Time type, including:Interval, daily and monthly.
In one embodiment of the invention, as shown in figure 4, the device also includes:
Setting unit 305, for for each scheduler task, setting timer;
Timing unit 306, the tactile of the outside target dispatch task transmission determined for determining unit 303 is received for working as When sending instructions, the target timer that the corresponding setting unit 305 of triggering target dispatch task is set carries out timing;
Scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
Scheduling unit 304, for being monitored according to the default time cycle to target timer, when monitoring target meter When device time reach the execution time, and target timer time in Start Date, deadline, time started and cut-off Between in the time range that determines when, according to the information of target dispatch file, regulation goal schedule file.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the computing device of storage control During execute instruction, the method that storage control performs any of the above-described embodiment.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
Memory is used to store execute instruction, and processor is connected with memory by bus, when storage control is run, The execute instruction of computing device memory storage, so that the method that storage control performs any of the above-described embodiment.
To sum up, each embodiment of the invention at least has the effect that:
1st, in embodiments of the present invention, this method can be adjusted for the corresponding scheduler task configuration of different business scene is corresponding File table structure and scheduling rule table structure are spent, and according to outside dispatch request, according to the corresponding scheduling of target dispatch task Rule, is scheduled according to the information of target dispatch file to target dispatch file.Existing dispatching method is only used for specific Business scenario, and the present invention can realize scheduling under different business scene by changing scheduling rule, improve recycling Rate.
2nd, in embodiments of the present invention, this method can realize the direct scheduling to files in different types, file type bag Include:Dynamic link library, executable file and SQL sentence, can meet the demand of different business scene.
3rd, in embodiments of the present invention, it is that different scheduler tasks set different timers, can be set for scheduler task Putting will not influence each other between distinctive time type, each scheduler task, realize that the corresponding scheduling of different business scene is appointed Business.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements, But also other key elements including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including Also there is other identical factor in process, method, article or the equipment of the key element.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in the storage medium of embodied on computer readable, the program Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
It is last it should be noted that:Presently preferred embodiments of the present invention is the foregoing is only, the skill of the present invention is merely to illustrate Art scheme, is not intended to limit the scope of the present invention.Any modification for being made within the spirit and principles of the invention, Equivalent substitution, improvement etc., are all contained in protection scope of the present invention.

Claims (10)

1. a kind of dispatching method, it is characterised in that in advance for each scheduler task, creates schedule file table structure and scheduling Rule list structure, the schedule file table structure, the information for storing schedule file, the scheduling rule table structure is used for Scheduling rule is stored, in addition to:
Receive the outside dispatch request sent;
According to the dispatch request, target dispatch task is determined;
According to the corresponding target dispatch file table structure of the target dispatch task and target dispatch rule list structure, target is determined Information and the target dispatch rule of schedule file;
According to the information of the target dispatch file and target dispatch rule, the target dispatch file is dispatched.
2. dispatching method according to claim 1, it is characterised in that
The information of the schedule file, including:File type, file path, file name, NameSpace, class name and method name In any one or more;
The file type, including:Any one in dynamic link library, executable file and SQL sentence is more Kind.
3. dispatching method according to claim 1, it is characterised in that
The scheduling rule, including:Perform type, time type, Start Date, the deadline, the time started, deadline, Any one or more in interval time, chronomere, execution time, the execution moon, execution week and execution day;
The execution type, including:Developer's pattern and general mode;
The time type, including:Interval, daily and monthly.
4. dispatching method according to claim 1, it is characterised in that further comprise:
It is each described scheduler task in advance, timer is set;
When receiving the triggering command that outside is sent for the target dispatch task, the target dispatch task correspondence is triggered Target timer carry out timing;
The scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
It is described that the target dispatch file is dispatched according to the information of the target dispatch file and target dispatch rule, wrap Include:
The target timer is monitored according to the default time cycle, reached when the time for monitoring the target timer To the execution time, and the target timer time in the Start Date, the deadline, the time started When in the time range determined with the deadline, according to the information of the target dispatch file, the target dispatch is dispatched File.
5. a kind of dispatching device, it is characterised in that including:
Creating unit, for for each scheduler task, creating schedule file table structure and scheduling rule table structure, the tune Spend file table structure, the information for storing schedule file, the scheduling rule table structure, for storing scheduling rule;
Receiving unit, the dispatch request for receiving outside transmission;
Determining unit, for the dispatch request received according to the receiving unit, determines target dispatch task;According to described Target dispatch file table structure and target dispatch rule list structure that the corresponding creating unit of target dispatch task is created, really Set the goal schedule file information and target dispatch rule;
Scheduling unit, for the information of the target dispatch file determined according to the determining unit and target dispatch rule Then, the target dispatch file is dispatched.
6. dispatching device according to claim 5, it is characterised in that
The information of the schedule file, including:File type, file path, file name, NameSpace, class name and method name In any one or more;
The file type, including:Any one in dynamic link library, executable file and SQL sentence is more Kind.
7. dispatching device according to claim 5, it is characterised in that
The scheduling rule, including:Perform type, time type, Start Date, the deadline, the time started, deadline, Any one or more in interval time, chronomere, execution time, the execution moon, execution week and execution day;
The execution type, including:Developer's pattern and general mode;
The time type, including:Interval, daily and monthly.
8. dispatching device according to claim 5, it is characterised in that further comprise:
Setting unit, for for scheduler task each described, setting timer;
Timing unit, for when the triggering for receiving the outside target dispatch task transmission determined for the determining unit During instruction, the target timer progress timing that the corresponding setting unit of the target dispatch task is set is triggered;
The scheduling rule, including:Start Date, deadline, time started, deadline and execution time;
The scheduling unit, it is described when monitoring for being monitored according to the default time cycle to the target timer The time of target timer reaches the execution time, and the target timer time the Start Date, described section When in the time range that only date, the time started and the deadline determine, according to the letter of the target dispatch file Breath, dispatches the target dispatch file.
9. a kind of computer-readable recording medium, it is characterised in that including execute instruction, refer to when being performed described in the computing device of storage control When making, the storage control perform claim requires any described method in 1-4.
10. a kind of storage control, it is characterised in that including:Processor, memory and bus;
The memory is used to store execute instruction, and the processor is connected with the memory by the bus, when described When storage control is run, the execute instruction of memory storage described in the computing device, so that the storage control Device perform claim requires any described method in 1-4.
CN201710419473.9A 2017-06-06 2017-06-06 Scheduling method and device Active CN107169129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710419473.9A CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710419473.9A CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Publications (2)

Publication Number Publication Date
CN107169129A true CN107169129A (en) 2017-09-15
CN107169129B CN107169129B (en) 2020-07-14

Family

ID=59825622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710419473.9A Active CN107169129B (en) 2017-06-06 2017-06-06 Scheduling method and device

Country Status (1)

Country Link
CN (1) CN107169129B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340382A (en) * 2020-03-06 2020-06-26 中国银行股份有限公司 File scheduling method and device in bank system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739215A (en) * 2008-11-19 2010-06-16 成都市华为赛门铁克科技有限公司 Method and device for determining input-output scheduling algorithm
CN102662754A (en) * 2012-04-20 2012-09-12 浙江大学 Multi-field supportable virtual machine dispatching device and multi-field supportable virtual machine dispatching method
CN103324534A (en) * 2012-03-22 2013-09-25 阿里巴巴集团控股有限公司 Operation scheduling method and operation scheduler
US20130332422A1 (en) * 2012-06-06 2013-12-12 International Business Machines Corporation Defining Content Retention Rules Using a Domain-Specific Language
US20140380321A1 (en) * 2013-06-21 2014-12-25 Microsoft Corporation Energy efficient job scheduling
CN105511958A (en) * 2014-10-11 2016-04-20 阿里巴巴集团控股有限公司 Method and device for task scheduling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739215A (en) * 2008-11-19 2010-06-16 成都市华为赛门铁克科技有限公司 Method and device for determining input-output scheduling algorithm
CN103324534A (en) * 2012-03-22 2013-09-25 阿里巴巴集团控股有限公司 Operation scheduling method and operation scheduler
CN102662754A (en) * 2012-04-20 2012-09-12 浙江大学 Multi-field supportable virtual machine dispatching device and multi-field supportable virtual machine dispatching method
US20130332422A1 (en) * 2012-06-06 2013-12-12 International Business Machines Corporation Defining Content Retention Rules Using a Domain-Specific Language
US20140380321A1 (en) * 2013-06-21 2014-12-25 Microsoft Corporation Energy efficient job scheduling
CN105511958A (en) * 2014-10-11 2016-04-20 阿里巴巴集团控股有限公司 Method and device for task scheduling

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340382A (en) * 2020-03-06 2020-06-26 中国银行股份有限公司 File scheduling method and device in bank system

Also Published As

Publication number Publication date
CN107169129B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN101567013B (en) Method and apparatus for implementing ETL scheduling
Trietsch et al. PERT 21: Fitting PERT/CPM for use in the 21st century
CN104216785B (en) General policies task system and its implementation
CN109299150B (en) Configurable multi-data-source adaptation rule engine solution method
CN109783218A (en) A kind of container dispatching method based on Kubernetes container cluster with time correlation connection
US7797680B2 (en) Method and framework for test case management
US8762930B2 (en) Post facto identification and prioritization of causes of buffer consumption
CN110265128A (en) Method, apparatus, electronic equipment and the readable storage medium storing program for executing of outpatient service plus sige
CN110007946A (en) A kind of update method of algorithm model, device, equipment and medium
CN103744730A (en) Task scheduling method and device
CN102789401B (en) Test process control method and device on basis of flexible testing technology
CN115860451A (en) Flow operation method and device, electronic equipment and storage medium
CN105446812A (en) Multitask scheduling configuration method
CN107169129A (en) A kind of dispatching method and device
CN110287006A (en) A kind of data dispatching method and system
Połoński et al. Impact of baseline terms on the course of critical paths and time buffers in the modified Goldratt’s method
CN116151582A (en) Automatic version scheduling method and device based on resource identification and storage medium
JP2519005B2 (en) Job schedule simulation device
CN109389363A (en) A kind of phone based on job scheduling is inspected the sentries method and device
Wang et al. Application of resource-constrained project scheduling with a critical chain method on organizational project management
JP2005025495A (en) Design change automation system
CN111613312B (en) Equipment operation condition comparison analysis method and device
US10755235B2 (en) Meeting time constraint for a sequence of meetings of a task in a calendaring and scheduling system
Lee et al. An intelligent fuzzy decision support system for flexible adjustment of dye pricing to manage customer-supplier relationship
CN110009253A (en) A kind of production scheduling method, apparatus, equipment and the storage medium of ship

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
TA01 Transfer of patent application right

Effective date of registration: 20200616

Address after: 250100 Ji'nan high tech Zone, Shandong, No. 1036 wave road

Applicant after: INSPUR GENERAL SOFTWARE Co.,Ltd.

Address before: 250100, No. 2877, fairway, Sun Town, Ji'nan hi tech Zone, Shandong

Applicant before: SHANDONG INSPUR GENESOFT INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant