CN110851193A - Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor - Google Patents

Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor Download PDF

Info

Publication number
CN110851193A
CN110851193A CN201810860740.0A CN201810860740A CN110851193A CN 110851193 A CN110851193 A CN 110851193A CN 201810860740 A CN201810860740 A CN 201810860740A CN 110851193 A CN110851193 A CN 110851193A
Authority
CN
China
Prior art keywords
plug
information
main program
loaded
acquired
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
CN201810860740.0A
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.)
Edan Instruments Inc
Original Assignee
Edan Instruments Inc
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 Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201810860740.0A priority Critical patent/CN110851193A/en
Publication of CN110851193A publication Critical patent/CN110851193A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention provides a monitoring device software platform plug-in loading method, a plug-in operation system and a monitor, wherein the method comprises the following steps: acquiring plug-in information to be loaded to a main program based on a preset list; acquiring a plug-in to be loaded according to the acquired plug-in information; loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in; activating and operating the plug-in according to the operation mode, so that when the software is expanded, only corresponding functional plug-ins need to be added into the software, and corresponding plug-in information needs to be added into a preset list; when the software is updated, only the corresponding functional plug-ins need to be updated, so that only part of the functional plug-ins need to be developed, the whole software does not need to be developed and tested, the software function extension cost is reduced, and the software function extension efficiency is improved.

