CN106406930A - Plug-in system - Google Patents

Plug-in system Download PDF

Info

Publication number
CN106406930A
CN106406930A CN201610726588.8A CN201610726588A CN106406930A CN 106406930 A CN106406930 A CN 106406930A CN 201610726588 A CN201610726588 A CN 201610726588A CN 106406930 A CN106406930 A CN 106406930A
Authority
CN
China
Prior art keywords
plug
unit
business
application
class
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
CN201610726588.8A
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.)
Suzhou creative cloud Network Technology Co., Ltd.
Original Assignee
Suzhou Land High Tech System Science & 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 Suzhou Land High Tech System Science & Technology Co Ltd filed Critical Suzhou Land High Tech System Science & Technology Co Ltd
Priority to CN201610726588.8A priority Critical patent/CN106406930A/en
Publication of CN106406930A publication Critical patent/CN106406930A/en
Pending legal-status Critical Current

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a plug-in system. The system comprises a plurality of plug-in interfaces and a plurality of plug-ins, wherein each plug-in is matched with the corresponding plug-in interface to be accessed into the system so as to provide service; each plug-in in the plug-ins is deployed into the plug-in system in a modularized manner; and information interaction is carried out among the plug-ins through the plug-in interfaces. According to the plug-in system, the problem that service needs to be stopped when the system is updated in the prior art is solved, and the technical effect of updating the system on the premise of not influencing the service is reached.

Description

Plug-in system
Technical field
The present invention relates to field of computer technology, particularly to a kind of plug-in system.
Background technology
For a cluster platform, typically just have stronger professional, the degree of coupling of its code can compare Height, for example, the degree of coupling may reach more than 50% between code A and code B, therefore, the study to code and maintenance can be compared , also can there is the code of a lot of repetitions each other meanwhile, when system is updated with deployment, generally require in difficulty Stop service also carrying out, and the update cycle is long.
If the update cycle is especially long, sometimes also can traffic affecting be normally carried out.
For the problems referred to above, effective solution is not yet proposed at present.
Content of the invention
Embodiments provide a kind of plug-in system, to reach in the case that the business that do not affect is carried out, to system The technique effect being updated, this system includes:
Multiple card i/fs;
Multiple plug-in units, each plug-in unit passes through to mate in corresponding card i/f access system, to provide service;
Wherein, each plug-in unit in the plurality of plug-in unit is deployed in described plug-in system with being modular, the plurality of Between plug-in unit, information exchange is carried out by card i/f.
In one embodiment, each plug-in unit in the plurality of plug-in unit is defined as the function set of minimum.
In one embodiment, each plug-in unit in the plurality of plug-in unit is only provided out at least one of:This is inserted Part the service that can be provided by of invoked class, this plug-in unit, this plug-in unit can need the class relying on and this plug-in unit needs the service that relies on.
In one embodiment, each plug-in unit in the plurality of plug-in unit is a C++ module.
In one embodiment, above-mentioned plug-in system also includes:Monitoring modular, before starting in application system, Judge whether the dependence of the class between each plug-in unit in described plug-in system meets, and determination exist ungratified according to In the case of bad relation, identify ungratified dependence.
In one embodiment, the plurality of plug-in unit includes:Base insert, business plug-in unit and application plug-in, wherein:
Described base insert, for being managed to the business plug-in unit in described plug-in system and application plug-in;
Described business plug-in unit and application plug-in, for providing service.
In one embodiment, described business plug-in unit and described application plug-in can during application program is run quilt Install, update or unload.
In one embodiment, described base insert, specifically for the business plug-in unit in described plug-in system and should Carry out the maintenance of life cycle with plug-in unit, wherein, described life cycle includes:Install, update and unload.
In one embodiment, described plug-in system is Cluster Rendering plug-in system.
In embodiments of the present invention, there is provided a kind of plug-in system includes:Multiple card i/fs;Multiple plug-in units, each is inserted Part passes through to mate in corresponding card i/f access system, to provide service;Wherein, each plug-in unit in multiple plug-in units is by module It is deployed in plug-in system with changing, between multiple plug-in units, information exchange is carried out by card i/f.Because plug-in unit is modular Mode is deployed in system, and therefore plug-in unit can realize heat deployment, when being updated to system it is only necessary to insert to some Part is updated, and need not stop business, when such that it is able to solve in existing mode, system to be updated, needs to stop industry The problem of business, has reached in the case that the business that do not affect is carried out, the technique effect that system is updated.
Brief description
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, not Constitute limitation of the invention.In the accompanying drawings:
Fig. 1 is the configuration diagram of plug-in system according to embodiments of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention become more apparent, with reference to embodiment and accompanying drawing, right The present invention is described in further details.Here, the exemplary embodiment of the present invention and its illustrate for explaining the present invention, but simultaneously Not as a limitation of the invention.
So that being more clearly understood that to the application, first plug-in unit is explained as follows:Plug-in unit, is to be compiled by developer Write system framework, and pre-define the expansion interface of system.Plug-in unit is compiled according to the predetermined interface of system by other developers The extended function module of the expanded function write, actually system, general plug-in unit is all to be gone out in the form of a unique file Existing, be not aware that the concrete function of plug-in unit for system, only leave predetermined interface for plug-in unit, system start when Wait the configuration according to plug-in unit and find plug-in unit, according to predetermined interface, plug-in unit is articulated in system.
In this example, there is provided a kind of plug-in system, as shown in figure 1, can include:
Multiple card i/fs (as 11 in Fig. 1,12,13 ... 1n);
Multiple plug-in units (as 21 in Fig. 1,22,23 ... 2n), each plug-in unit passes through to mate corresponding card i/f access system In system, to provide service, between the plurality of plug-in unit, information exchange is carried out by card i/f, each in the plurality of plug-in unit Plug-in unit is deployed in described plug-in system with being modular.
Because plug-in unit is that modular mode is deployed in system, and therefore plug-in unit can realize heat deployment, to system It is only necessary to be updated to some plug-in units when being updated, business need not be stopped, right in existing mode such that it is able to solve When system is updated, need the problem of stopping business, reached in the case that the business that do not affect is carried out, system is carried out The technique effect updating.
In order to reduce the degree of coupling between plug-in unit as far as possible, in one embodiment, each plug-in unit quilt in multiple plug-in units It is defined as the function set of minimum, the function that minimum function collection namely can not continue to split will be defined as by each plug-in unit Collection, for example:Daily record plug-in unit, configuration operation plug-in unit, maya Rendering Plug, such that it is able to avoid coupling between plug-in unit and plug-in unit, The reuse of plug-in unit can be improved simultaneously, development efficiency can be effectively improved, reduce development cost.
For each plug-in unit, only outwards state the class and interface itself externally providing, i.e. each plug-in unit is arranged certainly Oneself class.path, can accurately specify which class can be called, and this plug-in unit needs to call which class of other plug-in units, from And the dependence between clear and definite each plug-in unit, it is only necessary to outwards state the industry that oneself can provide for plug-in unit itself Business, and code and plug-in unit are completely modular in itself, i.e. each plug-in unit in multiple plug-in units be only provided out following at least it One:This plug-in unit the service that can be provided by of invoked class, this plug-in unit, this plug-in unit can need the class relying on and this plug-in unit to need to rely on Service.
Each above-mentioned plug-in unit can be a C++ module respectively.
Because there is quoting between class and class and interact between each plug-in unit mentioned above, therefore, it can slotting Monitoring modular is set in part system, by this monitoring modular before application system startup, judges that each in plug-in system is slotting Whether the dependence of the class between part meets, and in the case that determination has ungratified dependence, identifies discontented The dependence of foot.That is, before application program launching, whether plug-in system just can detect that all of dependence is all It is satisfied, and in the case of ungratified, accurately quoting is which dependence is not satisfied.
Further, under this framework, class example can be shared can also be independent on request, can have in this way Directly interact between effect raising plug-in unit.
Plug-in unit in plug-in system can several classes below:Base insert, business plug-in unit and application plug-in, wherein, basis is inserted Part is the core of whole plug-in system, is mainly used in the management of plug-in unit and the maintenance of plug-in unit life cycle etc..Permissible between plug-in unit Interacted by card i/f or signal, thus the degree of coupling before effectively reducing each other, due to having substantially encapsulated inserter tube Reason and life cycle are safeguarded, so that business plug-in unit and application plug-in only need to focus on the exploitation of function, are updating simultaneously During deployment, the heat deployment that can automatically be upgraded according to version, and business plug-in unit is peeled off, for the study of responsible business Can also effectively learn to obtain by interface.
In one embodiment, multiple plug-in units can include:Base insert, business plug-in unit and application plug-in, wherein, base Plinth plug-in unit, for being managed to the business plug-in unit in plug-in system and application plug-in;Described business plug-in unit and application plug-in, use Service in providing.
In order to realize the heat deployment to plug-in unit, business plug-in unit and application plug-in can be pacified during application program is run Dress, renewal or unloading.Base insert, specifically can be used for carrying out Life Cycle to the business plug-in unit in plug-in system and application plug-in The maintenance of phase, wherein, life cycle can include:Install, update and unload.
In each embodiment above-mentioned, plug-in system can be Cluster Rendering plug-in system.
With reference to a specific embodiment, above-mentioned plug-in system is illustrated, it should be noted, however, that this concrete reality Apply example merely to the present invention is better described, do not constitute inappropriate limitation of the present invention.
It is to illustrate as a example a dynamic C++ modular system by card cage, make a reservation for be specified how to define one How to interact between module and these modules.Each plug-in unit is a C++ module, and each plug-in unit has the class road of oneself Footpath, can accurately specify which class can be called, and need to call which class of which other plug-in unit, and thus indicate plug-in unit it Between dependence.In addition, plug-in unit can operationally be waited mounted, renewal and be unloaded, and do not interfere with whole application.Logical Cross this mode, the class load mechanism of layering is become netted class load mechanism.Before application program launching, plug-in unit system System just can detect whether all of dependence is satisfied, and accurately to quote when being unsatisfactory for be which dependence does not have It is satisfied.Simultaneously under this framework, class example can be shared can also be independent on request, thus it is direct to effectively improve plug-in unit Interaction.
Above-mentioned plug-in system can be layered as three parts:Base insert, business plug-in unit, application plug-in, wherein, basis is inserted Part is the core of whole plug-in part technology, comprises:Plug-in management, life cycle maintenance etc..All plug-in units can be divided into function to insert again Part, service plug and interface plug-in unit etc..All plug-in units are interacted by card i/f or signal, significantly reduce each other The degree of coupling before, due to having substantially encapsulated plug-in management, life cycle has been safeguarded so that business plug-in unit and application plug-in only need to Focus on the exploitation of function, simultaneously when updating deployment, the heat deployment that can automatically be upgraded according to version, and by business Plug-in unit is peeled off, and the study for responsible business can also learn to obtain by interface effectively.
That is, in order to minimize the degree of coupling and promote these degrees of coupling can manage, there is provided a kind of Enterprise SOA, from And make these assemblies dynamically find other side.Can also develop for example in advance:HTTP server, configuration, daily record, safety, The standard package interface of a lot of public function such as user management, XML.The compatible plug-in unit of these assemblies is realized can be from carrying out The different Computer Service providers of Different Optimization and utilization cost obtain.
Because being realized by C++, it is all therefore abstract class, the inside provides only interface, it is real that concrete function gives plug-in unit Existing.
Illustrated with an execution example below, mainly include following components:
1) all plug-in units carry out life cycle management by Controller plug-in unit, are connect by calling LoadAllPlugins Mouth loads all plug-in units;
2) plug-in unit has a MANIFEST.MF file, for memory card information:Name, version etc.;
3) the number output name format of plug-in unit is com.lht.<Plug-in unit name>_<Three versions>.dll, for example: com.lht.logger_1.0.0.dll;
4) all of plug-in unit is inherited to LHBaseInterface base class, if application class plug-in unit then can inherit to LHBaseAppInterface base class;
5) base interface has Init, Uninit, CreateInstance, DestoryInstance, Launch and Close Interface, application class interface have CreateMenu, CreateToolBar, CreatePopupMenu, CreateSystemTrayMenu and CreateDockArea interface;
6) order of typically calling of plug-in unit use is:Init->CreateInstance->Launch, if exited, suitable Sequence is:Close->DestoryInstance->Uninit;
7) each plug-in unit by Init come initialization data, load other related plug-in units and obtain plug-in unit example, call CreateInstance obtains plug-in unit example, with investigating with follow-up plug-in unit;
8) change of Controller meeting real-time monitoring plug-in unit catalogue, if there is the plug-in unit of redaction, then can call simultaneously Plus download the plugin, if loaded successfully, plug-in unit upgrade signal of dishing out, concrete plug-in unit can be risen according to plug-in unit name and version Level is processed.
Specifically, plug-in unit can in a modular manner (for example:C++ file etc.) dynamically it is deployed in framework, thus Increase, extend or change the function of system.In order to be deployed in a modular manner in plug-in system it is necessary to follow default rule Then write plug-in unit, or using instrument, engineering is packaged into legal modular insert file.
Because the deployment of support module, system can be divided into different plug-in unit classes according to module or other modes Type, so that card module can be isolated from physics rank, is also impossible to directly invoke other module from this module Interface or class.Further, each plug-in unit can state external class and the interface providing and accessing in this plug-in unit, also can pass through The function that will externally provide is claimed as realizing the design towards interface, service-oriented formula.
Dynamic configuration and the unified management of module can be realized by providing management plug-in services, each mould is serviced based on this The configuration of block can be increased, changed and be deleted in run duration, and all management unified call management for module configuration are inserted Part is realizing.
In order to keep the dynamic of system, in design, the principle that must not rely on to static any service can be followed, Thus avoiding the system crash causing when servicing unavailable it is ensured that plug-in unit " can access and use, be i.e. unloading is no ".
As can be seen from the above description, the embodiment of the present invention achieves following technique effect:Provide a kind of plug-in unit System includes:Multiple card i/fs;Multiple plug-in units, each plug-in unit passes through to mate in corresponding card i/f access system, to carry For service;Wherein, each plug-in unit in multiple plug-in units is deployed in plug-in system with being modular, and passes through to insert between multiple plug-in units Part interface carries out information exchange.Because plug-in unit is modular mode being deployed in system, therefore plug-in unit can realize hot portion Administration, when being updated to system it is only necessary to be updated to some plug-in units, need not stop business, existing such that it is able to solve When system being updated in some modes, need the problem of stopping business, reached and do not affected the situation that business is carried out Under, technique effect that system is updated.
Obviously, those skilled in the art should be understood that each module of the above-mentioned embodiment of the present invention or each step are permissible Realized with general computing device, they can concentrate on single computing device, or be distributed in multiple computing devices On the network being formed, alternatively, they can be realized with the executable program code of computing device, it is thus possible to by it Store to be executed by computing device in the storage device, and in some cases, can be to hold different from order herein The shown or described step of row, or they are fabricated to respectively each integrated circuit modules, or will be multiple in them Module or step are fabricated to single integrated circuit module to realize.So, the embodiment of the present invention be not restricted to any specifically hard Part and software combine.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area For art personnel, the embodiment of the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.

Claims (9)

1. a kind of plug-in system is it is characterised in that include:
Multiple card i/fs;
Multiple plug-in units, each plug-in unit passes through to mate in corresponding card i/f access system, to provide service;
Wherein, each plug-in unit in the plurality of plug-in unit is deployed in described plug-in system with being modular, the plurality of plug-in unit Between information exchange is carried out by card i/f.
2. plug-in system as claimed in claim 1 is it is characterised in that each plug-in unit in the plurality of plug-in unit is defined as Little function set.
3. plug-in system as claimed in claim 1 is it is characterised in that each plug-in unit in the plurality of plug-in unit is only provided out At least one of:This plug-in unit can the service that can be provided by of invoked class, this plug-in unit, this plug-in unit need the class relying on and this insert Part needs the service relying on.
4. plug-in system as claimed in claim 1 is it is characterised in that each plug-in unit in the plurality of plug-in unit is a C++ Module.
5. plug-in system as claimed in claim 3 is it is characterised in that also include:Monitoring modular, for starting in application system Before, judge whether the dependence of the class between each plug-in unit in described plug-in system meets, and be discontented with determining to exist In the case of the dependence of foot, identify ungratified dependence.
6. plug-in system as claimed in claim 3 is it is characterised in that the plurality of plug-in unit includes:Base insert, business plug-in unit And application plug-in, wherein:
Described base insert, for being managed to the business plug-in unit in described plug-in system and application plug-in;
Described business plug-in unit and application plug-in, for providing service.
7. plug-in system as claimed in claim 6 is it is characterised in that described business plug-in unit and described application plug-in can be in applications Program is mounted, updates or unloads during running.
8. plug-in system as claimed in claim 6 is it is characterised in that described base insert, specifically for described plug-in unit system Business plug-in unit in system and application plug-in carry out the maintenance of life cycle, and wherein, described life cycle includes:Install, update and Unloading.
9. the system as any one of claim 1 to 8 is it is characterised in that described plug-in system is Cluster Rendering plug-in unit System.
CN201610726588.8A 2016-08-25 2016-08-25 Plug-in system Pending CN106406930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610726588.8A CN106406930A (en) 2016-08-25 2016-08-25 Plug-in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610726588.8A CN106406930A (en) 2016-08-25 2016-08-25 Plug-in system

