CN110275701B - Data processing method, device, medium and computing equipment - Google Patents

Data processing method, device, medium and computing equipment Download PDF

Info

Publication number
CN110275701B
CN110275701B CN201910534465.8A CN201910534465A CN110275701B CN 110275701 B CN110275701 B CN 110275701B CN 201910534465 A CN201910534465 A CN 201910534465A CN 110275701 B CN110275701 B CN 110275701B
Authority
CN
China
Prior art keywords
module
target module
target
user
replacement
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
CN201910534465.8A
Other languages
Chinese (zh)
Other versions
CN110275701A (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.)
Netease Media Technology Beijing Co Ltd
Original Assignee
Netease Media Technology Beijing 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 Netease Media Technology Beijing Co Ltd filed Critical Netease Media Technology Beijing Co Ltd
Priority to CN201910534465.8A priority Critical patent/CN110275701B/en
Publication of CN110275701A publication Critical patent/CN110275701A/en
Application granted granted Critical
Publication of CN110275701B publication Critical patent/CN110275701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a data processing method, which comprises the steps of obtaining configuration data, wherein the configuration data is used for representing whether a plurality of functional modules comprise target modules or not; acquiring a target module based on the configuration data when the configuration data characterizes that the plurality of functional modules comprise the target module; processing the target module to obtain a corresponding replacement module, and packaging the replacement module; and receiving a first call request sent by the user, and sending the target module or the encapsulated replacement module to the user based on the first call request. The method provides the user with the functional module with the unified interface or the encapsulated replacement module so as to realize the quick online or offline of related functions in the software development process, thereby improving the stability of codes in the software development, reducing the development cost and improving the development efficiency. Furthermore, embodiments of the present invention provide an apparatus, a medium, and a computing device.

Description

