CN106897158A - Data load method and device - Google Patents
Data load method and device Download PDFInfo
- Publication number
- CN106897158A CN106897158A CN201710042468.0A CN201710042468A CN106897158A CN 106897158 A CN106897158 A CN 106897158A CN 201710042468 A CN201710042468 A CN 201710042468A CN 106897158 A CN106897158 A CN 106897158A
- Authority
- CN
- China
- Prior art keywords
- add
- priority
- control centre
- execution sequence
- loading control
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Abstract
The present invention relates to a kind of data load method, method includes:The add-in generated by one or more assemblies is received by loading control centre, and add-in is preserved in memory, add-in includes corresponding priority tag;Add-in is ranked up according to priority tag by loading control centre, make add-in execution sequence;The add-in in memory is performed according to add-in execution sequence.So that each component has available loading sequence when data loading is carried out, solve due to being difficult to clear the loading sequence between each add-in, may result in some add-ins cannot normal call, the problem for causing application software normally to use.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of data load method and device.
Background technology
In modularization application software, data loading is realized by the interface of invocation component.Traditional data loading
Method is to call the interface of each component successively in an interface for loading data, there is priority relationship between add-in
When, this data load method is difficult to clear the loading sequence between each add-in, may result in some add-ins
Cannot normal call, cause application software normally to use.
The content of the invention
Based on this, it is necessary to regarding to the issue above, there is provided a kind of to clear loading sequence between each add-in
Data load method and device.
A kind of data load method, methods described includes:
The add-in generated by one or more assemblies is received by loading control centre, and the add-in is stored in
In memory, the add-in includes corresponding priority tag;
The add-in is ranked up according to the priority tag by the loading control centre, is made add-in
Execution sequence;
The add-in in the memory is performed according to the add-in execution sequence.
It is described to receive adding for one or more assemblies generation by presetting loading control centre wherein in one embodiment
Before the step of carrying item, also include:
One or more of components are called by the loading control centre, is generated according to one or more of components
Corresponding add-in.
Wherein in one embodiment, it is described make add-in execution sequence the step of, including:
The priority level of each add-in is obtained according to the priority tag;
Priority level identical add-in is set to same execution sequence;
By the different add-in of priority level according to priority level low setting execution sequence high.
Wherein in one embodiment, the add-in performed according to the add-in execution sequence in the memory
The step of, including:
According to the preceding add-in of add-in execution sequence execution priority;
Judge whether the preceding add-in of the priority is finished, if so, then marking institute by loading control centre
The state of the preceding add-in of priority is stated to be finished;
According to the posterior add-in of add-in execution sequence execution priority, the posterior add-in of priority is
Add-in of the priority after the preceding add-in of the priority.
Wherein in one embodiment, the add-in performed according to the add-in execution sequence in the memory
The step of, including:
The interface of one or more assemblies is called to perform the add-in in the memory by the loading control centre.
A kind of data loading device, described device includes:
Add-in receiver module, for receiving the add-in generated by one or more assemblies by loading control centre,
And preserve in memory the add-in, the add-in includes corresponding priority tag;
Order module, for being arranged the add-in according to the priority tag by the loading control centre
Sequence, make add-in execution sequence;
Add-in performing module, for performing the add-in in the memory according to the add-in execution sequence.
Wherein in one embodiment, described device also includes:
Add-in generation module, for calling one or more of components by the loading control centre, according to institute
State one or more assemblies and generate corresponding add-in.
Wherein in one embodiment, the order module is additionally operable to obtain each add-in according to the priority tag
Priority level;Priority level identical add-in is set to same execution sequence;The different add-in of priority level is pressed
According to the low setting execution sequence high of priority level.
Wherein in one embodiment, the add-in performing module is additionally operable to be performed according to the add-in execution sequence
The preceding add-in of priority;Judge whether the preceding add-in of the priority is finished, if so, then by loading scheduling
The state of the preceding add-in of priority described in centre mark is to be finished;Performed according to the add-in execution sequence preferential
The posterior add-in of level, the posterior add-in of priority is priority adding after the preceding add-in of the priority
Carry item.
Wherein in one embodiment, the load and execution module is additionally operable to call one by the loading control centre
Or the interface of multiple components performs the add-in in the memory.
Above-mentioned data load method and device, one or more assemblies are called by default loading control centre, are received
And the add-in comprising priority tag that one or more assemblies are generated is stored, add-in is arranged according to priority tag
Sequence, obtains add-in execution sequence, and add-in is performed according to add-in execution sequence.So that each component is carrying out data loading
When, there is available loading sequence, solve due to being difficult to clear the loading sequence between each add-in, may lead
Cause some add-ins cannot normal call, the problem for causing application software normally to use.
Brief description of the drawings
Fig. 1 is the flow chart of data load method in one embodiment;
Fig. 2 is the flow chart of data load method in another embodiment;
Fig. 3 is the schematic diagram of data load method in one embodiment;
Fig. 4 is the structured flowchart of data loading device in one embodiment;
Fig. 5 is the structured flowchart of data loading device in another embodiment.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in figure 1, in one embodiment, there is provided a kind of data load method, including:
Step 102, receives the add-in generated by one or more assemblies, and add-in is protected by loading control centre
Deposit in memory, add-in includes corresponding priority tag.
In the present embodiment, component refers to the simplified package to data and method, is using the special object for deriving from.
Loading control centre refers to the program for being used for management assembly set in software development phase, by loading control centre
One or more assemblies can be called, so as to realize the management of the add-in to one or more assemblies generation, and is responsible for maintenance
The stress state of each add-in.Add-in refers to being pre-set to realize certain function in modularization application software
Program.Loading control centre preserves the add-in that the one or more assemblies for receiving are generated by memory, what memory referred to
It is to be used to protect stored memory device in modern information technologies, can be with storage program and various data, and can be in computer
Running high speed, the access for being automatically completed program or data.The corresponding priority tag of each add-in is used for unique
Recognize the priority level of each add-in, priority tag is typically by digital, alphabetical or other additional characters etc. of presetting digit capacity
Composition, can represent the height of the priority of add-in.
Step 104, is ranked up according to priority tag by loading control centre to add-in, and make add-in execution
Sequentially.
In the present embodiment, there is corresponding priority tag in each add-in, and loading control centre is being received by one
Or multiple components generations add-in while, the corresponding priority tag of each add-in is also have received, by preferential
Level mark is identified, and can get the priority level of each add-in, and loading control centre can be according to default rule
These add-ins are ranked up, add-in execution sequence is obtained by the result of generation of sorting.
Step 106, the add-in in memory is performed according to add-in execution sequence.
In the present embodiment, add-in execution sequence is to load control centre each is needed to load holding for the add-in of data
The sequence that row is carried out, the loading sequence between each add-in can be cleared according to add-in execution sequence execution add-in.
Above-mentioned data load method and device, one or more assemblies are called by default loading control centre, are received
And the add-in comprising priority tag that one or more assemblies are generated is stored, add-in is arranged according to priority tag
Sequence, obtains add-in execution sequence, and add-in is performed according to add-in execution sequence.So that each component is carrying out data loading
When, there is available loading sequence, solve due to being difficult to clear the loading sequence between each add-in, may lead
Cause some add-ins cannot normal call, the problem for causing application software normally to use.
As shown in Fig. 2 in one embodiment, there is provided a kind of data load method, including:
Step 202, one or more assemblies are called by loading control centre, and correspondence is generated according to one or more assemblies
Add-in.
In the present embodiment, before data loading is ready for, each is called to need to carry out data by loading control centre
The component of loading, forms an interface for general return add-in.Specifically, generating corresponding adding by one or more assemblies
Item priority tag corresponding with each add-in is carried, the interface that one or more assemblies pass through general return add-in will
The add-in of generation and corresponding priority tag are sent to loading control centre.Add-in includes the loading that data loading needs
Content, for example, can be to download address list, download personal information and download group list etc..
Step 204, receives the add-in generated by one or more assemblies, and add-in is protected by loading control centre
Deposit in memory, add-in includes corresponding priority tag.
In the present embodiment, loading control centre refer to software development phase set one for management assembly generate
Add-in program, one or more assemblies can be called by loading control centre, so as to realize to one or more groups
The management of the add-in of part generation, and it is responsible for safeguarding the stress state of each add-in.Receive and preserve by loading control centre
The add-in of one or more assemblies generation, during data are loaded, may only use a component, it is also possible to use
Multiple components, each component is possible to generate an add-in, it is also possible to the multiple add-ins of generation.It is right that each add-in includes
The priority tag answered, the priority of each add-in pre-sets in software development phase, and component is according to pre-setting
Priority generation comprising correspondence priority tag add-in.
Step 206, is ranked up according to priority tag by loading control centre to add-in, and make add-in execution
Sequentially.
In the present embodiment, loading control centre knows by the corresponding priority tag of each add-in for receiving
Not, the priority level of each add-in is obtained, is taken this as a foundation and add-in is ranked up, make add-in execution sequence, with reality
The management of the add-in for now being generated to each component.Specifically, as shown in figure 3, loading control centre manages the generation of each component
The add-in of configuration preference level, the add-in that the storage of loading control centre is received, and add-in is according to priority just carried out
Sequence, data loading process according to the sequential scheduling add-in after sequence, adjusted by the interface of the corresponding component of add-in
With realize data load.The add-in for being configured with priority is generated by component, according to different business scenarios, each component
One or more add-ins can be generated.
Step 208, the add-in in memory is performed according to add-in execution sequence.
In the present embodiment, when data loading is performed, data loading is carried out according to add-in execution sequence.Adjusted by loading
The according to priority other sequence arrangement of each add-in is first loaded priority level add-in high by degree center, and isopreference rank is high
Add-in loaded, reload the low add-in of priority level.For example, loading control centre is in specific business scenario
In, invocation component 1, component 2 and component 3, the add-in A and add-in B of the generation of receiving unit 1, the add-in C of the generation of component 2
The add-in D generated with component 3, the priority tag included according to add-in A, B, C and D is ranked up to these add-ins,
Add-in A and add-in D priority are height, and during add-in C priority is, add-in B priority is low, and the add-in of generation is held
For add-in A and D is first carried out, execution add-in C after waiting add-in A and D to be finished, item C to be loaded has been performed row order
Add-in B is performed after finishing.So as to clear the loading sequence between add-in A, B, C and D, enter according to the add-in execution sequence
Row data are loaded.
In one embodiment, make add-in execution sequence the step of, including:Each is obtained according to priority tag to add
Carry the priority level of item;Priority level identical add-in is set to same execution sequence;By the different loading of priority level
According to priority level low setting execution sequence high.
In the present embodiment, the add-in that loading control centre receives includes corresponding priority tag, priority tag
It is the mark of the priority level for unique identification each add-in, typically by the digital, alphabetical of presetting digit capacity or other are special
Symbol etc. is constituted.Specifically, loading control centre may receive the multiple add-ins generated by one or more assemblies, each adds
Carry item priority level may it is identical be likely to difference, in order to avoid cause add-in cannot normal call, should be by priority
Other identical add-in is set to same execution sequence, and the different add-in of priority level is held according to priority level low setting high
Row order, when data loading is performed, first loads the add-in in priority level same execution sequence high, treats that priority level is high
Add-in be all finished, reload other add-ins in execution sequence.
In one embodiment, the step of performing the add-in in memory according to add-in execution sequence, including:According to
The preceding add-in of add-in execution sequence execution priority;Judge whether the preceding add-in of priority is finished, if so,
Then it is finished by loading the state of the preceding add-in of control centre's priority-labeled;Held according to add-in execution sequence
The posterior add-in of row major level, the posterior add-in of priority is loading of the priority after the preceding add-in of priority
.
In the present embodiment, the preceding add-in of priority and the posterior add-in of priority are relative concept, priority
Preceding add-in is the higher leveled add-in of add-in priority level more posterior than priority.Specifically, loading control centre
The multiple add-ins generated by one or more assemblies are likely to be received, multiple add-ins sort according to corresponding priority tag
The add-in execution sequence of multiple priority levels may be generated, when data are loaded, it is necessary to first loading priority level highest adds
Item is carried, when determining priority level highest add-in and being finished, the add-in of the low one-level of priority level is reloaded, it is ensured that
Data load process is carried out according to the execution sequence that loading control centre generates.Performed when the preceding add-in of priority is determined
When finishing, marked accordingly by loading control centre, application software is obtained the preceding add-in of priority and performed
Complete information so that application software can control the implementation status of data loading.For example, loading control centre receives add-in
To download address list, downloading personal information and downloading group list, loading control centre is according to corresponding priority tag to this
A little add-ins are ranked up, if the priority downloaded address list and download group list is height, download the priority of personal information
For low, then the add-in execution sequence for generating treats address list and records separately to arrange to first carry out download address list and downloading group list
After the completion of table is downloaded, result is fed back into loading control centre, execution state is marked by loading control centre, Ran Houyou
Loading control centre judges that priority level is whether add-in high all performs completion, if so, it is low then to perform preferred rank
Add-in, that is, start perform download personal information, until all add-ins perform completion.
Further, in the conventional technology, data loading is performed due to controlling each add-in without loading control centre
Situation, application software be difficult it is unified judge whether each add-in loads completion, when completion can be loaded, if add-in
Occur abnormal, in addition it is also necessary to carry out corresponding abnormality processing, or even need artificial treatment.In the present embodiment, application software is by adding
The execution state that each add-in can be controlled in dispatching is carried, if occurring abnormal conditions in implementation procedure, by corresponding add-in
Corresponding abnormality processing is carried out, each add-in is responsible for processing the abnormal conditions for itself occurring, and final result is fed back into loading
Control centre.For example, during the setting of the abnormal conditions of itself is processed in each add-in, add-in can be set and abnormal feelings occurring
Data loading is re-started during condition, if re-start data loading and abnormal conditions still occur and reaching default number of times, is sentenced
The data load and execution of breaking is finished, and is fed back to loading control centre.
In one embodiment, the step of performing the add-in in memory according to add-in execution sequence, including:Pass through
The interface of one or more assemblies is called to perform the add-in in memory in loading control centre.
In the present embodiment, component is the actual executor of loading in data loading, by add-in connection loading scheduling
The heart and the corresponding component of add-in, add-in are generated by corresponding component, it is also desirable to held by calling the interface of corresponding component
Row data are loaded.
As shown in figure 4, in one embodiment, there is provided a kind of data loading device, including:
Add-in receiver module 402, the add-in generated by one or more assemblies is received for crossing loading control centre,
And preserve in memory add-in, add-in includes corresponding priority tag.
Order module 404, for being ranked up to add-in according to priority tag by loading control centre, generation adds
Carry item execution sequence.
Add-in performing module 406, for performing the add-in in memory according to add-in execution sequence.
As shown in figure 5, in one embodiment, data loading device also includes:
Add-in generation module 408, for calling one or more assemblies by loading control centre, according to one or many
Individual component generates corresponding add-in.
In one embodiment, order module 404 is additionally operable to be obtained according to priority tag the priority of each add-in
Not;Priority level identical add-in is set to same execution sequence;By the different add-in of priority level according to priority
Other low setting execution sequence high.
In one embodiment, add-in performing module 406 is additionally operable to exist according to add-in execution sequence execution priority
Preceding add-in;Judge whether the preceding add-in of priority is finished, if so, then being marked preferentially by loading control centre
The state of the preceding add-in of level is to be finished;According to the add-in posterior add-in of execution sequence execution priority, preferentially
The posterior add-in of level is add-in of the priority after the preceding add-in of priority.
In one embodiment, load and execution module 406 is additionally operable to call one or more groups by loading control centre
The interface of part performs the add-in in memory.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses several embodiments of the invention, and its description is more specific and detailed, but simultaneously
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that coming for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of data load method, methods described includes:
The add-in generated by one or more assemblies is received by loading control centre, and the add-in is stored in storage
In device, the add-in includes corresponding priority tag;
The add-in is ranked up according to the priority tag by the loading control centre, make add-in execution
Sequentially;
The add-in in the memory is performed according to the add-in execution sequence.
2. method according to claim 1, it is characterised in that described to receive or many by default loading control centre
Before the step of add-in of individual component generation, also include:
One or more of components are called by the loading control centre, correspondence is generated according to one or more of components
Add-in.
3. method according to claim 1, it is characterised in that it is described make add-in execution sequence the step of, including:
The priority level of each add-in is obtained according to the priority tag;
Priority level identical add-in is set to same execution sequence;
By the different add-in of priority level according to priority level low setting execution sequence high.
4. method according to claim 1, it is characterised in that it is described according to the add-in execution sequence perform described in deposit
The step of add-in in reservoir, including:
According to the preceding add-in of add-in execution sequence execution priority;
Judge whether the preceding add-in of the priority is finished, if so, then described excellent by loading control centre's mark
The state of the first preceding add-in of level is to be finished;
According to the posterior add-in of add-in execution sequence execution priority, the posterior add-in of priority is preferential
Add-in of the level after the preceding add-in of the priority.
5. method according to claim 4, it is characterised in that it is described according to the add-in execution sequence perform described in deposit
The step of add-in in reservoir, including:
The interface of one or more assemblies is called to perform the add-in in the memory by the loading control centre.
6. a kind of data loading device, it is characterised in that described device includes:
Add-in receiver module, for receiving the add-in generated by one or more assemblies by loading control centre, and will
The add-in is preserved in memory, and the add-in includes corresponding priority tag;
Order module, for being ranked up to the add-in according to the priority tag by the loading control centre,
Make add-in execution sequence;
Add-in performing module, for performing the add-in in the memory according to the add-in execution sequence.
7. device according to claim 6, it is characterised in that described device also includes:
Add-in generation module, for calling one or more of components by the loading control centre, according to described one
Individual or multiple components generate corresponding add-in.
8. according to your device described in 6 of claim, it is characterised in that the order module is additionally operable to according to the priority mark
Know the priority level for obtaining each add-in;Priority level identical add-in is set to same execution sequence;By priority
Not different add-ins according to priority level low setting execution sequence high.
9. device according to claim 6, the add-in performing module is additionally operable to according to the add-in execution sequence
The preceding add-in of execution priority;Judge whether the preceding add-in of the priority is finished, if so, then by loading
Control centre marks the state of the preceding add-in of priority to be finished;Performed according to the add-in execution sequence
The posterior add-in of priority, the posterior add-in of priority is priority after the preceding add-in of the priority
Add-in.
10. device according to claim 9, the load and execution module is additionally operable to be called by the loading control centre
The interface of one or more assemblies performs the add-in in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042468.0A CN106897158B (en) | 2017-01-20 | 2017-01-20 | data loading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710042468.0A CN106897158B (en) | 2017-01-20 | 2017-01-20 | data loading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106897158A true CN106897158A (en) | 2017-06-27 |
CN106897158B CN106897158B (en) | 2019-12-17 |
Family
ID=59199168
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710042468.0A Active CN106897158B (en) | 2017-01-20 | 2017-01-20 | data loading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106897158B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491718A (en) * | 2018-09-13 | 2019-03-19 | 北京米文动力科技有限公司 | A kind of plug-in loading method and equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464810A (en) * | 2008-12-31 | 2009-06-24 | 金蝶软件(中国)有限公司 | Service program processing method and server |
CN101833465A (en) * | 2010-04-23 | 2010-09-15 | 中国科学院声学研究所 | Embedded system supporting dynamic loading operation of application programs |
-
2017
- 2017-01-20 CN CN201710042468.0A patent/CN106897158B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464810A (en) * | 2008-12-31 | 2009-06-24 | 金蝶软件(中国)有限公司 | Service program processing method and server |
CN101833465A (en) * | 2010-04-23 | 2010-09-15 | 中国科学院声学研究所 | Embedded system supporting dynamic loading operation of application programs |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109491718A (en) * | 2018-09-13 | 2019-03-19 | 北京米文动力科技有限公司 | A kind of plug-in loading method and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN106897158B (en) | 2019-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107896162B (en) | Deployment method and device of monitoring system, computer equipment and storage medium | |
CN109087054A (en) | Synergetic office work data flow processing method, device, computer equipment and storage medium | |
CN111131352B (en) | Theme switching method and device | |
CN106598705A (en) | Asynchronous task scheduling method, device and system and electronic equipment | |
CN107729135B (en) | Method and device for parallel data processing in sequence | |
CN112685410B (en) | Business rule checking method, device, computer equipment and storage medium | |
CN112560114B (en) | Method and device for calling intelligent contract | |
CN106649164A (en) | Hardware interface management method | |
CN108228341A (en) | Method for recovering internal storage and device, terminal device and computer readable storage medium | |
CN106502778A (en) | A kind of terminal and its process scheduling optimization method | |
CN105589715A (en) | Information processing device, library loading method, and computer readable medium | |
CN114357498A (en) | Data desensitization method and device | |
CN108021621A (en) | Database data acquisition method, application server and computer-readable recording medium | |
CN103888424B (en) | Concentrating type data encryption system and its data processing method | |
CN109766316A (en) | File acquisition method, device, computer equipment and storage medium | |
CN107861799A (en) | task processing method and device based on multi-thread environment | |
CN111708971A (en) | Page configuration method and device, computer equipment and storage medium | |
CN115344533A (en) | Microservice log retrieval method, microservice log retrieval system, microservice log retrieval control device, and storage medium | |
CN106897158A (en) | Data load method and device | |
CN106874020A (en) | Start the method and device of plug-in unit | |
CN103197950B (en) | Plug-in virtual machine implementation method | |
CN111143063B (en) | Task resource reservation method and device | |
CN114816170A (en) | Rule scheme generation method, device, medium and electronic equipment | |
CN112328325A (en) | Execution method and device of model file, terminal equipment and storage medium | |
CN115686746A (en) | Access method, task processing method, computing device, and computer storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |