CN109725944A - Remote procedure calling (PRC) method and device, electronic equipment, storage medium - Google Patents

Remote procedure calling (PRC) method and device, electronic equipment, storage medium Download PDF

Info

Publication number
CN109725944A
CN109725944A CN201811644116.3A CN201811644116A CN109725944A CN 109725944 A CN109725944 A CN 109725944A CN 201811644116 A CN201811644116 A CN 201811644116A CN 109725944 A CN109725944 A CN 109725944A
Authority
CN
China
Prior art keywords
file
calling
remote procedure
call
result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811644116.3A
Other languages
Chinese (zh)
Inventor
苗雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sankuai Online Technology Co Ltd
Original Assignee
Beijing Sankuai Online Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sankuai Online Technology Co Ltd filed Critical Beijing Sankuai Online Technology Co Ltd
Priority to CN201811644116.3A priority Critical patent/CN109725944A/en
Publication of CN109725944A publication Critical patent/CN109725944A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of remote procedure calling (PRC) method and device, electronic equipment, storage mediums, are related to big data technical field, this method comprises: receiving and responding the call request including coordinates logo;According to the coordinates logo downloading and the associated specified archive file of the coordinates logo received, and the calling for generating the path including storing the specified archive file describes file;Call the agents document with independent memory headroom and independent Classloader, so that the agents document, which describes the file load specified archive file generation result by the calling, describes file, and file is described by the result and carries out remote procedure call.The disclosure can with fast accurate carry out remote procedure call.

Description