Description

Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor
Technical Field
The invention relates to the technical field of software, in particular to a monitoring device software platform plug-in loading method, a plug-in operation system and a monitor.
Background
The compact monitor in the medical monitoring field can expand the running function of the monitor, but has a great defect, the expanded function is generally realized by obtaining a new version of software, wherein the new version of software is updated into the monitor by adding a new function or changing the existing function in the new version of software.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide a monitoring device software platform plug-in loading method, which is used for solving the problems of high cost and poor efficiency of software extension function in the prior art.
A second object of the present invention is to provide a plug-in running system.
A third object of the present invention is to provide a monitor.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
A fifth object of the invention is to propose a computer program product.
To achieve the above object, an embodiment of a first aspect of the present invention provides a monitoring device software platform plug-in loading method, including:
acquiring plug-in information to be loaded to a main program based on a preset list;
acquiring a plug-in to be loaded according to the acquired plug-in information;
loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in;
the plug-in is activated and operated according to an operation mode.
Further, the plug-in information includes any one or more of the following parameters: name, version, model, storage path of the plug-in.
Further, before the obtaining the plug-in to be loaded according to the obtained plug-in information, the method further includes:
judging whether a plug-in corresponding to the plug-in information exists or not according to the acquired plug-in information;
and if the plug-in exists, acquiring the plug-in to be loaded according to the acquired plug-in information.
Further, before loading the obtained plug-in to the main program and configuring the running mode of the loaded plug-in, the method further includes:
matching the acquired plug-in with a plug-in template in the main program;
and if the plug-in is matched with the plug-in template, loading the plug-in to a main program.
Further, matching the obtained plug-in with a plug-in template in the main program includes:
acquiring interface information in a plug-in; the interface information includes: name, type, and version;
judging whether an interface matched with the interface information is included in a plug-in template in the main program or not;
and if the plug-in template comprises an interface matched with the interface information, determining that the plug-in is matched with the plug-in template.
Further, the configuring the running mode of the loaded plug-in includes:
configuring the plug-in according to the running mode of the plug-in; the operation modes include: a main thread running mechanism and an independent running mechanism; the independent operation mechanism comprises: a single-threaded operating mechanism and a multi-threaded operating mechanism.
Further, the activating and operating the plug-in according to the operation mode includes:
activating the plug-in according to the operation mode;
when the operation mode is a main thread operation mechanism, the plug-in to be activated is placed in a main thread;
when the operation mode is a single-thread operation mechanism, the functional plug-in to be activated is placed in the single thread;
and when the operation mode is a multi-thread operation mechanism, the functional plug-in to be activated is placed into one thread in multiple threads.
Further, after activating and operating the plug-in according to the operation mode, the method further includes:
when receiving the API interface calling request of the plug-in after operation, returning corresponding parameter information to the plug-in after operation; the parameter information includes: parameter information of other running plug-ins, and/or parameter information of the main program.
According to the monitoring equipment software platform plug-in loading method provided by the embodiment of the invention, plug-in information to be loaded to a main program is obtained based on a preset list; acquiring a plug-in to be loaded according to the acquired plug-in information; loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in; activating and operating the plug-in according to the operation mode, so that when the software is expanded, only corresponding functional plug-ins need to be added into the software, and corresponding plug-in information needs to be added into a preset list; when the software is updated, only the corresponding functional plug-ins need to be updated, so that only part of the functional plug-ins need to be developed, the whole software does not need to be developed and tested, the software function extension cost is reduced, and the software function extension efficiency is improved.
In order to achieve the above object, a second embodiment of the present invention provides a plug-in running system, including:
the acquisition module is used for acquiring the plug-in information to be loaded to the main program from the preset list;
the acquisition module is used for acquiring the plug-in to be loaded according to the acquired plug-in information;
the loading module is used for loading the acquired plug-in to the main program and configuring the plug-in according to the property of the plug-in a preset configuration mode;
and the activation module is used for activating and operating the plug-in according to the configuration mode.
Further, the system further comprises: a judgment module;
the judging module is used for judging whether a plug-in corresponding to the plug-in information exists or not according to the acquired plug-in information;
the obtaining module is specifically configured to obtain the plugin to be loaded according to the obtained plugin information when the plugin exists.
Further, the system further comprises: a matching module;
the matching module is used for matching the acquired plug-in with a plug-in template in the main program;
the loading module is specifically configured to load the plug-in to the main program when the plug-in is matched with the plug-in template.
In order to achieve the above object, a monitor according to a third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the method as described above when executing the computer program.
To achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method as described above.
To achieve the above object, a fifth embodiment of the present invention provides a computer program product, wherein when the instructions in the computer program product are executed by a processor, the method as described above is implemented.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a monitoring device software platform plug-in loading method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another monitoring device software platform plug-in loading method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a plug-in operating system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another plug-in operating system according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another plug-in operating system according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a monitor according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes a monitoring device software platform plug-in loading method, a plug-in operating system and a monitor according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a monitoring device software platform plug-in loading method according to an embodiment of the present invention. As shown in fig. 1, the method mainly comprises the following steps:
s101, obtaining plug-in information to be loaded to a main program based on a preset list.
In this embodiment, an execution main body of the monitoring device software platform plug-in loading method may be a hardware device, or software installed on a hardware device. Hardware devices such as monitors, etc. Software such as plug-in running systems, software platforms, etc. In this embodiment, an executing subject is taken as monitor software as an example for explanation.
In this embodiment, the preset list stores information of all the plug-ins installed in the monitor software, such as storage paths, names, versions, and models of the plug-ins. The plug-in installation process may be, for example, copying the plug-in from an external medium of the monitor, such as a network uniform resource locator URL or an external storage device, into a memory inside the monitor, and writing a storage path and name of the plug-in into a preset list. The plug-in unit can be uninstalled, for example, by deleting the plug-in unit from the internal memory of the monitor, and deleting the name and storage path of the plug-in unit from the preset list. In addition, the upgrading process of the plug-in can be to replace the plug-in the internal memory of the monitor with an old version to a new version.
And S102, acquiring the plug-in to be loaded according to the acquired plug-in information.
In this embodiment, the plug-in is a generic name of a series of shared function libraries for independently implementing functions of the monitor, and the shared function libraries respectively implement extended functions of the monitor. As for the core functions of the monitor, they are implemented by a main program, wherein the core functions include, for example, a parameter detection function, an operation interface and display function, an alarm system, data storage, network communication, thermal printing management, power management, and the like.
Further, before step 102, the method may further include the steps of: judging whether a plug-in corresponding to the plug-in information exists or not according to the acquired plug-in information; and if the plug-in exists, acquiring the plug-in to be loaded according to the acquired plug-in information. Specifically, the monitor software can search the name of the plug-in from the corresponding storage path according to the acquired plug-in information, and if the name of the plug-in is searched, the existence of the plug-in is determined, and the plug-in can be loaded; and if the name of the plug-in is not found, determining that the plug-in does not exist, and not needing to carry out plug-in loading operation.
S103, loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in.
In this embodiment, before loading the plug-in to the main program, it is further required to determine that the plug-in to be loaded matches the plug-in template, and if the plug-in to be loaded does not match the plug-in template, the loading operation on the plug-in may fail, so before step 103, the method may further include the following steps: matching the acquired plug-in with a plug-in template in the main program; and if the plug-in is matched with the plug-in template, loading the plug-in to the main program.
The process of matching the acquired plug-in with the plug-in template in the main program can be specifically to acquire interface information in the plug-in; the interface information includes: name, type, and version; judging whether an interface matched with the interface information is included in the plug-in template in the main program; and if the plug-in template comprises an interface matched with the interface information, determining that the plug-in is matched with the plug-in template. In the case that the plug-in matches the plug-in template, the monitor software can only successfully load the plug-in and ensure that the loaded plug-in can successfully perform the corresponding function. If the plug-in is not matched with the plug-in template, for example, the interface is not matched, the main program is difficult to call the interface of the plug-in to obtain corresponding information, and further the function of the plug-in is difficult to realize. In this embodiment, the interface in the plug-in template may include: the system comprises an installation interface, a reverse installation interface, a checking interface, an initialization interface, an activation interface, a version information inquiry interface, a work task interface and the like.
In this embodiment, the process of the monitor software executing step 103 may specifically be to configure the plug-in according to the operation mode corresponding to the property of the plug-in; wherein, the operation mode can include: a main thread running mechanism and an independent running mechanism; the independent operation mechanism comprises: a single-threaded operating mechanism and a multi-threaded operating mechanism.
And S104, activating and operating the plug-in according to the operation mode.
In this embodiment, the process of the monitor software executing step 104 may specifically be activating a plug-in according to the operation mode; when the operation mode is a main thread operation mechanism, placing the plug-in to be activated into the main thread; when the operation mode is an independent operation mechanism, the corresponding plug-in can be set as a single-thread operation mechanism or a multi-thread operation mechanism according to the requirement, and when the operation mode is selected as the single-thread operation mechanism, the functional plug-in to be activated is placed in a single thread; when the operation mode is selected as the multithread operation mechanism, the functional plug-in to be activated is placed in one thread in the multithread.
In the case that the execution subject is monitor software, in the main thread running mechanism, the main thread of the main program may be, for example, a UI thread. The method includes that a UI thread is used for executing an interactive function of a graphical user interface, if a to-be-activated plug-in needs to run depending on the UI thread of a main program, for example, the to-be-activated plug-in (MEWS statistical analysis function, etc.) needs to create an interface or directly interact with the existing UI interface of the main program, the to-be-activated plug-in is placed in the UI thread, the number of the plug-ins can be one or more, a plug-in queue is arranged in the UI thread, and after the plug-ins are placed in the plug-in queue, the to-be-activated plug-ins can run according to a preset rule, for example, the to run according to the.
In the independent operation mechanism, a plug-in queue is arranged in a single thread, and after the plug-ins are placed in the plug-in queue, the plug-ins to be activated can be operated according to a preset rule, for example, the plug-ins can be operated according to the arrangement time sequence, the importance level and the like of the plug-ins. The multithreading is a plurality of threads, and the number of the threads can be equal to or larger than the number of the plug-ins, so that the plug-ins can run simultaneously. When the plug-ins are not dependent on the UI thread and the functions are relatively independent, multiple plug-ins may be placed in a single thread or multiple threads. The plug-in placed in the single thread or the multiple threads can be a wireless transmission plug-in, an HL7 transmission plug-in, a network file transmission plug-in, a USB flash disk data storage plug-in, an auxiliary data processing plug-in, an independent parameter detection plug-in, an independent parameter processing plug-in and the like. The auxiliary data processing plug-in is used for analyzing and processing the physiological parameters of the core functional area, and comprises multi-parameter joint analysis, trend statistical analysis and the like; the independent parameters refer to some advanced parameters of the monitor, including NMT parameters, ECG parameters and the like; the independent parameter processing refers to analyzing and processing advanced parameters of the monitor.
In the embodiment, the two operation mechanisms are provided for the plug-in, so that the application range of the plug-in is expanded, the thread load balance of the main program is considered, particularly the UI thread load is reduced, and the response efficiency of the human-computer interaction of the monitor is improved.
Further, after step 104, the method may further include the steps of: when receiving an API (application programming interface) calling request of the plug-in after operation, returning corresponding parameter information to the plug-in after operation; the parameter information includes: parameter information of other running plug-ins, and/or parameter information of the main program. The parameter information of other running plug-ins may be, for example, a monitor parameter calculation result/parameter waveform/alarm, etc. The parameter information of the main program may be, for example, a version of the main program, a product type, or the like.
According to the monitoring equipment software platform plug-in loading method provided by the embodiment of the invention, plug-in information to be loaded to a main program is obtained based on a preset list; acquiring a plug-in to be loaded according to the acquired plug-in information; loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in; activating and operating the plug-in according to the operation mode, so that when the software is expanded, only corresponding functional plug-ins need to be added into the software, and corresponding plug-in information needs to be added into a preset list; when the software is updated, only the corresponding functional plug-ins need to be updated, so that only part of the functional plug-ins need to be developed, the whole software does not need to be developed and tested, the software function extension cost is reduced, and the software function extension efficiency is improved.
Fig. 2 is a schematic flowchart of another monitoring device software platform plug-in loading method according to an embodiment of the present invention. As shown in fig. 2, the monitoring device software platform plug-in loading method may include the following steps:
s201, initializing a main program.
S202, loading a configuration file.
S203, selecting plug-in information to be loaded from a preset list of the configuration file to generate a plug-in list to be loaded, wherein the preset list comprises all installed plug-in information.
S204, judging whether the list to be loaded is empty or not; if not, go to step 205; if it is empty, go to step 210.
S205, judging whether the plug-in the list to be loaded exists or not; if yes, go to step 206; if not, go to step 211.
S206, judging whether the interface of the plug-in meets the plug-in template or not; if yes, go to step 207; if not, go to step 212.
And S207, reading the plug-in and initializing the plug-in.
S208, judging whether all the plug-ins in the list to be loaded are initialized; if yes, go to step 209; if not, go to step 204.
S209, the plug-ins are placed into corresponding threads according to the running mechanisms of the plug-ins.
And S210, running the plug-in the thread to finish the loading of the plug-in.
S211, prompting that the plug-in does not exist.
S212, prompting that the plug-in format is wrong.
Fig. 3 is a schematic structural diagram of a plug-in operation system according to an embodiment of the present invention. As shown in fig. 3, the plug-in operating system may include:
the acquisition module 31 is configured to acquire plug-in information to be loaded to the main program from a preset list;
an obtaining module 32, configured to obtain a plug-in to be loaded according to the obtained plug-in information;
the loading module 33 is configured to load the acquired plug-in to the main program, and configure the plug-in according to a preset configuration mode according to the property of the plug-in;
and the activation module 34 is used for activating and operating the plug-in according to the configuration mode.
In this embodiment, the preset list stores information of all the plug-ins installed in the monitor software, such as storage paths, names, versions, and models of the plug-ins. The plug-in installation process may be, for example, copying the plug-in from an external medium of the monitor, such as a network uniform resource locator URL or an external storage device, into a memory inside the monitor, and writing a storage path and name of the plug-in into a preset list. The plug-in unit can be uninstalled, for example, by deleting the plug-in unit from the internal memory of the monitor, and deleting the name and storage path of the plug-in unit from the preset list. In addition, the upgrading process of the plug-in can be to replace the plug-in the internal memory of the monitor with an old version to a new version.
In this embodiment, the plug-in is a generic name of a series of shared function libraries for independently implementing functions of the monitor, and the shared function libraries respectively implement extended functions of the monitor. As for the core function of the monitor, the core function is realized by the main program. The core functions include, for example, a parameter detection function, an operation interface and display function, an alarm system, data storage, network communication, thermal printing management, power management, and the like.
Further, on the basis of the above embodiment, the loading module 33 may be specifically configured to configure the plug-in according to the running mode corresponding to the property of the plug-in; wherein, the operation mode can include: a main thread running mechanism and an independent running mechanism; the independent operation mechanism comprises: a single-threaded operating mechanism and a multi-threaded operating mechanism. Correspondingly, the activation module 34 may be specifically configured to activate the plug-in according to the operation mode; when the operation mode is a main thread operation mechanism, placing the plug-in to be activated into the main thread; when the operation mode is an independent operation mechanism, the corresponding plug-in can be set as a single-thread operation mechanism or a multi-thread operation mechanism according to the requirement, and when the operation mode is set as the single-thread operation mechanism, the functional plug-in to be activated is placed in a single thread; when the operation mode is selected as the multithread operation mechanism, the functional plug-in to be activated is placed in one thread in the multithread.
In the case that the execution subject is monitor software, in the main thread running mechanism, the main thread of the main program may be, for example, a UI thread. The method includes that a UI thread is used for executing an interactive function of a graphical user interface, if a to-be-activated plug-in needs to run depending on the UI thread of a main program, for example, the to-be-activated plug-in (MEWS statistical analysis function, etc.) needs to create an interface or directly interact with the existing UI interface of the main program, the to-be-activated plug-in is placed in the UI thread, the number of the plug-ins can be one or more, a plug-in queue is arranged in the UI thread, and after the plug-ins are placed in the plug-in queue, the to-be-activated plug-ins can run according to a preset rule, for example, the to run according to the.
In the independent operation mechanism, a plug-in queue is arranged in a single thread, and after the plug-ins are placed in the plug-in queue, the plug-ins to be activated can be operated according to a preset rule, for example, the plug-ins can be operated according to the arrangement time sequence, the importance level and the like of the plug-ins. The multithreading is a plurality of threads, and the number of the threads can be equal to or larger than the number of the plug-ins, so that the plug-ins can run simultaneously. When the plug-ins are not dependent on the UI thread and the functions are relatively independent, multiple plug-ins may be placed in a single thread or multiple threads. The plug-in placed in the single thread or the multiple threads can be a wireless transmission plug-in, an HL7 transmission plug-in, a network file transmission plug-in, a USB flash disk data storage plug-in, an auxiliary data processing plug-in, an independent parameter detection plug-in, an independent parameter processing plug-in and the like. The auxiliary data processing plug-in is used for analyzing and processing the physiological parameters of the core functional area, and comprises multi-parameter joint analysis, trend statistical analysis and the like; the independent parameters refer to some advanced parameters of the monitor, including NMT parameters, ECG parameters and the like; the independent parameter processing refers to analyzing and processing advanced parameters of the monitor.
In the embodiment, the two operation mechanisms are provided for the plug-in, so that the application range of the plug-in is expanded, the thread load balance of the main program is considered, particularly the UI thread load is reduced, and the response efficiency of the human-computer interaction of the monitor is improved.
Furthermore, after the plug-in is activated and operated according to the operation mode, the plug-in operation system can also return corresponding parameter information to the plug-in after operation when receiving an API (application programming interface) calling request of the plug-in after operation; the parameter information includes: parameter information of other running plug-ins, and/or parameter information of the main program. The parameter information of other running plug-ins may be, for example, a monitor parameter calculation result/parameter waveform/alarm, etc. The parameter information of the main program may be, for example, a version of the main program, a product type, or the like.
According to the plug-in operation system, plug-in information to be loaded to a main program is obtained based on a preset list; acquiring a plug-in to be loaded according to the acquired plug-in information; loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in; activating and operating the plug-in according to the operation mode, so that when the software is expanded, only corresponding functional plug-ins need to be added into the software, and corresponding plug-in information needs to be added into a preset list; when the software is updated, only the corresponding functional plug-ins need to be updated in the main program of the software, so that only part of the functional plug-ins need to be developed, the whole software does not need to be developed and tested, the software function extension cost is reduced, and the software function extension efficiency is improved.
Further, before loading the plug-in to the main program, it is further required to determine that the plug-in to be loaded matches the plug-in template, and if the plug-in does not match the plug-in template, the loading operation on the plug-in may fail, so that, with reference to fig. 4, based on the embodiment shown in fig. 3, the system may further include: a matching module 35;
the matching module 35 is configured to match the acquired plug-in with a plug-in template in the main program;
the loading module 33 is specifically configured to load the plug-in to the main program when the plug-in is matched with the plug-in template.
The matching module 35 may be specifically configured to obtain interface information in the plug-in; the interface information includes: name, type, and version; judging whether an interface matched with the interface information is included in the plug-in template in the main program; and if the plug-in template comprises an interface matched with the interface information, determining that the plug-in is matched with the plug-in template. In the case that the plug-in matches the plug-in template, the monitor software can only successfully load the plug-in and ensure that the loaded plug-in can successfully perform the corresponding function. If the plug-in is not matched with the plug-in template, for example, the interface is not matched, the main program is difficult to call the interface of the plug-in to obtain corresponding information, and further the function of the plug-in is difficult to realize.
Further, with reference to fig. 5, on the basis of the embodiment shown in fig. 3, the system may further include: a judging module 36;
the judging module 36 is configured to judge whether a plug-in corresponding to the plug-in information exists according to the acquired plug-in information;
the obtaining module 32 is specifically configured to obtain the plugin to be loaded according to the obtained plugin information when the plugin exists.
Specifically, the determining module 36 may search the name of the plug-in from the corresponding storage path according to the acquired plug-in information, and if the name of the plug-in is found, determine that the plug-in exists, and may load the plug-in; and if the name of the plug-in is not found, determining that the plug-in does not exist, and not needing to carry out plug-in loading operation.
Fig. 6 is a schematic structural diagram of a monitor according to an embodiment of the present invention. This monitor includes:
memory 1001, processor 1002, and computer programs stored on memory 1001 and executable on processor 1002.
The monitoring device software platform plug-in loading method provided in the above embodiments is implemented when the processor 1002 executes the program.
Further, the monitor further comprises:
a communication interface 1003 for communicating between the memory 1001 and the processor 1002.
A memory 1001 for storing computer programs that may be run on the processor 1002.
Memory 1001 may include high-speed RAM memory and may also include non-volatile memory (e.g., at least one disk memory).
The processor 1002 is configured to implement the monitoring device software platform plug-in loading method according to the foregoing embodiment when executing the program.
If the memory 1001, the processor 1002, and the communication interface 1003 are implemented independently, the communication interface 1003, the memory 1001, and the processor 1002 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (Extended Industry Standard Architecture) 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. 6, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 1001, the processor 1002, and the communication interface 1003 are integrated on one chip, the memory 1001, the processor 1002, and the communication interface 1003 may complete communication with each other through an internal interface.
The processor 1002 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
The present embodiment also provides a non-transitory computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method as described above.
The present embodiment also provides a computer program product, characterized in that, when the instructions in the computer program product are executed by a processor, the method as described above is implemented.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are 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 the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (14)