Publications (1)

Publication Number Publication Date
CN106406930A true CN106406930A (en) 2017-02-15

Family

ID=58004427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610726588.8A Pending CN106406930A (en) 2016-08-25 2016-08-25 Plug-in system

Country Status (1)

Country Link
CN (1) CN106406930A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287833A (en) * 2019-06-13 2019-09-27 北京市天元网络技术股份有限公司 A kind of multi-application system and device based on recognition of face

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710535A (en) * 2005-05-10 2005-12-21 上海宝信软件股份有限公司 GIS application system and development method thereof
CN101571811A (en) * 2009-05-22 2009-11-04 中兴通讯股份有限公司 Information transmission method and device thereof
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN103645919A (en) * 2013-12-18 2014-03-19 用友软件股份有限公司 Method for extending functions of management information system through plugins
CN103810008A (en) * 2014-02-19 2014-05-21 迈普通信技术股份有限公司 Plug-in loading method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710535A (en) * 2005-05-10 2005-12-21 上海宝信软件股份有限公司 GIS application system and development method thereof
CN101571811A (en) * 2009-05-22 2009-11-04 中兴通讯股份有限公司 Information transmission method and device thereof
CN102413115A (en) * 2011-08-12 2012-04-11 乐视网信息技术(北京)股份有限公司 Client plug-in system
CN103645919A (en) * 2013-12-18 2014-03-19 用友软件股份有限公司 Method for extending functions of management information system through plugins
CN103810008A (en) * 2014-02-19 2014-05-21 迈普通信技术股份有限公司 Plug-in loading method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287833A (en) * 2019-06-13 2019-09-27 北京市天元网络技术股份有限公司 A kind of multi-application system and device based on recognition of face

