CN110275701A - Data processing method, device, medium and calculating equipment - Google Patents

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

Info

Publication number
CN110275701A
CN110275701A CN201910534465.8A CN201910534465A CN110275701A CN 110275701 A CN110275701 A CN 110275701A CN 201910534465 A CN201910534465 A CN 201910534465A CN 110275701 A CN110275701 A CN 110275701A
Authority
CN
China
Prior art keywords
module
object module
user
substitute
configuration data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910534465.8A
Other languages
Chinese (zh)
Other versions
CN110275701B (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

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

Embodiments of the present invention provide a kind of data processing method, including obtain configuration data, and whether configuration data is for characterizing in multiple functional modules comprising object module;When configuration data characterizes multiple functional modules and includes object module, object module is obtained based on configuration data;Processing target module obtains module of substituting accordingly, and encapsulates substitute module;And the first call request that user sends is received, and the substitute module after object module or encapsulation is sent to by user based on the first call request.This method provides the substitute module after functional module or encapsulation with unified interface for user, to realize the Quick thread of correlation function or offline in software development process, the stability for improving code in software development, reduces development cost, improves development efficiency.In addition, embodiments of the present invention provide a kind of device, a kind of medium and a kind of calculating equipment.

Description

Data processing method, device, medium and calculating equipment
Technical field
Embodiments of the present invention are related to computer field, more specifically, embodiments of the present invention are related to a kind of data Processing method, device, medium and calculating equipment.
Background technique
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this section.
In entire computer field, in software development process, it usually needs online certain functions, such as needing will be various In different function set to exploitation trunk or trunk branch.For example, third party can be provided with correlation function In functional module set to exploitation trunk or trunk branch, which is, for example, SDK (Software Development Kit, Software Development Kit).
Currently, having already appeared the online or offline method of some functional modules, wherein the online expression of functional module is being transported The functional module can be executed when row software, the offline expression of functional module no longer executes the functional module in runs software.So And during realizing disclosure design, at least there are the following problems in the related technology for inventor's discovery: in software development When, when needing to load certain functional modules or not needing to execute certain functional modules in software, usually pass through plug-in unit Technology is come online or disables these functional modules.But plug-in unit technology can not achieve the whole urgent online of functional module Or it is offline.For example, being asked when encountering emergency case needs quickly offline functional module according to plug-in unit technology to solve this Topic, needs to write a large amount of code to realize the disabling of the functional module, causes cost high, efficiency is extremely low, therefore can not solve Certainly emergency case.
In view of the above problems in the related art, it does not put forward effective solutions also at present.
Summary of the invention
But in the prior art in software development, whole urgent online or offline processing can not be carried out to functional module, And code is online or offline functional module and leads to not Quick thread or offline functional module due to needing to write, separately Outside, the prior art has that cost is high, efficiency is extremely low by plug-in unit technology come processing function module.
Therefore in the prior art, functional module it is online or offline during, by plug-in unit technology come online Perhaps offline functional module leads to not Quick thread or offline functional module, and code stability is low in software development, Development cost is high, and low development efficiency is very bothersome process.
Thus, it is also very desirable to which a kind of improved data processing method provides the function with unified interface to be embodied as user Can substitute module after module or encapsulation, so as in software development process, directly by with unified interface functional module or The Quick thread or offline that substitute module collection after encapsulation realizes correlation function to developing in trunk or trunk branch, is fitted For online or offline functional module urgent under emergency case, the stability of code in software development is improved, is reduced out Cost is sent out, development efficiency is improved.
In the present context, embodiments of the present invention are intended to provide a kind of data processing method, device, medium and calculating Equipment.
In the first aspect of embodiment of the present invention, a kind of data processing method is provided, comprising: obtain configuration number According to whether the configuration data characterizes multiple for characterizing in multiple functional modules comprising object module in the configuration data When functional module includes object module, the object module is obtained based on the configuration data, the object module is handled and obtains Corresponding substitute module, and the substitute module is encapsulated, the first call request that user sends is received, and adjust based on described first The substitute module after the object module or the encapsulation is sent to user with request.
In one embodiment of the invention, the substitute module includes the module return with empty object.
In another embodiment of the invention, the configuration data further includes for characterizing whether be forbidden to use the target The disabling data of module, first call request for receiving user and sending, and first call request is based on by the mesh Substitute module after mark module or the encapsulation is sent to user, comprising: receives the first call request that user sends, and really The information for the first object module to be called for including in fixed first call request, the letter based on the first object module Breath, determines disabling data corresponding with the first object module in the configuration data, is based on the corresponding disabling data Substitute module after the first object module or the corresponding encapsulation of the first object module is sent to user.
In another embodiment of the invention, it is described based on the corresponding disabling data by the first object module or Substitute module after the corresponding encapsulation of first object module described in person is sent to user, comprising: according to the corresponding disabling number Whether it is prohibited from using according to the determination first object module, in the case where the first object module is not prohibited from using, The first object module is sent to user, in the case where the first object module is prohibited from using, by described first Substitute module after the corresponding encapsulation of object module is sent to user.
In another embodiment of the invention, described that the object module is obtained based on the configuration data, comprising: to determine Whether there is the module id of the object module in the configuration data, there is the object module in the configuration data Module id in the case where, known based on the module and obtain the object module.
In another embodiment of the invention, described that the first object module or the first object module is corresponding Encapsulation after substitute module be sent to user, comprising: receive the first call request for sending via calling interface of user, and solve It analyses the calling interface and obtains interface message, be based on the interface message for the first object module or the first object Substitute module after the corresponding encapsulation of module is sent to the calling interface.
In the second aspect of embodiment of the present invention, a kind of data processing equipment is provided, comprising: first obtains mould Block, second obtain module, processing module and sending module.Wherein, first module acquisition configuration data, the configuration number are obtained Multiple function are characterized in the configuration data according to for characterizing whether comprising object module in multiple functional modules, second obtains module When energy module includes object module, the object module, the processing module processing target mould are obtained based on the configuration data Block obtains module of substituting accordingly, and encapsulates the substitute module, and sending module receives the first call request that user sends, and The substitute module after the object module or the encapsulation is sent to user based on first call request.
In one embodiment of the invention, the substitute module includes the module return with empty object.
In another embodiment of the invention, the configuration data further includes for characterizing whether be forbidden to use the target The disabling data of module, the sending module include: receiving submodule, determine submodule and sending submodule.Wherein, it receives Submodule receives the first call request that user sends, and determines the first mesh to be called for including in first call request The information for marking module, determines information of the submodule based on the first object module, determines in the configuration data with described the The corresponding disabling data of one object module, sending submodule be based on the corresponding disabling data by the first object module or Substitute module after the corresponding encapsulation of first object module described in person is sent to user.
In another embodiment of the invention, it is described based on the corresponding disabling data by the first object module or Substitute module after the corresponding encapsulation of first object module described in person is sent to user, comprising: according to the corresponding disabling number Whether it is prohibited from using according to the determination first object module, in the case where the first object module is not prohibited from using, The first object module is sent to user, in the case where the first object module is prohibited from using, by described first Substitute module after the corresponding encapsulation of object module is sent to user.
In another embodiment of the invention, described that the object module is obtained based on the configuration data, comprising: to determine Whether there is the module id of the object module in the configuration data, there is the object module in the configuration data Module id in the case where, known based on the module and obtain the object module.
In another embodiment of the invention, described that the first object module or the first object module is corresponding Encapsulation after substitute module be sent to user, comprising: receive the first call request for sending via calling interface of user, and solve It analyses the calling interface and obtains interface message, be based on the interface message for the first object module or the first object Substitute module after the corresponding encapsulation of module is sent to the calling interface.
In the third aspect of embodiment of the present invention, a kind of computer readable storage medium is provided, is stored thereon with Executable instruction, described instruction unit processed make the processing unit execute described in any item sides as described above when executing Method.
In the fourth aspect of embodiment of the present invention, providing a kind of calculating equipment includes: processing unit;And storage Unit, is stored with computer executable instructions, and above-metioned instruction executes described in any item methods as described above in unit processed.
This method, device, medium and calculating equipment can be implemented as user and provides the functional module with unified interface Or the substitute module after encapsulation, wherein unified interface indicates that the substitute module after functional module and encapsulation can be by identical In standard interface set to exploitation trunk or trunk branch, will directly to have and uniformly connect in software development process On substitute module collection to exploitation trunk or trunk branch after the functional module or encapsulation of mouth, the quick of correlation function is realized It is online or offline, it is suitable for the urgent offline functional module under emergency case, improves the stability of code in software development, drops Low development cost, improves development efficiency.
Detailed description of the invention
The following detailed description is read with reference to the accompanying drawings, above-mentioned and other mesh of exemplary embodiment of the invention , feature and advantage will become prone to understand.In the accompanying drawings, if showing by way of example rather than limitation of the invention Dry embodiment, in which:
Fig. 1 schematically shows the data processing method of embodiment according to the present invention and its exemplary system of device Framework;
Fig. 2 schematically shows the flow charts of data processing method according to an embodiment of the present invention;
Fig. 3 schematically shows the flow chart of first call request of response according to an embodiment of the present invention;
Fig. 4 schematically shows the program products according to an embodiment of the present invention for realizing data processing;
Fig. 5 schematically shows the block diagram of data processing equipment according to an embodiment of the present invention;
Fig. 6 schematically shows the block diagram of sending module according to an embodiment of the present invention;And
Fig. 7 schematically shows setting for realizing the calculating of data processing for this embodiment according to the present invention It is standby.
In the accompanying drawings, identical or corresponding label indicates identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that providing this A little embodiments are used for the purpose of making those skilled in the art can better understand that realizing the present invention in turn, and be not with any Mode limits the scope of the invention.On the contrary, these embodiments are provided so that this disclosure will be more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of device, equipment, method or calculating Machine program product.Therefore, the present disclosure may be embodied in the following forms, it may be assumed that complete hardware, complete software are (including solid Part, resident software, microcode etc.) or hardware and software combine form.
Embodiment according to the present invention proposes method, apparatus, medium and the calculating equipment of a kind of data processing.
Herein, it is to be understood that any number of elements in attached drawing be used to example rather than limit and it is any Name is only used for distinguishing, without any restrictions meaning.
Below with reference to several representative embodiments of the invention, the principle and spirit of the present invention are explained in detail.
Summary of the invention
The inventors discovered that whole offline processing can not be carried out to functional module in the prior art in software development, and And lead to not quickly disable functional module due to needing to write code to disable functional module, in addition, the prior art passes through Plug-in unit technology carrys out the higher cost of processing function module.In addition, data processing method provided in an embodiment of the present invention is by being User provides the functional module with unified interface or the substitute module after encapsulation, directly will in software development process On substitute module collection to exploitation trunk or trunk branch after functional module or encapsulation with unified interface, realize related The Quick thread of function is offline, is suitable for the urgent offline functional module under emergency case, improves code in software development Stability, reduce development cost.
After introduced the basic principles of the present invention, lower mask body introduces various non-limiting embodiment party of the invention Formula.
Application scenarios overview
The data processing method of the embodiment of the present invention and its exemplary system frame of device are elaborated referring initially to Fig. 1 Structure.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network according to this embodiment 104 and server 105.Network 104 between terminal device 101,102,103 and server 105 to provide communication link Medium.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 101,102,103 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as utilize terminal device 101,102,103 to user The website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to the use received The data such as family request analyze etc. processing, and by processing result (such as according to user's request or the webpage of generation, believe Breath or data etc.) feed back to terminal device.
It should be noted that data processing method provided by the embodiment of the present invention can generally be executed by server 105. Correspondingly, data processing equipment provided by the embodiment of the present invention generally can be set in server 105.The embodiment of the present invention Provided data processing method can also by be different from server 105 and can with terminal device 101,102,103 and/or clothes The server or server cluster that business device 105 communicates execute.Correspondingly, data processing equipment provided by the embodiment of the present invention It can be set in the service that is different from server 105 and can be communicated with terminal device 101,102,103 and/or server 105 In device or server cluster.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Illustrative methods
Below with reference to the system architecture of Fig. 1, the data of illustrative embodiments according to the present invention are described with reference to Fig. 2, Fig. 3 The method of processing.It should be noted which is shown only for the purpose of facilitating an understanding of the spirit and principles of the present invention for above system framework, Embodiments of the present invention are not limited in this respect.On the contrary, embodiments of the present invention can be applied to applicable appoint What scene.
Fig. 2 schematically shows the flow charts of data processing method according to an embodiment of the present invention.
As shown in Fig. 2, this method includes operation S210~S240.
In operation S210, configuration data is obtained, whether configuration data is for characterizing in multiple functional modules comprising target mould Block.
It is obtained when configuration data characterizes multiple functional modules and includes object module based on configuration data in operation S220 Object module.
In embodiments of the present invention, functional module for example can be SDK (Software Development Kit, software Development kit).Multiple functional modules of the embodiment of the present invention for example by agency plant management, are developed soft user (developer) During part, agency plant can according to the call request of user by user needed for functional module be sent to user, so as to User carries out software development using functional module.
In embodiments of the present invention, agency plant can determine the mesh in multiple functional modules by obtaining configuration data Mark module.The configuration data can be according to business demand flexible setting, that is, the part or complete in multiple functional modules can be set Portion is object module.Wherein, which for example can be the functional module that user may need in the process of development.Cause This, agency plant is it needs to be determined that object module out, to perform corresponding processing to object module.
In embodiments of the present invention, object module is obtained based on configuration data, comprising: whether determine in configuration data has The module id of object module in the case where having the module id of object module in configuration data, is known based on module and is obtained Object module.
For example, each functional module has its corresponding module id, module id can be SDK packet name.It is in agency After system obtains configuration data, it is first determined whether there is the module id of object module in configuration data, have in configuration data In the case where the module id for having object module, characterizing has object module in multiple functional modules, at this point, agency plant can be with The corresponding object module of the module id is obtained from multiple functional modules based on module id.
In operation S230, processing target module obtains module of substituting accordingly, and encapsulates substitute module.For example, acting on behalf of After system gets one or more object modules, it can handle each object module and obtain module of substituting accordingly.Wherein, Substitute module includes the module return with empty object.That is, during software development, after executing the substitute module The result of return is, for example, empty object, which is substituted for the functional module being prohibited from using in software development. For example, agency plant processing target module to be to obtain the module id of object module, and substituted moulds based on some empty Object Creations Block, and set consistent with the module id of corresponding object module for the module id for module of substituting, for example, object module Module id be SDK_1, then can set Null_SDK_1 for the module id for module of substituting, pass through the consistent mould of setting Block identification is to be sent to use for functional module needed for user based on module id in the call request for receiving user Family.
Wherein, for example with standard interface, user can lead to object module when carrying out software development using object module Crossing standard interface will be in the exploitation trunk of object module set to software or trunk branch.Therefore, the present invention is needed to substitute Module is packaged, so that the substitute module after encapsulation has and the same or similar standard interface of object module, that is, mesh Substitute module after marking module and encapsulation has unified interface, can will be after the encapsulation by the standard interface convenient for user It substitutes on module collection to the exploitation trunk of software or trunk branch, that is, the substitute module after object module and encapsulation has system One interface.It is appreciated that the process being packaged to substitute module is the process of unified interface.
In operation S240, receive the first call request that user sends, and based on the first call request by object module or Substitute module after person's encapsulation is sent to user.
For example, when user need object module or encapsulation after substitute module when, user can send to agency plant First call request is to call required module.Agency plant after receiving the first call request of user, can according to Substitute module after object module or encapsulation is sent to user, user-friendly object module by first call request at family Or the substitute module after encapsulation carries out software development.
The present invention implements to be based on configuration data according to business demand flexible setting configuration data, agency plant and obtain mesh Mark module after, can processing target module obtain substitute module, and to substitute module be packaged the substitute mould after being encapsulated Block, to be embodied as the substitute module after user provides the functional module or encapsulation with unified interface, so as in software development Cheng Zhong, user can be with the substitute module after direct request calling functional modules or encapsulation, and will have the function of unified interface mould On substitute module collection to exploitation trunk or trunk branch after block or encapsulation.The embodiment of the present invention realizes correlation function Quick thread is offline, is suitable for the urgent offline functional module under emergency case, improves code stability in software development, drop Low development cost, improves development efficiency.
Fig. 3 schematically shows the flow chart of first call request of response according to an embodiment of the present invention.
As shown in figure 3, operation S240 includes operation S241~S243.
In embodiments of the present invention, configuration data further includes for characterizing the disabling number for whether being forbidden to use object module According to that is, the disabling data can characterize object module and be prohibited from using or not be prohibited from using.
In operation S241, the first call request that user sends is received, and determines that include in the first call request will adjust The information of first object module.
For example, the first of user calls the information including first object module needed for user in data.Wherein, the first mesh Mark module is, for example, some or all of in object module.The information of first object module for example can be first object module Module id, module id can be SDK packet name.
It is determined corresponding with first object module in configuration data in operation S242 based on the information of first object module Disable data.
For example, agency plant is after receiving the first call request of user, according to the first mesh in the first call request The information of mark module determines whether first object module is prohibited from using.For example, agency plant can based in configuration data with The information of first object module corresponding disabling data determine whether first object module is prohibited from using.For example, with target For module includes functional module A and functional module B, when functional module A is the first object module to be called of user, configuration Disabling data corresponding with functional module A, which for example can be, in data is prohibited from using or is not prohibited from using.
In operation S243, corresponding disabling data are based on by first object module or the corresponding encapsulation of first object module Substitute module afterwards is sent to user.Detailed process is for example described below.
In embodiments of the present invention, it can determine whether first object module is prohibited to make according to corresponding disabling data With.Wherein, the corresponding disabling data of each first object module, which can be, is prohibited from using or is not prohibited from using.For example, In the case where first object module is not prohibited from using, first object module is sent to user.Alternatively, in first object mould In the case that block is prohibited from using, the substitute module after the corresponding encapsulation of first object module is sent to user.For example, when matching Setting disabling data corresponding with functional module A in data is when not being prohibited from using, and agency plant can send functional module A To user, when disabling data corresponding with functional module A in configuration data are to be prohibited from using, agency plant can will be with function Can substitute module after the corresponding encapsulation of modules A be sent to user.
For example, in the case that user does not need that first object module or first object module is called to break down, it can To be configured to be prohibited from using by first object module in configuration data, adjusted to receive the first of user in agency plant When with request, it is prohibited from using based on the first object module in configuration data, it will be after encapsulation corresponding with first object module Substitute module be sent to user.
In a particular application, for example, by multiple functional modules of agency plant management include functional module A, functional module B, Functional module C.Wherein, functional module A and functional module B is, for example, that user carries out the function being commonly used in software development process Module, at this point it is possible to be object module by the configuration feature modules A in configuration data and functional module B.Agency plant can be with Functional module A and functional module B is obtained from multiple functional modules based on the module id in configuration data, and handles function respectively Energy modules A and functional module B obtain corresponding substitute modules A and substitute module B, and encapsulate substitute modules A and the module B that substitutes, With the substitute module B after the substitute modules A and encapsulation after being encapsulated.
Firstly, when functional module A and functional module B is that user carries out the function of needing to be commonly used in software development process When module, and functional module A and functional module B and it is without failure when, in configuration data for example about functional module A and The disabling data of functional module B are not to be prohibited from using.During User Exploitation software, when user needs function mould When in block A (functional module A is, for example, first object module at this time) set to exploitation trunk or trunk branch, user can be to generation Reason system sends the first call request and issues functional module A with request agency system, asks when agency plant receives the first calling After asking, determine in configuration data that about the disabling data of functional module A, agency plant can be by function at this time not to be prohibited from using Energy modules A is handed down to user.After user receives functional module A, by functional module A by the first functional switch set to opening It sends out in trunk or trunk branch, and functional module A can be used by the way that the first functional switch of control is in the conductive state.Its In, the first functional switch (functional switch, Feature Flag) is, for example, that a kind of be integrated into for control develops trunk or trunk The mode of function in branch opened or closed, for example, functional module can be integrated into exploitation master by the first functional switch In dry or trunk branch, when the first functional switch is in the conductive state, the function that functional module is able to achieve is turned on, when first When functional switch is in an off state, the function that functional module is able to achieve is closed.
Hereafter, when not needing functional module A in the software that user is developed, (such as the function of functional module A offer is It is expired) or functional module A failure when needing to carry out offline, it can be by will be about functional module A in configuration data Disabling data configuration be prohibited from using, after agency plant receives the first call request about functional module A, determine That to be called is functional module A, and is determined in configuration data about the disabling data of functional module A to be prohibited from using, this When agency plant by the substitute modules A after the corresponding encapsulation of functional module A ' be handed down to user.User is after receiving encapsulation Substitute modules A ' after, can be by the substitute modules A after encapsulation ' by the second functional switch set to developing trunk or trunk branch On, and be in an off state by controlling the first functional switch and can be forbidden to use functional module A, and pass through control second Functional switch it is in the conductive state i.e. can be used encapsulation after substitute modules A ', wherein the second functional switch is opened with the first function Close same or like, details are not described herein.For example, detecting functional module A's first before software perform function module A The state of first functional switch, when the first functional switch of functional module A is in an off state, perform function module A is corresponding Encapsulation after substitute modules A '.
Since the functional module needed for software development process is usually provided by third party, through the invention Embodiment can be realized the Quick thread or offline of correlation function, guarantee functional module break down after can by encapsulation after Module of substituting is realized quickly offline, it is ensured that third parties risks are controllable.
In embodiments of the present invention, by the substitute module after first object module or the corresponding encapsulation of first object module It is sent to user, comprising: receive the first call request that user sends via calling interface, and parse calling interface and obtain interface Substitute module after first object module or the corresponding encapsulation of first object module is sent to tune based on interface message by information Use interface.Wherein, which for example can be the interface for meeting related protocol, and user can send the by calling interface Substitute module after one call request and reception first object module or encapsulation, to ensure the safety of information transmission.
Exemplary media
After describing the method for exemplary embodiment of the invention, next, with reference to Fig. 4 to the exemplary reality of the present invention A kind of computer readable storage medium for applying mode is introduced.Computer-readable recording medium storage has computer is executable to refer to It enables, above-metioned instruction is when unit processed executes for realizing data processing side described in any one of above method embodiment Method.
In some possible embodiments, various aspects of the invention are also implemented as a kind of shape of program product Formula comprising program code, when described program product is run on the computing device, said program code is for making the calculating Equipment executes described in above-mentioned " illustrative methods " part of this specification the number of various illustrative embodiments according to the present invention According to the step in processing method, for example, the calculating equipment can execute operation S210 as shown in Figure 2: obtaining configuration number According to whether configuration data is for characterizing in multiple functional modules comprising object module;It operates S220: being characterized in configuration data multiple When functional module includes object module, object module is obtained based on configuration data;Operate S230: processing target module obtains accordingly Substitute module, and encapsulate substitute module;It operates S240: receiving the first call request that user sends, and called based on first Substitute module after object module or encapsulation is sent to user by request.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example may be-but not limited to-electricity, magnetic, optical, electromagnetic, red The system of outside line or semiconductor, device or device, or any above combination.The more specific example of readable storage medium storing program for executing (non exhaustive list) includes: the electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc Read memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
As shown in figure 4, the program product 40 for realizing data processing of embodiment according to the present invention is described, Can be using portable compact disc read only memory (CD-ROM) and including program code, and equipment can be being calculated, such as a It is run on people's computer.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be any Include or the tangible medium of storage program, the program can be commanded execution system, device or device and use or tie with it It closes and uses.
Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying Readable program code.The data-signal of this propagation can take various forms, including --- but being not limited to --- electromagnetism letter Number, optical signal or above-mentioned any appropriate combination.Readable signal medium can also be other than readable storage medium storing program for executing it is any can Read medium, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or Program in connection.
The program code for including on readable medium can transmit with any suitable medium, including --- but being not limited to --- Wirelessly, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language --- and such as Java, C++ etc. further include routine Procedural programming language --- such as " C ", language or similar programming language.Program code can fully exist It executes in user calculating equipment, partly execute on a user device, executing, as an independent software package partially in user Upper side point is calculated to execute or execute in remote computing device or server completely on a remote computing.It is relating to And in the situation of remote computing device, remote computing device can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN) one is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize internet Service provider is connected by internet).
Exemplary means
After describing the medium of exemplary embodiment of the invention, next, showing with reference to Fig. 5 and Fig. 6 the present invention The data processing equipment of example property embodiment is introduced.
Fig. 5 schematically shows the block diagram of data processing equipment according to an embodiment of the present invention.
As shown in figure 5, data processing equipment 500 may include that the first acquisition module 510, second obtains module 520, processing Module 530 and sending module 540.
First obtains module 510, such as executes the operation S210 described above with reference to Fig. 2, obtains configuration data, configures number According to for whether characterizing in multiple functional modules comprising object module.
Second obtains module 520, such as executes the operation S220 described above with reference to Fig. 2, characterizes in configuration data multiple When functional module includes object module, object module is obtained based on configuration data.
Processing module 530, such as the operation S230 described above with reference to Fig. 2 is executed, processing target module obtains accordingly Substitute module, and encapsulate substitute module.
Sending module 540, such as the operation S240 described above with reference to Fig. 2 is executed, it receives user sends first and calls Request, and the substitute module after object module or encapsulation is sent to by user based on the first call request.
In one embodiment of the invention, substitute module includes the module return with empty object.
In another embodiment of the invention, object module is obtained based on configuration data, comprising: determining in configuration data is The no module id with object module in the case where having the module id of object module in configuration data, is based on module Know and obtains object module.
Fig. 6 schematically shows the block diagram of sending module according to an embodiment of the present invention.
As shown in fig. 6, sending module 540 may include receiving submodule 541, determine submodule 542 and send submodule Block 543.
Receiving submodule 541, such as the operation S241 described above with reference to Fig. 3 is executed, it obtains and receives user sends first Call request, and determine the information for the first object module to be called for including in the first call request.
It determines submodule 542, such as executes the operation S242 described above with reference to Fig. 3, the letter based on first object module Breath, determines disabling data corresponding with first object module in configuration data.
Sending submodule 543, such as the operation S243 described above with reference to Fig. 3 is executed, it will based on corresponding disabling data Substitute module after first object module or the corresponding encapsulation of first object module is sent to user.
In one embodiment of the invention, corresponding disabling data are based on by first object module or first object mould Substitute module after the corresponding encapsulation of block is sent to user, comprising: determines that first object module is according to corresponding disabling data It is no to be prohibited from using, in the case where first object module is not prohibited from using, first object module is sent to user, In the case that one object module is prohibited from using, the substitute module after the corresponding encapsulation of first object module is sent to user.
In another embodiment of the invention, by replacing after first object module or the corresponding encapsulation of first object module Complementary modulus block is sent to user, comprising: receives the first call request that user sends via calling interface, and parses calling interface and obtain To interface message, the substitute module after first object module or the corresponding encapsulation of first object module is sent out based on interface message It send to calling interface.
Due to each functional module and above- mentioned information rendering method of the data processing equipment 500 of the example embodiment of invention Example embodiment the step of it is corresponding, therefore details are not described herein.
Exemplary computer device
After method, medium and the device for describing exemplary embodiment of the invention, next, with reference to Fig. 7 to this A kind of calculating equipment of invention illustrative embodiments, for realizing data processing method of the invention.
The embodiment of the invention also provides a kind of calculating equipment.Person of ordinary skill in the field is it is understood that this hair Bright various aspects can be implemented as device, method or program product.Therefore, various aspects of the invention can be implemented as Following form, it may be assumed that complete hardware embodiment, complete Software Implementation (including firmware, microcode etc.) or hardware and The embodiment that software aspects combine, may be collectively referred to as circuit, " module " or " system " here.
In some possible embodiments, it is single can to include at least at least one processing for calculating equipment according to the present invention Member and at least one storage unit.Wherein, the storage unit is stored with program code, when said program code is described When processing unit executes, so that the processing unit executes described in above-mentioned " illustrative methods " part of this specification according to this Invent the step in the information demonstrating method of various illustrative embodiments.For example, the processing unit can be executed as in Fig. 2 Shown in operate S210: obtain configuration data, whether configuration data for characterizing in multiple functional modules comprising object module;Behaviour Make S220: when configuration data characterizes multiple functional modules and includes object module, object module being obtained based on configuration data;Operation S230: processing target module obtains module of substituting accordingly, and encapsulates substitute module;It operates S240: receiving user sends the One call request, and the substitute module after object module or encapsulation is sent to by user based on the first call request.
The calculating equipment for realizing data processing of this embodiment according to the present invention is described referring to Fig. 7 70.Calculating equipment 70 as shown in Figure 7 is only an example, should not function to the embodiment of the present invention and use scope bring Any restrictions.
It is showed in the form of universal computing device as shown in fig. 7, calculating equipment 70.Calculate equipment 70 component may include But it is not limited to: at least one above-mentioned processing unit 701, at least one above-mentioned storage unit 702, connection different system components (packet Include storage unit 702 and processing unit 701) bus 703.
Bus 703 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.
Storage unit 702 may include the readable medium of form of volatile memory, such as random access memory (RAM) 7021 and/or cache memory 7022, it can further include read-only memory (ROM) 7023.
Storage unit 702 can also include program/utility with one group of (at least one) program module 7024 7025, such program module 7024 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Calculating equipment 70 can also be with one or more external equipment 704 (such as keyboard, sensing equipment, bluetooth equipment etc.) Communication can also be enabled a user to communicate with the equipment that calculating equipment 70 interacts with one or more, and/or be set with to calculate The standby 70 any equipment (such as router, modem etc.) that can be communicated with one or more of the other calculating equipment are led to Letter.This communication can be carried out by input/output (I/0) interface 705.Also, calculating equipment 70 can also be suitable by network Orchestration 706 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because of spy Net) communication.As shown, network adapter 706 is communicated by bus 703 with the other modules for calculating equipment 70.It should be understood that Although not shown in the drawings, other hardware and/or software module can be used in conjunction with equipment 70 is calculated, including but not limited to: micro- generation Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup are deposited Storage system etc..
It should be noted that although being referred to several units/modules or subelement/module of device in the above detailed description, But it is this division be only exemplary it is not enforceable.In fact, embodiment according to the present invention, above-described The feature and function of two or more units/modules can embody in a units/modules.Conversely, above-described one The feature and function of a units/modules can be to be embodied by multiple units/modules with further division.
In addition, although describing the operation of the method for the present invention in the accompanying drawings with particular order, this do not require that or Hint must execute these operations in this particular order, or have to carry out shown in whole operation be just able to achieve it is desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/or by one Step is decomposed into execution of multiple steps.
Although detailed description of the preferred embodimentsthe spirit and principles of the present invention are described by reference to several, it should be appreciated that, this It is not limited to the specific embodiments disclosed for invention, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is benefited to carry out, this to divide the convenience merely to statement.The present invention is directed to cover appended claims spirit and Included various modifications and equivalent arrangements in range.

Claims (14)

1. a kind of data processing method, comprising:
Configuration data is obtained, whether the configuration data is for characterizing in multiple functional modules comprising object module;
When the configuration data characterizes multiple functional modules and includes object module, the target is obtained based on the configuration data Module;
It handles the object module and obtains module of substituting accordingly, and encapsulate the substitute module;And
The first call request that user sends is received, and is based on first call request for the object module or the envelope Substitute module after dress is sent to user.
2. according to the method described in claim 1, wherein, the substitute module includes the mould return with empty object Block.
3. according to the method described in claim 1, wherein, the configuration data further include for characterize whether be forbidden to use it is described The disabling data of object module, first call request for receiving user and sending, and first call request is based on by institute Substitute module after stating object module or the encapsulation is sent to user, comprising:
The first call request that user sends is received, and determines the first object to be called for including in first call request The information of module;
Based on the information of the first object module, disabling corresponding with the first object module in the configuration data is determined Data;And
It will be after the first object module or the corresponding encapsulation of the first object module based on the corresponding disabling data Substitute module be sent to user.
4. according to the method described in claim 3, wherein, it is described based on the corresponding disabling data by the first object mould Substitute module after block or the corresponding encapsulation of the first object module is sent to user, comprising:
Determine whether the first object module is prohibited from using according to the corresponding disabling data;
In the case where the first object module is not prohibited from using, the first object module is sent to user;And
In the case where the first object module is prohibited from using, by the substitute after the corresponding encapsulation of the first object module Module is sent to user.
5. described to obtain the object module based on the configuration data according to the method described in claim 1, wherein, comprising:
The module id whether in the configuration data with the object module determined;And
In the case that there is the module id of the object module in the configuration data, known described in obtaining based on the module Object module.
6. method according to claim 3, wherein described by the first object module or the first object module pair Substitute module after the encapsulation answered is sent to user, comprising:
The first call request that user sends via calling interface is received, and parses the calling interface and obtains interface message;With And
Based on the interface message by the substitute after the first object module or the corresponding encapsulation of the first object module Module is sent to the calling interface.
7. a kind of data processing equipment, comprising:
First obtains module, obtains configuration data, whether the configuration data is for characterizing in multiple functional modules comprising target Module;
Second obtains module, when the configuration data characterizes multiple functional modules and includes object module, is based on the configuration number According to the acquisition object module;
Processing module handles the object module and obtains module of substituting accordingly, and encapsulates the substitute module;And
Sending module receives the first call request that user sends, and is based on first call request for the object module Or the substitute module after the encapsulation is sent to user.
8. device according to claim 7, wherein the substitute module includes the mould return with empty object Block.
9. device according to claim 7, wherein the configuration data further include for characterize whether be forbidden to use it is described The disabling data of object module, the sending module include:
Receiving submodule receives the first call request that user sends, and determines that include in first call request will adjust The information of first object module;
Determine submodule, based on the information of the first object module, determine in the configuration data with the first object mould The corresponding disabling data of block;And
Sending submodule is based on the corresponding disabling data for the first object module or the first object module pair Substitute module after the encapsulation answered is sent to user.
10. device according to claim 9, wherein described to be based on the corresponding disabling data for the first object Substitute module after module or the corresponding encapsulation of the first object module is sent to user, comprising:
Determine whether the first object module is prohibited from using according to the corresponding disabling data;
In the case where the first object module is not prohibited from using, the first object module is sent to user;And
In the case where the first object module is prohibited from using, by the substitute after the corresponding encapsulation of the first object module Module is sent to user.
11. device according to claim 7, wherein described to obtain the object module, packet based on the configuration data It includes:
The module id whether in the configuration data with the object module determined;And
In the case that there is the module id of the object module in the configuration data, known described in obtaining based on the module Object module.
12. device according to claim 9, wherein described by the first object module or the first object mould Substitute module after the corresponding encapsulation of block is sent to user, comprising:
The first call request that user sends via calling interface is received, and parses the calling interface and obtains interface message;With And
Based on the interface message by the substitute after the first object module or the corresponding encapsulation of the first object module Module is sent to the calling interface.
13. a kind of computer readable storage medium, is stored thereon with executable instruction, described instruction unit processed makes when executing The processing unit executes method according to claim 1 to 6.
14. a kind of calculating equipment, comprising:
Processing unit;And
Storage unit, is stored thereon with executable instruction, and described instruction makes the processing unit when being executed by the processing unit Execute method according to claim 1 to 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 true CN110275701A (en) 2019-09-24
CN110275701B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111221512A (en) * 2020-01-03 2020-06-02 杭州涂鸦信息技术有限公司 Function module mixing method, electronic device, and storage medium
CN113671360A (en) * 2020-05-13 2021-11-19 圣邦微电子(北京)股份有限公司 I2C interface device testing method and device and I2C interface device

