CN101499931B - Function expansion method and system based on distributed environment - Google Patents

Function expansion method and system based on distributed environment Download PDF

Info

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 extension
function
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
Application number
CN2009101059834A
Other languages
Chinese (zh)
Other versions
CN101499931A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101059834A priority Critical patent/CN101499931B/en
Publication of CN101499931A publication Critical patent/CN101499931A/en
Application granted granted Critical
Publication of CN101499931B publication Critical patent/CN101499931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Method for developing functions and system based on distributed environment
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.
CN2009101059834A 2009-03-13 2009-03-13 Function expansion method and system based on distributed environment Active CN101499931B (en)

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 (6)

* Cited by examiner, † Cited by third party
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

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN101820435B (en) Synchronization method and device for MAC (Media Access Control) address table information of distributed network processing system
CN101141742B (en) Application communication method of terminal
AU6129200A (en) Information management technique
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
CN103106094A (en) File opening method and intelligent mobile terminal
EP3174318B1 (en) Method for realizing resource attribute notification, and common service entity
CN103546572A (en) Cloud storage device and multi-cloud storage networking system and method
CN102036055A (en) Camera cradle head control system and control method
WO2005046120A1 (en) A method for data redundancy of hlr
CN101159972B (en) Traffic processing method and system and traffic control point
CN104426816A (en) Virtual machine communication method and device
CN114244654A (en) URL forwarding method, device, equipment and computer storage medium
CN105933429A (en) Server load control method and device
CN102025512B (en) Service operation support system, service fulfillment method and device
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
CN103516767A (en) Software cross-cloud deployment mechanism and system
CN105027631A (en) Techniques for discovery of Wi-Fi serial bus and Wi-Fi docking services
CN102904739A (en) Method for realizing event transmission and common information model (CIM) server
CN105515947A (en) Method, server and system for information intercommunication of heterogeneous terminal based on XMPP (Extensible Messaging and Presence Protocol)
CN106162940A (en) A kind of multichannel data connection management method, system and mobile terminal
CN115277707A (en) Service processing method, device, electronic equipment and storage medium
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

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