CN109857579B - Data processing method and related device - Google Patents

Data processing method and related device Download PDF

Info

Publication number
CN109857579B
CN109857579B CN201910118209.0A CN201910118209A CN109857579B CN 109857579 B CN109857579 B CN 109857579B CN 201910118209 A CN201910118209 A CN 201910118209A CN 109857579 B CN109857579 B CN 109857579B
Authority
CN
China
Prior art keywords
data
target data
request
processing
processing function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910118209.0A
Other languages
Chinese (zh)
Other versions
CN109857579A (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.)
Shenzhen Xunlei Network Culture Co ltd
Original Assignee
Shenzhen Xunlei Network Culture 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 Shenzhen Xunlei Network Culture Co ltd filed Critical Shenzhen Xunlei Network Culture Co ltd
Priority to CN201910118209.0A priority Critical patent/CN109857579B/en
Publication of CN109857579A publication Critical patent/CN109857579A/en
Application granted granted Critical
Publication of CN109857579B publication Critical patent/CN109857579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data processing method and a related device, when target data is required to be requested, the target data is requested by using a request method, the target data is stored as central data to a state manager, a callback function does not need to be written corresponding to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the central data is monitored by using a monitoring method, and the processing function of the target data is executed only when the central data is monitored to be changed. Because the request method and the processing function do not need to be written in the business logic at the same time, even if the same data needs to be requested for a plurality of times, only one processing function is needed, and the problem of repeated writing of the processing function in the whole code is avoided. For the same data, only when the change of the same data is monitored, the corresponding processing function is required to be executed, the same processing function of the same data is not required to be repeatedly executed, and the redundancy problem of the writing and the realization of the processing function is effectively solved.

Description