Citations (17)

* 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
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
US20150347096A1 (en) * 2014-06-02 2015-12-03 Blackwatch International Generic Template Node for Developing and Deploying Model Software Packages Made Up Of Interconnected Working Nodes
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
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
CN108509212A (en) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 Application program update test method, device, terminal device and storage medium
CN108563431A (en) * 2018-04-20 2018-09-21 云宏信息科技股份有限公司 Software development methodology, device, computer readable storage medium and electronic equipment
CN108632361A (en) * 2018-04-12 2018-10-09 武汉斗鱼网络科技有限公司 A kind of webpage loading method, server, system and storage medium
CN108694039A (en) * 2018-05-14 2018-10-23 链家网(北京)科技有限公司 A kind of efficiency of research and development promotion optimization method and device of agility flow
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
CN109375902A (en) * 2018-09-13 2019-02-22 红色江山(湖北)导航技术有限公司 Off-line data processing software kit designs method based on OriginC programming
CN109710340A (en) * 2019-01-18 2019-05-03 北京顺丰同城科技有限公司 Software tool call method and device, software tool packaging method and device

Patent Citations (17)

* 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
US20150347096A1 (en) * 2014-06-02 2015-12-03 Blackwatch International Generic Template Node for Developing and Deploying Model Software Packages Made Up Of Interconnected Working Nodes
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
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
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
CN108509212A (en) * 2018-02-07 2018-09-07 平安科技(深圳)有限公司 Application program update test method, device, terminal device and storage medium
CN108632361A (en) * 2018-04-12 2018-10-09 武汉斗鱼网络科技有限公司 A kind of webpage loading method, server, system and storage medium
CN108563431A (en) * 2018-04-20 2018-09-21 云宏信息科技股份有限公司 Software development methodology, 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
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
CN109375902A (en) * 2018-09-13 2019-02-22 红色江山(湖北)导航技术有限公司 Off-line data processing software kit designs method based on OriginC programming
CN109710340A (en) * 2019-01-18 2019-05-03 北京顺丰同城科技有限公司 Software tool call method and device, software tool packaging method and device

