CN107025096B - Synchronous method and system of asynchronous rendering module - Google Patents

Synchronous method and system of asynchronous rendering module Download PDF

Info

Publication number
CN107025096B
CN107025096B CN201610063789.4A CN201610063789A CN107025096B CN 107025096 B CN107025096 B CN 107025096B CN 201610063789 A CN201610063789 A CN 201610063789A CN 107025096 B CN107025096 B CN 107025096B
Authority
CN
China
Prior art keywords
data
view
state parameter
event
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610063789.4A
Other languages
Chinese (zh)
Other versions
CN107025096A (en
Inventor
瞿宝明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Didi China 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 Didi China Technology Co Ltd filed Critical Didi China Technology Co Ltd
Priority to CN201610063789.4A priority Critical patent/CN107025096B/en
Publication of CN107025096A publication Critical patent/CN107025096A/en
Application granted granted Critical
Publication of CN107025096B publication Critical patent/CN107025096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention provides a synchronous method and a system of asynchronous rendering modules, wherein the method comprises the following steps: monitoring an event of a first view in a current interface by a monitoring module; when an event carrying first data and sent by a first view is received, adjusting the state parameters of the event carrying the first data, and storing the first data into a data variable of the event carrying the first data; judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not; if the adjusted state parameter is the preset maximum value and data are stored in the data variable, the first data stored in the data variable are sent to a second view in the current interface, so that the second view renders the sub-view of the second view according to the first data, and the state parameter is reset to the initial value after the second view renders the sub-view of the second view. The method can solve the synchronization problem of the asynchronous rendering modules, ensure that all the asynchronous modules are rendered when specific operations are executed, and ensure that all data are prepared properly.

Description

Synchronous method and system of asynchronous rendering module
Technical Field
The invention relates to the technical field of computers, in particular to a method and a system for synchronizing asynchronous rendering modules.
Background
Currently, in the rendering of a front-end Model-View Controller (MVC), as shown in fig. 1, after a first View (View a) is rendered, it is necessary to send its data to an event to a second View (View b), and the View b monitors the event and then renders its sub-View (SubView) with the View a data.
However, since ViewA and ViewB are asynchronous rendering modules, each independently request a server, and the time for data return depends on the network, the order of the completion of the ViewA and ViewB rendering cannot be guaranteed. For example, when the ViewA sends an event to the ViewB, the ViewB is likely to request data and rendering is not completed, that is, the ViewB does not register an event corresponding to the ViewA, and thus, the entire page interaction logic fails.
In view of this, how to solve the synchronization problem of asynchronous rendering modules to ensure that all asynchronous modules are rendered when a specific operation is executed, and all data is ready to be solved is a technical problem to be solved at present.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and a system for synchronizing asynchronous rendering modules, which can solve the synchronization problem of the asynchronous rendering modules, and ensure that all asynchronous modules are rendered when a specific operation is executed, and all data are prepared properly.
In a first aspect, the present invention provides a method for synchronizing asynchronous rendering modules, including:
monitoring an event of a first view in a current interface by a monitoring module;
when an event which is sent by the first view and carries first data is received, adjusting the state parameters of the event, and storing the first data into a data variable of the event;
judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
if the adjusted state parameter is the preset maximum value and data are stored in the data variable, the first data stored in the data variable are sent to a second view in the current interface, so that the second view renders the sub-view of the second view according to the first data, and the state parameter is reset to the initial value after the second view renders the sub-view of the second view.
Preferably, the method further comprises:
monitoring an event of a second view in the current interface by the monitoring module;
when an event sent by the second view is received, adjusting the state parameters of the second view;
judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
if the adjusted state parameter is a preset maximum value and data are stored in the data variable, the first data stored in the data variable are sent to a second view, so that the second view renders the sub-view according to the first data, and the state parameter is reset to an initial value after the second view renders the sub-view.
Preferably, the preset maximum value is a value of the state parameter after the monitoring module adjusts the state parameter of the monitoring module when receiving an event carrying first data sent by the first view and adjusts the state parameter of the monitoring module when receiving an event sent by the second view.
Preferably, before the monitoring module receives the event carrying the first data sent by the first view, the method further includes:
a first view in the current interface sends a first data request to a server through a data warehouse store of the first view;
receiving first data returned by the server according to the first data request;
rendering the self according to the first data, and sending the event carrying the first data to a monitoring module.
Preferably, when receiving the event carrying the first data sent by the first view, adjusting the state parameter of the event itself includes:
when an event carrying first data and sent by the first view is received, if the state parameter of the event carrying the first data is an initial value, changing the state parameter increasing preset value into a first preset value, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value.
Preferably, before the monitoring module receives the event sent by the second view, the method further includes:
a second view in the current interface sends a second data request to the server through a data warehouse store of the second view;
receiving second data returned by the server according to the second data request;
rendering the self according to the second data, and sending an event to a monitoring module.
Preferably, when receiving the event sent by the second view, adjusting the state parameter of the second view includes:
when an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
In a second aspect, the present invention provides a system for synchronizing asynchronous rendering modules, comprising:
the method comprises the steps of monitoring a module, a first view in a current interface and a second view in the current interface;
the monitoring module comprises: the device comprises a first monitoring unit, a first adjusting unit, a first judging unit and a first sending unit;
the first monitoring unit is used for monitoring an event of a first view in the current interface;
the first adjusting unit is used for adjusting the state parameters of the first adjusting unit when receiving an event which is sent by the first view and carries first data, and storing the first data into a data variable of the first adjusting unit;
the first judging unit is used for judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
the first sending unit is configured to send the first data stored in the data variable to a second view in a current interface if the adjusted state parameter is a preset maximum value and data is stored in the data variable at this time, so that the second view renders a sub-view of the second view according to the first data, and resets the state parameter to an initial value after the second view renders the sub-view of the second view.
Preferably, the monitoring module further includes: the first monitoring unit, the first adjusting unit, the first judging unit and the first sending unit are connected;
the second monitoring unit is used for monitoring an event of a second view in the current interface;
the second adjusting unit is used for adjusting the state parameters of the second adjusting unit when receiving the event sent by the second view;
the second judging unit is used for judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
and the second sending unit is used for sending the first data stored in the data variable to a second view if the adjusted state parameter is a preset maximum value and data is stored in the data variable, so that the second view renders the sub-view according to the first data, and the state parameter is reset to an initial value after the second view renders the sub-view.
Preferably, the preset maximum value is a value of the state parameter after the monitoring module adjusts the state parameter of the monitoring module when receiving an event carrying first data sent by the first view and adjusts the state parameter of the monitoring module when receiving an event sent by the second view.
Preferably, the system further comprises: a server;
the first view is used for sending a first data request to the server through the own data warehouse store; receiving first data returned by the server according to the first data request; rendering the self according to the first data, and sending the event carrying the first data to a monitoring module.
Preferably, the first adjusting unit is specifically used for
When an event carrying first data and sent by the first view is received, if the state parameter of the event is an initial value, changing the state parameter increasing preset value into a first preset value, and storing the first data into a data variable of the event, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value, and storing the first data into a data variable of the event.
Preferably, the system further comprises: a server;
the second view is used for sending a second data request to the server through the own data warehouse store; receiving second data returned by the server according to the second data request; rendering the self according to the second data, and sending an event to a monitoring module.
Preferably, the second adjustment unit, in particular for
When an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
According to the technical scheme, the method and the system for synchronizing the asynchronous rendering modules can solve the synchronization problem of the asynchronous rendering modules, ensure that all the asynchronous modules are rendered when specific operations are executed, and prepare all data appropriately.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of asynchronous rendering module synchronization in the prior art;
FIG. 2 is a flowchart illustrating a synchronization method of asynchronous rendering modules according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a synchronous system of asynchronous rendering modules according to another embodiment of the present disclosure;
FIG. 4 is an initial state diagram of the synchronous system of the asynchronous rendering module of FIG. 3;
FIG. 5 is a schematic diagram of an intermediate state of the synchronous system of the asynchronous rendering module of FIG. 3;
FIG. 6 is a final state diagram of the synchronous system of the asynchronous rendering module shown in FIG. 3.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 2 is a flowchart illustrating a synchronization method for asynchronous rendering modules according to an embodiment of the present disclosure, and referring to fig. 2, the method includes the following steps:
s1, the monitoring module (monitor) monitors the event of the first View (View A) in the current interface.
S2, when receiving the event which is sent by the first view and carries the first data, adjusting the state parameter (state) of the event, and storing the first data into the data variable (data) of the event.
Specifically, the step S2 of this embodiment of "adjusting the state parameter of the device when receiving the event carrying the first data sent by the first view" may include:
when an event carrying first data and sent by the first view is received, if the state parameter of the event carrying the first data is an initial value, changing the state parameter increasing preset value into a first preset value, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value.
In a specific application, for example, the initial value may be preferably 0, the first preset value may be preferably 1, and the preset maximum value may be preferably 2.
And S3, judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not.
S4, if the adjusted state parameter is a preset maximum value and data are stored in the data variable, sending the first data stored in the data variable to a second View in a current interface, so that the second View renders a Sub-View (Sub View) of the second View according to the first data, and resetting the state parameter to an initial value after the second View renders the Sub-View.
In a specific application, the method for synchronizing asynchronous rendering modules according to this embodiment further includes steps P1-P4:
p1, the monitoring module listens for events of the second View (View B) in the current interface.
And P2, adjusting the state parameters of the second view when receiving the event sent by the second view.
Specifically, step P2 of this embodiment may include:
when an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
And P3, judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not.
And P4, if the adjusted state parameter is a preset maximum value and data are stored in the data variable, sending the first data stored in the data variable to a second view, so that the second view renders the sub-view according to the first data, and resetting the state parameter to an initial value after the second view renders the sub-view.
In this embodiment, the preset maximum value is a value of the state parameter after the monitoring module adjusts the state parameter of the monitoring module when receiving the event carrying the first data sent by the first view and adjusts the state parameter of the monitoring module when receiving the event sent by the second view.
In a specific application, before step S2, the method for synchronizing asynchronous rendering modules according to this embodiment further includes:
a first view in the current interface sends a first data request to a server through a data warehouse store of the first view;
receiving first data returned by the server according to the first data request;
rendering the self according to the first data, and sending the event carrying the first data to a monitoring module.
In a specific application, before step P2, the method for synchronizing asynchronous rendering modules according to this embodiment further includes:
a second view in the current interface sends a second data request to the server through a data warehouse store of the second view;
receiving second data returned by the server according to the second data request;
rendering the self according to the second data, and sending an event to a monitoring module.
It can be understood that the first View (View a) and the second View (View b) in this embodiment are views (views) in the MVC Model, which are responsible for requesting data and View rendering, and have their own models (models) that individually request the server, which in response takes back data to start rendering a page; the monitoring module in this embodiment is the core of this embodiment, and is responsible for state maintenance and data temporary storage. In this embodiment, only the first View or the second View can modify the state of the status parameter in the monitoring module, and only when the state is the preset maximum value and the data variable stores the first data, the Sub View (Sub View) of the second View is rendered, thereby ensuring the accuracy of the time for rendering the Sub View.
The synchronization method for the asynchronous rendering modules of the embodiment can solve the synchronization problem of the asynchronous rendering modules, and ensure that all the asynchronous modules are rendered and all data are prepared properly when specific operations are executed.
Fig. 3 shows a schematic structural diagram of a synchronous system of asynchronous rendering modules according to another embodiment of the present disclosure, and referring to fig. 3, the system includes: a monitoring module 301, a first view 302 in the current interface, and a second view 303 in the current interface;
the monitoring module comprises the following components which are not shown in the figure: the device comprises a first monitoring unit, a first adjusting unit, a first judging unit and a first sending unit;
the first monitoring unit is used for monitoring an event of a first view in the current interface;
the first adjusting unit is used for adjusting the state parameters of the first adjusting unit when receiving an event which is sent by the first view and carries first data, and storing the first data into a data variable of the first adjusting unit;
the first judging unit is used for judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
the first sending unit is configured to send the first data stored in the data variable to a second view in a current interface if the adjusted state parameter is a preset maximum value and data is stored in the data variable at this time, so that the second view renders a sub-view of the second view according to the first data, and resets the state parameter to an initial value after the second view renders the sub-view of the second view.
Further, the first adjusting unit may be specifically configured to
When an event carrying first data and sent by the first view is received, if the state parameter of the event is an initial value, changing the state parameter increasing preset value into a first preset value, and storing the first data into a data variable of the event, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value, and storing the first data into a data variable of the event.
In a specific application, the monitoring module 301 of this embodiment further includes: the first monitoring unit, the first adjusting unit, the first judging unit and the first sending unit are connected;
the second monitoring unit is used for monitoring an event of a second view in the current interface;
the second adjusting unit is used for adjusting the state parameters of the second adjusting unit when receiving the event sent by the second view;
the second judging unit is configured to judge whether the adjusted state parameter is a preset maximum value at this time and whether data is stored in the data variable;
the second sending unit is configured to send the first data stored in the data variable to a second view if the adjusted state parameter is a preset maximum value and data is stored in the data variable, so that the second view renders a sub-view of the second view according to the first data, and resets the state parameter to an initial value after the second view renders the sub-view of the second view.
Further, the second adjusting unit may be specifically configured to
When an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
In this embodiment, the preset maximum value is a value of the state parameter after the monitoring module adjusts the state parameter of the monitoring module when receiving the event carrying the first data sent by the first view and adjusts the state parameter of the monitoring module when receiving the event sent by the second view.
For example, in this embodiment, the initial value may be preferably 0, the first preset value may be preferably 1, and the preset maximum value may be preferably 2.
Further, the synchronous system of the asynchronous rendering module according to this embodiment may further include: a server 304;
the first view 302, which is used to send a first data request to the server 304 through its own data warehouse store; receiving first data returned by the server 304 according to the first data request; rendering the self according to the first data, and sending the event carrying the first data to the monitoring module 301.
Further, the second view 303 is configured to send a second data request to the server 304 through its own data warehouse store; receiving second data returned by the server 304 according to the second data request; rendering the second data according to the second data, and sending an event to the monitoring module 301.
Taking the initial value as 0, the first preset value as 1, and the preset maximum value as 2 as examples, the initial state of the synchronous system of the asynchronous rendering module in this embodiment may be referred to as fig. 4, the intermediate state may be referred to as fig. 5, and the final state may be referred to as fig. 6.
It is understood that the first View (View a) and the second View (View b) in this embodiment are views (views) in the MVC Model, which are responsible for requesting data and View rendering, and have their own models (models) that individually request the server, which responds by retrieving the data and starts rendering the page; the monitoring module in this embodiment is the core of this embodiment, and is responsible for state maintenance and data temporary storage. In this embodiment, only the first View or the second View can modify the state of the status parameter in the monitoring module, and only when the state is the preset maximum value and the data variable stores the first data, the Sub View (Sub View) of the second View is rendered, thereby ensuring the accuracy of the time for rendering the Sub View.
The synchronous system of the asynchronous rendering module of the embodiment can solve the synchronous problem of the asynchronous rendering module, and ensure that all asynchronous modules are rendered and all data are prepared properly when specific operations are executed.
For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It should be noted that, in the respective components of the system of the present disclosure, the components therein are logically divided according to the functions to be implemented, but the present disclosure is not limited thereto, and the respective components may be re-divided or combined as needed, for example, some components may be combined into a single component, or some components may be further decomposed into more sub-components.
Various component embodiments of the disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components in a system according to embodiments of the present disclosure. The present disclosure may also be embodied as device or system programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present disclosure may be stored on a computer-readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the disclosure, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several systems, several of these systems may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The above embodiments are only suitable for illustrating the present disclosure, and not limiting the present disclosure, and those skilled in the relevant art can make various changes and modifications without departing from the spirit and scope of the present disclosure, so that all equivalent technical solutions also belong to the scope of the present disclosure, and the scope of the present disclosure should be defined by the claims.

Claims (14)

1. A method for synchronizing asynchronous rendering modules, comprising:
monitoring an event of a first view in a current interface by a monitoring module;
when an event which is sent by the first view and carries first data is received, adjusting the state parameters of the event, and storing the first data into a data variable of the event;
judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
if the adjusted state parameter is the preset maximum value and data are stored in the data variable, the first data stored in the data variable are sent to a second view in the current interface, so that the second view renders the sub-view of the second view according to the first data, and the state parameter is reset to the initial value after the second view renders the sub-view of the second view.
2. The method of claim 1, further comprising:
monitoring an event of a second view in the current interface by the monitoring module;
when an event sent by the second view is received, adjusting the state parameters of the second view;
judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
if the adjusted state parameter is a preset maximum value and data are stored in the data variable, the first data stored in the data variable are sent to a second view, so that the second view renders the sub-view according to the first data, and the state parameter is reset to an initial value after the second view renders the sub-view.
3. The method according to claim 2, wherein the preset maximum value is a value of a state parameter of the monitoring module after the monitoring module adjusts the state parameter when receiving an event carrying first data sent by the first view and adjusts the state parameter when receiving an event sent by the second view.
4. The method according to claim 1, wherein before the monitoring module receives the event carrying the first data sent by the first view, the method further comprises:
a first view in the current interface sends a first data request to a server through a data warehouse store of the first view;
receiving first data returned by the server according to the first data request;
rendering the self according to the first data, and sending the event carrying the first data to a monitoring module.
5. The method according to claim 1, wherein the adjusting the state parameter of the first view upon receiving the event carrying the first data sent by the first view comprises:
when an event carrying first data and sent by the first view is received, if the state parameter of the event carrying the first data is an initial value, changing the state parameter increasing preset value into a first preset value, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value.
6. The method of claim 2, wherein before the monitoring module receives the event sent by the second view, the method further comprises:
a second view in the current interface sends a second data request to the server through a data warehouse store of the second view;
receiving second data returned by the server according to the second data request;
rendering the self according to the second data, and sending an event to a monitoring module.
7. The method according to claim 2, wherein the adjusting the state parameter of the device when receiving the event sent by the second view comprises:
when an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
8. A system for synchronizing asynchronous rendering modules, comprising: the method comprises the steps of monitoring a module, a first view in a current interface and a second view in the current interface;
the monitoring module comprises: the device comprises a first monitoring unit, a first adjusting unit, a first judging unit and a first sending unit;
the first monitoring unit is used for monitoring an event of a first view in the current interface;
the first adjusting unit is used for adjusting the state parameters of the first adjusting unit when receiving an event which is sent by the first view and carries first data, and storing the first data into a data variable of the first adjusting unit;
the first judging unit is used for judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
the first sending unit is configured to send the first data stored in the data variable to a second view in a current interface if the adjusted state parameter is a preset maximum value and data is stored in the data variable at this time, so that the second view renders a sub-view of the second view according to the first data, and resets the state parameter to an initial value after the second view renders the sub-view of the second view.
9. The system of claim 8, wherein the monitoring module further comprises: the first monitoring unit, the first adjusting unit, the first judging unit and the first sending unit are connected;
the second monitoring unit is used for monitoring an event of a second view in the current interface;
the second adjusting unit is used for adjusting the state parameters of the second adjusting unit when receiving the event sent by the second view;
the second judging unit is used for judging whether the adjusted state parameter is a preset maximum value or not and whether data are stored in the data variable or not;
and the second sending unit is used for sending the first data stored in the data variable to a second view if the adjusted state parameter is a preset maximum value and data is stored in the data variable, so that the second view renders the sub-view according to the first data, and the state parameter is reset to an initial value after the second view renders the sub-view.
10. The system according to claim 9, wherein the preset maximum value is a value of a state parameter of the monitoring module after adjusting the state parameter when receiving the event carrying the first data sent by the first view and adjusting the state parameter when receiving the event sent by the second view.
11. The system of claim 8, further comprising: a server;
the first view is used for sending a first data request to the server through the own data warehouse store; receiving first data returned by the server according to the first data request; rendering the self according to the first data, and sending the event carrying the first data to a monitoring module.
12. System according to claim 8, characterized in that the first adjustment unit, in particular for
When an event carrying first data and sent by the first view is received, if the state parameter of the event is an initial value, changing the state parameter increasing preset value into a first preset value, and storing the first data into a data variable of the event, and if the state parameter is the first preset value, changing the state parameter increasing preset value into a preset maximum value, and storing the first data into a data variable of the event.
13. The system of claim 9, further comprising: a server;
the second view is used for sending a second data request to the server through the own data warehouse store; receiving second data returned by the server according to the second data request; rendering the self according to the second data, and sending an event to a monitoring module.
14. System according to claim 9, characterized in that the second adjustment unit, in particular for
When an event sent by the second view is received, if the state parameter of the second view is an initial value, increasing a preset value of the state parameter to be a first preset value, and if the state parameter is the first preset value, increasing the preset value of the state parameter to be a preset maximum value.
CN201610063789.4A 2016-01-29 2016-01-29 Synchronous method and system of asynchronous rendering module Active CN107025096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610063789.4A CN107025096B (en) 2016-01-29 2016-01-29 Synchronous method and system of asynchronous rendering module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610063789.4A CN107025096B (en) 2016-01-29 2016-01-29 Synchronous method and system of asynchronous rendering module

Publications (2)

Publication Number Publication Date
CN107025096A CN107025096A (en) 2017-08-08
CN107025096B true CN107025096B (en) 2020-05-26

Family

ID=59524149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610063789.4A Active CN107025096B (en) 2016-01-29 2016-01-29 Synchronous method and system of asynchronous rendering module

Country Status (1)

Country Link
CN (1) CN107025096B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020062062A1 (en) * 2018-09-28 2020-04-02 深圳市大疆软件科技有限公司 Cluster rendering method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043024A1 (en) * 2008-10-19 2010-04-22 Research In Motion Limited Web application framework for enabling optimum rendering performance on a client based upon detected parameters of the client
CN101963984A (en) * 2010-09-28 2011-02-02 北京伟库电子商务科技有限公司 Method and system for rendering page partial block
CN102938783A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Socket processing method and device and Web server
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method
CN104035668A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921365B2 (en) * 2005-02-15 2011-04-05 Microsoft Corporation System and method for browsing tabbed-heterogeneous windows
US7861213B2 (en) * 2006-09-05 2010-12-28 Oracle International Corporation Mechanism for developing AJax applications using java swing framework and method for using the same
US8965864B2 (en) * 2006-10-31 2015-02-24 Sap Se Method and system for efficient execution and rendering of client/server interactive applications

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010043024A1 (en) * 2008-10-19 2010-04-22 Research In Motion Limited Web application framework for enabling optimum rendering performance on a client based upon detected parameters of the client
CN101963984A (en) * 2010-09-28 2011-02-02 北京伟库电子商务科技有限公司 Method and system for rendering page partial block
CN102938783A (en) * 2012-10-30 2013-02-20 中兴通讯股份有限公司 Socket processing method and device and Web server
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN103761317A (en) * 2014-01-27 2014-04-30 北京京东尚科信息技术有限公司 Multithreading asynchronous rendering system and method
CN104035668A (en) * 2014-06-24 2014-09-10 广州金山网络科技有限公司 Method and system for optimization of sliding performance of asynchronously loaded data and mobile terminal
CN104573025A (en) * 2015-01-12 2015-04-29 北京京东尚科信息技术有限公司 Method and system for increasing page loading rate

Also Published As

Publication number Publication date
CN107025096A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN110311831B (en) Container cloud-based system resource monitoring method and related equipment
CN110309161B (en) Data synchronization method and device and server
EP3200071A1 (en) Runtime environment configuration method, device and system
CN107678918B (en) OSD heartbeat mechanism setting method and device of distributed file system
CN104965727A (en) Method and device for restarting server
WO2020253776A1 (en) Timer-based task processing method and apparatus, and electronic device
WO2018121334A1 (en) Web application service providing method, apparatus, electronic device and system
EP3142304A1 (en) Synchronization method for notification message of electronic device, server and electronic device
WO2017143909A1 (en) Method, device, and system for processing data in webpage
CN105528366B (en) A kind of data synchronization control method and device
EP4235426A1 (en) Method and system for multiple services to share same gpu, and device and medium
CN103870303A (en) Method and device for reducing size of software installation package
CN114070739B (en) Cluster deployment method, device, equipment and computer readable storage medium
CN109254922A (en) A kind of automated testing method and device of server B MC Redfish function
CN108664521B (en) Method and device for providing serial number, electronic equipment and readable storage medium
CN110716848A (en) Data collection method and device, electronic equipment and storage medium
CN106293842B (en) Software installation method and device
CN110941665A (en) Data synchronization method, data synchronization device and data synchronization equipment between nodes
CN110572464A (en) Bottom layer resource state synchronization method and device, cloud platform system and storage medium
CN108304296A (en) A kind of server monitoring method, system, equipment and computer readable storage medium
CN107577798B (en) Snapshot creating method and device and computer readable storage medium
CN107798039A (en) A kind of method of data synchronization and device
CN103425504A (en) Method and device for loading video files
CN111858161A (en) Disaster recovery method, device and equipment for cloud host and computer readable storage medium
CN117130730A (en) Metadata management method for federal Kubernetes cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201201

Address after: 100193, No. 34, building No. 8, West flourishing road, Haidian District, Beijing

Patentee after: BEIJING DIDI INFINITY TECHNOLOGY AND DEVELOPMENT Co.,Ltd.

Address before: Office building D comprehensive service district Nangang Industrial Zone 300480 in Tianjin Binhai New Area of Tianjin economic and Technological Development Zone 2 219-23

Patentee before: Didi (China) Technology Co.,Ltd.