Data processing method and related device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, apparatus, system, and computer-readable storage medium.
Background
Currently, a front-end framework generally has a set of service logic when processing data, in the service logic, if data needs to be acquired from a back-end server, a data acquisition request is initiated, a callback function for processing data is implemented in the request, and after the request is completed, when the front-end receives the requested data, the callback function for processing data is inserted into an execution queue to process the data.
In the service logic, in order to ensure that the currently used data is the latest data, each time the same data needs to be processed, a request operation needs to be executed once to acquire the latest data. Therefore, when the same data needs to be acquired for multiple times, multiple request codes need to be written correspondingly, and each request code corresponds to a processing method corresponding to the same data. In other words, acquiring the same data for multiple times requires writing a data request logic for multiple times in the service logic, and also requires writing a callback function for multiple times, and when each data request comes, the corresponding callback function is executed once on the data, and if the data does not change, the same data is processed by each processing function, and the processing functions are the same, so that the same callback function is repeatedly executed for multiple times, and therefore, redundancy is generated in the callback function, that is, the method for processing data.
Disclosure of Invention
The invention mainly aims to provide a data processing method, a data processing device, a data processing system and a computer readable storage medium, and aims to solve the problem that the data processing method generates redundancy in the prior art.
In order to achieve the above object, the present invention provides a data processing method, including:
triggering a request for target data;
requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager;
and executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Optionally, the requesting the target data by using a request method corresponding to the target data includes:
and requesting the target data by using a request method corresponding to the target data in the state manager.
Optionally, when the target data includes at least two data, and when it is monitored that the central data corresponding to the target data changes by using the preset monitoring method corresponding to the central data, executing a processing function of the target data, including:
and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
Optionally, the processing function comprises:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
To achieve the above object, the present invention further provides a data processing apparatus, which includes a memory and a processor, wherein the memory stores a data processing program operable on the processor, and the data processing program, when executed by the processor, implements the following method:
triggering a request for target data;
requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager;
and executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Optionally, the data processing program, when executed by the processor, further implements:
and requesting the target data by using a request method corresponding to the target data in the state manager.
Optionally, the data processing program, when executed by the processor, further implements:
and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
Optionally, the data processing program, when executed by the processor, further implements:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
To achieve the above object, the present invention also provides a data processing system, comprising:
the triggering module is used for triggering a request for target data;
the request module is used for requesting the target data by using a request method corresponding to the target data and storing the target data serving as central data of a state manager to the state manager;
and the processing module is used for executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a data processing program executable by one or more processors to implement the data processing method as described.
To achieve the above object, the present invention further provides a computer program product comprising computer instructions which, when run on a computer, make the computer perform the data processing method disclosed in the foregoing.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention;
FIG. 2 is a schematic diagram of an internal structure of a data processing apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a data processing system according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a data processing method, a device, a system and a computer readable storage medium, aiming at solving the problem that the method for processing data generates redundancy in the prior art.
Referring to fig. 1, fig. 1 is a schematic flow chart according to an embodiment of the invention.
In one embodiment, the method comprises:
s101, triggering a request for target data.
For example, in the service logic, a program runs on a client and needs to obtain target data from a server, and at this time, the client triggers a request for the target data. In this case, the method for requesting the target data is not directly executed, but a trigger instruction is issued, and the method for requesting the target data may be started by the trigger instruction.
S102, the target data is requested by using a request method corresponding to the target data, and the target data is stored to a state manager as central data of the state manager.
Specifically, a request method is preset corresponding to the target data, the target data is requested by the request method, and after the target data is requested, the data is stored in the state manager as central data of the state manager.
Different from the prior art, the method for processing the target function in the callback function is directly processed when the target data is acquired without using the callback function, and the target data is stored in the state manager.
It should be noted that the state manager is a tool in the front-end framework for managing global state data, for example, Vue is a set of progressive front-end framework for constructing a user interface, and Vuex is its state manager. The selection of the state manager in this scheme is specifically determined according to the used front-end framework, and this embodiment is not specifically limited. The data stored in the state manager are all central data, when the data change is requested, the corresponding central data are also changed, and a corresponding monitoring function can be set for monitoring whether the central data change. In the scheme, the state manager is used for storing the requested target data, and the corresponding monitoring function is used for monitoring the target data.
S103, when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data, executing a processing function of the target data.
Specifically, in the service logic, when the preset monitoring method is used for monitoring that the target data changes, the corresponding processing function is executed to process the requested target data. Therefore, when the target data is not changed, the processing function is not executed, thereby avoiding a case where the same processing method is repeatedly executed for the same data.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
On the basis of the foregoing embodiments, the present embodiment further describes and optimizes the technical solution. The method comprises the following specific steps:
the foregoing embodiment, step S102, further includes:
and requesting the target data by using a request method corresponding to the target data in the state manager.
In the scheme, the request methods are all arranged in the state manager, the request methods are separated from the service logic, all the request methods are uniformly managed in the state manager, and codes related to the request methods are easier to find during subsequent inspection and maintenance, so that the code logic is clearer and easier to maintain.
On the basis of the foregoing embodiments, the present embodiment further describes and optimizes the technical solution. The method comprises the following specific steps:
when the target data includes at least two data, the S103 specifically includes:
and executing a processing function corresponding to each target data when the preset monitoring method is used for monitoring that the central data corresponding to each target data changes.
Specifically, when the requested target data is two or more data, the scheme presets a method and a data processing function for monitoring data change for each data, and only executes the processing function of the changed target data. Therefore, when one request requests a plurality of data, the data without change is not repeatedly executed even for one request.
On the basis of the foregoing embodiments, the present embodiment further describes and optimizes the technical solution. The method comprises the following specific steps:
the processing function includes:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
It should be noted that some data may have a dependency relationship, for example, when data 1 is requested, data 2 may be requested, and in the prior art, the requested data 2 is nested in a callback function to be executed after the data 1 is requested. For example:
Ajax(id,success(){
ajax (name, success () { processing function for successful request }, error () { processing function for failed request })
}, error () { processing function for request failure })
In the above example, id is requested first, and its callback function Ajax (name, success () { processing function for successful request }) is executed after id is requested, and its callback function is also a request and also has its own callback function, and when there are more dependencies, the more nested levels, and the more cluttered the code logic.
In the scheme, the processing function is separated from the request method, when the dependency relationship among the data exists, only the request method trigger instruction which depends on the target data and depends on the target data is set in the processing function of the target data, and when the target data is acquired, the execution of the processing function correspondingly triggers the data request method which depends on the processing function, so that the hierarchy nesting is not needed, and the problem of disordered code logic can be avoided.
Further, the embodiment also discloses a data processing device.
Referring to fig. 2, fig. 2 is a schematic diagram of an internal structure of a data processing apparatus according to an embodiment of the present invention. In fig. 2, the data processing apparatus 1 includes a memory 11 and a processor 12, the memory 11 stores a data processing program operable on the processor 12, and the data processing program implements the following method when executed by the processor 12: triggering a request for target data; requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager; and executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
The data processing program, when executed by the processor 12, may further implement: and requesting the target data by using a request method corresponding to the target data in the state manager.
The data processing program, when executed by the processor 12, may further implement: and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
In a specific embodiment, the processing function includes a processing method for the target data and a data-dependent request trigger instruction dependent on the target data.
In this embodiment, the data processing apparatus 1 may be a PC (Personal Computer), a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
Further, referring to fig. 2, the data processing apparatus 1 may further include a bus 13, wherein the memory 11 and the processor 12 are connected through the bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the data processing apparatus 1, for example a hard disk of the data processing apparatus 1. The memory 11 may in other embodiments also be an external storage device of the data processing apparatus 1, such as a plug-in hard disk provided on the data processing apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit and an external storage device of the data processing apparatus 1. The memory 11 may be used not only to store application software installed in the data processing apparatus 1 and various types of data, such as codes of data processing programs, etc., but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing a data Processing program.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 2, but it is not intended that there be only one bus or one type of bus.
Further, the data processing apparatus 1 may further comprise a network interface 14, and the network interface 14 may optionally comprise a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the data processing apparatus 1 and other electronic devices.
Optionally, the data processing apparatus 1 may further comprise a user interface 15, the user interface 15 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the data processing device 1 and for displaying a visual user interface.
Fig. 2 shows only the data processing device 1 with the components 11-15, and it will be understood by a person skilled in the art that the structure shown in fig. 2 does not constitute a limitation of the data processing device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
Further, the embodiment also discloses a data processing system.
Referring to fig. 3, fig. 3 is a schematic diagram of a data processing system according to an embodiment of the present invention. In fig. 3, the data processing system includes:
a triggering module 301, configured to trigger a request for target data.
A request module 302, configured to request the target data by using a request method corresponding to the target data, and store the target data as central data of a state manager to the state manager.
The processing module 303 is configured to execute a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
Further, the requesting module 302 is specifically configured to request the target data by using a requesting method corresponding to the target data in the state manager; the target data is stored to the state manager as central data of the state manager.
Further, when the target data includes at least two data, the processing module 303 is specifically configured to monitor a change of the central data of each target data by using the preset monitoring method, and execute a processing function corresponding to the changed target data when the central data of any target data changes.
Further, the processing function comprises a processing method for the target data and a request trigger instruction of dependent data dependent on the target data.
Further, the present embodiment also discloses a computer-readable storage medium, on which a data processing program is stored, the data processing program being executable by one or more processors to implement the following method:
triggering a request for target data; requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager; and executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
The data processing program, when executed by one or more processors, may further implement: and requesting the target data by using a request method corresponding to the target data in the state manager.
When the target data includes at least two data, the data processing program, when executed by one or more processors, may further implement: and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
In one specific embodiment, the processing function includes: and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
Further, the present invention also provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the method steps of:
triggering a request for target data; requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager; and executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data.
Therefore, when the target data needs to be requested, the corresponding request method is used for requesting the target data, then the target data is used as central data of the state manager and is stored in the state manager, a callback function does not need to be written according to the request of the target data, and therefore the callback function does not need to be executed immediately after the target data is obtained, the monitoring method is used for monitoring the central data, and only when the change of the central data is monitored, the processing function of the target data is executed. Therefore, the request method and the processing function do not need to be written in the service logic at the same time, even if the same data is required to be requested for multiple times, only one processing function can be used, the problem of repeated writing of the processing function in the whole code is avoided, and in addition, for the same data, the corresponding processing function only needs to be executed when the change of the same data is monitored, so the same processing function of the same data does not need to be repeatedly executed, and the redundancy problem of the processing function in writing and realizing two aspects is effectively solved.
In this embodiment, when the computer instruction runs on a computer, the computer may specifically execute the following steps: and requesting the target data by using a request method corresponding to the target data in the state manager.
In this embodiment, when the target data includes at least two data, when the computer instruction is executed on a computer, the computer may specifically execute the following steps: and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
In one specific embodiment, the processing function includes: and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method of data processing, the method comprising:
triggering a request for target data;
requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager;
when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data, executing a processing function of the target data;
wherein the processing function comprises:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
2. The method of claim 1, wherein requesting the target data using the request method corresponding to the target data comprises:
and requesting the target data by using a request method corresponding to the target data in the state manager.
3. The method according to claim 1, wherein when the target data includes at least two data, and when the change of the central data corresponding to the target data is monitored by using the preset monitoring method corresponding to the central data, executing a processing function of the target data, including:
and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
4. A data processing apparatus, characterized in that the apparatus comprises a memory and a processor, the memory having stored thereon a data processing program executable on the processor, the data processing program, when executed by the processor, implementing the method of:
triggering a request for target data;
requesting the target data by using a request method corresponding to the target data, and storing the target data as central data of a state manager to the state manager;
when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data, executing a processing function of the target data;
the data processing program, when executed by the processor, further implements:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
5. The apparatus of claim 4, wherein the data processing program, when executed by the processor, further implements:
and requesting the target data by using a request method corresponding to the target data in the state manager.
6. The apparatus of claim 4, wherein the data processing program, when executed by the processor, further implements:
and respectively monitoring the change of the central data of each target data by using the preset monitoring method, and executing a processing function corresponding to the changed target data when the central data of any target data is changed.
7. A data processing system, characterized in that the system comprises:
the triggering module is used for triggering a request for target data;
the request module is used for requesting the target data by using a request method corresponding to the target data and storing the target data serving as central data of a state manager to the state manager;
the processing module is used for executing a processing function of the target data when monitoring that the central data corresponding to the target data changes by using a preset monitoring method corresponding to the central data;
wherein the processing function comprises:
and triggering an instruction by a processing method of the target data and a request of dependent data dependent on the target data.
8. A computer-readable storage medium having stored thereon a data processing program executable by one or more processors to implement a data processing method according to any one of claims 1 to 3.
CN201910118209.0A 2019-02-15 2019-02-15 Data processing method and related device Active CN109857579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910118209.0A CN109857579B (en) 2019-02-15 2019-02-15 Data processing method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910118209.0A CN109857579B (en) 2019-02-15 2019-02-15 Data processing method and related device