Data processing method, device, medium and computing equipment
Technical Field
Embodiments of the present invention relate to the field of computers, and more particularly, to a data processing method, apparatus, medium, and computing device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Throughout the computer field, during software development, it is often necessary to bring certain functions online, for example, to integrate various functions onto a development backbone or backbone branch. For example, third party provided functional modules with related functionality, such as SDKs (Software Development Kit, software development kits), may be aggregated onto a development backbone or backbone branch.
Currently, some methods for connecting or disconnecting a functional module have been presented, in which connecting a functional module to a line means that the functional module can be executed when software is running, and disconnecting a functional module means that the functional module is no longer executed when software is running. However, in implementing the concepts of the present disclosure, the inventors found that there are at least the following problems in the related art: in software development, certain functional modules are typically brought online or disabled by plug-in technology when they need to be loaded or executed without the need to execute them. However, the plug-in technology cannot implement the overall emergency on-line or off-line of the functional module. For example, when an emergency situation needs to be quickly taken off, if a plug-in technology is adopted to solve the problem, a large amount of codes need to be written to realize the disabling of the functional module, which results in extremely high cost and extremely low efficiency, so that the emergency situation cannot be solved.
For the above-mentioned problems in the related art, no effective solution has been proposed yet.
Disclosure of Invention
However, in the prior art, when software is developed, the whole function module cannot be processed in an emergency on-line or off-line mode, and the function module cannot be rapidly on-line or off-line due to the fact that codes are required to be written for on-line or off-line function module, and in addition, the problem that the cost is extremely high and the efficiency is extremely low in the function module processing through the plug-in technology in the prior art is solved.
Therefore, in the prior art, in the process of loading or unloading the functional module, the functional module is loaded or unloaded by the plug-in technology, so that the functional module can not be loaded or unloaded rapidly, the code stability in the software development is low, the development cost is high, and the development efficiency is low, which is a very annoying process.
Therefore, an improved data processing method is very needed to realize providing a functional module with a unified interface or an encapsulated replacement module for a user, so that the functional module with the unified interface or the encapsulated replacement module is directly integrated on a development trunk or a trunk branch to realize quick online or offline of related functions in the software development process, and the method is suitable for the functional module which is on line or off line in emergency under the emergency condition, improves the stability of codes in the software development, reduces the development cost and improves the development efficiency.
In this context, embodiments of the present invention desire to provide a data processing method, apparatus, medium, and computing device.
In a first aspect of the embodiment of the present invention, there is provided a data processing method, including: acquiring configuration data, wherein the configuration data is used for representing whether a plurality of functional modules comprise target modules, when the configuration data represents that the plurality of functional modules comprise the target modules, acquiring the target modules based on the configuration data, processing the target modules to obtain corresponding replacement modules, packaging the replacement modules, receiving a first call request sent by a user, and sending the target modules or the packaged replacement modules to the user based on the first call request.
In one embodiment of the invention, the replacement module includes a module having a function of returning a null object.
In another embodiment of the present invention, the configuration data further includes disabling data for characterizing whether to disable the use of the target module, the receiving a first call request sent by the user, and sending the target module or the encapsulated replacement module to the user based on the first call request, including: and receiving a first call request sent by a user, determining information of a first target module to be called contained in the first call request, determining forbidden data corresponding to the first target module in the configuration data based on the information of the first target module, and sending the first target module or a packaged replacement module corresponding to the first target module to the user based on the corresponding forbidden data.
In another embodiment of the present invention, the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding disabling data includes: and determining whether the first target module is forbidden according to the corresponding forbidden data, sending the first target module to a user under the condition that the first target module is not forbidden, and sending the encapsulated replacement module corresponding to the first target module to the user under the condition that the first target module is forbidden.
In another embodiment of the present invention, the acquiring the target module based on the configuration data includes: determining whether the configuration data has the module identification of the target module, and acquiring the target module based on the module identification under the condition that the configuration data has the module identification of the target module.
In another embodiment of the present invention, the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user includes: and receiving a first call request sent by a user through a call interface, analyzing the call interface to obtain interface information, and sending the first target module or the encapsulated replacement module corresponding to the first target module to the call interface based on the interface information.
In a second aspect of the embodiments of the present invention, there is provided a data processing apparatus comprising: the device comprises a first acquisition module, a second acquisition module, a processing module and a sending module. The first acquisition module acquires configuration data, the configuration data is used for representing whether the plurality of functional modules comprise target modules, the second acquisition module acquires the target modules based on the configuration data when the configuration data represents that the plurality of functional modules comprise the target modules, the processing module processes the target modules to obtain corresponding replacement modules and encapsulates the replacement modules, the sending module receives a first call request sent by a user and sends the target modules or the encapsulated replacement modules to the user based on the first call request.
In one embodiment of the invention, the replacement module includes a module having a function of returning a null object.
In another embodiment of the present invention, the configuration data further includes disabling data for characterizing whether to disable use of the target module, and the transmitting module includes: the system comprises a receiving sub-module, a determining sub-module and a sending sub-module. The receiving submodule receives a first call request sent by a user, determines information of a first target module to be called contained in the first call request, determines forbidden data corresponding to the first target module in the configuration data based on the information of the first target module, and the sending submodule sends the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding forbidden data.
In another embodiment of the present invention, the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding disabling data includes: and determining whether the first target module is forbidden according to the corresponding forbidden data, sending the first target module to a user under the condition that the first target module is not forbidden, and sending the encapsulated replacement module corresponding to the first target module to the user under the condition that the first target module is forbidden.
In another embodiment of the present invention, the acquiring the target module based on the configuration data includes: determining whether the configuration data has the module identification of the target module, and acquiring the target module based on the module identification under the condition that the configuration data has the module identification of the target module.
In another embodiment of the present invention, the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user includes: and receiving a first call request sent by a user through a call interface, analyzing the call interface to obtain interface information, and sending the first target module or the encapsulated replacement module corresponding to the first target module to the call interface based on the interface information.
In a third aspect of embodiments of the present invention, there is provided a computer readable storage medium having stored thereon executable instructions which, when executed by a processing unit, cause the processing unit to perform a method as described in any of the above.
In a fourth aspect of embodiments of the present invention, there is provided a computing device comprising: a processing unit; and a storage unit storing computer-executable instructions that, when executed by the processing unit, perform the method of any one of the above.
The method, the device, the medium and the computing equipment can realize that the functional module or the encapsulated replacement module with the uniform interface can be provided for a user, wherein the uniform interface indicates that the functional module and the encapsulated replacement module can be assembled on a development trunk or a trunk branch through the same standardized interface, so that the functional module or the encapsulated replacement module with the uniform interface can be directly assembled on the development trunk or the trunk branch in the software development process, the related functions can be rapidly connected on line or disconnected off line, the method is suitable for the emergency connection functional module under the emergency condition, the stability of codes in the software development is improved, the development cost is reduced, and the development efficiency is improved.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description when read in conjunction with the accompanying drawings. Several embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates an exemplary system architecture of a data processing method and apparatus thereof according to an embodiment of the present invention;
FIG. 2 schematically shows a flow chart of a data processing method according to an embodiment of the invention;
FIG. 3 schematically illustrates a flow diagram of responding to a first call request, in accordance with an embodiment of the present invention;
FIG. 4 schematically illustrates a program product for implementing data processing according to an embodiment of the invention;
FIG. 5 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention;
fig. 6 schematically shows a block diagram of a transmitting module according to an embodiment of the invention; and
fig. 7 schematically illustrates a computing device for implementing data processing according to such an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are presented merely to enable those skilled in the art to better understand and practice the invention and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
It will be appreciated by those skilled in the art that embodiments of the present invention may be implemented as an apparatus, device, method or computer program product. Accordingly, the present disclosure may be embodied in the following forms, namely: complete hardware, complete software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to an embodiment of the invention, a data processing method, a data processing device, a data processing medium and a computing device are provided.
In this document, it should be understood that any number of elements in the drawings is for illustration and not limitation, and that any naming is used only for distinction and not for any limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments thereof.
Summary of The Invention
The inventor finds that the prior art cannot perform overall offline processing on the functional module during software development, and cannot rapidly disable the functional module because code needs to be written to disable the functional module, and in addition, the prior art has higher cost for processing the functional module through a plug-in technology. In addition, the data processing method provided by the embodiment of the invention provides the functional module with the unified interface or the encapsulated replacement module for the user, so that the functional module with the unified interface or the encapsulated replacement module is directly integrated on a development trunk or a trunk branch in the software development process, the related functions are rapidly connected or disconnected, the method is suitable for the emergency connection functional module under the emergency condition, the stability of codes in the software development is improved, and the development cost is reduced.
Having described the basic principles of the present invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
An exemplary system architecture for a data processing method and apparatus thereof according to an embodiment of the present invention will be described in detail with reference to fig. 1.
As shown in fig. 1, a system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the data processing method provided by the embodiment of the present invention may be generally executed by the server 105. Accordingly, the data processing apparatus provided in the embodiments of the present invention may be generally disposed in the server 105. The data processing method provided by the embodiment of the present invention may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the data processing apparatus provided by the embodiment of the present invention may also be provided in a server or a server cluster, which is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Exemplary method
A method of data processing according to an exemplary embodiment of the present invention is described below with reference to fig. 2 and 3 in conjunction with the system architecture of fig. 1. It should be noted that the above-described system architecture is merely illustrated for the convenience of understanding the spirit and principles of the present invention, and embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the invention may be applied to any scenario where applicable.
Fig. 2 schematically shows a flow chart of a data processing method according to an embodiment of the invention.
As shown in fig. 2, the method includes operations S210 to S240.
In operation S210, configuration data is acquired, the configuration data being used to characterize whether a target module is included in the plurality of functional modules.
In operation S220, when the configuration data characterizes the plurality of functional modules as including the target module, the target module is acquired based on the configuration data.
In an embodiment of the present invention, the functional module may be, for example, an SDK (Software Development Kit ). The plurality of functional modules in the embodiment of the invention are managed by the proxy system, for example, in the process of developing software by a user (developer), the proxy system can send the functional modules required by the user to the user according to the call request of the user so that the user can use the functional modules to develop the software.
In the embodiment of the invention, the proxy system can determine the target module in the plurality of functional modules by acquiring the configuration data. The configuration data can be flexibly set according to service requirements, that is, some or all of the plurality of functional modules can be set as target modules. The target module may be, for example, a functional module that may be required by the user during the development process. Therefore, the proxy system needs to determine the target module to perform corresponding processing on the target module.
In an embodiment of the present invention, a target module is acquired based on configuration data, including: determining whether the configuration data has the module identification of the target module, and acquiring the target module based on the module identification under the condition that the configuration data has the module identification of the target module.
For example, each functional module has its corresponding module identification, which may be an SDK package name. After the proxy system acquires the configuration data, firstly determining whether the configuration data has the module identifier of the target module, and under the condition that the configuration data has the module identifier of the target module, characterizing that the target module is arranged in the plurality of functional modules, at this time, the proxy system can acquire the target module corresponding to the module identifier from the plurality of functional modules based on the module identifier.
In operation S230, the processing target module obtains a corresponding replacement module, and encapsulates the replacement module. For example, after the proxy system acquires one or more target modules, each target module may be processed to obtain a corresponding replacement module. Wherein the replacement module comprises a module with a function of returning an empty object. That is, in the process of software development, the result returned after the replacement module is executed is, for example, a null object, and the replacement module can be used to replace a functional module that is prohibited from being used in software development. For example, the proxy system processes the target module to obtain the module identifier of the target module, creates a replacement module based on some empty objects, and sets the module identifier of the replacement module to be consistent with the module identifier of the corresponding target module, for example, the module identifier of the target module is sdk_1, then the module identifier of the replacement module may be set to null_sdk1, and by setting the consistent module identifier, the function module required by the user is sent to the user based on the module identifier when the call request of the user is received.
The target module has a standardized interface, for example, and when a user uses the target module to develop software, the target module can be assembled on a development backbone or backbone branch of the software through the standardized interface. Therefore, the invention needs to encapsulate the replacement module, so that the encapsulated replacement module has the same or similar standardized interface as the target module, i.e. the target module and the encapsulated replacement module have a uniform interface, so that a user can collect the encapsulated replacement module onto a development trunk or trunk branch of software through the standardized interface, i.e. the target module and the encapsulated replacement module have a uniform interface. It can be appreciated that the process of encapsulating the replacement module is a process of unifying the interfaces.
In operation S240, a first call request sent by the user is received, and the target module or the encapsulated replacement module is sent to the user based on the first call request.
For example, when a user needs a target module or an encapsulated replacement module, the user may send a first call request to the proxy system to invoke the required module. After receiving the first call request of the user, the proxy system can send the target module or the encapsulated replacement module to the user according to the first call request of the user, so that the user can conveniently use the target module or the encapsulated replacement module to develop software.
The invention can flexibly set configuration data according to service requirements, the proxy system can process the target module to obtain the replacement module after obtaining the target module based on the configuration data, and package the replacement module to obtain the packaged replacement module, so as to provide the functional module with a unified interface or the packaged replacement module for a user, so that the user can directly request to call the functional module or the packaged replacement module in the software development process, and the functional module with the unified interface or the packaged replacement module is integrated on a development trunk or a trunk branch. The embodiment of the invention realizes the quick on-line or off-line of related functions, is suitable for the emergency off-line function module under the emergency, improves the code stability in the software development, reduces the development cost and improves the development efficiency.
FIG. 3 schematically illustrates a flow diagram of responding to a first call request, in accordance with an embodiment of the present invention.
As shown in fig. 3, this operation S240 includes operations S241 to S243.
In an embodiment of the invention, the configuration data further comprises disabling data for characterizing whether the target module is disabled, i.e. the disabling data may characterize whether the target module is disabled or not.
In operation S241, a first call request sent by a user is received, and information of a first target module to be called included in the first call request is determined.
For example, the first call data of the user includes information of the first target module required by the user. Wherein the first target module is, for example, part or all of the target modules. The information of the first target module may be, for example, a module identifier of the first target module, and the module identifier may be an SDK package name.
In operation S242, disabling data corresponding to the first target module in the configuration data is determined based on the information of the first target module.
For example, after receiving a first call request from a user, the proxy system determines whether the first target module is prohibited from being used according to information of the first target module in the first call request. For example, the proxy system may determine whether the first target module is prohibited from being used based on disabling data in the configuration data that corresponds to the information of the first target module. For example, taking an example that the target modules include a function module a and a function module B, when the function module a is a first target module to be invoked by a user, disabling data corresponding to the function module a in the configuration data may be, for example, disabled or not disabled.
In operation S243, the first target module or the encapsulated replacement module corresponding to the first target module is transmitted to the user based on the corresponding disabling data. The specific procedure is described, for example, as follows.
In the embodiment of the invention, whether the first target module is forbidden to be used or not can be determined according to the corresponding forbidden data. The disabling data corresponding to each first target module may be disabled or not disabled. For example, the first target module is sent to the user in the event that the first target module is not prohibited from being used. Or under the condition that the first target module is forbidden to be used, sending the encapsulated replacement module corresponding to the first target module to the user. For example, the proxy system may send the function module a to the user when the disabling data corresponding to the function module a in the configuration data is not disabled, and send the encapsulated replacement module corresponding to the function module a to the user when the disabling data corresponding to the function module a in the configuration data is disabled.
For example, in the case that the user does not need to call the first target module or the first target module fails, the first target module may be configured to be disabled in the configuration data, so that when the proxy system receives the first call request of the user, the encapsulated replacement module corresponding to the first target module is sent to the user based on the fact that the first target module in the configuration data is disabled.
In a specific application, the plurality of functional modules managed by the proxy system include a functional module a, a functional module B, and a functional module C, for example. The function module a and the function module B are, for example, function modules frequently used by a user in a software development process, and in this case, the function module a and the function module B may be configured in the configuration data as target modules. The agent system can acquire a function module A and a function module B from a plurality of function modules based on module identifiers in the configuration data, respectively process the function module A and the function module B to obtain a corresponding replacement module A and a corresponding replacement module B, and encapsulate the replacement module A and the replacement module B to obtain an encapsulated replacement module A and an encapsulated replacement module B.
First, when the function module a and the function module B are function modules that are required to be frequently used in the software development process by the user, and the function module a and the function module B do not fail, for example, the disabling data regarding the function module a and the function module B in the configuration data are not prohibited from being used. In the process of developing software by a user, when the user needs to collect the functional module A (the functional module A is a first target module at this time) on a development backbone or a backbone branch, the user can send a first call request to the proxy system to request the proxy system to issue the functional module A, and after the proxy system receives the first call request, the proxy system determines that the forbidden data about the functional module A in the configuration data is not forbidden to be used, and at this time, the proxy system can issue the functional module A to the user. After the user receives the functional module A, the functional module A is assembled on a development trunk or a trunk branch through a first functional switch, and the functional module A can be used by controlling the first functional switch to be in a conducting state. The first function switch (Feature Flag) is, for example, a way for controlling the on or off of functions collected on the development trunk or trunk branch, for example, the function module may be collected on the development trunk or trunk branch through the first function switch, when the first function switch is in an on state, the function that can be implemented by the function module is turned on, and when the first function switch is in an off state, the function that can be implemented by the function module is turned off.
After that, when the function module a is not needed in the software developed by the user (for example, the function provided by the function module a is expired) or the function module a fails and needs to be taken off line, the disabling data about the function module a can be configured to be disabled in the configuration data, after the proxy system receives the first call request about the function module a, the proxy system determines that the function module a is to be called, and determines that the disabling data about the function module a in the configuration data is disabled, and then the proxy system issues the encapsulated replacement module a' corresponding to the function module a to the user. After receiving the encapsulated replacement module a ', the user can collect the encapsulated replacement module a ' onto the development trunk or the trunk branch through the second functional switch, and can prohibit the use of the functional module a by controlling the first functional switch to be in an off state, and can use the encapsulated replacement module a ' by controlling the second functional switch to be in an on state, wherein the second functional switch is the same as or similar to the first functional switch, and is not described herein. For example, before the software executes the functional module a, the state of the first functional switch of the functional module a is first detected, and when the first functional switch of the functional module a is in an off state, the encapsulated replacement module a' corresponding to the functional module a is executed.
Because the functional modules required in the software development process are usually provided by a third party, the embodiment of the invention can realize the quick online or offline of related functions, ensure that the functional modules can realize the quick offline through the encapsulated replacement modules after the functional modules fail, and ensure that the risk of the third party is controllable.
In the embodiment of the present invention, the sending of the first target module or the encapsulated replacement module corresponding to the first target module to the user includes: and receiving a first call request sent by a user through a call interface, analyzing the call interface to obtain interface information, and sending the first target module or the encapsulated replacement module corresponding to the first target module to the call interface based on the interface information. The call interface may be, for example, an interface conforming to a related protocol, and the user may send a first call request through the call interface and receive the first target module or the encapsulated replacement module, so as to ensure security of information transmission.
Exemplary Medium
Having described the method of an exemplary embodiment of the present invention, a computer-readable storage medium of an exemplary embodiment of the present invention is described next with reference to fig. 4. The computer-readable storage medium stores computer-executable instructions for implementing the data processing method according to any one of the above method embodiments when executed by a processing unit.
In some possible implementations, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a computing apparatus to carry out the steps of a data processing method according to various exemplary embodiments of the present invention as described in the above "exemplary method" section of the present specification, when the program product is run on the computing apparatus, for example, the computing apparatus may perform operation S210 as shown in fig. 2: acquiring configuration data, wherein the configuration data is used for representing whether a plurality of functional modules comprise target modules or not; operation S220: acquiring a target module based on the configuration data when the configuration data characterizes that the plurality of functional modules comprise the target module; operation S230: processing the target module to obtain a corresponding replacement module, and packaging the replacement module; operation S240: and receiving a first call request sent by the user, and sending the target module or the encapsulated replacement module to the user based on the first call request.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 4, a program product 40 for implementing data processing in accordance with an embodiment of the present invention is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected through the Internet using an Internet service provider).
Exemplary apparatus
Having described the media of an exemplary embodiment of the present invention, next, a data processing device of an exemplary embodiment of the present invention will be described with reference to fig. 5 and 6.
Fig. 5 schematically shows a block diagram of a data processing apparatus according to an embodiment of the invention.
As shown in fig. 5, the data processing apparatus 500 may include a first acquisition module 510, a second acquisition module 520, a processing module 530, and a transmission module 540.
The first obtaining module 510 obtains configuration data, for example, performing operation S210 described above with reference to fig. 2, where the configuration data is used to characterize whether the target module is included in the plurality of functional modules.
The second obtaining module 520, for example, performs operation S220 described above with reference to fig. 2, obtains the target module based on the configuration data when the configuration data characterizes that the plurality of functional modules includes the target module.
The processing module 530, for example, performs operation S230 described above with reference to fig. 2, processes the target module to obtain a corresponding replacement module, and encapsulates the replacement module.
The transmitting module 540, for example, performs operation S240 described above with reference to fig. 2, receives the first call request transmitted by the user, and transmits the target module or the encapsulated replacement module to the user based on the first call request.
In one embodiment of the invention, the replacement module includes a module having a function of returning an empty object.
In another embodiment of the present invention, a method for acquiring a target module based on configuration data includes: determining whether the configuration data has the module identification of the target module, and acquiring the target module based on the module identification under the condition that the configuration data has the module identification of the target module.
Fig. 6 schematically shows a block diagram of a transmitting module according to an embodiment of the invention.
As shown in fig. 6, the transmitting module 540 may include a receiving sub-module 541, a determining sub-module 542, and a transmitting sub-module 543.
The receiving sub-module 541, for example, performs operation S241 described above with reference to fig. 3, obtains the first call request sent by the receiving user, and determines the information of the first target module to be called included in the first call request.
The determination sub-module 542, for example, performs operation S242 described above with reference to fig. 3, determines disable data corresponding to the first target module in the configuration data based on the information of the first target module.
The transmitting sub-module 543, for example, performs operation S243 described above with reference to fig. 3, and transmits the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding disabling data.
In one embodiment of the present invention, the sending of the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding disabling data includes: and determining whether the first target module is forbidden according to the corresponding forbidden data, sending the first target module to the user under the condition that the first target module is not forbidden, and sending the encapsulated replacement module corresponding to the first target module to the user under the condition that the first target module is forbidden.
In another embodiment of the present invention, sending the first target module or the encapsulated replacement module corresponding to the first target module to the user includes: and receiving a first call request sent by a user through a call interface, analyzing the call interface to obtain interface information, and sending the first target module or the encapsulated replacement module corresponding to the first target module to the call interface based on the interface information.
Since the respective functional modules of the data processing apparatus 500 of the example embodiment of the invention correspond to the steps of the example embodiment of the information presentation method described above, a detailed description thereof will be omitted.
Exemplary computing device
Having described the methods, media, and apparatus of exemplary embodiments of the present invention, next, a computing device of exemplary embodiments of the present invention is described for implementing the data processing methods of the present invention with reference to FIG. 7.
The embodiment of the invention also provides a computing device. Those skilled in the art will appreciate that the various aspects of the invention may be implemented as an apparatus, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to the invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps in the information presentation method according to various exemplary embodiments of the present invention described in the section "exemplary method" above in the present specification. For example, the processing unit may perform operation S210 as shown in fig. 2: acquiring configuration data, wherein the configuration data is used for representing whether a plurality of functional modules comprise target modules or not; operation S220: acquiring a target module based on the configuration data when the configuration data characterizes that the plurality of functional modules comprise the target module; operation S230: processing the target module to obtain a corresponding replacement module, and packaging the replacement module; operation S240: and receiving a first call request sent by the user, and sending the target module or the encapsulated replacement module to the user based on the first call request.
A computing device 70 for implementing data processing according to such an embodiment of the invention is described below with reference to fig. 7. The computing device 70 shown in fig. 7 is only one example and should not be taken as limiting the functionality and scope of use of embodiments of the invention.
As shown in fig. 7, the computing device 70 is embodied in the form of a general purpose computing device. Components of computing device 70 may include, but are not limited to: the at least one processing unit 701, the at least one memory unit 702, and a bus 703 that connects the different system components (including the memory unit 702 and the processing unit 701).
Bus 703 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures.
The storage unit 702 may include readable media in the form of volatile memory, such as Random Access Memory (RAM) 7021 and/or cache memory 7022, and may further include Read Only Memory (ROM) 7023.
The storage unit 702 may also include a program/utility 7025 having a set (at least one) of program modules 7024, such program modules 7024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Computing device 70 may also communicate with one or more external devices 704 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with computing device 70, and/or any devices (e.g., routers, modems, etc.) that enable computing device 70 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/0) interface 705. Moreover, the computing device 70 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 706. As shown, the network adapter 706 communicates with other modules of the computing device 70 over the bus 703. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computing device 70, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
It should be noted that although several units/modules or sub-units/modules of the apparatus are mentioned in the above detailed description, this division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more units/modules described above may be embodied in one unit/module in accordance with embodiments of the present invention. Conversely, the features and functions of one unit/module described above may be further divided into ones that are embodied by a plurality of units/modules.
Furthermore, although the operations of the methods of the present invention are depicted in the drawings in a particular order, this is not required to either imply that the operations must be performed in that particular order or that all of the illustrated operations be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
While the spirit and principles of the present invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments nor does it imply that features of the various aspects are not useful in combination, nor are they useful in any combination, such as for convenience of description. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (14)

1. A data processing method, comprising:
acquiring configuration data, wherein the configuration data is used for representing whether a target module is contained in a plurality of functional modules;
acquiring a target module based on the configuration data when the configuration data characterizes that a plurality of functional modules comprise the target module;
processing the target module to obtain a corresponding replacement module, and packaging the replacement module; wherein, the encapsulated replacement module and the target module have a unified interface;
and receiving a first call request sent by a user, and sending the target module or the encapsulated replacement module to the user based on the first call request.
2. The method of claim 1, wherein the replacement module comprises a module having a function of returning an empty object.
3. The method of claim 1, wherein the configuration data further includes disabling data for characterizing whether use of the target module is disabled, the receiving a first call request sent by a user, and sending the target module or the encapsulated replacement module to a user based on the first call request, comprising:
receiving a first call request sent by a user, and determining information of a first target module to be called, which is contained in the first call request;
Determining forbidden data corresponding to the first target module in the configuration data based on the information of the first target module; and
and transmitting the first target module or the encapsulated replacement module corresponding to the first target module to a user based on the corresponding forbidden data.
4. The method of claim 3, wherein the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user based on the corresponding disabling data comprises:
determining whether the first target module is prohibited from being used according to the corresponding disabling data;
transmitting the first target module to a user under the condition that the first target module is not forbidden to be used; and
and under the condition that the first target module is forbidden to be used, sending the encapsulated replacement module corresponding to the first target module to a user.
5. The method of claim 1, wherein the obtaining the target module based on the configuration data comprises:
determining whether the configuration data has a module identifier of the target module; and
and under the condition that the configuration data has the module identification of the target module, acquiring the target module based on the module identification.
6. The method of claim 3, wherein the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user comprises:
receiving a first call request sent by a user through a call interface, and analyzing the call interface to obtain interface information; and
and sending the first target module or the encapsulated replacement module corresponding to the first target module to the calling interface based on the interface information.
7. A data processing apparatus comprising:
the first acquisition module is used for acquiring configuration data, wherein the configuration data is used for representing whether a plurality of functional modules comprise target modules or not;
the second acquisition module is used for acquiring the target module based on the configuration data when the configuration data characterize that the plurality of functional modules comprise the target module;
the processing module is used for processing the target module to obtain a corresponding replacement module and packaging the replacement module; wherein, the encapsulated replacement module and the target module have a unified interface;
the sending module receives a first call request sent by a user and sends the target module or the encapsulated replacement module to the user based on the first call request.
8. The apparatus of claim 7, wherein the replacement module comprises a module having a function of returning an empty object.
9. The apparatus of claim 7, wherein the configuration data further comprises disabling data for characterizing whether use of the target module is disabled, the transmitting module comprising:
the receiving sub-module receives a first call request sent by a user and determines information of a first target module to be called, wherein the information is contained in the first call request;
a determining sub-module, which determines forbidden data corresponding to the first target module in the configuration data based on the information of the first target module; and
and the sending sub-module is used for sending the first target module or the encapsulated replacement module corresponding to the first target module to a user based on the corresponding forbidden data.
10. The apparatus of claim 9, wherein the sending the first target module or the encapsulated replacement module corresponding to the first target module to a user based on the corresponding disabling data comprises:
determining whether the first target module is prohibited from being used according to the corresponding disabling data;
Transmitting the first target module to a user under the condition that the first target module is not forbidden to be used; and
and under the condition that the first target module is forbidden to be used, sending the encapsulated replacement module corresponding to the first target module to a user.
11. The apparatus of claim 7, wherein the obtaining the target module based on the configuration data comprises:
determining whether the configuration data has a module identifier of the target module; and
and under the condition that the configuration data has the module identification of the target module, acquiring the target module based on the module identification.
12. The apparatus of claim 9, wherein the sending the first target module or the encapsulated replacement module corresponding to the first target module to the user comprises:
receiving a first call request sent by a user through a call interface, and analyzing the call interface to obtain interface information; and
and sending the first target module or the encapsulated replacement module corresponding to the first target module to the calling interface based on the interface information.
13. A computer readable storage medium having stored thereon executable instructions which, when executed by a processing unit, cause the processing unit to perform the method according to any of claims 1-6.
14. A computing device, comprising:
a processing unit; and
a storage unit having stored thereon executable instructions which, when executed by the processing unit, cause the processing unit to perform the method according to any of claims 1-6.
CN201910534465.8A 2019-06-19 2019-06-19 Data processing method, device, medium and computing equipment Active CN110275701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910534465.8A CN110275701B (en) 2019-06-19 2019-06-19 Data processing method, device, medium and computing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910534465.8A CN110275701B (en) 2019-06-19 2019-06-19 Data processing method, device, medium and computing equipment

Publications (2)

Publication Number Publication Date
CN110275701A CN110275701A (en) 2019-09-24
CN110275701B true CN110275701B (en) 2023-05-23

Family

ID=67961111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910534465.8A Active CN110275701B (en) 2019-06-19 2019-06-19 Data processing method, device, medium and computing equipment

Country Status (1)

Country Link
CN (1) CN110275701B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221512B (en) * 2020-01-03 2023-12-05 杭州涂鸦信息技术有限公司 Function module mixed use method, electronic device and storage medium
CN113671360B (en) * 2020-05-13 2024-06-18 圣邦微电子(北京)股份有限公司 I2C interface device testing method and device and I2C interface device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581077A (en) * 2003-08-05 2005-02-16 华为技术有限公司 Method for device for improving computer furction for accessing internet
WO2005107410A8 (en) * 2004-05-04 2006-01-12 Fisher Rosemount Systems Inc Service-oriented architecture for process control systems
DE102014114570A1 (en) * 2013-10-09 2015-04-09 Infineon Technologies Ag AMPLIFIER ANTENNA STRUCTURE
CN106156186A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of data model managing device, server and data processing method
CN107526584A (en) * 2016-10-18 2017-12-29 腾讯科技(深圳)有限公司 Data cut-in method and device
CN108509212A (en) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 Application program update test method, device, terminal device and storage medium
CN109032637A (en) * 2018-07-17 2018-12-18 中国建设银行股份有限公司 Oftware updating method and device based on framework frame
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015187710A1 (en) * 2014-06-02 2015-12-10 Blackwatch International A generic template node for developing and deploying model software packages
CN104699501B (en) * 2015-01-15 2018-02-16 腾讯科技(深圳)有限公司 A kind of method and device for running application program
CN107577478A (en) * 2017-09-08 2018-01-12 湖南快乐阳光互动娱乐传媒有限公司 Mobile phone software online method and system
CN108182074A (en) * 2017-12-29 2018-06-19 五八有限公司 Functionally inserting method, device, mobile terminal and the storage medium of application
CN108632361B (en) * 2018-04-12 2021-06-15 武汉斗鱼网络科技有限公司 Webpage online method, server, system and storage medium
CN108563431B (en) * 2018-04-20 2021-09-10 云宏信息科技股份有限公司 Software development method and device, computer-readable storage medium and electronic equipment
CN108694039A (en) * 2018-05-14 2018-10-23 链家网(北京)科技有限公司 A kind of efficiency of research and development promotion optimization method and device of agility flow
CN109375902B (en) * 2018-09-13 2024-03-19 红色江山(湖北)导航技术有限公司 Offline data processing software tool kit design method based on origin C programming
CN109710340B (en) * 2019-01-18 2022-03-25 北京顺丰同城科技有限公司 Software tool calling method and device and software tool packaging method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581077A (en) * 2003-08-05 2005-02-16 华为技术有限公司 Method for device for improving computer furction for accessing internet
WO2005107410A8 (en) * 2004-05-04 2006-01-12 Fisher Rosemount Systems Inc Service-oriented architecture for process control systems
DE102014114570A1 (en) * 2013-10-09 2015-04-09 Infineon Technologies Ag AMPLIFIER ANTENNA STRUCTURE
CN106156186A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of data model managing device, server and data processing method
CN107526584A (en) * 2016-10-18 2017-12-29 腾讯科技(深圳)有限公司 Data cut-in method and device
CN108509212A (en) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 Application program update test method, device, terminal device and storage medium
CN109062590A (en) * 2018-06-29 2018-12-21 武汉掌游科技有限公司 A kind of method and system of game SDK online updating
CN109032637A (en) * 2018-07-17 2018-12-18 中国建设银行股份有限公司 Oftware updating method and device based on framework frame

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于局域网的即时通信软件设计与实现;唐浩等;《通讯世界》;第152页 *

Also Published As

Publication number Publication date
CN110275701A (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN109669637B (en) System, method and apparatus for providing container services
CN110275701B (en) Data processing method, device, medium and computing equipment
CN110795741A (en) Method and device for carrying out security processing on data
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN110896362A (en) Fault detection method and device
CN112084042A (en) Message processing method and device
CN116700779A (en) Code dynamic adjustment method, device, equipment, medium and program product
CN112306371A (en) Method, apparatus and computer program product for storage management
CN113946376B (en) Load adjustment method and device, electronic equipment and storage medium
CN112181470B (en) Patch deployment method and device
CN114020513A (en) Method and device for processing log information
CN112860447B (en) Interaction method and system between different applications
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN112463616A (en) Chaos testing method and device for Kubernetes container platform
CN114356788B (en) Application program detection method, device, equipment and medium based on user information
CN114398098B (en) Application script execution method, device, electronic equipment and computer readable medium
CN110099122B (en) Method and apparatus for sending network request
CN116737314A (en) Data processing method, device, electronic equipment and storage medium
CN110011767B (en) Method and apparatus for TCP connection backup
CN109388536B (en) Data collection method and device
CN113778969A (en) Log processing method and device
CN117667289A (en) Loading rendering method and device of application component

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