CN116820531A - Plug-in task synchronization portal method, device and system - Google Patents
Plug-in task synchronization portal method, device and system Download PDFInfo
- Publication number
- CN116820531A CN116820531A CN202310410483.1A CN202310410483A CN116820531A CN 116820531 A CN116820531 A CN 116820531A CN 202310410483 A CN202310410483 A CN 202310410483A CN 116820531 A CN116820531 A CN 116820531A
- Authority
- CN
- China
- Prior art keywords
- task
- synchronized
- synchronization
- portal
- type
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000001360 synchronised effect Effects 0.000 claims abstract description 56
- 230000008676 import Effects 0.000 claims description 25
- 210000004258 portal system Anatomy 0.000 claims description 4
- 238000012423 maintenance Methods 0.000 abstract description 14
- 230000008569 process Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 2
- 244000046052 Phaseolus vulgaris Species 0.000 description 2
- 238000003491 array Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The application discloses a method, a device and a system for a plug-in task synchronization portal, belonging to the field of data synchronization; firstly, acquiring a task type and a task step of a task to be synchronized, and then calling a corresponding predefined method code according to the task type and the task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
Description
Technical Field
The present application relates to the field of data synchronization, and in particular, to a method, an apparatus, and a system for a plug-in task synchronization portal.
Background
In the existing scenario, the computing task involves a plurality of project services, the entries are not uniform and difficult to process, while the import task is relatively well processed due to the uniform entries made before, and if the synchronous portal is to be realized, the same synchronous code needs to be written in the involved plurality of projects. If the requirements are changed, or personalized services are required for the synchronous portal, the services are difficult to maintain, or the later maintenance cost is high.
Disclosure of Invention
In order to overcome the defects of the prior art, the application provides a plug-in task synchronization portal method, device and system, which are used for solving the problems that the service is difficult to maintain or the later maintenance cost is higher if the requirement is changed or personalized service is required to be carried out on the synchronization portal in the prior synchronization portal.
The technical scheme adopted for solving the technical problems is as follows:
in a first aspect, a method for pluggable task synchronization portal is provided, including the following steps:
acquiring a task type and a task step of a task to be synchronized, wherein the task type comprises a calculation task and an import task, and the task step comprises task creation, task processing and task ending;
invoking a corresponding predefined method code according to the task type and the task step;
and receiving data of the called method codes, wherein the data is the data of the task to be synchronized so as to complete the synchronization of the task to be synchronized.
Further, when the task type is a computing task and the task step is a task creation, the completing the synchronization of the task to be synchronized includes:
the call API sends a portal message queue.
Further, when the task type is a computing task and the task step is task processing, the completing the synchronization of the task to be synchronized includes:
and calling an API to synchronize the portal to calculate the task progress.
Further, when the task type is a computing task and the task step is a task end, the completing the synchronization of the task to be synchronized includes:
and calling an API to calculate a synchronous portal after the task is processed.
Further, when the task type is an import task and the task step is a task creation, the completing the synchronization of the task to be synchronized includes:
calling API to synchronously import task information.
Further, when the task type is an import task and the task step is task processing, the completing the synchronization of the task to be synchronized includes:
calling API to synchronize portal import processing progress.
Further, when the task type is an import task and the task step is a task end, the completing the synchronization of the task to be synchronized includes:
and calling the API to synchronize the portal import task to finish the processing.
In a second aspect, a pluggable task synchronization portal device is provided, including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a task type and a task step of a task to be synchronized, the task type comprises a calculation task and an import task, and the task step comprises task creation, task processing and task ending;
the calling module is used for calling a corresponding predefined method code according to the task type and the task step;
and the synchronization module is used for receiving data filling of the called method codes, wherein the data is the data of the task to be synchronized so as to complete the synchronization of the task to be synchronized.
In a third aspect, a pluggable task synchronization portal system is provided, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to perform the method of any of the first aspect solutions.
The beneficial effects are that:
the technical scheme of the application provides a plug-in task synchronization portal method, device and system, which comprises the steps of firstly acquiring a task type and a task step of a task to be synchronized, and then calling a corresponding predefined method code according to the task type and the task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for pluggable task synchronization portals provided by an embodiment of the present application;
FIG. 2 is a flowchart of a specific plug-in task synchronization portal method provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of a pluggable task synchronization portal device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail with reference to the accompanying drawings and examples. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, based on the examples herein, which are within the scope of the application as defined by the claims, will be within the scope of the application as defined by the claims.
It should be noted that, the computing task is a background computing service, which is usually directed to a computing site for a high-cost instant computing scene, and is different from the background which is directed to a planning task, and the computing task is thrown immediately and is stopped immediately. Thus, code needs to be written for each computing task to create, process, and end the computing task.
First embodiment, referring to fig. 1, an embodiment of the present application provides a pluggable task synchronization portal method, including the following steps:
s11: acquiring a task type and a task step of a task to be synchronized, wherein the task type comprises a calculation task and an import task, and the task step comprises task creation, task processing and task ending;
s12: invoking a corresponding predefined method code according to the task type and the task step;
s13: and receiving data of the called method codes, wherein the data is the data of the task to be synchronized, so as to complete the synchronization of the task to be synchronized.
The method for plug-in task synchronization portal provided by the embodiment of the application comprises the steps of firstly obtaining the task type and task step of a task to be synchronized, and then calling a corresponding predefined method code according to the task type and task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
In a second embodiment, the present application provides a specific plug-in task synchronization portal method, which is described in terms of specific service scenarios, where a task includes a computing center and an importing center, and a unified portal platform, so as to normalize use. Only one portal is needed for user operation. As shown in fig. 2:
the method comprises the steps of performing a calculation task in a calculation center, firstly, project configuration beans, then calling a method code of a predefined task creation step when the calculation task is created, calling an api to send a portal mq (i.e. a message queue) to a portal platform, then, in a calculation task processing stage, calling a method code of a predefined task processing step, calling an api synchronization portal to calculate task progress, finally, finishing calculation task processing, calling a method code of a predefined task ending step, and calling an api calculation task finishing synchronization portal.
The importing task is carried out in an importing center, firstly, project configuration beans are arranged, then, when the importing task is created, a method code of a predefined task creation step is called, the api synchronization portal importing task information is called, then, the method code of the predefined task processing step is called in an importing task processing stage, the api synchronization portal importing task processing progress is called, finally, the importing task is processed, a method code of a predefined task ending step is called, and the api synchronization portal importing task is called.
The specific plug-in task synchronization portal method provided by the embodiment of the application comprises the steps of firstly obtaining the task type and task step of a task to be synchronized, and then calling a corresponding predefined method code according to the task type and task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
In a third embodiment, the present application provides a pluggable task synchronization portal device, as shown in fig. 3, including:
the acquiring module 31 is configured to acquire a task type and a task step of a task to be synchronized, where the task type includes a calculation task and an import task, and the task step includes task creation, task processing and task ending;
a calling module 32, configured to call a corresponding predefined method code according to the task type and task step;
and the synchronization module 33 is configured to receive data of the called method code, where the data is data of the task to be synchronized, so as to complete synchronization of the task to be synchronized.
When the task type is a computing task and the task step is task creation, the synchronization module 33 calls an API to send a portal message queue.
When the task type is a calculation task and the task step is task processing, the synchronization module 33 calls the API to synchronize the portal calculation task progress.
When the task type is a calculation task and the task step is the end of the task, the synchronization module 33 calls the API calculation task processing completion synchronization portal.
When the task type is an import task and the task step is task creation, the synchronization module 33 calls the API to synchronize import task information.
When the task type is an import task and the task step is task processing, the synchronization module 33 calls an API synchronization portal import processing progress.
When the task type is the import task and the task step is the end of the task, the synchronization module 33 calls the API synchronization portal to import the task.
The acquisition module acquires the task type and task step of the task to be synchronized, wherein the task type comprises a calculation task and an importing task, and the task step comprises task creation, task processing and task ending; the calling module calls a corresponding predefined method code according to the task type and the task step; and the synchronization module receives data filling of the called method codes, wherein the data is the data of the task to be synchronized so as to complete synchronization of the task to be synchronized. The device provided by the embodiment of the application firstly acquires the task type and task step of the task to be synchronized, and then calls the corresponding predefined method codes according to the task type and task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
In a fourth embodiment, the present application provides a pluggable task synchronization portal system comprising:
a processor;
a memory for storing processor-executable instructions;
the processor is configured to perform the plugin task synchronization portal method provided by the first embodiment or the second embodiment.
According to the pluggable task synchronization portal system provided by the embodiment of the application, the executable instructions of the processor are stored through the memory, when the executable instructions are executed, the processor can acquire the task type and the task step of the task to be synchronized, and then the corresponding predefined method codes are called according to the task type and the task step; thus, the repeated codes in the task can be directly predefined; when the application is needed, the application is directly called. And finally, filling the data of the task to be synchronized into the called method codes. For each task to be synchronized, the code is called through plug-in, the code is not required to be written from beginning, and even if the requirement changes or personalized service is required, only the predefined method code is required to be changed. The device has the advantages of convenient maintenance and low maintenance cost.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.
Claims (9)
1. A method for plugin task synchronization portal, comprising the steps of:
acquiring a task type and a task step of a task to be synchronized, wherein the task type comprises a calculation task and an import task, and the task step comprises task creation, task processing and task ending;
invoking a corresponding predefined method code according to the task type and the task step;
and receiving data of the called method codes, wherein the data is the data of the task to be synchronized so as to complete the synchronization of the task to be synchronized.
2. The method according to claim 1, characterized in that: when the task type is a computing task and the task step is task creation, the completing the synchronization of the task to be synchronized includes:
the call API sends a portal message queue.
3. The method according to claim 1, characterized in that: when the task type is a computing task and the task step is task processing, the completing the synchronization of the task to be synchronized includes:
and calling an API to synchronize the portal to calculate the task progress.
4. The method according to claim 1, characterized in that: when the task type is a computing task and the task step is task end, the completing the synchronization of the task to be synchronized includes:
and calling an API to calculate a synchronous portal after the task is processed.
5. The method according to claim 1, characterized in that: when the task type is an import task and the task step is task creation, the completing the synchronization of the task to be synchronized includes:
calling API to synchronously import task information.
6. The method according to claim 1, characterized in that: when the task type is an import task and the task step is task processing, the completing the synchronization of the task to be synchronized includes:
calling API to synchronize portal import processing progress.
7. The method according to claim 1, characterized in that: when the task type is an import task and the task step is a task end, the completing the synchronization of the task to be synchronized includes:
and calling the API to synchronize the portal import task to finish the processing.
8. A pluggable task-synchronized portal device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a task type and a task step of a task to be synchronized, the task type comprises a calculation task and an import task, and the task step comprises task creation, task processing and task ending;
the calling module is used for calling a corresponding predefined method code according to the task type and the task step;
and the synchronization module is used for receiving data filling of the called method codes, wherein the data is the data of the task to be synchronized so as to complete the synchronization of the task to be synchronized.
9. A pluggable task-synchronized portal system, comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310410483.1A CN116820531A (en) | 2023-04-17 | 2023-04-17 | Plug-in task synchronization portal method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310410483.1A CN116820531A (en) | 2023-04-17 | 2023-04-17 | Plug-in task synchronization portal method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116820531A true CN116820531A (en) | 2023-09-29 |
Family
ID=88119210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310410483.1A Pending CN116820531A (en) | 2023-04-17 | 2023-04-17 | Plug-in task synchronization portal method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116820531A (en) |
-
2023
- 2023-04-17 CN CN202310410483.1A patent/CN116820531A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110674146B (en) | Data synchronization method, synchronization end, end to be synchronized, equipment and storage medium | |
US20200019559A1 (en) | Synchronizing object in local object storage node | |
US20130297563A1 (en) | Timestamp management method for data synchronization and terminal therefor | |
CN111225232B (en) | Video-based sticker animation engine, realization method, server and medium | |
CN110534085B (en) | Method and apparatus for generating information | |
CN112463634B (en) | Software testing method and device under micro-service architecture | |
CN111639127B (en) | Method, system, device and equipment for updating intelligent contract | |
TW202105191A (en) | Method and device for message aggregation | |
CN109426532B (en) | Method and device for linking pages in android system and electronic equipment | |
CN111897738A (en) | Automatic testing method and device based on atomic service | |
CN106484348A (en) | A kind of animation method for drafting based on synchronizing signal and system | |
CN110795328A (en) | Interface testing method and device | |
CN116820531A (en) | Plug-in task synchronization portal method, device and system | |
CN110354491B (en) | Global co-service game system, data synchronization method, electronic equipment and medium | |
CN111385599B (en) | Video processing method and device | |
CN111026810B (en) | Data synchronization method, device and storage medium | |
CN112596748B (en) | Desktop fusion use method, device, equipment and readable storage medium | |
CN111930391B (en) | Application data processing method and device, server and user terminal | |
CN109871226B (en) | Configuration method, device and medium of downloader and electronic equipment | |
CN111294657A (en) | Information processing method and device | |
CN106878056B (en) | Method and device for configuring synchronous interface in multi-environment | |
CN110688490A (en) | Method and device for configuring knowledge graph | |
CN110795468A (en) | Data extraction method and device | |
CN111367592A (en) | Information processing method and device | |
CN114157917B (en) | Video editing method and device and terminal equipment |
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 |