Publications (2)

Publication Number Publication Date
CN109857579A CN109857579A (en) 2019-06-07
CN109857579B true CN109857579B (en) 2021-07-30

Family

ID=66898001

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910118209.0A Active CN109857579B (en) 2019-02-15 2019-02-15 Data processing method and related device

Country Status (1)

Country Link
CN (1) CN109857579B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515605B (en) * 2019-08-20 2023-08-22 网易(杭州)网络有限公司 Attribute information synchronization method and device, storage medium and processor
CN110795173A (en) * 2019-10-30 2020-02-14 深圳市元征科技股份有限公司 Data processing method and device, electronic equipment and readable storage medium
CN113434232B (en) * 2021-06-28 2023-06-16 青岛海尔科技有限公司 Graph display method and device, storage medium and processor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835690A (en) * 1992-12-15 1998-11-10 Microsoft Corporation Header/footer text string parsing using callback routines for additional processing
CN107918558A (en) * 2017-11-17 2018-04-17 郑州云海信息技术有限公司 Business Process Control method, apparatus and equipment based on state machine
CN108153886A (en) * 2017-12-28 2018-06-12 北京恒泰实达科技股份有限公司 User-defined visual methods of exhibiting of the real time data in web applications
CN108427568A (en) * 2018-04-28 2018-08-21 北京小米移动软件有限公司 The update method and device of user interface
CN109086150A (en) * 2018-09-20 2018-12-25 杭州安恒信息技术股份有限公司 A kind of method, apparatus for avoiding multiple asynchronous methods from repeating and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5835690A (en) * 1992-12-15 1998-11-10 Microsoft Corporation Header/footer text string parsing using callback routines for additional processing
CN107918558A (en) * 2017-11-17 2018-04-17 郑州云海信息技术有限公司 Business Process Control method, apparatus and equipment based on state machine
CN108153886A (en) * 2017-12-28 2018-06-12 北京恒泰实达科技股份有限公司 User-defined visual methods of exhibiting of the real time data in web applications
CN108427568A (en) * 2018-04-28 2018-08-21 北京小米移动软件有限公司 The update method and device of user interface
CN109086150A (en) * 2018-09-20 2018-12-25 杭州安恒信息技术股份有限公司 A kind of method, apparatus for avoiding multiple asynchronous methods from repeating and electronic equipment

Also Published As

Publication number Publication date
CN109857579A (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN108388599B (en) Electronic device, data migration and calling method and storage medium
US9639347B2 (en) Updating a firmware package
CN109857579B (en) Data processing method and related device
EP2677422B1 (en) Automatic Application Updates
CN108121559B (en) Configuration file pushing method, server and storage medium
US10268515B2 (en) Releasing resources from processes in a particular order to provide required resources to start an application
US20120159421A1 (en) System and Method for Exclusion of Inconsistent Objects from Lifecycle Management Processes
US9652220B2 (en) Zero down-time deployment of new application versions
JP2014191604A5 (en)
EP2946287B1 (en) Dynamic firmware updating
CN110708366A (en) Plug-in process management method, related method and related device
CN112486552A (en) Server hot update method, device, equipment and storage medium
CN111290907A (en) Distributed storage network pressure measurement method and device, computer device and storage medium
CN113411225B (en) QGA service management method, device, equipment and medium based on cloud host
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
CN111046316B (en) Application on-shelf state monitoring method, intelligent terminal and storage medium
CN110321179B (en) Application program starting method, system, device and computer storage medium
CN109739857B (en) Data distributed writing method and device under high concurrency, terminal and storage medium
US9727381B2 (en) Image forming apparatus and resource management method
EP4030280A1 (en) Seamless lifecycle stability for extensible software features
CN111736930B (en) Program front-back end interface calling method and device, computer equipment and storage medium
US9661056B2 (en) Modification free extension of web based applications
JP2003271387A (en) Download method and download system
CN108701035A (en) The management of application attribute
JP6555908B2 (en) Information processing apparatus, control method therefor, and program

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