Non-Patent Citations (1)

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

Cited By (3)

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

Also Published As

Publication number Publication date
CN110275701B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN109117361B (en) Remote debugging method, related equipment and system for small program
JP4909591B2 (en) System and method for creating and communicating with component-based wireless applications
CN107277153A (en) Method, device and server for providing voice service
CN112653618B (en) Gateway registration method and device of micro-service application API (application program interface) endpoint
CN109558202A (en) Original list development approach, device, equipment and storage medium based on small routine
CN111177112A (en) Database blocking method and device based on operation and maintenance management system and electronic equipment
EP2418825A1 (en) Method and system for generating open telecommunication service based on internet
CN109150904A (en) Interface service call method and terminal device
CN107844324A (en) Customer terminal webpage redirects treating method and apparatus
CN107040609A (en) A kind of network request treating method and apparatus
CN109672580A (en) Full link monitoring method, apparatus, terminal device and storage medium
CN108055688A (en) A kind of distribution method and device for intelligent display device, terminal device
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN110286939A (en) Development approach, device, equipment and the storage medium of Software Development Kit
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN107835181A (en) Right management method, device, medium and the electronic equipment of server cluster
CN110070394A (en) Data processing method, system, medium and calculating equipment
CN110275701A (en) Data processing method, device, medium and calculating equipment
CN114500481A (en) Service request processing method, system and device
CN102402455A (en) Method and device for calling dynamic link library (DLL)
CN109684027A (en) The method and apparatus of dynamically track Java Virtual Machine operation
CN108959294A (en) A kind of method and apparatus accessing search engine
CN112243016A (en) Middleware platform, terminal equipment, 5G artificial intelligence cloud processing system and processing method
CN112015383A (en) Login method and device

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