CN101499931B - Function expansion method and system based on distributed environment - Google Patents
Function expansion method and system based on distributed environment Download PDFInfo
- Publication number
- CN101499931B CN101499931B CN2009101059834A CN200910105983A CN101499931B CN 101499931 B CN101499931 B CN 101499931B CN 2009101059834 A CN2009101059834 A CN 2009101059834A CN 200910105983 A CN200910105983 A CN 200910105983A CN 101499931 B CN101499931 B CN 101499931B
- Authority
- CN
- China
- Prior art keywords
- function
- function extension
- module
- realization
- application function
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 230000008569 process Effects 0.000 claims abstract description 55
- 230000006870 function Effects 0.000 claims description 293
- 238000012545 processing Methods 0.000 description 9
- 238000012856 packing Methods 0.000 description 5
- 230000010365 information processing Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000006386 memory function Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Landscapes
- Multi Processors (AREA)
Abstract
The invention discloses a function expansion method based on a distributed environment, which comprises the following steps: A. setting a plurality of function extension points in a basic application function module, and establishing a corresponding relation between the function extension points and each application function extension realizing module in a function extension management module; B. when the function extension point is operated, searching an application function extension realizing module corresponding to the function extension point according to the corresponding relation in the function extension management module; C. the basic application function module calls the searched application function expansion implementation module through a message. The invention also discloses a function expansion system based on the distributed environment. The invention utilizes the characteristic that the message can be transmitted in the distributed environment, and the calling realized by the application function expansion is carried out by adopting the message sending mode, thereby solving the problem that the function calling between different processes can not be finished by local calling, and further finishing the function expansion 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, to the specific demand of special installation, then implements these as the application function extension realization when needed again; Promptly when operation, merge basic application function and application function extension realization through method for developing functions again.The called function extended method is exactly in when operation, and basic application function finds the application function extension realization and carry out the service logic of this application function extension realization 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; Through the function expansion management function extension point in the basic application function and application function extension realization are bound; Basic application function calls the service logic of carrying out the application function extension realization through this locality when implementing the function extension point; The application function extension realization returns to basic application function with its execution result, and basic application function is carried out the follow-up business processing logic of basic application function according to the return results of this function extension realization.Because the service logic that basic application function is carried out the application function extension realization is that call this locality; And under distributed environment; Basic application function and application function extension realization maybe be in same processes; In this case, basic application function can not be carried out the service logic of application function extension realization through 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 through following technical scheme:
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 the application function extension realization module;
B. when running to the function extension point according to corresponding relation in the function expansion management module, search the pairing application function extension realization of this function extension point module;
C. basic applied function module calls the above-mentioned application function extension realization module that finds through message.
Said step C specifically may further comprise the steps:
C1. basic applied function module sends the synchronization message that comprises the request of execution to the application function extension realization module that step B obtains;
C2. the applied business logic of expanding is carried out in the above-mentioned request of application function extension realization module responds, and execution result is sent to basic applied function module through return messages.
Said 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 extension realization block configuration in the current process, comprise corresponding relation in this configuration with function extension point ID;
A3. set up the corresponding relation of function extension point and application function extension realization module according to the function extension point ID in the steps A 1 and the corresponding relation in the steps A 2.
Calling through messaging bus among the said step C realizes.
Said steps A comprises that also the corresponding relation with function extension point and application function extension realization module is stored in the process in the function extended registration table; Said step B obtains the corresponding application function extension realization of function extension point module through this registration table of inquiry.
Said steps A also comprises through the message call bus sends the message that comprises function extension point and application function extension realization module corresponding relation, notifies other processes to upgrade the process of the function extended registration table that it comprised.
A kind of function extension system based on distributed environment; Comprise a plurality of processes; Said process comprises function expansion management module, basic applied function module and application function extension realization module, and said function expansion management module is used to set up the corresponding relation of function extension point and application function extension realization module; Said basic applied function module is used to realize basic applied business logic; Search the pairing application function extension realization of this function extension point module according to said corresponding relation when running to the function extension point, and through the pairing application function extension realization of this function extension point of message call module.
Said basic applied function module also is used for sending the synchronization message that comprises the request of execution to the said application function extension realization module that finds; Said application function extension realization module is used to respond said execution request, carries out the applied business logic of expansion, and execution result is sent to said basic applied function module through return messages.
Also comprise messaging bus, said messaging bus is used to call said message.
Be provided with function extended registration table in the said function expansion management module, be used to store the said corresponding relation that said function expansion management module is set up; Said function expansion management module also is used for sending the message that comprises function extension point and application function extension realization module corresponding relation through calling said messaging bus, notifies other processes to upgrade the function extended registration table that it comprised.
The beneficial effect that the present invention compares with prior art is:
(1) characteristics of utilizing message in distributed environment, to transmit; Adopt the mode of sending message to carry out calling of application function extension realization; Solved the local funcall that calls between the different processes that institute can't accomplish, expanded thereby accomplished the function in the distributed environment.
(2) adopt the synchronization message transmission, make caller after obtaining to call the result, determine flow 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 corresponding relation between function extended registration table memory function extension point and the application function extension realization; Inquire about that this registration table can obtain corresponding relation and to the receiver address of application function extension realization; This implementation can have improvement acquisition on the function extended mode that calls this locality now, has kept compatible preferably;
The message that comprises function extension point and application function extension realization corresponding relation is sent in the variation of the function extended registration table of (5) processes through 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 the inventive method embodiment calling application function extension realization flow chart;
Fig. 5 is the inventive method embodiment messaging bus workflow diagram.
Embodiment
Combine accompanying drawing that the present invention is explained further details through embodiment below.
The present invention is based on the function extension system of distributed environment, its a kind of execution mode is as shown in Figure 1, works in this locality and calls, and is identical with prior art.
Its another kind of execution mode is as shown in Figure 2, works in the distributed telecommunication network management environment, comprises a plurality of processes, and each process comprises function expansion management module, basic applied function module, application function extension realization module and messaging bus respectively.
Function expansion management module comprises function extended registration table; Be used for storage system function extension point, application function extension 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 function of initializing extension point, initialization application function extension realization 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 extension realization module is responsible for searching for the configuration of current process application function extension realization; Set up the corresponding relation between configuration of function extension point declaration definition and the configuration of application function extension realization; Be the corresponding relation between function extension point and the application function extension realization 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, deletes, revises and inquires about; 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 the corresponding relation of setting up between function extension point and the application function extension realization; Send the message that comprises function extension point and application function extension realization module corresponding relation through 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 in business processing flow, has specific demand is also according to the follow-up processing flow of the execution result of application function extension realization module decision webmaster applied business logic.Basic webmaster applied business logic is meant the common application function that is fit to most situation.
Application function extension realization module; Be used to realize the application function of specific demand; The information processing objects and the configuration of application function extension realization of synchronization message promptly are provided, realize the webmaster applied business logic of expansion, and its execution result is returned to basic applied function module through messaging bus.In this execution mode, application function extension realization module has a plurality of, 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, the handled service logic of application function extension realization module maybe be inequality, but the handled service logic of function expansion management module and messaging bus is identical, the data difference of just handling.
Messaging bus; Be used for message call; As be used to send synchronization message and the response message thereof between basic applied function module and the application function extension realization module; Be used for the function expansion management module of notifying other processes with the function extension point and the corresponding relation between the application function extension realization of this process, also be used for message packing, message parse, message and send work such as abnormality processing, synchronization message processing.In this execution mode, 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 the application function extension 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 through 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 through search;
Step 302: obtain all application function extension realization block configuration in the current process.Application function extension realization module is made up of information processing objects and application function extension 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 of application function extension realization module self expansion; Application function extension realization block configuration then dispose application function extension realization module message recipient address, 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 extension 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 extension realization module.Configuration of the declaration definition of the function extension point of the basic applied function module that at first will obtain and application function extension realization block configuration convert the function extension point and the application function extension realization block configuration object of basic applied function module respectively into, and set up the corresponding relation between the two through function extension point ID;
Step 304: the function extension point of basic applied function module and the corresponding relation of application function extension realization block configuration object are stored in the function extended registration table;
Step 305: notify the variation of function extended registration table in other these processes of process through messaging bus, other processes are upgraded the function extended registration table of its place processes.
Step B: when running to the function extension point,, search the pairing application function extension realization of this function extension point 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 through the pairing function extension realization of this function extension point of message call module.As shown in Figure 4, it specifically comprises the steps:
Step 401: basic applied function module obtains synchronization message from the application function extension realization module that finds destination; Construct the synchronization message that need send to corresponding application function extension realization module, this synchronization message comprises the execution request of carrying out application function extension realization module;
Step 402: basic applied function module message call bus is sent the synchronization message that comprises the request of execution and is given corresponding application function extension realization module;
Step 403: business logic processing is accomplished in the request of application function extension realization module responds, sends the return messages that comprise result and gives basic applied function module.
Because be synchronization message, so in the business logic processing process of application function extension realization, the service logic of basic application function is in wait state.
Messaging bus is as shown in Figure 5 to the handling process of synchronization message, may further comprise the steps:
Step 501: basic applied function module message call EBI sends message;
Step 502: messaging bus is the unique sign of distribution of messages, and in this execution mode, this is designated the sequence number of message;
Step 503: messaging bus is packed message, and in this execution mode, 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 is to combine concrete preferred implementation to the further explain that the present invention did, and can not assert that practical implementation of the present invention is confined to these explanations.For the those of ordinary skill of technical field under the present invention, under the prerequisite that does not break away from the present invention's design, can also make some simple deduction or replace, all should be regarded 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 the application function extension realization module;
B. when running to the function extension point,, search the pairing application function extension realization of this function extension point module according to corresponding relation in the function expansion management module;
C. basic applied function module calls the above-mentioned application function extension realization module that finds through message.
2. method for developing functions according to claim 1 is characterized in that, said step C specifically may further comprise the steps:
C1. basic applied function module sends the synchronization message that comprises the request of execution to the application function extension realization module that step B obtains;
C2. the applied business logic of expanding is carried out in the above-mentioned request of application function extension realization module responds, and execution result is sent to basic applied function module through return messages.
3. method for developing functions according to claim 1 is characterized in that, said 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 extension realization block configuration in the current process, comprise corresponding relation in this configuration with function extension point ID;
A3. set up the corresponding relation of function extension point and application function extension realization 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 through messaging bus among the said step C realizes.
5. according to any described method for developing functions in the claim 1 to 3, it is characterized in that said steps A comprises that also the corresponding relation with function extension point and application function extension realization module is stored in the process in the function extended registration table; Said step B obtains the corresponding application function extension realization of function extension point module through this registration table of inquiry.
6. method for developing functions according to claim 5; It is characterized in that; Said steps A also comprises through the message call bus sends the message that comprises function extension point and application function extension realization module corresponding relation, notifies other processes to upgrade the process of the function extended registration table that it comprised.
7. function extension system based on distributed environment; It is characterized in that; Comprise a plurality of processes; Said process comprises function expansion management module, basic applied function module and application function extension realization module, and said function expansion management module is used to set up the corresponding relation of function extension point and application function extension realization module; Said basic applied function module is used to realize basic applied business logic; Search the pairing application function extension realization of this function extension point module according to said corresponding relation when running to the function extension point, and through the pairing application function extension realization of this function extension point of message call module.
8. function extension system according to claim 7 is characterized in that, said basic applied function module also is used for sending the synchronization message that comprises the request of execution to the said application function extension realization module that finds; Said application function extension realization module is used to respond said execution request, carries out the applied business logic of expansion, and execution result is sent to said basic applied function module through return messages.
9. according to claim 7 or 8 described function extension systems, it is characterized in that also comprise messaging bus, said messaging bus is used to call said message.
10. function extension system according to claim 9 is characterized in that, is provided with function extended registration table in the said function expansion management module, is used to store the said corresponding relation that said function expansion management module is set up; Said function expansion management module also is used for sending the message that comprises function extension point and application function extension realization module corresponding relation through calling said messaging bus, notifies other processes to upgrade the function extended registration table that it comprised.
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 CN101499931A (en) | 2009-08-05 |
CN101499931B true 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) |
Families Citing this family (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 |
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 |
CN107450923B (en) * | 2017-07-28 | 2021-07-02 | 郑州云海信息技术有限公司 | Method and device for realizing customized baseline separation program |
CN110795109A (en) * | 2019-10-25 | 2020-02-14 | 北京达佳互联信息技术有限公司 | Function expansion method and device and electronic equipment |
CN113760399A (en) * | 2020-11-30 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for process expansion |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1513156A (en) * | 2001-06-08 | 2004-07-14 | ���ṫ˾ | Function extension module |
CN1547357A (en) * | 2003-12-16 | 2004-11-17 | 北京航空航天大学 | Dynamically constructed network management method |
CN1558603A (en) * | 2004-01-17 | 2004-12-29 | 港湾网络有限公司 | Integrated net element management system and handling method thereof |
CN1818884A (en) * | 2005-02-07 | 2006-08-16 | 富士通株式会社 | Computer, IO expansion device and method for recognizing connection of IO expansion device |
-
2009
- 2009-03-13 CN CN2009101059834A patent/CN101499931B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1513156A (en) * | 2001-06-08 | 2004-07-14 | ���ṫ˾ | Function extension module |
CN1547357A (en) * | 2003-12-16 | 2004-11-17 | 北京航空航天大学 | Dynamically constructed network management method |
CN1558603A (en) * | 2004-01-17 | 2004-12-29 | 港湾网络有限公司 | Integrated net element management system and handling method thereof |
CN1818884A (en) * | 2005-02-07 | 2006-08-16 | 富士通株式会社 | Computer, IO expansion device and method for recognizing connection of IO expansion device |
Also Published As
Publication number | Publication date |
---|---|
CN101499931A (en) | 2009-08-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101499931B (en) | Function expansion method and system based on distributed environment | |
CN101141742B (en) | Application communication method of terminal | |
CN105450618A (en) | Operation method and operation system of big data process through API (Application Programming Interface) server | |
AU6129200A (en) | Information management technique | |
CN101582861B (en) | Method of IM specific customer service call, as well as server, client and system thereof | |
US20160241635A1 (en) | M2m data querying and invoking methods, querying and invoking devices, and system | |
CN103106094A (en) | File opening method and intelligent mobile terminal | |
CN103546572A (en) | Cloud storage device and multi-cloud storage networking system and method | |
CN102036055A (en) | Camera cradle head control system and control method | |
CN106506246B (en) | Optical network unit, the method for its dynamic expansion management function and GPON system | |
WO2005046120A1 (en) | A method for data redundancy of hlr | |
CN1972276B (en) | A management method and system for protocol access | |
CN101159972B (en) | Traffic processing method and system and traffic control point | |
CN114244654B (en) | URL forwarding method, device, equipment and computer storage medium | |
CN104426816A (en) | Virtual machine communication method and device | |
CN104954462A (en) | High-concurrency extensible smart home communication method and high-concurrency extensible smart home communication system | |
CN104200394A (en) | Power grid equipment network analysis method and system based on SpatiaLite database | |
CN105027631A (en) | Techniques for discovery of Wi-Fi serial bus and Wi-Fi docking services | |
CN102025773B (en) | Method and device for interconnected control of splicing wall | |
CN104378747A (en) | Method and device for calling opposite-terminal device with short number | |
CN110392114B (en) | Service call processing system and method across multiple registration centers | |
CN115277707A (en) | Service processing method, device, electronic equipment and storage medium | |
CN104935461A (en) | Network resource management method and system in multi-network environment | |
CN102413184A (en) | Method and device for realizing protocol stack in distributed architecture | |
CN105991450A (en) | MAC address table updating method and device |
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 |