CN110708366A - Plug-in process management method, related method and related device - Google Patents

Plug-in process management method, related method and related device Download PDF

Info

Publication number
CN110708366A
CN110708366A CN201910906154.XA CN201910906154A CN110708366A CN 110708366 A CN110708366 A CN 110708366A CN 201910906154 A CN201910906154 A CN 201910906154A CN 110708366 A CN110708366 A CN 110708366A
Authority
CN
China
Prior art keywords
plug
program
data
service request
service
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
CN201910906154.XA
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.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network 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 Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology Co Ltd
Priority to CN201910906154.XA priority Critical patent/CN110708366A/en
Publication of CN110708366A publication Critical patent/CN110708366A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/544Buffers; Shared memory; Pipes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a management method of a plug-in process. The invention also discloses a service request method, a computer device, a management system of the plug-in process, a service request system of the plug-in process and a computer readable storage medium. The invention creates the plug-in process by obtaining the obtained starting script information, runs the plug-in program in the plug-in process, namely runs the plug-in program in an independent process by different processes, and finally interacts between the main process and the plug-in process by adopting a communication data sending mode to realize the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.

Description

Plug-in process management method, related method and related device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a management method of a plug-in process, a service request method, a computer device, a management system of a plug-in process, a service request system of a plug-in process, and a computer-readable storage medium.
Background
Currently, in client software technology, multiple functions are usually included in one client, that is, different functions are included in the same client program. Therefore, the situation that different plug-ins in a program of one client call each other to realize the plug-in function occurs.
However, different functions are integrated in one client program, and plug-ins of different functions run in the main rendering process, so that the operation authority of the plug-ins on the UI cannot be limited, and the main process is sometimes stuck. At this time, a stuck condition occurs, and it cannot be determined whether the stuck point is operated by the host process or the plug-in process, so that the stuck point cannot be accurately determined, and the stuck phenomenon cannot be well processed.
Therefore, how to avoid the stuck condition is a key concern for those skilled in the art.
Disclosure of Invention
The present invention mainly aims to provide a management method, a service request method, a computer device, a management system of a plug-in process, a service request system of a plug-in process, and a computer readable storage medium, and aims to solve the problem of how to avoid the occurrence of a stuck condition.
In order to achieve the above object, the present invention provides a method for managing a plug-in process, including:
the method comprises the steps that a main process obtains starting script information of a plug-in program;
and creating a plug-in process according to the starting script information, and running the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process.
Optionally, the method further includes:
and when the communication data is service request data, executing corresponding service calling operation on the plug-in process according to the service request data.
Optionally, when the communication data is service request data, executing a corresponding service invocation operation on the plug-in process according to the service request data, including:
when the communication data is server request data, determining corresponding service calling operation according to the message identifier of the service request data, and executing the service calling operation to obtain a request result;
and sending the request result to the plug-in process.
Optionally, determining a corresponding service invocation operation according to the message identifier of the service request data, and executing the service invocation operation to obtain a request result, where the method includes:
when the message identifier of the service request data is UI calling, executing UI calling operation according to the service request data to obtain a UI interface operation result; and taking the UI interface operation result as the request result.
Optionally, the method further includes:
performing performance monitoring processing on the plug-in process to obtain monitoring data;
and when the plug-in process is abnormal, the monitoring data is used as abnormal data and is sent so as to execute repair operation on the plug-in process according to the abnormal data.
In order to achieve the above object, the present invention further provides a service request method for a plug-in process, including:
the plug-in process is connected to the main process through a socket protocol;
sending service request data to the host process according to a file socket form, so that the host process executes corresponding service calling operation according to the service request data to obtain a request result, and sending the request result to the plug-in process;
and when the request result is received, analyzing the request result to obtain a target request result.
To achieve the above object, the present invention further provides a computer apparatus, which includes a memory and a processor, wherein the memory stores a computer program operable on the processor, and the computer program, when executed by the processor, implements the management method and/or the service request method.
In order to achieve the above object, the present invention further provides a system for managing a plug-in process, the system including:
the starting script acquisition unit is used for acquiring starting script information of the plug-in program;
and the plug-in process creating unit is used for creating a plug-in process according to the starting script information and running the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process.
In order to achieve the above object, the present invention further provides a service request system of a plug-in process, the system including:
the communication connection unit is used for connecting to a main process through a socket protocol;
the request data sending unit is used for sending the service request data to the main process according to the form of the file socket so that the main process executes corresponding service calling operation according to the service request data to obtain a request result and sends the request result to the plug-in process;
and the request result acquisition unit is used for analyzing the request result to obtain a target request result when receiving the request result.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program executable by one or more processors to implement the management method as described above and/or the service request method as described above. The plug-in process management method provided by the invention creates the plug-in process by obtaining the obtained startup script information, runs the plug-in program in the plug-in process, namely runs the plug-in program in an independent process by means of running different processes, and finally interacts between the main process and the plug-in process by means of sending communication data, so as to realize the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.
The invention also provides a service request method, a computer device, a management system of the plug-in process, a service request system of the plug-in process and a computer readable storage medium, which have the beneficial effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic flow chart of a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of a second embodiment of the present invention;
FIG. 3 is a schematic flow chart of a third embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an internal structure of a computer device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a management system for plug-in processes according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a service request system of a plug-in process according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
In the client software technology of the prior art, multiple functions are usually included in one client, that is, different functions are included in the same client program. Therefore, the situation that different plug-ins in a program of one client call each other to realize the plug-in function occurs. However, different functions are integrated in one client program, and plug-ins of different functions run in the main rendering process, so that the operation authority of the plug-ins on the UI cannot be limited, and a main process card is sometimes caused. At this time, a stuck condition occurs, and it cannot be determined whether the stuck point is operated by the host process or the plug-in process, so that the stuck point cannot be accurately determined, and the stuck phenomenon cannot be well processed.
Therefore, the invention provides a plug-in process management method, which comprises the steps of establishing a plug-in process by obtaining obtained startup script information, running a plug-in program in the plug-in process, namely running the plug-in program in an independent process by means of running different processes, and finally performing interaction between a main process and the plug-in process by means of sending communication data to realize the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of the present invention.
In one embodiment, the method may include:
s101, a main process acquires starting script information of a plug-in program;
in the step, when the plug-in program is started, the main process firstly obtains the starting script information of the plug-in process. The starting script information refers to script information required for running the plug-in program in an independent plug-in process, and the function of the starting script information includes but is not limited to scanning a manifest file of the plug-in program and creating a new plug-in process.
The obtaining mode may be that the host process obtains from a file of the plug-in, obtains the startup script information from a network, or obtains the startup script information from the source code. As can be seen, the manner of acquiring the startup script information in this step is not unique, and is not specifically limited herein.
S102, creating a plug-in process according to the starting script information, and operating the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process;
on the basis of S101, this step is intended to create a plug-in process according to the start script, and run the plug-in program in the plug-in process. Therefore, the plug-in process created in the step is used for operating the plug-in program in a process other than the main process, so that the influence of the operation of the plug-in program on the main process is avoided, the main program and the plug-in program are decoupled from each other, and the operation of each program module is more independent and does not influence each other. And moreover, the independent performance monitoring and independent deployment of the plug-in process are realized, the program updating efficiency is improved, and the program updating speed is kept.
Furthermore, when the plug-in program runs in the plug-in process, the plug-in process can have data interaction with the main program for normal running between the plug-in process and the main program, so that the function of the plug-in program is realized. Therefore, in the step, the plug-in process sends the communication data to the main process after the plug-in process, so that the data interaction between the plug-in program and the main program is realized.
Specifically, in this embodiment, after the plug-in program is run in the plug-in process, since data needs to be transmitted between the plug-in process and the host process, a corresponding communication connection needs to be established. On the basis of the established communication connection, the plug-in process and the host process mutually transmit data.
For example, when communication is performed between the plug-in process and the host process through a socket protocol, the host process is required to create a network service, create and monitor a corresponding transmission connection, receive a call request, perform analysis processing, return a result, and finally display error information. When the transmission is finished, the listening connection is disconnected. And on the other hand, the plug-in process needs to be connected to a specified main process, sends corresponding communication data to the main process, monitors the returned request result, and analyzes and processes the request result. Thus, data transmission between the plug-in process and the host process is realized in a socket form.
It is conceivable that, because the plug-in process and the main process interact in a manner of sending communication data, the permission of the plug-in program for accessing the main program is further limited by controlling the communication data.
Optionally, this step may include:
and the plug-in process sends communication data to the main process in a file socket mode.
Therefore, the alternative scheme mainly explains the data transmission mode between the plug-in process and the host process. Particularly, data transmission is carried out in a socket mode. The socket is an intermediate software abstraction layer for communication between an application layer and a TCP/IP protocol family, and specifically is a group of interfaces. The communication between the processes is carried out in a communication mode, the service request of the plug-in process can be controlled, the authority control between different plug-in processes can be realized, the data security between the processes is improved, and the program running security is guaranteed. And, when the card pause appears, the card pause situation can be relieved and the generation of the card pause can be prevented by controlling the communication.
In addition, in this embodiment, on the basis of S102, the method further includes: and when the communication data is service request data, executing corresponding service calling operation on the plug-in process according to the service request data.
That is, on the basis of S102, this step is intended to perform a corresponding service invocation operation according to the service request data when the transmitted communication data is the service request data. For example, the corresponding request results are returned to the plug-in process.
For example, when a plug-in program in the plug-in process calls a UI component to a main program of the main process, the plug-in process sends service request data of the UI call to the main process, and the main program recognizes that the communication data is the service request data related to the UI call, so that a corresponding call operation can be performed according to the service request data, and then a call result is returned to the plug-in process, so as to implement a corresponding call operation for the service.
Furthermore, different plug-in processes carry out different service requests to the host process, so that different request processing operations exist in the host process corresponding to different service request data. It can be seen that the operation adopted by the main process is not unique, and the corresponding service operation can be determined according to different types of service request data, and the service operation is executed so as to implement service invocation.
It should be noted that, in this embodiment, the service call between the plug-in process and the main process is implemented based on the sent communication data, and is not directly called to the main program by the plug-in program in the prior art. The tracing of service calling can be realized, and corresponding authority monitoring is carried out.
In addition, in the embodiment, a performance monitoring module is introduced for the exception, the CPU, the memory, the exception and the script error of each plug-in process instance, and monitors the exception data and reports the exception data to the statistical background, so that the exception data of the plug-ins can be effectively observed, the exception is positioned by combining the collected stack information with the symbol file, and the problem is conveniently exposed and repaired in time. In the prior art, no independent process is operated, so that no good monitoring can be realized.
Therefore, the method optionally further comprises:
performing performance monitoring processing on the plug-in process to obtain monitoring data; and when the plug-in process is abnormal, the monitoring data is used as abnormal data and is sent so as to execute repair operation on the plug-in process according to the abnormal data.
The performance of the plug-in process is monitored in real time, and the plug-in process only runs the plug-in program, so that the performance of the plug-in program is monitored indirectly, and the realization difficulty of monitoring the plug-in program is reduced.
In summary, in this embodiment, a plug-in process is created by obtaining the obtained startup script information, and the plug-in program is run in the plug-in process, that is, the plug-in program is run in an independent process in a manner of running through different processes, and finally, a manner of sending communication data is adopted to perform interaction between the host process and the plug-in process, so as to implement the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.
The management method of the plug-in process provided by the invention is further explained by another embodiment.
Referring to fig. 2, fig. 2 is a schematic flow chart of a second embodiment of the present invention.
In this embodiment, the method may include:
s201, the main process acquires the starting script information of the plug-in program;
s202, creating a plug-in process according to the starting script information, and operating the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process;
s203, when the communication data is server request data, determining corresponding service calling operation according to the message identifier of the service request data, and executing the service calling operation to obtain a request result;
s204, sending a request result to the plug-in process.
It can be seen that the embodiment mainly explains how the host process processes the received communication data. Specifically, the corresponding service calling operation is determined according to the message identifier of the service request data, then the service calling operation is executed to obtain a request result, and finally the request result is sent to the plug-in process. That is, in this embodiment, it is determined which service is called at this time through the message identifier.
Optionally, S203 in this embodiment may include:
when the message identifier of the service request data is UI call, executing UI call operation according to the service request data to obtain a UI interface operation result; and taking the UI interface operation result as a request result.
It can be seen that this alternative illustrates how UI calls between programs can be implemented. By adopting the alternative scheme, the UI control of the plug-in process to the main process can be realized, and the UI operation of the plug-in process can be limited due to the adoption of the communication mode for control, so that the situation that the performance of the main rendering process is influenced by the complex operation executed by the plug-in is avoided, and the program crash is avoided.
Reference may be made to the previous embodiment at S201 and S202 in the present embodiment.
In this embodiment, a plug-in process is created by obtaining the obtained start script information, and the plug-in program is run in the plug-in process, that is, the plug-in program is run in an independent process by a different process running mode, and finally, a communication data sending mode is adopted to perform interaction between the main process and the plug-in process, so as to implement the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.
The above embodiments all describe the method of the present invention in terms of a host process, and the method provided by the present invention is further described in terms of a plug-in process by one embodiment.
Referring to fig. 3, fig. 3 is a flow chart of a third embodiment of the invention.
In this embodiment, a service request method of a plug-in process is provided. Specifically, the method may include:
s301, the plug-in process is connected to the main process through a socket protocol;
this step is intended for the plug-in process to connect to the host process through the socket protocol. Due to the adoption of the socket protocol, the main process is equivalent to a server for the plug-in process. After the connection is established, the plug-in process can send data to the main process and receive the data sent by the main process, so that data communication between the two parties is realized.
S302, sending the service request data to the host process according to the form of the file socket so that the host process executes corresponding service calling operation according to the service request data to obtain a request result, and sending the request result to the plug-in process;
and S303, when the request result is received, analyzing the request result to obtain a target request result.
On the basis of S301, S302 and S303 are intended to explain how the plug-in process implements the service call operation.
Therefore, the service request method of the plug-in process provided by the embodiment of the invention can realize the corresponding service call operation through the data communication between the plug-in process and the main process, and realize the function of the plug-in program. Because the plug-in program and the main program are not operated in the same process, the program in the main process cannot be influenced after the plug-in program goes wrong, the situation that the main program is blocked is avoided, the smoothness of program operation is improved, and the problem occurrence position can be more conveniently positioned after the plug-in program is independently operated.
The following further describes a computer device according to an embodiment of the present invention.
Referring to fig. 4, fig. 4 is a schematic diagram of an internal structure of a computer device according to an embodiment of the disclosure.
In this embodiment, the Computer apparatus 1 may be a PC (Personal Computer), a smart phone, a tablet Computer, a palm Computer, a portable Computer, an intelligent router, an ore machine, and a network storage device terminal device.
The apparatus 1 may be a node constituting a CDN network or a blockchain network.
The computer device 1 may include a memory 11, a processor 12, and a bus 13.
The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the computer device 1, for example a hard disk of the computer device 1. The memory 11 may also be an external storage device of the computer apparatus 1 in other embodiments, such as a plug-in hard disk provided on the computer apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the computer apparatus 1. The memory 11 can be used not only to store application software installed in the computer apparatus 1 and various types of data, such as a code of the management program 01 or a code of the service request program, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for running program codes or Processing data stored in the memory 11, such as codes of the hypervisor 01 or codes of the service request program.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the computer apparatus may further comprise a network interface 14, and the network interface 14 may optionally comprise a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the apparatus 1 and other electronic devices.
Optionally, the apparatus 1 may further comprise a user interface, which may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the computer device 1 and for displaying a visualized user interface.
Fig. 4 shows only the computer apparatus 1 with the components 11-14 and the management program 01 or service request program, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the computer apparatus 1, and may comprise fewer or more components than shown, or combine certain components, or a different arrangement of components.
In the following, the management system of the plug-in process provided by the embodiment of the present invention is introduced, and the management system of the plug-in process described below and the management method of the plug-in process described above may be referred to correspondingly.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a management system for a plug-in process according to an embodiment of the present invention.
In this embodiment, the method may include:
a startup script obtaining unit 110, configured to obtain startup script information of the plug-in;
and a plug-in process creating unit 120, configured to create a plug-in process according to the start script information, and run the plug-in program in the plug-in process, so that the plug-in process sends the communication data to the host process.
In the following, the service request system of the plug-in process provided by the embodiment of the present invention is introduced, and the service request system of the plug-in process described below and the service request method of the plug-in process described above may be referred to correspondingly.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a service request system of a plug-in process according to an embodiment of the present invention.
In this embodiment, the method may include:
a communication connection unit 210 for connecting to a host process through a socket protocol;
the request data sending unit 220 is configured to send the service request data to the host process in a file socket form, so that the host process executes a corresponding service invoking operation according to the service request data to obtain a request result, and sends the request result to the plug-in process;
and the request result obtaining unit 230 is configured to, when the request result is received, perform parsing processing on the request result to obtain a target request result.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program can be executed by one or more processors to implement the management method and/or the service request method according to the above embodiments.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A management method of a plug-in process is characterized by comprising the following steps:
the method comprises the steps that a main process obtains starting script information of a plug-in program;
and creating a plug-in process according to the starting script information, and running the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process.
2. The management method of claim 1, further comprising:
and when the communication data is service request data, executing corresponding service calling operation on the plug-in process according to the service request data.
3. The management method according to claim 2, wherein when the communication data is service request data, performing a corresponding service call operation on the plug-in process according to the service request data includes:
when the communication data is server request data, determining corresponding service calling operation according to the message identifier of the service request data, and executing the service calling operation to obtain a request result;
and sending the request result to the plug-in process.
4. The management method according to claim 3, wherein determining a corresponding service invocation operation according to the message identifier of the service request data, and executing the service invocation operation to obtain a request result comprises:
when the message identifier of the service request data is UI calling, executing UI calling operation according to the service request data to obtain a UI interface operation result; and taking the UI interface operation result as the request result.
5. The management method according to any one of claims 1 to 4, further comprising:
performing performance monitoring processing on the plug-in process to obtain monitoring data;
and when the plug-in process is abnormal, the monitoring data is used as abnormal data and is sent so as to execute repair operation on the plug-in process according to the abnormal data.
6. A service request method of a plug-in process is characterized by comprising the following steps:
the plug-in process is connected to the main process through a socket protocol;
sending service request data to the host process according to a file socket form, so that the host process executes corresponding service calling operation according to the service request data to obtain a request result, and sending the request result to the plug-in process;
and when the request result is received, analyzing the request result to obtain a target request result.
7. A computer arrangement, characterized in that the arrangement comprises a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, implementing the management method according to any of claims 1 to 5 and/or the service request method according to claim 6.
8. A system for managing a plug-in process, the system comprising:
the starting script acquisition unit is used for acquiring starting script information of the plug-in program;
and the plug-in process creating unit is used for creating a plug-in process according to the starting script information and running the plug-in program in the plug-in process so that the plug-in process can send communication data to the main process.
9. A service request system for a plug-in process, the system comprising:
the communication connection unit is used for connecting to a main process through a socket protocol;
the request data sending unit is used for sending the service request data to the main process according to the form of the file socket so that the main process executes corresponding service calling operation according to the service request data to obtain a request result and sends the request result to the plug-in process;
and the request result acquisition unit is used for analyzing the request result to obtain a target request result when receiving the request result.
10. A computer-readable storage medium, having stored thereon a computer program executable by one or more processors to implement the management method of any one of claims 1 to 5 and/or the service request method of claim 6.
CN201910906154.XA 2019-09-24 2019-09-24 Plug-in process management method, related method and related device Pending CN110708366A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910906154.XA CN110708366A (en) 2019-09-24 2019-09-24 Plug-in process management method, related method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910906154.XA CN110708366A (en) 2019-09-24 2019-09-24 Plug-in process management method, related method and related device

Publications (1)

Publication Number Publication Date
CN110708366A true CN110708366A (en) 2020-01-17

Family

ID=69196047

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910906154.XA Pending CN110708366A (en) 2019-09-24 2019-09-24 Plug-in process management method, related method and related device

Country Status (1)

Country Link
CN (1) CN110708366A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506441A (en) * 2020-04-14 2020-08-07 浪潮商用机器有限公司 Method, device, equipment and storage medium for monitoring Raid card information
CN112822115A (en) * 2020-12-31 2021-05-18 罗普特科技集团股份有限公司 Service framework construction method and system based on plug-in engine
CN115309614A (en) * 2022-10-12 2022-11-08 梯度云科技(北京)有限公司 Method and device for monitoring operation and maintenance of host and application
CN117076159A (en) * 2023-10-10 2023-11-17 统信软件技术有限公司 Plug-in calling method and device, electronic equipment and computer readable storage medium
CN117076160A (en) * 2023-10-16 2023-11-17 腾讯科技(深圳)有限公司 Component calling method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544058A (en) * 2012-07-16 2014-01-29 天津书生投资有限公司 Method and device for achieving plug-in
CN103955468A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying documents based on browser
WO2015074555A1 (en) * 2013-11-22 2015-05-28 北京奇虎科技有限公司 Method and device for implementing instant messaging
CN107402782A (en) * 2017-06-30 2017-11-28 武汉斗鱼网络科技有限公司 A kind of method and device for being used to load plug-in unit in live software
CN109462663A (en) * 2018-12-24 2019-03-12 出门问问信息科技有限公司 A kind of method, voice interactive system and storage medium that limitation system resource occupies
WO2019071680A1 (en) * 2017-10-09 2019-04-18 武汉斗鱼网络科技有限公司 Plug-in loading method and apparatus
CN109861990A (en) * 2019-01-10 2019-06-07 高新兴科技集团股份有限公司 The not data interactive method between homologous ray, device and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955468A (en) * 2012-03-06 2014-07-30 北京奇虎科技有限公司 Method and device for displaying documents based on browser
CN103544058A (en) * 2012-07-16 2014-01-29 天津书生投资有限公司 Method and device for achieving plug-in
WO2015074555A1 (en) * 2013-11-22 2015-05-28 北京奇虎科技有限公司 Method and device for implementing instant messaging
CN107402782A (en) * 2017-06-30 2017-11-28 武汉斗鱼网络科技有限公司 A kind of method and device for being used to load plug-in unit in live software
WO2019071680A1 (en) * 2017-10-09 2019-04-18 武汉斗鱼网络科技有限公司 Plug-in loading method and apparatus
CN109462663A (en) * 2018-12-24 2019-03-12 出门问问信息科技有限公司 A kind of method, voice interactive system and storage medium that limitation system resource occupies
CN109861990A (en) * 2019-01-10 2019-06-07 高新兴科技集团股份有限公司 The not data interactive method between homologous ray, device and computer storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ACHILLISJACK: ""插件进程死亡检测"", 《HTTPS://BLOG.CSDN.NET/U012439416/ARTICLE/DETAILS/76401952》 *
WEIXIN_30252709: ""话说Chrome进程体系与插件管理"", 《HTTPS://BLOG.CSDN.NET/WEIXIN_30252709/ARTICLE/DETAILS/97889899》 *
肖秋红: ""Android动态加载框架EasyDynamicLoad的设计与实现"", 《中国优秀硕士学位论文全文数据库》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506441A (en) * 2020-04-14 2020-08-07 浪潮商用机器有限公司 Method, device, equipment and storage medium for monitoring Raid card information
CN111506441B (en) * 2020-04-14 2023-06-16 浪潮商用机器有限公司 Method, device, equipment and storage medium for monitoring Raid card information
CN112822115A (en) * 2020-12-31 2021-05-18 罗普特科技集团股份有限公司 Service framework construction method and system based on plug-in engine
CN112822115B (en) * 2020-12-31 2022-09-16 罗普特科技集团股份有限公司 Service framework construction method and system based on plug-in engine
CN115309614A (en) * 2022-10-12 2022-11-08 梯度云科技(北京)有限公司 Method and device for monitoring operation and maintenance of host and application
CN117076159A (en) * 2023-10-10 2023-11-17 统信软件技术有限公司 Plug-in calling method and device, electronic equipment and computer readable storage medium
CN117076159B (en) * 2023-10-10 2024-01-05 统信软件技术有限公司 Plug-in calling method and device, electronic equipment and computer readable storage medium
CN117076160A (en) * 2023-10-16 2023-11-17 腾讯科技(深圳)有限公司 Component calling method, device, equipment and storage medium
CN117076160B (en) * 2023-10-16 2024-01-26 腾讯科技(深圳)有限公司 Component calling method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110708366A (en) Plug-in process management method, related method and related device
US10127057B2 (en) Method and apparatus for dynamically implementing application function
EP3005084B1 (en) Driver installation for targeted and not-connected devices
US9384114B2 (en) Group server performance correction via actions to server subset
CN101895540B (en) For the system and method that application service process is guarded
US10452469B2 (en) Server performance correction using remote server actions
CN107390983B (en) Service instruction execution method, client and storage medium
CN109725950B (en) Method, device and storage medium for realizing single-instance operation of client
US10216601B2 (en) Agent dynamic service
CN110677493B (en) Service state determination method and device, computer device and storage medium
US10027534B1 (en) Log management system and method for distributed computing systems
US9535666B2 (en) Dynamic agent delivery
CN108632354B (en) Physical machine admission management method and device and cloud desktop management platform
CN110830360B (en) Multi-application program intercommunication method, electronic device and computer readable storage medium
CN106713507B (en) Management method and management system for batch cloud terminal equipment
CN110417789B (en) Server connection method, electronic device, system and medium
US10223407B2 (en) Asynchronous processing time metrics
US10025646B2 (en) Naming of nodes in NET framework
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN110879701B (en) Workflow visual configuration method, server, system and medium
US20210042093A1 (en) System and method that support production management
CN109739868B (en) Data processing method and related equipment thereof
CN115913913B (en) Network card pre-starting execution environment function fault positioning method and device
CN109302336B (en) Mail generation method and device, computer equipment and storage medium
CN115951923A (en) Subscription event management method and related product

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

Application publication date: 20200117

RJ01 Rejection of invention patent application after publication