Remote procedure calling (PRC) method and device, electronic equipment, storage medium
Technical field
This disclosure relates to big data technical field, in particular to a kind of remote procedure calling (PRC) method, remote process tune With device, electronic equipment and computer readable storage medium.
Background technique
When carrying out business processing, it usually needs carry out service call, between client and server-side with more accurately Carry out business processing.
In the related technology, it when server-side and client are called, is carried out usually using Classloader.But class adds Carry and need the set membership of BindingContext in device, using same memory Classloader when may cause jar file conflict, it is right Calling has an impact;In addition, needing to write different code for different calling processes to be called, therefore call efficiency Lower and calling process is inconvenient.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of remote procedure calling (PRC) method and device, electronic equipment, storage medium, in turn Overcome the problems, such as to be unable to fast accurate calling caused by the limitation and defect due to the relevant technologies at least to a certain extent.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to one aspect of the disclosure, a kind of remote procedure calling (PRC) method is provided, comprising: receive and respond including coordinate The call request of mark;According to receive the coordinates logo downloading with the associated specified archive file of the coordinates logo, And the calling for generating the path including storing the specified archive file describes file;Calling is with independent memory headroom and solely The agents document of vertical Classloader, so that the agents document, which describes file by the calling, loads the specified filing text Part generates result and describes file, and describes file by the result and carry out remote procedure call.
In a kind of exemplary embodiment of the disclosure, the method also includes: using independent Classloader and instead It penetrates mec hanism encapsulation template formula and constructs the agents document;Or program language mould plate technique is used, the specified archive file is write Enter template file and be packaged, stand-alone service code is generated, and the stand-alone service code is subjected to independent deployment, with building The agents document.
According to one aspect of the disclosure, a kind of remote procedure calling (PRC) method is provided, comprising: sending includes coordinates logo Call request, and generated using the agents document with independent memory headroom and independent Classloader, reading service end Call description file;The corresponding specified archive file of the calling description file is loaded, and generates result and describes file;It will be described As a result it describes file and is sent to server-side, to describe file and server-side progress remote procedure call by the result.
In a kind of exemplary embodiment of the disclosure, the corresponding specified archive file bag of the calling description file is loaded It includes: the corresponding specified archive file of calling description file described in dynamically load, and by reflection mechanism to agency's text The interface of part is reflected, to carry out remote procedure call.
In a kind of exemplary embodiment of the disclosure, the method also includes: file is described by parsing the calling And the result describes the JSON character string in file and carries out remote procedure call.
In a kind of exemplary embodiment of the disclosure, the method also includes: after completing remote procedure call, release Put memory headroom shared by the agents document.
In a kind of exemplary embodiment of the disclosure, the method also includes: file is described by parsing the calling Call default agents document.
According to one aspect of the disclosure, a kind of remote procedure call device is provided, comprising: request receiving module is used for It receives and responds the call request including coordinates logo;File download module, for according under the coordinates logo received Load and the associated specified archive file of the coordinates logo, and generating includes the calling for storing the path of the specified archive file File is described;Control module is called, for calling the agents document with independent memory headroom and independent Classloader, with So that the agents document is described the file load specified archive file generation result by the calling and describe file, and passes through The result describes file and carries out remote procedure call.
According to one aspect of the disclosure, a kind of remote procedure call device is provided, comprising: file read module is used for The call request including coordinates logo is sent, and utilizes agency's text with independent memory headroom and independent Classloader Part, the calling that reading service end generates describe file;File load module, for loading the corresponding finger of the calling description file Determine archive file, and generates result and describe file;Control module is called, is sent to service for the result to be described file End, to describe file and server-side progress remote procedure call by the result.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor;And memory, for storing The executable instruction of the processor;Wherein, the processor is configured to above-mentioned to execute via the executable instruction is executed Remote procedure calling (PRC) method described in any one.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes remote procedure calling (PRC) method described in above-mentioned any one when being executed by processor.
A kind of remote procedure calling (PRC) method, the remote procedure call device, electronics provided in disclosure exemplary embodiment In equipment and computer readable storage medium, on the one hand, after server-side generates calling description file, by calling with only Corresponding specified archive file in description file is called in the agents document load of vertical memory headroom and independent Classloader Remote procedure call is completed, so that when using the Classloader of same memory not will lead to agents document conflict, it will not be right Calling process impacts, to carry out accurately calling process.On the other hand, it is retouched by the result for calling agents document to generate It states file and carries out remote procedure call, avoid the process for writing code when being called again, reduce operating procedure, improve The efficiency of remote procedure call can be realized without coding remote procedure call, improve convenience.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of remote procedure calling (PRC) method schematic diagram in disclosure exemplary embodiment.
Fig. 2 schematically shows another remote procedure calling (PRC) method schematic diagram in disclosure exemplary embodiment.
Fig. 3 schematically shows the interaction figure of disclosure exemplary embodiment medium-long range procedure call PROCEDURE.
Fig. 4 schematically shows a kind of block diagram of remote procedure call device in disclosure exemplary embodiment.
Fig. 5 schematically shows the block diagram of another remote procedure call device in disclosure exemplary embodiment.
Fig. 6 schematically shows the block diagram of a kind of electronic equipment in disclosure exemplary embodiment.
Fig. 7 schematically shows a kind of program product in disclosure exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.These function can be realized using software form Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place These functional entitys are realized in reason device device and/or microcontroller device.
A kind of remote procedure calling (PRC) method is provided firstly in this example embodiment, can be applied to client and service The application scenarios of remote procedure call are carried out between end.The executing subject of step shown in Fig. 1 is server-side, with reference to Fig. 1 institute Show, which is described in detail.
In step s 110, the call request including coordinates logo is received.
In the present exemplary embodiment, call request can be sent by client.Coordinates logo can be Maven coordinate, adjust With may include one or more Maven coordinates in request.In order to automatically parse any one java component, Maven Maven coordinate can be used to be identified these components, i.e., any one component can use Maven coordinate to carry out unique Mark.It can determine that a component, component may include plug-in unit, project output or specified jar according to Maven coordinate.
The coordinate element of Maven includes groupId, artifactId, version, packaging, classfier.Only Correct coordinate element is provided, Maven can find corresponding component according to the coordinate element of offer.Detecting client After having sent call request, server-side corresponding with the client can receive the call request that this includes coordinates logo.
In the step s 120, according to the coordinates logo downloading and the associated specified filing of the coordinates logo received File, and the calling for generating the path including storing the specified archive file describes file.
In the present exemplary embodiment, after determining coordinates logo, specified archive file can be downloaded according to coordinates logo.It is specified to return Files refer to archive file corresponding with Maven coordinate, can be indicated with specified jars.Archive file for example can be JAR (Java Archive, Java archive file), i.e. JAR packet.JAR be with platform-independent file format, it allows will be many File is combined into a compressed file.Jar file is applied not only to compress and issue, but also for disposing and encapsulating library, component And plug-in card program, and can directly be used by the tool as compiler and JVM.It include special file in JAR, such as Manifests and deployment descriptor, are used to refer to how tool handles specific JAR.In this step, server-side is determining itself Interface to Maven coordinate when, can be according in Maven coordinate if specifying A.JAR and B.JAR in Maven coordinate Specified coordinate element download jar file corresponding with coordinate element, that is, download A.JAR and B.JAR.It is wrapped in the jar file Include compressed code file and alternative document etc..
After the i.e. specified archive file of the specified jars of downloading, the specified archive file of downloading can be stored to this dicang It is managed collectively in library, that is, file.Ware-house here refers to Maven being total in some unified position storage all items The component enjoyed, this unified position, just referred to as warehouse.Any component has unique coordinate, and Maven is according to this seat Mark defines unique store path of the component (such as specified archive file) in warehouse.
In addition to this, it after downloading specified archive file, also produces and calls description file.Call description file can also File is described with referred to as entrance, the either entrance of channel when for indicating that server-side and client are called.Call description It for example can include but is not limited to the interface for calling, the address for calling in file and store specified archive file The parameters such as the path of ware-house here.In this way, file can be described according to the calling of generation, accurately obtains specified archive file and exist Store path in ware-house here.Calling description file can be the character string of JSON form, and JSON can be by JavaScript The one group of data indicated in object are converted to character string, this word then can be easily transmitted between network or program Symbol string, and it is reduced to the data format that each programming language is supported when needed.
In step s 130, the agents document with independent memory headroom and independent Classloader is called, so that institute It states agents document and file is described by the calling description file load specified archive file generation result, and by described As a result it describes file and carries out remote procedure call.
In the present exemplary embodiment, agents document is unrelated with the contextual information of current application, thus agents document be with The unrelated self-existent jar file of server-side, can be indicated with java agent jar.There can be independence in agents document Memory headroom and independent Classloader.Agents document refers to serving as client (such as financial service test data structure Make platform) agency, can be to write jar file in advance.
For independent agents document, independent Classloader can be used and reflection mechanism encapsulation template formula is called Agents document described in code construction;Or program language mould plate technique can also be used, by specified archive file write-in template text Part is simultaneously packaged, and generates stand-alone service code, and the stand-alone service code is carried out independent deployment, to construct agency's text Part.For example, using feemarker, velocity etc. similar program language mould plate technique writes the corresponding jar packet relied on After entering template pom.xml file, dispose using mvn package dynamic generation stand-alone service code and independently, this is independently disposed Application serve as agent complete call.Agents document can be encapsulated in advance by both modes, so that agents document and server-side It is completely independent, so as to realize full decoupled server-side and client.
After the calling for generating the path including storing specified archive file describes file, file tune can be described based on calling With agents document independent and with current application context-free, with independent memory headroom and independent Classloader Java agent jar, thus by calling packaged agents document to complete remote procedure call.Specifically, agents document exists In called process, it can be read in step S120 and file described by the specific calling that server-side generates, to obtain specific The information such as calling interface, call address.After obtaining the information such as calling interface and call address, packaged generation can be called It manages file and carries out remote procedure call.
Specifically, agents document, can be by calling description file dynamically load to call description when being called by server-side The bright specified archive file of document.Wherein, the specified archive file for calling description document bright is referred to according to Maven The specified jars of coordinate downloading.Further, agents document can also reflect in packaged agents document memory headroom Interface is completed RPC (Remote Procedure Call Protocol, remote procedure call protocol) and is called.In this way, can It determines for executing the interface of calling process in agents document, so as to accurately be called.
Further, after loading specified archive file, agents document can also generate result and describe file, server-side The result that agents document generation can be read describes file to complete remote procedure call.Specifically, as a result describing can in file Character string including describing calling process and call result, character string can be for example JSON character string either other forms Character string.Due to including character string in call by result file, only needs character string interaction to can be carried out calling, realize The purpose that can be called by character string without hard coded completely.
Next, executing subject can be representative refering to what is shown in Fig. 2, providing another remote procedure calling (PRC) method Or act as the agents document that client is called.Refering to what is shown in Fig. 2, being retouched in detail to the remote procedure calling (PRC) method It states.
In step S210, the call request including coordinates logo is sent, and using with independent memory headroom and solely The agents document of vertical Classloader, the calling that reading service end generates describe file.
In the present exemplary embodiment, agents document refers to serving as client, and (such as financial service test data construction is flat Platform) agency, can be to write jar file in advance.Call request including coordinates logo can be sent to by agents document Corresponding server-side, so that server-side responds the call request, the corresponding specified archive file of downloading call request, and life File is described at calling.
Agents document can read server-side and generate specific calling description file when being called by server-side.Agents document With independent memory headroom and independent Classloader.Classloader is the class for being used to load class file.The source Java generation Code is compiled into class file by javac compiler.Then JVM executes program to execute the bytecode in class file.There are three types of Default the Classloader that uses: Bootstrap Classloader, Extension Classloader and System Classloader (or are named Make Application Classloader).
By the calling describe file to the agents document with independent memory headroom and independent Classloader into Row call, due to Classloader be it is independent, do not need the set membership of BindingContext, use the Classloader of same memory When can be avoided jar file conflict, avoid due to bind set membership, use the Classloader of same memory, it is likely that lead The problem of causing jar conflict also avoids completing jar once reading due to the Classloader of binding set membership, is then difficult correct Completion unloading work, thus reduce calling is had an impact.
In step S220, the corresponding specified archive file of the calling description file is loaded, and generate result description text Part.
In the present exemplary embodiment, agents document java agent jar can according to call description file dynamically load by The specified jars of server-side downloading.Specifically, due to calling in description file comprising the path for storing specified archive file, generation It, can be according to the storage road for the specified archive file for calling description file to be downloaded after managing file reading calling description file Diameter, so as to accurately load specified archive file.
When dynamically load presets agents document, the agents document can be handled by reflection mechanism, to carry out Remote procedure call.The function of dynamic acquisition information and remote procedure call object method may be implemented in reflection mechanism.Pass through Reflection mechanism, for any one class, can know all properties and method of this class in operating status;For any One object can call its any means and attribute.When being reflected by reflection mechanism agents document, specifically Interface in agents document is reflected, to carry out remote procedure call.Thus, it may be determined that for holding in agents document The interface of row calling process, so as to accurately be called.
Further, after loading specified archive file or simultaneously, agents document can be generated according to load condition and be tied Fruit describes file.As a result describing file can be used for indicating remote procedure call result, wherein may include call interface or It is the information, such as which function, which test case etc. called.Specifically, it as a result describes in file to may include that description is adjusted With the character string of process and call result, character string can be for example the character string of JSON character string either other forms.
In step S230, the result is described into file and is sent to server-side, with by the result describe file with The server-side carries out remote procedure call.
In the present exemplary embodiment, result can be described file transmission after generating result and describing file by agents document To server-side.On this basis, server-side can be read the result and describe file to complete remote procedure call, to retouch by result It states file and conveniently clearly shows call result.Due to result describe in file include is JSON character string, service By calling description file and result to describe the JSON character string complete call in file between end and agents document, reach complete Purpose full by character string without coding, so as to more easily carry out remote procedure call.
It should be noted that after completing remote procedure call by the agents document, agents document it is releasable its Shared memory headroom.That is, the memory headroom of the independent agents document jar load can be destroyed.Since agents document has solely Vertical memory headroom and independent Classloader, therefore after remote procedure call completion, can will be where agents document Memory headroom discharge, while also uninstalling the Classloader that agents document includes, avoid due to being bundled with set membership And the problem of can not unloading.
In the present exemplary embodiment, in addition to this, the agents document java agent jar called every time due to the program All there is very strong independence, be all independent individual, possess independent memory headroom, so any conflict will not be generated, i.e., It is achievable concurrently to use, concurrent invocation is realized based on locking description fileversion number.
You need to add is that agents document when being called by server-side, can also call default agents document.Herein default Agents document refers to third-party application file, such as can be in-company thrift server server.Agents document Agents document can be preset with dynamically load, complete the calling of agents document itself.Since third-party application file can be distribution Formula application file, therefore default agents document may include one or more.In this way, agents document java agent The calling that jar itself passes through parsing JSON form, which describes file, to be called third-party application file.
In addition to this, when carrying out remote procedure call, can by it is described call description file in JSON character string into Row remote procedure call.Specifically, in generation, is called using independent classloader Classloader and reflection mechanism encapsulation template formula Code constructs agents document, and agents document itself passes through parsing and the JSON in description file is called to describe file, completes long-range mistake (i.e. the calling of agents document agent and server-side passes through JSON character string defined in calling description file completely and hands over journey calling Mutually), achieved the purpose that call by character string without hard coded completely, and then improved and call efficiency and convenience.
By the method in the present exemplary embodiment, server-side can have independent memory headroom and independence by calling The agents document of Classloader will not so that not will lead to agents document conflict when using the Classloader of same memory Calling process is impacted, guarantees to carry out accurately calling process.By the result description for calling description file and generation File carries out remote procedure call, avoids the process for writing code when being called again, reduces operating procedure, improves remote The efficiency of the journey invocation of procedure easily can realize remote procedure call by non-coded manner.In the present exemplary embodiment Remote procedure calling (PRC) method is applicable not only to the remote procedure call of Thrift software frame, could be applicable to other frameworks RPC is called, therefore has versatility, and application range is more extensive.
Fig. 3 shows call flow chart, specifically includes the following steps:
In step S301, the interface Maven coordinate of server-side QDC Server is sat according to the Maven received Mark downloads jar packet.
In step s 302, local jar storage repository is written into the jar packet of downloading.
In step S303, after downloading jar packet, server-side, which generates, calls description file, includes in calling description file Store the path of the jar packet of downloading.
In step s 304, server-side is by calling description file to call packaged independent agents document java agent jar。
In step S305, the specified archive file in description file is called in agents document java agent jar load.
In step S306, agents document generates result and describes file, and result is described file and is sent to server-side, with So that server-side and agents document is described file by result and completes remote procedure call.
In step S307, agents document java agent jar loads a default agents document, that is, initiates itself and adjust With, and receive the call result to default agents document.
In step S308, agents document java agent jar loads another default agents document, to initiate itself It calls, and receives the call result to default agents document.
By the method in Fig. 3, there is agency's text of independent memory headroom and independent Classloader by calling Part will not impact calling process so that not will lead to agents document conflict when using the Classloader of same memory, To carry out accurately calling process.File is described by the result that agents document generates and carries out remote procedure call, is avoided The process for writing code when being called again, reduces operating procedure, improves the efficiency of remote procedure call, can be realized reality When remote procedure call.By calling the JSON character string complete call in description file between server-side and agents document, reach It has arrived completely by purpose of the character string without coding, so as to more easily carry out remote procedure call.
The disclosure additionally provides a kind of remote procedure call device.Refering to what is shown in Fig. 4, the remote procedure call device 400 It may include: request receiving module 401, for receiving and responding the call request including coordinates logo;File download module 402, for and generating packet according to the coordinates logo downloading and the associated specified archive file of the coordinates logo received It includes and stores the calling in the path of the specified archive file and describe file;File calling module 403, for calling with independent The agents document of memory headroom and independent Classloader, so that the agents document, which describes file by the calling, loads institute It states specified archive file generation result and describes file, and file is described by the result and carries out remote procedure call.
In a kind of exemplary embodiment of the disclosure, described device further include: the first building module, for using independent Classloader and reflection mechanism encapsulation template formula construct the agents document;Or second building module, for use program Language template technology by the specified archive file write-in template file and is packaged, and generates stand-alone service code, and by institute It states stand-alone service code and carries out independent deployment, to construct the agents document.
The disclosure additionally provides a kind of remote procedure call device 500.Refering to what is shown in Fig. 5, the remote procedure call device 500 may include: file read module 501, for sending the call request including coordinates logo, and it is independent interior using having The agents document in space and independent Classloader is deposited, the calling that reading service end generates describes file;File load module 502, for loading the corresponding specified archive file of the calling description file, and generates result and describe file;Call control mould Block 503 is sent to server-side for the result to be described file, with by the result describe file and the server-side into Row remote procedure call.
In a kind of exemplary embodiment of the disclosure, file load module 502 includes: that description is called described in dynamically load The corresponding specified archive file of file, and reflected by interface of the reflection mechanism to the agents document, to carry out Remote procedure call.
In a kind of exemplary embodiment of the disclosure, described device further include: control module is called, for passing through parsing The calling description file and the result describe the JSON character string in file and carry out remote procedure call.
In a kind of exemplary embodiment of the disclosure, described device further include: memory release module, for completing far After the journey invocation of procedure, memory headroom shared by the agents document is discharged.
In a kind of exemplary embodiment of the disclosure, described device further include: default agents document calling module is used for The default agents document of file calling is described by parsing the calling.
It should be noted that the detail of each module is in corresponding long-range mistake in above-mentioned remote procedure call device It is described in detail in journey call method, therefore details are not described herein again.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 6.The electronics that Fig. 6 is shown Equipment 600 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap It includes but is not limited to: at least one above-mentioned processing unit 610, at least one above-mentioned storage unit 620, the different system components of connection The bus 630 of (including storage unit 620 and processing unit 610).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 610 Row, so that various according to the present invention described in the execution of the processing unit 610 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the step of processing unit 610 can execute as illustrated in fig. 1 or fig. 2.
Storage unit 620 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 6201 and/or cache memory unit 6202, it can further include read-only memory unit (ROM) 6203.
Storage unit 620 can also include program/utility with one group of (at least one) program module 6205 6204, such program module 6205 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.
Bus 630 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Display unit 640 can be display having a display function, to pass through the display exhibits by processing unit 610 Execute processing result obtained from the method in the present exemplary embodiment.Display include but is not limited to liquid crystal display either Other displays.
Electronic equipment 600 can also be with one or more external equipments 800 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 600 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 600 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with By network adapter 660 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 660 is communicated by bus 630 with other modules of electronic equipment 600. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 600, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method of embodiment according to the present invention 700, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
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 can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: 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 only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, 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-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (11)

1. a kind of remote procedure calling (PRC) method characterized by comprising
It receives and responds the call request including coordinates logo;
According to the coordinates logo downloading and the associated specified archive file of the coordinates logo received, and generating includes depositing The calling for storing up the path of the specified archive file describes file;
The agents document with independent memory headroom and independent Classloader is called, so that the agents document is described in The calling description file load specified archive file generates result and describes file, and describes file by the result and carry out far The journey invocation of procedure.
2. remote procedure calling (PRC) method according to claim 1, which is characterized in that the method also includes:
The agents document is constructed using independent Classloader and reflection mechanism encapsulation template formula;Or
Using program language mould plate technique, by the specified archive file write-in template file and it is packaged, generates independent clothes Business code, and the stand-alone service code is subjected to independent deployment, to construct the agents document.
3. a kind of remote procedure calling (PRC) method characterized by comprising
The call request including coordinates logo is sent, and utilizes the agency with independent memory headroom and independent Classloader File, the calling that reading service end generates describe file;
The corresponding specified archive file of the calling description file is loaded, and generates result and describes file;
The result is described into file and is sent to server-side, to describe file and server-side progress remotely by the result The invocation of procedure.
4. remote procedure calling (PRC) method according to claim 3, which is characterized in that the load calling description file is corresponding Specified archive file include:
The corresponding specified archive file of calling description file described in dynamically load, and by reflection mechanism to agency's text The interface of part is reflected, to carry out remote procedure call.
5. remote procedure calling (PRC) method according to claim 3 or 4, which is characterized in that the method also includes:
By parsing, the calling describes file and the result describes the JSON character string in file and carries out remote process tune With.
6. remote procedure calling (PRC) method according to claim 5, which is characterized in that the method also includes:
After completing remote procedure call, memory headroom shared by the agents document is discharged.
7. remote procedure calling (PRC) method according to claim 3, which is characterized in that the method also includes:
The default agents document of file calling is described by parsing the calling.
8. a kind of remote procedure call device characterized by comprising
Request receiving module, for receiving and responding the call request including coordinates logo;
File download module, for according to the coordinates logo downloading and the associated specified filing of the coordinates logo received File, and the calling for generating the path including storing the specified archive file describes file;
File calling module, for calling the agents document with independent memory headroom and independent Classloader, so that institute It states agents document and file is described by the calling description file load specified archive file generation result, and by described As a result it describes file and carries out remote procedure call.
9. a kind of remote procedure call device characterized by comprising
File read module, for sending the call request including coordinates logo, and using with independent memory headroom and solely The agents document of vertical Classloader, the calling that reading service end generates describe file;
File generating module for loading the corresponding specified archive file of the calling description file, and generates result description text Part;
Call control module, be sent to server-side for the result to be described file, with by the result describe file and The server-side carries out remote procedure call.
10. a kind of electronic equipment characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to come described in perform claim requirement 1-7 any one via the execution executable instruction Remote procedure calling (PRC) method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Remote procedure calling (PRC) method described in claim 1-7 any one is realized when being executed by processor.
CN201811644116.3A 2018-12-29 2018-12-29 Remote procedure calling (PRC) method and device, electronic equipment, storage medium Pending CN109725944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811644116.3A CN109725944A (en) 2018-12-29 2018-12-29 Remote procedure calling (PRC) method and device, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811644116.3A CN109725944A (en) 2018-12-29 2018-12-29 Remote procedure calling (PRC) method and device, electronic equipment, storage medium

Publications (1)

Publication Number Publication Date
CN109725944A true CN109725944A (en) 2019-05-07

Family

ID=66299485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811644116.3A Pending CN109725944A (en) 2018-12-29 2018-12-29 Remote procedure calling (PRC) method and device, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109725944A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158777A (en) * 2019-12-12 2020-05-15 中移(杭州)信息技术有限公司 Component calling method and device and computer readable storage medium
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320956B1 (en) * 1999-01-25 2001-11-20 Willow Csn, Inc. Multiple client remote agent network method
CN106557322A (en) * 2016-11-16 2017-04-05 Tcl集团股份有限公司 A kind of Android intelligent terminal shows the method and system of many mouses
CN107277022A (en) * 2017-06-27 2017-10-20 中国联合网络通信集团有限公司 Processes Tag method and device
CN108965375A (en) * 2018-05-21 2018-12-07 阿里巴巴集团控股有限公司 Service call proxy control system, method, server and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6320956B1 (en) * 1999-01-25 2001-11-20 Willow Csn, Inc. Multiple client remote agent network method
CN106557322A (en) * 2016-11-16 2017-04-05 Tcl集团股份有限公司 A kind of Android intelligent terminal shows the method and system of many mouses
CN107277022A (en) * 2017-06-27 2017-10-20 中国联合网络通信集团有限公司 Processes Tag method and device
CN108965375A (en) * 2018-05-21 2018-12-07 阿里巴巴集团控股有限公司 Service call proxy control system, method, server and readable storage medium storing program for executing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZLCOOK: ""maven---4构件的坐标"", 《HTTPS://WWW.JIANSHU.COM/P/30ECE967DCCD》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158777A (en) * 2019-12-12 2020-05-15 中移(杭州)信息技术有限公司 Component calling method and device and computer readable storage medium
CN111158777B (en) * 2019-12-12 2023-10-27 中移(杭州)信息技术有限公司 Component calling method, device and computer readable storage medium
CN111309335A (en) * 2020-02-28 2020-06-19 腾讯音乐娱乐科技(深圳)有限公司 Plug-in application compiling method and device and computer readable storage medium
CN111309335B (en) * 2020-02-28 2023-08-15 腾讯音乐娱乐科技(深圳)有限公司 Compiling method and device of plug-in application and computer readable storage medium