1. A monitoring device software platform plug-in loading method is characterized by comprising the following steps:
acquiring plug-in information to be loaded to a main program based on a preset list;
acquiring a plug-in to be loaded according to the acquired plug-in information;
loading the acquired plug-in to a main program, and configuring the running mode of the loaded plug-in;
the plug-in is activated and operated according to an operation mode.
2. The plug-in loading method according to claim 1, wherein the plug-in information includes any one or more of the following parameters: name, version, model, storage path of the plug-in.
3. The plug-in loading method according to claim 1 or 2, wherein before acquiring the plug-in to be loaded according to the acquired plug-in information, the method further comprises:
judging whether a plug-in corresponding to the plug-in information exists or not according to the acquired plug-in information;
and if the plug-in exists, acquiring the plug-in to be loaded according to the acquired plug-in information.
4. The plug-in loading method according to claim 1, wherein before loading the acquired plug-in to the main program and configuring the running mode of the loaded plug-in, the method further comprises:
matching the acquired plug-in with a plug-in template in the main program;
and if the plug-in is matched with the plug-in template, loading the plug-in to a main program.
5. The plug-in loading method according to claim 4, wherein matching the obtained plug-in with the plug-in template in the main program comprises:
acquiring interface information in a plug-in; the interface information includes: name, type, and version;
judging whether an interface matched with the interface information is included in a plug-in template in the main program or not;
and if the plug-in template comprises an interface matched with the interface information, determining that the plug-in is matched with the plug-in template.
6. The plug-in loading method according to claim 1, wherein the performing the operation mode configuration on the loaded plug-in comprises:
configuring the plug-in according to the running mode of the plug-in; the operation modes include: a main thread running mechanism and an independent running mechanism; the independent operation mechanism comprises: a single-threaded operating mechanism and a multi-threaded operating mechanism.
7. The plug-in loading method according to claim 6, wherein said activating and running the plug-in the running mode comprises:
activating the plug-in according to the operation mode;
when the operation mode is a main thread operation mechanism, the plug-in to be activated is placed in a main thread;
when the operation mode is a single-thread operation mechanism, the functional plug-in to be activated is placed in the single thread;
and when the operation mode is a multi-thread operation mechanism, the functional plug-in to be activated is placed into one thread in multiple threads.
8. The method of claim 1, wherein after activating and operating the plug-in the run mode, further comprising:
when receiving the API interface calling request of the plug-in after operation, returning corresponding parameter information to the plug-in after operation; the parameter information includes: parameter information of other running plug-ins, and/or parameter information of the main program.
9. A plug-in operating system, comprising:
the acquisition module is used for acquiring the plug-in information to be loaded to the main program from the preset list;
the acquisition module is used for acquiring the plug-in to be loaded according to the acquired plug-in information;
the loading module is used for loading the acquired plug-in to the main program and configuring the plug-in according to the property of the plug-in a preset configuration mode;
and the activation module is used for activating and operating the plug-in according to the configuration mode.
10. The system of claim 9, further comprising: a judgment module;
the judging module is used for judging whether a plug-in corresponding to the plug-in information exists or not according to the acquired plug-in information;
the obtaining module is specifically configured to obtain the plugin to be loaded according to the obtained plugin information when the plugin exists.
11. The system of claim 9, further comprising: a matching module;
the matching module is used for matching the acquired plug-in with a plug-in template in the main program;
the loading module is specifically configured to load the plug-in to the main program when the plug-in is matched with the plug-in template.
12. A monitor comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the method of any of claims 1-8.
13. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of any one of claims 1-8.
14. A computer program product, characterized in that instructions in the computer program product, when executed by a processor, implement the method according to any of claims 1-8.
CN201810860740.0A 2018-08-01 2018-08-01 Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor Pending CN110851193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810860740.0A CN110851193A (en) 2018-08-01 2018-08-01 Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810860740.0A CN110851193A (en) 2018-08-01 2018-08-01 Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor

Publications (1)

Publication Number Publication Date
CN110851193A true CN110851193A (en) 2020-02-28

Family

ID=69594902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810860740.0A Pending CN110851193A (en) 2018-08-01 2018-08-01 Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor

Country Status (1)

Country Link
CN (1) CN110851193A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148331A (en) * 2020-09-30 2020-12-29 亮风台(上海)信息科技有限公司 Dynamic updating method of host program and terminal equipment
CN113485769A (en) * 2021-07-23 2021-10-08 统信软件技术有限公司 Application program running method, computing device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510167A (en) * 2009-03-31 2009-08-19 阿里巴巴集团控股有限公司 Plug-in component operation method, apparatus and system
CN101699405A (en) * 2009-10-26 2010-04-28 中兴通讯股份有限公司 Method and device for interaction between host program and plug-in and interaction between plug-ins
CN102591688A (en) * 2011-12-30 2012-07-18 深圳市理邦精密仪器股份有限公司 Electrocardiograph plug-in access method and system
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
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
US20170344227A1 (en) * 2016-05-31 2017-11-30 Vmware, Inc. Visual designer for editing large schemaless xml file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510167A (en) * 2009-03-31 2009-08-19 阿里巴巴集团控股有限公司 Plug-in component operation method, apparatus and system
CN101699405A (en) * 2009-10-26 2010-04-28 中兴通讯股份有限公司 Method and device for interaction between host program and plug-in and interaction between plug-ins
CN102591688A (en) * 2011-12-30 2012-07-18 深圳市理邦精密仪器股份有限公司 Electrocardiograph plug-in access method and system
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
US20170344227A1 (en) * 2016-05-31 2017-11-30 Vmware, Inc. Visual designer for editing large schemaless xml file
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148331A (en) * 2020-09-30 2020-12-29 亮风台(上海)信息科技有限公司 Dynamic updating method of host program and terminal equipment
CN113485769A (en) * 2021-07-23 2021-10-08 统信软件技术有限公司 Application program running method, computing device and storage medium

Similar Documents

Publication Publication Date Title
CN108073519B (en) Test case generation method and device
US9329981B2 (en) Testing program, testing method, and testing device
CN103620561B (en) The method and system of interoperability debugging when running for n road
CN109409096B (en) Kernel vulnerability repairing method, device, server and system
US20080270840A1 (en) Device and method for testing embedded software using emulator
US7574624B2 (en) Integrated test method on multi-operating system platform
CN110908888B (en) Server testing method and device
CN104737134A (en) System and method for operating system agnostic hardware validation
CN110851193A (en) Plug-in loading method for software platform of monitoring equipment, plug-in operation system and monitor
CN113504918A (en) Equipment tree configuration optimization method and device, computer equipment and storage medium
CN112068885A (en) Screen self-adaptive driving method and device
US8510611B2 (en) Computer apparatus
CN106598637A (en) Selective loading of components within a node to accelerate maintenance actions
CN110457114B (en) Application cluster deployment method and device
US8099628B2 (en) Software problem identification tool
CN114417563A (en) Multi-core mechanism simulation method and device and electronic equipment
CN113742224A (en) Test system, method, device, computer equipment and storage medium
US9646252B2 (en) Template clauses based SAT techniques
US11422916B2 (en) Usage amount monitoring method and monitoring unit of electronic control unit for vehicle
CN108170595A (en) A kind of dump file generation method and data probe install and uninstall method
US8554522B2 (en) Detection of design redundancy
US20160232033A1 (en) Resource management apparatus and resource management method
CN114328063A (en) Simulation method and device based on mapping mechanism and electronic equipment
CN110192178A (en) Method, apparatus, micro-control unit and the terminal device of program patch installing
CN110471851B (en) Automatic testing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination