CN101499931A - Function expansion method and system based on distributed environment - Google Patents
Function expansion method and system based on distributed environment Download PDFInfo
- Publication number
- CN101499931A CN101499931A CNA2009101059834A CN200910105983A CN101499931A CN 101499931 A CN101499931 A CN 101499931A CN A2009101059834 A CNA2009101059834 A CN A2009101059834A CN 200910105983 A CN200910105983 A CN 200910105983A CN 101499931 A CN101499931 A CN 101499931A
- Authority
- CN
- China
- Prior art keywords
- function
- module
- expansion
- function expansion
- extension point
- 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.)
- Granted
Links
Images
Landscapes
- Multi Processors (AREA)
Abstract
The invention discloses a function extension method based on distributed environment. The method comprises the following steps of: A. setting a plurality of function extension points in a basic application function module, establishing a corresponding relation between a function extension point and each application function extension realization module; B. searching the application function extension realization module corresponding to the function extension points according to the corresponding relation in a function extension management module when the function extension point is reached; and C. the basic application function module calling the application function extension realization module which is searched in the above process through information. The invention also discloses a function extension system based on distributed environment. The invention makes use of the characteristic that information can be transmitted in a distributed environment and adopts the mode of sending messages to call the realization of application function extension, which solves the problem that local calling can not realize the function calling among different processes, thus finishing the function extension in the distributed environment.
Description
Technical field
The present invention relates to the telecommunication equipment network management domain, be specifically related to a kind of method for developing functions and system that can be used for realizing the distributed telecommunication apparatus webmaster.
Background technology
Along with the development that telecommunication technology makes rapid progress, the kind of telecommunication apparatus becomes more and more, the business of telecommunication equipment network management also become become increasingly complex changeable.How to adapt to the major issue that the fast-changing demand of operator has just become the telecommunication equipment network management system to consider.In order to adapt to this variation fast, usually, the general requirment that network equipment provider extracts most of telecommunication apparatus is embodied as basic application function, specific demand at special installation, then implementing these as the application function expansion when needed again realizes, promptly when operation, by method for developing functions basic application function and application function expansion are realized merging to get up again.The called function extended method is exactly when operation, and basic application function finds application function expansion realization and carries out the service logic that this application function expansion realizes the specific opportunity in its business processing logic.Be called the function extension point this specific opportunity.
Present industry method for developing functions commonly used, as shown in Figure 1, by the function expansion management function extension point in the basic application function and application function expansion are realized binding, basic application function calls the service logic of carrying out application function expansion realization by this locality when carrying out the function extension point, the application function expansion realizes its execution result is returned to basic application function, and basic application function is carried out the follow-up business processing logic of basic application function according to the return results that this function expansion realizes.Because it is that call this locality that basic application function is carried out the service logic of application function expansion realization, and under distributed environment, basic application function and application function expansion realize may be in same process, in this case, basic application function can not be carried out the service logic that the application function expansion realizes by the mode that call this locality, so existing this method for developing functions can't use under distributed environment.
Summary of the invention
Technical problem to be solved by this invention just provides a kind of method for developing functions and system that works in distributed environment.
Technical problem of the present invention is solved by the following technical programs:
A kind of method for developing functions based on distributed environment may further comprise the steps:
A. in basic applied function module, a plurality of function extension points are set, and in function expansion management module, set up the corresponding relation between function extension point and each application function expansion realization module;
B. when running to the function extension point according to corresponding relation in the function expansion management module, search the expansion of the pairing application function of this function extension point and realize module;
C. basic applied function module calls the above-mentioned application function expansion that finds by message and realizes module.
Described step C specifically may further comprise the steps:
C1. the application function expansion that basic applied function module obtains to step B realizes that module sends the synchronization message that comprises the request of execution;
C2. the application function expansion realizes the above-mentioned request of module responds, carries out the applied business logic of expansion, and execution result is sent to basic applied function module by return messages.
Described steps A specifically may further comprise the steps:
A1. obtain the function extension point declaration definition configuration of all basic applied function modules in the current process, comprise function extension point ID in this configuration;
A2. obtain all application function expansion realization block configuration in the current process, comprise corresponding relation in this configuration with function extension point ID;
A3. set up the corresponding relation that function extension point and application function expansion realize module according to the function extension point ID in the steps A 1 and the corresponding relation in the steps A 2.
Calling by messaging bus among the described step C realizes.
Described steps A also comprises the expansion of function extension point and application function is realized that the corresponding relation of module is stored in the process in the function extended registration table; Described step B obtains the corresponding application function expansion of function extension point by this registration table of inquiry and realizes module.
Described steps A also comprises the message that comprises function extension point and application function expansion realization module corresponding relation by the transmission of message call bus, notifies other processes to upgrade the process of its function extended registration table that comprises.
A kind of function extension system based on distributed environment, comprise a plurality of processes, described process comprises that function expansion management module, basic applied function module and application function expansion realize module, and described function expansion management module is used to set up the corresponding relation of function extension point and application function expansion realization module; Described basic applied function module is used to realize basic applied business logic, search the pairing application function expansion of this function extension point according to described corresponding relation when running to the function extension point and realize module, and realize module by the pairing application function expansion of this function extension point of message call.
Described basic applied function module also is used for realizing that to the described application function expansion that finds module sends the synchronization message that comprises the request of execution; Described application function expansion realizes that module is used to respond described execution request, carries out the applied business logic of expansion, and execution result is sent to described basic applied function module by return messages.
Also comprise messaging bus, described messaging bus is used to call described message.
Be provided with function extended registration table in the described function expansion management module, be used to store the described corresponding relation that described function expansion management module is set up; Described function expansion management module also is used for sending the message that comprises function extension point and application function expansion realization module corresponding relation by calling described messaging bus, notifies other processes to upgrade the function extended registration table that it comprises.
The beneficial effect that the present invention compares with prior art is:
(1) characteristics of utilizing message in distributed environment, to transmit, the mode of calling employing transmission message that the application function expansion realizes is carried out, solved the local funcall that calls between the different processes that institute can't finish, expanded thereby finished the function in the distributed environment.
(2) adopt the synchronization message transmission, make caller after obtaining to call the result, determine follow-up flow process according to this result again, solved the stationary problem between process;
(3) adopt messaging bus to carry out the message transmission, implementation is simple.
(4) utilize the corresponding relation of function extended registration table memory function extension point and application function expansion between realizing, inquire about the receiver address that this registration table can obtain corresponding relation and application function be expanded realization, this implementation can have improvement acquisition on the function extended mode that calls this locality now, has kept compatible preferably;
The variation of the function extended registration table of (5) processes sends the message that comprises function extension point and application function expansion realization corresponding relation by the message call bus, notify other processes to carry out the renewal of function extended registration table, guaranteed function expansion management between process in the distributed environment synchronously, improved efficient.
Description of drawings
Fig. 1 is the structural representation of this locality when calling;
Fig. 2 is the structural representation that system of the present invention embodiment works in distributed environment;
Fig. 3 is the inventive method embodiment function expansion management initialization flowchart;
Fig. 4 is that the inventive method embodiment is called application function expansion realization flow figure;
Fig. 5 is the inventive method embodiment messaging bus workflow diagram.
Embodiment
In conjunction with the accompanying drawings the present invention is described in further details below by embodiment.
The present invention is based on the function extension system of distributed environment, its a kind of execution mode works in this locality and calls as shown in Figure 1, and is same as the prior art.
Its another kind of execution mode works in the distributed telecommunication network management environment as shown in Figure 2, comprises a plurality of processes, and each process comprises that respectively function expansion management module, basic applied function module, application function expansion realize module and messaging bus.
Function expansion management module comprises function extended registration table, be used for storage system function extension point, application function expansion realization module and the corresponding relation between the two, an identical functions extended registration table is all arranged in each process under distributed environment.Function expansion management module is used for the function of initializing extension point, the expansion of initialization application function realizes module and management function extended registration table.The initialization of function extension point is responsible for searching for the function extension point declaration definition configuration of the basic application function of current process; The initialization of application function expansion realization module is responsible for searching for the expansion of current process application function and is realized configuration, set up the corresponding relation between configuration of function extension point declaration definition and the application function expansion realization configuration, be that the expansion of function extension point and application function realizes the corresponding relation between the module, and this corresponding relation is stored in the function extended registration table.Function expansion management module is responsible for the information in the function extended registration table is increased, deletion, revise and inquiry, also be responsible for the function extended registration table content of each process synchronously, promptly when current process function extended registration table content changes, as when setting up the corresponding relation of function extension point and application function expansion between realizing, send the message that comprises function extension point and application function expansion realization module corresponding relation by the message call bus, notify the function expansion management module of other processes, after the function expansion management module of other processes is received the message that comprises this corresponding relation, this corresponding relation is updated in the function extended registration table of place process.Function expansion management module is all arranged in each process under distributed environment, and the function of execution is also basic identical.
Basic applied function module is used to realize being adapted to the network management system utility function of most of telecommunication apparatus, realize basic webmaster applied business logic, the place statement function extension point that has specific demand in business processing flow, also expansion realizes that the execution result of module determines the follow-up processing flow of webmaster applied business logic according to application function.Basic webmaster applied business logic is meant the common application function that is fit to most situations.
The application function expansion realizes module, be used to realize the application function of specific demand, promptly provide the information processing objects and the application function expansion of synchronization message to realize configuration, realize the webmaster applied business logic of expansion, and its execution result is returned to basic applied function module by messaging bus.In the present embodiment, it is a plurality of that application function expansion realizes that module has, be distributed in a plurality of processes, and with the function extension point of basic applied function module be many-to-one corresponding relation.In the different processes, basic applied function module, application function expansion realize that the handled service logic of module may be inequality, but the handled service logic of function expansion management module and messaging bus is identical, just the data difference of handling.
Messaging bus, be used for message call, as be used to send basic applied function module and application function expansion and realize synchronization message and response message thereof between the module, corresponding relation between being used for the function extension point of this process and application function expansion realized is notified the function expansion management module of other processes, also is used for message packing, message parse, message and sends work such as abnormality processing, synchronization message processing.In the present embodiment, messaging bus is used to the unique sign of distribution of messages, set up with message packing, according to the destination address and the purpose process of message of appointment in the message and link and the message of packing is sent to the purpose process.
The present invention is based on the method for developing functions of distributed environment, its a kind of execution mode comprises the steps:
Steps A: in basic applied function module, a plurality of function extension points are set, and in function expansion management module, set up the corresponding relation between function extension point and each application function expansion realization module.The function extension point of all basic applied function modules in the system is obtained in the module initialization of function expansion management at the beginning of system start-up, as shown in Figure 3, this initialization procedure specifically may further comprise the steps:
Step 301: the declaration definition configuration of obtaining all basic applied function module function extension points in the current process.The function extension point of basic applied function module states that by the definition configuration declaration definition configuration of a function extension point comprises information such as function extension point ID, function extension point message id, the definition of function extension point message format.When system start-up, obtain the declaration definition configuration of the function extension point of all basic applied function modules under the catalogue of current process place by search;
Step 302: obtain all application function expansion realization block configuration in the current process.Application function expansion realization module is made up of information processing objects and application function expansion realization block configuration.Information processing objects is responsible for receiving the message that basic applied function module sends, and begins to carry out the service logic that the application function expansion realizes module self expansion; Application function expansion realize message recipient address that block configuration then disposes the application function expansion and realize module, Message Processing class and and the function extension point ID of basic applied function module between corresponding relation.After the configuration of the declaration definition of the function extension point of all basic applied function modules, all application function expansion realization block configuration under the catalogue of current process place are obtained in search again in obtaining system;
Step 303: set up the function extension point of basic applied function module and the corresponding relation between the application function expansion realization module.At first the expansion of the declaration definition of the function extension point of the basic applied function module that will obtain configuration and application function realizes that block configuration is converted to the function extension point and the application function expansion realization block configuration object of basic applied function module respectively, and sets up corresponding relation between the two by function extension point ID;
Step 304: the function extension point and the application function expansion of basic applied function module are realized that the corresponding relation of block configuration object is stored in the function extended registration table;
Step 305: notify the variation of function extended registration table in other these processes of process by messaging bus, other processes are upgraded the function extended registration table of its place process.
Step B: when running to the function extension point,, search the pairing application function expansion of this function extension point and realize module according to corresponding relation in the function expansion management module.A kind of execution mode is that the querying method of calling function expansion management module obtains from function extended registration table;
Step C: basic applied function module is realized module by the pairing function expansion of this function extension point of message call.As shown in Figure 4, it specifically comprises the steps:
Step 401: basic applied function module obtains synchronization message from the application function expansion realization module that finds destination, construct and need send to the synchronization message that corresponding application function expansion realizes module, this synchronization message comprises the execution request that the application function expansion realizes module of carrying out;
Step 402: the transmission of applied function module message call bus comprises the application function expansion realization module of the synchronization message of the request of execution to correspondence substantially;
Step 403: business logic processing is finished in the request of application function expansion realization module responds, sends to comprise the return messages of result to basic applied function module.
Because be synchronization message, so in the business logic processing process that the application function expansion realizes, the service logic of basic application function is in wait state.
Messaging bus may further comprise the steps to the handling process of synchronization message as shown in Figure 5:
Step 501: basic applied function module message call bus interface sends message;
Step 502: messaging bus is the unique sign of distribution of messages, and in the present embodiment, this is designated the sequence number of message;
Step 503: messaging bus is packed message, and in the present embodiment, message comprises synchronization message and return messages, is with the byte array of message transformation for transmitting based on socket with message packing;
Step 504: messaging bus is set up socket according to the destination address of appointment in the message with the purpose process of message and is linked;
Step 505: messaging bus sends to the purpose process with the message of packing, and waits for return messages;
Step 506, messaging bus judge whether return messages are overtime, if overtime then change step 508; The not overtime step 507 of then changeing;
Step 507: return to basic applied function module after return messages are resolved, flow process finishes.
Step 508: unusual to basic applied function module prompt timeout, flow process finishes.
After basic applied function module is received synchronous return messages, determine the follow-up execution flow process of the basic service logic of basic applied function module according to return messages, and continue to carry out its basic service logic.
Above content be in conjunction with concrete preferred implementation to further describing that the present invention did, can not assert that concrete enforcement of the present invention is confined to these explanations.For the general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.
Claims (10)
1. the method for developing functions based on distributed environment is characterized in that, may further comprise the steps:
A. in basic applied function module, a plurality of function extension points are set, and in function expansion management module, set up the corresponding relation between function extension point and each application function expansion realization module;
B. when running to the function extension point,, search the pairing application function expansion of this function extension point and realize module according to corresponding relation in the function expansion management module;
C. basic applied function module calls the above-mentioned application function expansion that finds by message and realizes module.
2. method for developing functions according to claim 1 is characterized in that, described step C specifically may further comprise the steps:
C1. the application function expansion that basic applied function module obtains to step B realizes that module sends the synchronization message that comprises the request of execution;
C2. the application function expansion realizes the above-mentioned request of module responds, carries out the applied business logic of expansion, and execution result is sent to basic applied function module by return messages.
3. method for developing functions according to claim 1 is characterized in that, described steps A specifically may further comprise the steps:
A1. obtain the function extension point declaration definition configuration of all basic applied function modules in the current process, comprise function extension point ID in this configuration;
A2. obtain all application function expansion realization block configuration in the current process, comprise corresponding relation in this configuration with function extension point ID;
A3. set up the corresponding relation that function extension point and application function expansion realize module according to the function extension point ID in the steps A 1 and the corresponding relation in the steps A 2.
4. according to any described method for developing functions in the claim 1 to 3, it is characterized in that calling by messaging bus among the described step C realizes.
5. according to any described method for developing functions in the claim 1 to 3, it is characterized in that described steps A also comprises the expansion of function extension point and application function is realized that the corresponding relation of module is stored in the process in the function extended registration table; Described step B obtains the corresponding application function expansion of function extension point by this registration table of inquiry and realizes module.
6. method for developing functions according to claim 5, it is characterized in that, described steps A also comprises the message that comprises function extension point and application function expansion realization module corresponding relation by the transmission of message call bus, notifies other processes to upgrade the process of its function extended registration table that comprises.
7. function extension system based on distributed environment, it is characterized in that, comprise a plurality of processes, described process comprises that function expansion management module, basic applied function module and application function expansion realize module, and described function expansion management module is used to set up the corresponding relation of function extension point and application function expansion realization module; Described basic applied function module is used to realize basic applied business logic, search the pairing application function expansion of this function extension point according to described corresponding relation when running to the function extension point and realize module, and realize module by the pairing application function expansion of this function extension point of message call.
8. function extension system according to claim 7 is characterized in that, described basic applied function module also is used for realizing that to the described application function expansion that finds module sends the synchronization message that comprises the request of execution; Described application function expansion realizes that module is used to respond described execution request, carries out the applied business logic of expansion, and execution result is sent to described basic applied function module by return messages.
9. according to claim 7 or 8 described function extension systems, it is characterized in that also comprise messaging bus, described messaging bus is used to call described message.
10. function extension system according to claim 9 is characterized in that, is provided with function extended registration table in the described function expansion management module, is used to store the described corresponding relation that described function expansion management module is set up; Described function expansion management module also is used for sending the message that comprises function extension point and application function expansion realization module corresponding relation by calling described messaging bus, notifies other processes to upgrade the function extended registration table that it comprises.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101059834A CN101499931B (en) | 2009-03-13 | 2009-03-13 | Function expansion method and system based on distributed environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101059834A CN101499931B (en) | 2009-03-13 | 2009-03-13 | Function expansion method and system based on distributed environment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101499931A true CN101499931A (en) | 2009-08-05 |
CN101499931B CN101499931B (en) | 2012-05-09 |
Family
ID=40946821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101059834A Active CN101499931B (en) | 2009-03-13 | 2009-03-13 | Function expansion method and system based on distributed environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101499931B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102486725A (en) * | 2010-12-02 | 2012-06-06 | 上海可鲁系统软件有限公司 | Distributed platform and method for managing life cycle of functional module in platform |
CN102541644A (en) * | 2011-12-30 | 2012-07-04 | 深圳市万兴软件有限公司 | Method and device for message driving based on state machine |
CN105700881A (en) * | 2016-01-12 | 2016-06-22 | 成都中科合迅科技有限公司 | Application module calling method and device |
CN105847026A (en) * | 2015-11-28 | 2016-08-10 | 成都广达新网科技股份有限公司 | Method for extending functions of network management system based on extension points |
CN107450923A (en) * | 2017-07-28 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of Program Realizing Method and device for customizing baseline separation |
CN110795109A (en) * | 2019-10-25 | 2020-02-14 | 北京达佳互联信息技术有限公司 | Function expansion method and device and electronic equipment |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4211604B2 (en) * | 2001-06-08 | 2009-01-21 | ソニー株式会社 | Function expansion module |
CN100364270C (en) * | 2003-12-16 | 2008-01-23 | 北京航空航天大学 | Dynamically constructed network management method |
CN100454826C (en) * | 2004-01-17 | 2009-01-21 | 华为技术有限公司 | Integrated net element management system and handling method thereof |
JP4620483B2 (en) * | 2005-02-07 | 2011-01-26 | 富士通株式会社 | Computer system, computer, IO expansion device, and IO expansion device connection recognition method |
-
2009
- 2009-03-13 CN CN2009101059834A patent/CN101499931B/en active Active
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102486725A (en) * | 2010-12-02 | 2012-06-06 | 上海可鲁系统软件有限公司 | Distributed platform and method for managing life cycle of functional module in platform |
CN102541644A (en) * | 2011-12-30 | 2012-07-04 | 深圳市万兴软件有限公司 | Method and device for message driving based on state machine |
CN102541644B (en) * | 2011-12-30 | 2014-12-24 | 深圳万兴信息科技股份有限公司 | Method and device for message driving based on state machine |
CN105847026A (en) * | 2015-11-28 | 2016-08-10 | 成都广达新网科技股份有限公司 | Method for extending functions of network management system based on extension points |
CN105700881A (en) * | 2016-01-12 | 2016-06-22 | 成都中科合迅科技有限公司 | Application module calling method and device |
CN107450923A (en) * | 2017-07-28 | 2017-12-08 | 郑州云海信息技术有限公司 | A kind of Program Realizing Method and device for customizing baseline separation |
CN110795109A (en) * | 2019-10-25 | 2020-02-14 | 北京达佳互联信息技术有限公司 | Function expansion method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101499931B (en) | 2012-05-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101499931B (en) | Function expansion method and system based on distributed environment | |
CN101827302B (en) | Processing method and unified service platform are unified in multi-service | |
CN101141742B (en) | Application communication method of terminal | |
CN112445626B (en) | Data processing method and device based on message middleware | |
AU6129200A (en) | Information management technique | |
US10148739B2 (en) | M2M data querying and invoking methods, querying and invoking devices, and system | |
CN102866925B (en) | Communication method and system for middleware and user interface | |
CN101582861B (en) | Method of IM specific customer service call, as well as server, client and system thereof | |
CN103139299A (en) | Cloud service scheduling method and cloud service scheduling system among multiple clouds | |
CN105007304A (en) | SOA-based enterprise information technology system data exchange and integration system | |
CN111901793B (en) | UICC application setting information management method and system, UICC smart card and terminal | |
CN110691131A (en) | Micro-service framework system based on intelligent mobile terminal | |
CN102036055A (en) | Camera cradle head control system and control method | |
CN107465609B (en) | Terminal routing method based on Internet of things and Internet of things terminal | |
CN114244654B (en) | URL forwarding method, device, equipment and computer storage medium | |
WO2005046120A1 (en) | A method for data redundancy of hlr | |
CN101159972B (en) | Traffic processing method and system and traffic control point | |
JP7225410B2 (en) | Method and apparatus for establishing optical cable connection | |
CN111309691A (en) | Data sharing exchange system and exchange method based on bus architecture | |
CN105933429A (en) | Server load control method and device | |
CN104426816A (en) | Virtual machine communication method and device | |
CN103516767A (en) | Software cross-cloud deployment mechanism and system | |
CN104954462A (en) | High-concurrency extensible smart home communication method and high-concurrency extensible smart home communication system | |
CN1972276A (en) | A management method and system for protocol access | |
CN104200394A (en) | Power grid equipment network analysis method and system based on SpatiaLite database |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |