Font Size: a A A

Design And Implementation Of GRPC-related Tools For The Vala Language

Posted on:2022-09-20Degree:MasterType:Thesis
Country:ChinaCandidate:Q Z YangFull Text:PDF
GTID:2518306524479344Subject:Instrument Science and Technology
Abstract/Summary:PDF Full Text Request
With the gradual development of electronic information industry,the scale of electronic measurement is expanding,the test process is becoming more and more complex,and the demand for high performance electronic measurement instrument program control is increasing day by day.vala is an emerging programming language,which is highly efficient,fast execution speed,good performance,good compatibility with the underlying hardware system,and also has a high-level language abstraction and convenient syntax characteristics,is embedded,electronic measurement development.For modern measurement,modularity,networking and remoteness have become important requirements and development trends of modern electronic measurement.Service-oriented system architecture and microservice architecture have been used in many systems,providing a new opportunity for electronic measurement to present different test modules of an electronic measurement system in the form of different services,which cannot be done without the software support of RPC(Remote Procedure Call)framework.gRPC is an RPC framework developed by Google.gRPC is an RPC framework developed by Google,which provides RPC function interaction between many languages,such as Python and Java,but does not provide RPC support for Vala.gRPC is a serialization mechanism that matches gRPC to solve the serialization problem in RPC data transfer,but also does not include support for Vala.This paper focuses on this,combining the advantages of Vala language in the field of modern electronic measurement and the needs and trends of modern electronic measurement,and designs a gRPC software tool for Vala language to realize the support of Vala language for gRPC framework,which is studied as follows.(1)This paper designs a serialization library for Vala language based on this protocol,which adopts the idea of hierarchical design,based on the coding algorithm unique to the Protocol Buffer mechanism,the core base class and the property registration mechanism are combined to provide all derived classes with data serialization and deserialization methods based on the underlying coding and decoding module,and finally,according to the user It finally generates usable Vala library files based on the user-defined proto files,realizing the function of Vala language serialization software tool.The serialization library can interconvert binary information sequences with Vala language,which can be used in scenarios such as data transfer or RPC,and provides software support for realizing remote procedure calls in Vala language.(2)Based on the Vala language serialization library,this paper designs the gRPC library for Vala language.By adapting the Vala language's unique Vapi mechanism to the core underlying API in the gRPC core library,Vala language can use the underlying functional interface of gRPC implemented in C language.Through the software design ideas of layered design and modular design,the design abstracts the underlying logic into client-side and server-side base classes that contain the main functional behaviors of RPC available to upper-level applications,and users can implement RPC functions by inheriting from these functional base classes.By combining the software library and the gRPC framework,the remote procedure calls between Vala language and other programming languages can be realized,and the electronic measurement equipment programmed in Vala language can realize remote procedure calls,remote testing,modular testing,etc.with other upper-layer application software through this software tool.
Keywords/Search Tags:data serialization, remote procedure calls, gRPC, Vala language
PDF Full Text Request
Related items