Similar Documents

Publication Publication Date Title
US10185558B2 (en) Language-independent program composition using containers
US7756905B2 (en) System and method for building mixed mode execution environment for component applications
US8612947B2 (en) System and method for remotely compiling multi-platform native applications for mobile devices
US8549471B2 (en) Method and apparatus for providing API service and making API mash-up, and computer readable recording medium thereof
CN109062563B (en) Method and device for generating page
CN109002320A (en) For the update method of software development kit, system, electronic equipment and storage medium
CN106598662B (en) Android-based application loading method and device
CN111857658A (en) Method, device, medium and electronic equipment for rendering dynamic component
CN109725944A (en) Remote procedure calling (PRC) method and device, electronic equipment, storage medium
CN113127136B (en) Docker mirror image generation method and device, storage medium and electronic equipment
CN110618768B (en) Information presentation method and device
CN113761428A (en) Page rendering method, device and system, storage medium and electronic equipment
CN109343970B (en) Application program-based operation method and device, electronic equipment and computer medium
CN110851211A (en) Method, apparatus, electronic device, and medium for displaying application information
CN109144864B (en) Method and device for testing window
CN111158661A (en) System interface docking method, device, medium and electronic equipment
CN110489326A (en) HTTPAPI adjustment method device, medium and equipment based on IDS
CN115729604A (en) Micro application integration method, system, electronic device and storage medium
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN116820663A (en) Mirror image construction method, device, storage medium and apparatus
CN117337429A (en) Deploying a machine learning model
CN110278144B (en) Card message sending method, device, medium and electronic equipment
CN114422637B (en) Media request processing method and cross-platform engine system
CN111885194B (en) Communication method and device for communication application and electronic equipment
CN113821248B (en) Service method of vehicle-end software, vehicle-end software and related equipment thereof

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507