Similar Documents

Publication Publication Date Title
US11948014B2 (en) Multi-tenant control plane management on computing platform
JP5542796B2 (en) Method and apparatus for managing mobile device software
CN110007980B (en) Method and device for realizing multi-service server
US11915067B2 (en) Resource management method for node in kubernetes, device, and medium
CN105278996A (en) Log collection method and device and log service system
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
US20060095551A1 (en) Extensible service processor architecture
EP1840741A1 (en) Device, method, and computer program product for accessing a non-native application executing in a virtual machine environment
KR20050089072A (en) Method and apparatus for shared libraries on mobile devices
US20130227572A1 (en) Test device, a system, a program and a method
CN111651219A (en) Method and equipment for managing multi-module project configuration file
CN117075930B (en) Computing framework management system
US20240345829A1 (en) Mobile service upgrade method and apparatus, and terminal
CN105144085A (en) Software framework for a storage device
CN107977243A (en) A kind of third party&#39;s interface call method and device
KR101943936B1 (en) Integrated external interconnection system and method for web standard application development
CN106406930A (en) Plug-in system
CN105122209A (en) Web services provided from software framework
CN108804236B (en) AIDL file sharing method and system
CN113867776B (en) Method and device for issuing middle-stage application, electronic equipment and storage medium
CN105183468A (en) Open plugin processing apparatus and distributed system
CN111562968B (en) Method, device, equipment and medium for realizing management of ICS (Internet connection sharing) to Kata container
US9882963B2 (en) Distributed test system architecture
CN109901826B (en) Data processing method and device for Java program and electronic equipment
CN110209427B (en) Application system, starting method thereof, electronic device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20191031

Address after: Science and Technology City kolding road high tech Zone of Suzhou City, Jiangsu Province, No. 78 215000

Applicant after: Suzhou creative cloud Network Technology Co., Ltd.

Address before: Science and Technology City kolding road high tech Zone of Suzhou City, Jiangsu province 215000 No. 78 No. 7 Building 2 layer

Applicant before: Suzhou Land High Tech System Science & Technology Co., Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215

RJ01 Rejection of invention patent application after publication