CN105938439A - Multi-business scheduling method and system based on dynamic link libraries - Google Patents

Multi-business scheduling method and system based on dynamic link libraries Download PDF

Info

Publication number
CN105938439A
CN105938439A CN201610228513.7A CN201610228513A CN105938439A CN 105938439 A CN105938439 A CN 105938439A CN 201610228513 A CN201610228513 A CN 201610228513A CN 105938439 A CN105938439 A CN 105938439A
Authority
CN
China
Prior art keywords
dynamic link
link library
service
order
kinematic function
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
CN201610228513.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 Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech 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 Si Tech Information Technology Co Ltd filed Critical Beijing Si Tech Information Technology Co Ltd
Priority to CN201610228513.7A priority Critical patent/CN105938439A/en
Publication of CN105938439A publication Critical patent/CN105938439A/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
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Abstract

The present invention relates to a multi-business scheduling method and system based on dynamic link libraries. The method comprises the following steps of (S1) unifying input parameters of business orders; (S2) configuring service names and operation names corresponding to the business order types in a database list under the unified input parameters; (S3) writing dynamic functions of business order processing logic according to the service names and the operation names; (S4) compiling and generating the dynamic link libraries according to the dynamic functions of business order processing logic; and (S4) completing order submission and multi-business scheduling through displaying and loading the dynamic link libraries and calling the dynamic functions. According to the multi-business scheduling method and system based on the dynamic link libraries, the order business submission input parameters are unified, and the dynamic link library names and the dynamic function names corresponding to the business types are configured by the database. The dynamic link libraries are displayed and loaded through main program, and the corresponding dynamic functions are called to achieve business logic, order submission and multi-business scheduling.

Description

A kind of based on the dynamic link library multiple services method and system of scheduling
Technical field
The present invention relates to a kind of order and submit method and system to, be specifically related to a kind of based on dynamic link library Dispatch multiple services system.
Background technology
In the prior art, it is achieved order is submitted to and generally used static library, static library (Archive Library) during creating executable program, static library is linked in program code simultaneously, The function target file called by mastery routine is combined into single executable program together with mastery routine;Due to quiet State storehouse can be connected in object code when program compiles, and program will no longer be required to this static state when running Storehouse, the volume that therefore static library occupies is bigger;Meanwhile, when static library Program has renewal, all dependences The program of this static library needs to recompilate upgrading, and its configuration is complicated, maintainable poor.
Summary of the invention
The technical problem to be solved be to provide a kind of save internal memory, reduce bin file volume, The use dynamic link library that configuration is good with maintainability dispatches multiple services method and system.
The technical scheme is that a kind of many based on dynamic link library scheduling The method of business, comprises the following steps,
S1, uniform traffic order enter parameter;
S2, enters under parameter at unified, the service that service order type in configuration database table is corresponding Title and action name;
S3, writes service order according to service name and action name and processes the kinematic function of logic;
S4, the kinematic function compiling processing logic according to service order generates dynamic link library;
S5, completes the order submission many industry of scheduling by display loading dynamic link library with calling kinematic function Business.
The invention has the beneficial effects as follows: owing to dynamic link library is not compiled into mesh compiling when In mark code, simply the handle of function being compiled in executable file, executable program goes to be correlated with The respective function in this function library is just called during function, thus a kind of based on dynamic link library tune in the present invention Spending in multiple services method, dynamic link library the most only loads once, contributes to saving internal memory, Minimizing can perform the volume of bin file;Dynamic link library can't be connected to when program compiles simultaneously In object code, but program run be just to be written into, and unified order submission enter parameter, Use display to load dynamic link library and kinematic function achieves service logical calling function configurationization, reduce The risk of synchronization program, it is to avoid renewal, deployment and the publications page of program can be made troubles by static library.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the concrete methods of realizing of step S5 is,
S51, obtains the service name entered in parameter and the action name of service order;
S52, inquires about corresponding dynamic link library and kinematic function according to service name with action name;
S53, uses display to load the mode of dynamic link library, calls in dynamic link library corresponding dynamic Function;
S54, kinematic function returns successfully, completes order and submits scheduling multi-service to.
Above-mentioned further scheme is used to provide the benefit that: it is right to inquire according to service name and action name When answering dynamic link library and kinematic function, Added Business or old service upgrading, each dynamic link library the most not shadow Ring, only need to configure dynamic link library and kinematic function title, upload newly-increased kinematic function storehouse, it is not necessary to restart Service, upgrades more convenient, is greatly simplified the development time of application developer.
Further, described kinematic function enter parameter and described service order to enter parameter identical.
Further, the method calling kinematic function is, first obtains the parameter that enters of kinematic function, then Perform the service order in kinematic function and process logic, finally return to kinematic function result.
Further, the shared compiling in linker is used to generate dynamic link library in step s 4.
Dispatching multiple services method based on above-mentioned one based on dynamic link library, the present invention also provides for a kind of base Multiple services system is dispatched in dynamic link library.
For achieving the above object, present invention also offers one and dispatch multi-service based on dynamic link library System, including entering ginseng parameter unified modules, database table configuration module, kinematic function write module, Module submitted to by dynamic link library generation module and order,
Described enter parameter unified modules, its for uniform traffic order enter parameter;
Described database table configuration module, it is for entering under parameter, in configuration database table at unified Service name corresponding to service order type and action name;
Described kinematic function writes module, and it is for writing service order according to service name and action name Process the kinematic function of logic;
Described dynamic link library generation module, it collects volume for processing, according to service order, the kinematic function patrolled Translate generation dynamic link library;
Module submitted to by described order, and it is for loading dynamic link library by display and to call kinematic function complete Order is become to submit scheduling multi-service to.
The invention has the beneficial effects as follows: a kind of based on the dynamic link library multiple services system of scheduling in the present invention In, dynamic link library the most only loads once, contributes to saving internal memory, and minimizing can perform bin The volume of file;Dynamic link library can't be connected in object code when program compiles simultaneously, and Be program run be just to be written into, and use display loading, by program code controls, can be loaded into Dynamic link library, reduces the risk of synchronization program, and it configures simple and flexible, maintainable good;And can To realize differentiated service loading Different Dynamic chained library, each dynamic link library is independent of each other, and upgrading is convenient.
On the basis of technique scheme, the present invention can also do following improvement.
Further, the concrete processing procedure of described order submission module is,
Obtain the service name entered in parameter and the action name of service order;
Corresponding dynamic link library and kinematic function is inquired about with action name according to service name;
Use display to load the mode of dynamic link library, call kinematic function corresponding in dynamic link library;
Kinematic function returns successfully, completes order and submits scheduling multi-service to.
Further, described kinematic function enter parameter and described service order to enter parameter identical.
Further, call kinematic function specifically, first obtain kinematic function enter parameter, then hold Service order in Mobile state function processes logic, finally returns to kinematic function result
Further, the shared compiling in linker is used to generate dynamic chain in dynamic link library generation module Connect storehouse.
Accompanying drawing explanation
Fig. 1 is a kind of flow chart realizing the method that order is submitted to based on dynamic link library of the present invention;
Fig. 2 is that the present invention is a kind of realizes the side that in the method that order is submitted to, order is submitted to based on dynamic link library Method flow chart;
Fig. 3 is a kind of structured flowchart dispatching multiple services system based on dynamic link library of the present invention.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining this Invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, one dispatches multiple services method based on dynamic link library, comprise the following steps,
S1, uniform traffic order enter parameter;
S2, enters under parameter at unified, the service that service order type in configuration database table is corresponding Title and action name;
S3, writes service order according to service name and action name and processes the kinematic function of logic;
S4, the kinematic function compiling processing logic according to service order generates dynamic link library;
S5, completes the order submission many industry of scheduling by display loading dynamic link library with calling kinematic function Business.
The concrete methods of realizing of step S5 is as shown in Figure 2:
S51, obtains the service name entered in parameter and the action name of service order;
S52, inquires about corresponding dynamic link library and kinematic function according to service name with action name;
S53, uses display to load the mode of dynamic link library, calls in dynamic link library corresponding dynamic Function;
S54, kinematic function returns successfully, completes order and submits scheduling multi-service to.
Corresponding dynamic link library and kinematic function, Added Business is inquired according to service name and action name Or during old service upgrading, each dynamic link library is independent of each other, and only need to configure dynamic link library and kinematic function Title, uploads newly-increased kinematic function storehouse, it is not necessary to restart service, upgrades more convenient, be greatly simplified program The development time of developer.
Described kinematic function enter parameter and described service order to enter parameter identical.Call dynamic letter The method of number is, first obtains the parameter that enters of kinematic function, and the business then performed in kinematic function is ordered Single process logic, finally returns to kinematic function result.Use being total in linker in step s 4 Enjoy compiling and generate dynamic link library.
Owing to dynamic link library is not compiled in object code compiling when, simply function Handle be compiled in executable file, just call this function library when executable program goes to correlation function In respective function, so dispatching in multiple services method based on dynamic link library the present invention is a kind of, dynamic State chained library the most only loads once, contributes to saving internal memory, and minimizing can perform bin file Volume;Dynamic link library can't be connected in object code when program compiles simultaneously, but It is just to be written into that program is run, and has unified the parameter that enters of order submission, and employing display loads dynamically Chained library and kinematic function achieve service logical calling function configurationization, reduce the risk of synchronization program, Avoid static library renewal, deployment and the publications page of program can be made troubles.
Dispatching multiple services method based on above-mentioned one based on dynamic link library, the present invention also provides for a kind of base Multiple services system is dispatched in dynamic link library.
As it is shown on figure 3, one dispatches multiple services system based on dynamic link library, including entering ginseng parameter system One module, database table configuration module, kinematic function are write module, dynamic link library generation module and order Single submission module,
Described enter parameter unified modules, its for uniform traffic order enter parameter;
Described database table configuration module, it is for entering under parameter, in configuration database table at unified Service name corresponding to service order type and action name;
Described kinematic function writes module, and it is for writing service order according to service name and action name Process the kinematic function of logic;
Described dynamic link library generation module, it collects volume for processing, according to service order, the kinematic function patrolled Translate generation dynamic link library;
Module submitted to by described order, and it is for loading dynamic link library by display and to call kinematic function complete Order is become to submit scheduling multi-service to.
The concrete processing procedure of described order submission module is: obtain the clothes entered in parameter of service order Business title and action name;Corresponding dynamic link library is inquired about with dynamic with action name according to service name Function;Use display to load the mode of dynamic link library, call kinematic function corresponding in dynamic link library; Kinematic function returns successfully, completes order and submits scheduling multi-service to.
Described kinematic function enter parameter and described service order to enter parameter identical.Call dynamic letter Number, specifically, first obtain the parameter that enters of kinematic function, then performs the service order in kinematic function Process logic, finally return to kinematic function result in dynamic link library generation module, use linker In shared compiling generate dynamic link library.
A kind of based in the dynamic link library multiple services system of scheduling in the present invention, dynamic link library is in operation System only loads once, contributes to saving internal memory, reduce the volume that can perform bin file;Move simultaneously State chained library can't be connected in object code when program compiles, but running in program is ability quilt It is loaded into, and uses display to load, can reduce same by program code controls, is loaded into dynamic link library The risk of step program, it configures simple and flexible, maintainable good;And differentiated service can be realized and load Different Dynamic chained library, each dynamic link library is independent of each other, and upgrading is convenient.
The present invention is a kind of has unified order business based on the multiple services method and system of dynamic link library scheduling Submit to into ginseng, dynamic link library name that data base's configuration service type is corresponding and kinematic function title;Logical Cross mastery routine and explicitly load dynamic link library, call corresponding kinematic function and realize service logic, submit to Order, dispatches multi-service.
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention Spirit and principle within, any modification, equivalent substitution and improvement etc. made, should be included in this Within bright protection domain.

Claims (10)

1. dispatch multiple services method based on dynamic link library for one kind, it is characterised in that: comprise the following steps:
S1, uniform traffic order enter parameter;
S2, enters under parameter at unified, the service that service order type in configuration database table is corresponding Title and action name;
S3, writes service order according to service name and action name and processes the kinematic function of logic;
S4, the kinematic function compiling processing logic according to service order generates dynamic link library;
S5, completes order submission by display loading dynamic link library with calling kinematic function, dispatches many industry Business.
One the most according to claim 1 dispatches multiple services method based on dynamic link library, and it is special Levy and be: the concrete methods of realizing of step S5 is:
S51, obtains the service name entered in parameter and the action name of service order;
S52, inquires about corresponding dynamic link library and kinematic function according to service name with action name;
S53, uses display to load the mode of dynamic link library, calls in dynamic link library corresponding dynamic Function;
S54, kinematic function returns successfully, completes order and submits to, dispatches multi-service.
One the most according to claim 1 and 2 dispatches multiple services method based on dynamic link library, It is characterized in that: described kinematic function enter parameter and described service order to enter parameter identical.
One the most according to claim 3 dispatches multiple services method based on dynamic link library, and it is special Levying and be: the method calling kinematic function is, first obtain kinematic function enters parameter, then performs Service order in kinematic function processes logic, finally returns to kinematic function result.
One the most according to claim 1 and 2 dispatches multiple services method based on dynamic link library, It is characterized in that: use the shared compiling in linker to generate dynamic link library in step s 4.
6. dispatch multiple services system based on dynamic link library for one kind, it is characterised in that: include joining into ginseng Number unified modules, database table configuration module, kinematic function write module, dynamic link library generation module Module is submitted to order,
Described enter parameter unified modules, its for uniform traffic order enter parameter;
Described database table configuration module, it is for entering under parameter, in configuration database table at unified Service name corresponding to service order type and action name;
Described kinematic function writes module, and it is for writing service order according to service name and action name Process the kinematic function of logic;
Described dynamic link library generation module, it collects volume for processing, according to service order, the kinematic function patrolled Translate generation dynamic link library;
Module submitted to by described order, and it is for loading dynamic link library by display and to call kinematic function complete Order is become to submit scheduling multi-service to.
One the most according to claim 6 dispatches multiple services system based on dynamic link library, its It is characterised by: the concrete processing procedure of described order submission module is,
Obtain the service name entered in parameter and the action name of service order;
Corresponding dynamic link library and kinematic function is inquired about with action name according to service name;
Use display to load the mode of dynamic link library, call kinematic function corresponding in dynamic link library;
Kinematic function returns successfully, completes order and submits scheduling multi-service to.
8. dispatch multiple services system according to the one described in claim 6 or 7 based on dynamic link library, It is characterized in that: described kinematic function enter parameter and described service order to enter parameter identical.
One the most according to claim 8 dispatches multiple services system based on dynamic link library, and it is special Levy and be: call kinematic function specifically, first obtain the parameter that enters of kinematic function, then perform dynamic Service order in state function processes logic, finally returns to kinematic function result.
10. dispatch multiple services system according to the one described in claim 6 or 7 based on dynamic link library, It is characterized in that: use the shared compiling in linker to generate dynamic chain in dynamic link library generation module Connect storehouse.
CN201610228513.7A 2016-04-13 2016-04-13 Multi-business scheduling method and system based on dynamic link libraries Pending CN105938439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610228513.7A CN105938439A (en) 2016-04-13 2016-04-13 Multi-business scheduling method and system based on dynamic link libraries

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610228513.7A CN105938439A (en) 2016-04-13 2016-04-13 Multi-business scheduling method and system based on dynamic link libraries

Publications (1)

Publication Number Publication Date
CN105938439A true CN105938439A (en) 2016-09-14

Family

ID=57152027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610228513.7A Pending CN105938439A (en) 2016-04-13 2016-04-13 Multi-business scheduling method and system based on dynamic link libraries

Country Status (1)

Country Link
CN (1) CN105938439A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142856A (en) * 2019-11-22 2020-05-12 航天信息股份有限公司 Automatic picture recognition database resource table establishing method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802367A (en) * 1995-07-07 1998-09-01 Microsoft Corporation Method and system for transparently executing code using a surrogate process
CN101827302A (en) * 2010-04-19 2010-09-08 中兴通讯股份有限公司 Multi-service unified processing method and unified service platform

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5802367A (en) * 1995-07-07 1998-09-01 Microsoft Corporation Method and system for transparently executing code using a surrogate process
CN101827302A (en) * 2010-04-19 2010-09-08 中兴通讯股份有限公司 Multi-service unified processing method and unified service platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
烟,灭在风里: ""C/C++中动态链接库的创建和调用"", 《HTTPS://WEB.ARCHIVE.ORG/WEB/20130911065319/HTTP://WWW.CNBLOGS.COM/FENGZHENG/P/3186677.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142856A (en) * 2019-11-22 2020-05-12 航天信息股份有限公司 Automatic picture recognition database resource table establishing method and system
CN111142856B (en) * 2019-11-22 2024-02-09 航天信息股份有限公司 Automatic picture identification database resource table establishment method and system

Similar Documents

Publication Publication Date Title
US8166448B2 (en) Rapid development of distributed web service
US20190354275A1 (en) System and Method for an Extensible Workflow Management
CN102567838A (en) Collaborative development system and collaborative development method
CN102087594B (en) Management method and device for extension point and plugins
CN105447643A (en) Cloud computing platform-oriented scientific workflow system and method
WO2007078461A1 (en) Multiple concurrent workflow persistence schemes
CN112988153A (en) Data processing method and framework based on micro front end
CN113298503A (en) Government affair-oriented workflow management system and database and table dividing method thereof
CN112379884A (en) Spark and parallel memory computing-based process engine implementation method and system
CN109656528A (en) Measured modularization software development methodology
CN109901872A (en) A kind of IT application in enterprises series of products version pipe control method
US20090024424A1 (en) System and method for dynamic linking of business processes
CN105938439A (en) Multi-business scheduling method and system based on dynamic link libraries
CN114020273A (en) Complex system software integration method
CN111813417B (en) Task scheduling method based on page configuration of several bin tasks and model tasks
CN110457013A (en) Program assembly configuration device and method
CN100456238C (en) Method and apparatus for realizing distributed object persistence and compiling unit
CN110399130A (en) A kind of APP skin change method based on android system
CN101246421A (en) Universal frame work based on workflow engine
CN115686462A (en) React-Native based engineering architecture method and system
CN100407162C (en) Integrated software testing method with test flexibility
CN111414438B (en) Real-time rule matching method and system based on mysql
CN109408038B (en) Open source APP personalized customization method and system
CN109298851B (en) Expansion mechanism adaptation method of OSGi heterogeneous software framework
Tragatschnig et al. Change patterns for supporting the evolution of event-based systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160914