CN105955830B - Communication means and system between a kind of application module - Google Patents

Communication means and system between a kind of application module Download PDF

Info

Publication number
CN105955830B
CN105955830B CN201610282636.9A CN201610282636A CN105955830B CN 105955830 B CN105955830 B CN 105955830B CN 201610282636 A CN201610282636 A CN 201610282636A CN 105955830 B CN105955830 B CN 105955830B
Authority
CN
China
Prior art keywords
application module
board
mark
communication means
management system
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
CN201610282636.9A
Other languages
Chinese (zh)
Other versions
CN105955830A (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201610282636.9A priority Critical patent/CN105955830B/en
Publication of CN105955830A publication Critical patent/CN105955830A/en
Application granted granted Critical
Publication of CN105955830B publication Critical patent/CN105955830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Landscapes

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

Abstract

The invention discloses the communication means and system between a kind of application module, to the communication provider method between the application module for dynamic initialization.Communication means between application module, including: the first application module sends inquiry request message to the application module management system of target board, the communication means of the second application module is inquired in the mark, the mark of application module of board where the application module that the application module management system of request target board is registered when initializing from application module and the corresponding relationship of communication means, includes: the mark of the second application module and the mark of the second application module place board in inquiry request message;First application module receives the inquiry request response message that the application module management system of target board is returned based on inquiry request message, the communication means of the second application module is obtained from inquiry request response message, and is communicated according to the communication means of the second application module got with the second application module.

Description

Communication means and system between a kind of application module
Technical field
The present invention relates to the communication means and system between field of communication technology more particularly to a kind of application module.
Background technique
Currently, multiple task operating system both provides the method communicated between some processes (task), and such as: message team Column, shared drive and pipeline etc., there are also the synchronous method between some processes (task), such as: semaphore, lock, event, it can also Applied to the communication between process (task).These methods can help Embedded Multi-task system developer to encode at realization Concurrent tasks are managed, but under some special scenes, there are also limitations for these communication means, specifically:
These communication means are mainly used between the father and son or fraternal process of special relationship, or have fixation in advance Between the process of binding relationship, for the sake of simplicity, these communication means usually require that system process (task) or application module exist It when being initialized after system starting, is initialized in a certain order, so it is initial to be not suitable for dynamically load, unloading and dynamic The application module of change, because the process (task) of these application modules identifies, communication means instance identification is in operating system nucleus It is to dynamically distribute with the position in memory, opportunity of load is different, and mark may also be different, application module online upgrading, more Communication means instance identification after new is it can also happen that change, if restarting whole system every time, cost is too big, in addition, These communication means can not conveniently be applied to the machine frame system for the application module composition being distributed on more boards.
In conclusion the communication means between existing process has certain limitation, be not suitable for the application of dynamic initialization Communication between module.
Summary of the invention
The embodiment of the invention provides the communication means and system between a kind of application module, to answering for dynamic initialization With the communication provider method between module.
Communication means between a kind of application module provided in an embodiment of the present invention, this method comprises: the first application module to The application module management system of target board sends inquiry request message, requests the application module management system of the target board Mark, the mark of application module of board are corresponding with communication means where the application module registered when initializing from application module The communication means of the second application module is inquired in relationship, includes: the mark of second application module in the inquiry request message The mark of board where knowledge and second application module;First application module receives the application mould of the target board The inquiry request response message that block management system is returned based on the inquiry request message, from the inquiry request response message Obtain the communication means of second application module, and according to the communication means of second application module got with it is described Second application module is communicated.
Communication means between a kind of application module provided in an embodiment of the present invention, this method comprises: the application of target board Module management system receives the inquiry request message for being used to inquire the second application module communication means that the first application module is sent, It include: the mark of second application module and the mark of second application module place board in the inquiry request message Know;What the application module management system of the target board was registered when being initialized based on the inquiry request message from application module The second application module is inquired in the mark, the mark of application module of board where application module and the corresponding relationship of communication means Communication means generates inquiry request response message according to query result, and the inquiry request response message of generation is sent to institute State the first application module.
Communication means between a kind of application module provided in an embodiment of the present invention, this method comprises: main control board is answered The application module management system of business board where receiving the first application module with module management system send for inquiring the The inquiry request message of two application module communication means includes: the mark of second application module in the inquiry request message The mark of board where knowledge and second application module;The application module management system of the main control board is according to The mark of board where the mark of second application module and second application module inquires second application in itself The communication means of module, and inquiry request response message is generated according to query result, the inquiry request response message is sent To the application module management system of business board where first application module;Wherein, the application mould of the main control board The mark of board, the mark of the application module where block management system stores the application module when any application module initializes With the corresponding relationship of communication means.
Communication system between a kind of application module provided in an embodiment of the present invention, the system include: main control board and extremely A few business board;Wherein, multiple application modules are provided on the main control board and/or the business board;It is described The first application module in multiple application modules is sent to the application module management system of target board for inquiring the second application The inquiry request message of module communication means, include: in the inquiry request message second application module mark and The mark of board where second application module;The application module management system of the target board is initialized from application module When board where the application module registered mark, the mark of application module and communication means corresponding relationship in inquiry second answer With the communication means of module, inquiry request response message is generated according to query result, and by the inquiry request response message of generation It is sent to first application module;First application module obtains described from the inquiry request response message received The communication means of two application modules, and mould is applied with described second according to the communication means of second application module got Block is communicated;Wherein, the target board is that business board where first application module or described first apply mould Main control board where block.
In communication means and system between application module provided in an embodiment of the present invention, it is initial to be previously stored with application module The corresponding relationship of the mark, the mark of application module and communication means of board where the application module registered when change;In communication system It, can be by the application module management system on target board when the first application module in system is wanted to communicate with the second application module It is directly or indirectly inquired to obtain the communication means of the second application module according to the corresponding relationship;In turn, first can be made Application module is communicated according to the communication means of the second application module inquired with the second application module.Due to target board Application module management system mark of board where the application module registered when being initialized from application module, application module mark The communication means that the second application module is inquired in the corresponding relationship with communication means is known, therefore, as long as the second application module is Initialization, regardless of the second application module is with system start-up initialisation or dynamic initialization, the application module pipe of target board Reason system can be inquired from the corresponding relationship of the mark of board where application module, the mark of application module and communication means The communication means of the second application module is obtained, and the communication means of the second application module is sent to the first application module, so that First application module is communicated with the second application module, and the communication means between existing process has certain limitation, no It is suitble to the communication between the application module of dynamic initialization to compare, the embodiment of the present invention realizes the application module of dynamic initialization Between communication, also the communication as between the application module of dynamic initialization provides method.
Detailed description of the invention
Fig. 1 is the exemplary flow of the communication means between a kind of application module of application module side provided in an embodiment of the present invention Figure;
Fig. 2 is the principle that application module provided in an embodiment of the present invention is registered to the application module management system of business board Schematic diagram;
Fig. 3 is the original that application module provided in an embodiment of the present invention is registered to the application module management system of main control board Manage schematic diagram;
Fig. 4 is the principle that the first application module provided in an embodiment of the present invention inquiry obtains the second application module communication means Schematic diagram;
Fig. 5 is the original that the first application module provided in an embodiment of the present invention inquiry does not obtain the second application module communication means Manage schematic diagram;
Fig. 6 is the schematic illustration communicated between application module on same business board provided in an embodiment of the present invention;
Fig. 7 is the schematic illustration communicated between application module on different business board provided in an embodiment of the present invention;
Fig. 8 is the schematic illustration of cancel register when application module provided in an embodiment of the present invention is unloaded;
Fig. 9 is the exemplary flow of the communication means between a kind of application module of target board provided in an embodiment of the present invention side Figure;
Figure 10 is the signal of the communication means between a kind of application module of main control board provided in an embodiment of the present invention side Flow chart;
The schematic illustration of cancel register when Figure 11 is business board faults provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of the communication system between a kind of application module provided in an embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing, between a kind of application module provided in an embodiment of the present invention communication means and system it is specific Embodiment is described in detail.
It should be noted that the mark of the application module provided in the embodiment of the present invention is in the plate where application module Single static identifies the application module on card, is assigned in application module design, coding, such as: the mark of application module can To be the title of application module;The communication means of application module refers to that application module is supplied to the communication party of other application module Method enables other application module to send the communication means of message to oneself, opens in more board machine frame communication equipment operating systems After dynamic, by dynamic assignment when application module is loaded and is initialized, such as: the communication means of application module can be function shape Formula, form of message;The mark of business board is for one piece of operating status of unique identification in more board machine frame facility communication systems Business board, such as: the mark of business board can be board number, slot when business board is inserted into machine frame in machine frame Number it has been determined that the board number of the business board, same business board can be inserted in the difference of several same kind board slots Position, but the board difference of every sub-distribution;Application module management system, which refers to, operates in more board machine frame facility communication systems In, for receiving the login request message of application module, and the subsystem of the inquiry request message of response application module.Wherein, More board machine frame facility communication systems are each by one piece or two pieces of Control cards (main control board and standby controller board card) and muti-piece The business board of seed type forms.
In application module side, communication means between a kind of application module provided in an embodiment of the present invention, as shown in Figure 1, should Method includes:
Step 102, the first application module sends inquiry request message, request to the application module management system of target board The mark of board, application where the application module that the application module management system of target board is registered when initializing from application module The communication means of the second application module is inquired in the mark of module and the corresponding relationship of communication means, is wrapped in inquiry request message It includes: the mark of board where the mark of the second application module and the second application module;
Step 104, the application module management system that the first application module receives target board is returned based on inquiry request message The inquiry request response message returned, obtains the communication means of the second application module from inquiry request response message, and according to obtaining The communication means for the second application module got is communicated with the second application module.
In method provided in an embodiment of the present invention, due to being plate where the application module registered when being initialized from application module The communication means of the second application module is inquired in the corresponding relationship of the mark of card, the mark of application module and communication means, therefore, As long as the second application module is initialized, regardless of the second application module be with system start-up initialisation or dynamic initialization, The application module management system of target board can be from mark, the mark of application module and the communication of board where application module Inquiry obtains the communication means of the second application module in the corresponding relationship of method, and the communication means of the second application module is sent To the first application module, so that the first application module is communicated with the second application module, with the communication party between existing process Method has certain limitation, and the communication be not suitable between the application module of dynamic initialization is compared, and the present embodiment realizes dynamic Communication between the application module of initialization, also the communication as between the application module of dynamic initialization provides method.
It is answered when it is implemented, the first application module is sent to the application module management system of target board for inquiring second With the inquiry request message of module communication means, when the first application module is the application module on business board, target board It can be preassigned business board, such as: there are two pieces of business boards: business board 1 and business board 2, specifies two pieces of industry The application module being engaged on board is when inquiring the communication means of other application module, to the application module management of business board 2 System sends inquiry request message, then business board 2 is target board, and certainly, more preferably, which answers for first The business board where module, application module initialization of the application module management system of each business board on this board When, the corresponding relationship of the mark, the mark of application module and communication means of board where storage application module, and receive the business The inquiry request message of the communication means of application module inquiry other application module on board;When application module is main Control card On application module when, target board be application module where main control board, certainly, the application module management of main control board System is in the application module initialization on this board, the mark of board, application module where also needing storage application module Mark and communication means corresponding relationship, and the application module management system of main control board is on other business boards When any application module initializes, it is also necessary to store the mark of board where the application module, the mark of the application module and logical In the corresponding relationship of letter method namely the application module management system of main control board when any application module initializes, no Managing the application module is the application module on application module or main control board on business board, and main control board is answered The mark, the mark of the application module of board where being required to store the application module with module management system and communication means Corresponding relationship.Wherein, any application module being previously mentioned in the embodiment of the present invention is application module or master on business board Application module on Control card.
When it is implemented, when the application module on business board initializes, application of the application module to place business board Module management system sends login request message, includes: the mark and communication means of application module in the login request message, is somebody's turn to do The application module management system of business board where application module, plate where storing the application module according to the login request message The corresponding relationship of the mark (namely the mark of itself) of card, the mark of the application module and communication means, and registration request is disappeared Breath is forwarded to the application module management system of main control board, and the application module management system of main control board is asked according to the registration The corresponding relationship of the mark, the mark of the application module and communication means of board where asking message to store the application module.
It is worth noting that single static identifies this and answers on board as where the mark of application module in application module With module, therefore, in other embodiments of the present invention, if to the application module of board where itself when application module initializes Management system sends login request message, such as: when the application module on each business board initializes, answering on business board Login request message is sent to the application module system of business board where itself with module, then the application module pipe of business board Reason system can also only store the mark of application module and the corresponding relationship of communication means, without plate where storing application module The corresponding relationship of the mark of card, the mark of application module and communication means.
Below with reference to specific embodiment, in the embodiment of the present invention, when application module initialization on business board, to The process that the application module management system of place business board sends login request message registration is described in detail.Specific implementation When, when application module initialization on business board, registration request is sent to the application module management system of the business board and is disappeared It ceases, includes: the mark and communication means of application module in the login request message, application module includes more board machine frames communications Answering with the application module of system start-up initialisation, the application module of dynamic initialization and online updating when device systems start With module, when the application module management system of business board receives the login request message, plate where the application module is stored The corresponding relationship of the mark of card, the mark of the application module and communication means, and registration request confirmation is sent to the application module Message, and the login request message is sent to the application module management system of main control board, main control board applies mould When block management system receives login request message, store the mark of board where the application module, the mark of application module with The corresponding relationship of communication means.Wherein, when business board card initialization, the application module management system of business board is needed to master control The application module management system of making sheet card is registered.
Certainly, in other embodiments of the invention, the application module management system of business board is receiving this board When the login request message of upper application module, the mark of application module place board, the mark of application module can not also be stored Know the corresponding relationship with communication means, and the login request message is directly sent to the application module management system of main control board System makes the application module management system of main control board store the mark of the mark of application module place board, the application module Know the corresponding relationship with communication means, the application module management system of business board receives the first application module in the embodiment When the inquiry request message of the communication means for inquiring the second application module sent, directly the inquiry request message is forwarded Application module management system to main control board is inquired.It should be noted that the application module management system of business board Mark, the relationship of the mark of application module and communication means of board, the application with business board where system storage application module Mark, the corresponding relationship phase of the mark of application module and communication means of board where module management system does not store application module Than having the advantage that firstly, can directly exist when the second application module and the first application module are located at same business board The communication means that the second application module is inquired in the mark of application module and the corresponding relationship of communication means of itself storage, without The application module management system inquiry for needing to be relayed to main control board, improves search efficiency, and reduce the control of communication between plates Information processed;Secondly as the reliability communicated in plate is much higher than the reliability of communication between plates, therefore, can be improved communication can By property;Finally, if main control board fail, standby controller board card by it is spare be upgraded to it is primary, if the data of standby controller board card It is with the data in the main control board card of failure inconsistent, it can be used and stored in the application module management system of business board Data are audited.
As more it is specific implement when, as shown in Fig. 2, application module app_i1 in business board appsvr_i and Application module app_i2 initialize when register flow path include:
Step 202, when business board appsvr_i is initialized, the application module management system of business board appsvr_i to The application module management system of main control board appsvr_m is registered;
Step 204, synchronized update, specifically, the synchronous industry of the application module management system of main control board appsvr_m It is engaged in the application module management system of board appsvr_i the mark of board where stored application module, application module The corresponding relationship of mark and communication means;
Step 206, the application module app_i1 initialization in business board appsvr_i, to business board appsvr_i's Application module management system is registered, and the title namei1 and communication means of application module are carried in login request message funci1;
Step 208, the application module management system of business board appsvr_i receives the registration of application module app_i1 When request message, the title for identifying i, application module app_i1 of business board where can store application module app_i1 Then the login request message of application module app_i1 is forwarded to master control by the corresponding relationship of namei1 and communication means funci1 The application module management system of making sheet card appsvr_m, to be deposited in the application module management system of main control board appsvr_m The title namei1 and communication means for identifying i, application module app_i1 of business board where storing up application module app_i1 The corresponding relationship of funci1;Mark i, the application module app_i1 of business board where application module app_i1 can not also be stored Title namei1 and communication means funci1 corresponding relationship, directly the login request message of application module app_i1 is forwarded To the application module management system of main control board appsvr_m, in the application module management system of main control board appsvr_m The title namei1 and communication party for identifying i, application module app_i1 of business board where storing application module app_i1 in system The corresponding relationship of method funci1;
Step 210, the application module app_i2 initialization in business board appsvr_i, to business board appsvr_i's Application module management system is registered, and the title namei2 and communication means of application module app_i2 are carried in login request message funci2;
Step 212, the application module management system of business board appsvr_i receives the registration of application module app_i2 When request message, the title for identifying i, application module app_i2 of business board where can store application module app_i2 Then the login request message of application module app_i2 is forwarded to master control by the corresponding relationship of namei2 and communication means funci2 The application module management system of making sheet card appsvr_m, to be deposited in the application module management system of main control board appsvr_m The title namei2 and communication means for identifying i, application module app_i2 of business board where storing up application module app_i2 The corresponding relationship of funci2;Mark i, the application module app_i2 of business board where application module app_i2 can not also be stored Title namei2 and communication means funci2 corresponding relationship, directly the login request message of application module app_i2 is forwarded To the application module management system of main control board appsvr_m, in the application module management system of main control board appsvr_m The title namei2 and communication party for identifying i, application module app_i2 of business board where storing application module app_i2 in system The corresponding relationship of method funci2.
It should be noted that directly applying mould to main control board when the application module on main control board initializes Block management system registration, without being subjected to the application module management system of business board, when it is implemented, as shown in figure 3, master control When application module app_01 initialization in making sheet card appsvr_m, the direct application module pipe to main control board appsvr_m System registry is managed, the title name01 and communication means of application module app_01 are equally carried in login request message Func01, the mark of board, application module where the application module management system storage application module app_01 of main control board The corresponding relationship of the title name01 and communication means func01 of app_01.
Below with reference to specific embodiment, the second application module is inquired to the first application module in the embodiment of the present invention and is led to The process of letter method is described in detail, as shown in figure 4, the application module app_i1 in business board appsvr_i inquires this industry Business board on application module app_i2 communication means the step of include:
Step 402, the application module app_i1 in business board appsvr_i applies mould to business board appsvr_i Block management system sends inquiry request message, title namei2 in inquiry request message including application module app_i2 and answers The mark i of board where module app_i2;
Step 404, the application module management system of business board appsvr_i receives application module app_i1 transmission Inquiry request message directly exists when the mark i of board where confirmation application module app_i2 is identical as the board mark i of itself The communication means of application module app_i2 is searched in itself, and is generated according to the communication means of the application module app_i2 found Inquiry request response message is sent to application module app_i1, includes: the title of application module app_i2 in inquiry request response Namei2, the communication means funci2 of the mark i and application module app_i2 of board where application module app_i2;
The application module on application module app_i1 inquiry business board appsvr_j in business board appsvr_i The step of communication means of app_j1 includes:
Step 406, the application module app_i1 in business board appsvr_i applies mould to business board appsvr_i Block management system sends inquiry request message, title namej1 in inquiry request message including application module app_j1 and answers The mark j of board where module app_j1;
Step 408, the application module management system of business board appsvr_i receives application module app_i1 transmission Inquiry request message, the mark j of board where confirmation application module app_j1 is different from the board mark i of itself, then will inquiry Request message is forwarded to the application module management system of main control board appsvr_m;
Step 410, the application module management system of main control board appsvr_m receives business board appsvr_i's When the inquiry request message that application module management system is sent, according to the title of the mark j and application module app_j1 of board Namej1 inquires the communication means of application module app_j1 in itself, and according to the logical of the application module app_j1 found Letter method generates the application module management system that inquiry request response message is sent to business board appsvr_i, and inquiry request is rung It include: the title namej1 of application module app_j1 in answering, the mark j and application module of board where application module app_j1 The communication means funcj1 of app_j1;
Step 412, the application module management system of business board appsvr_i receives main control board appsvr_m's When the inquiry request response message that application module management system is sent, which is forwarded to application module App_i1, certainly, the application module management system of business board appsvr_i can also cache main control board appsvr_m's The inquiry request response message of application module management system application modules app_j1, after the other application module on this board Continuous inquiry uses, if the communication means of subsequent other application module polls application module app_j1, business board appsvr_ The application module management system of i no longer needs for inquiry request message to be forwarded to the application module pipe of main control board appsvr_m Reason system is inquired, and can directly be inquired from the inquiry request response message of the application module app_j1 of caching and be applied mould The communication means of block app_j1.
Certainly, it will be apparent to a skilled person that if the second application module is inactive, namely not to business board Application module management system and main control board the registration of application module management system, then the application module pipe of business board The communication means of the second application module can not be inquired in reason system and the application module management system of main control board, then Mark comprising inquiry failure in inquiry request response message, the first application module receive looking into for the mark comprising inquiry failure When asking request response, it can not be communicated with the second application module, wherein the mark for inquiring failure can be arbitrarily arranged, Such as: use 0 mark inquiry failure.
As more specific embodiment, it is assumed that application module app_i2 and business board in business board appsvr_i The application module app_j1 blocked in appsvr_j is unregistered, as shown in figure 5, the application module in business board appsvr_i The step of communication means for the application module app_i2 that app_i1 is inquired on this business board includes:
Step 502, the application module app_i1 in business board appsvr_i applies mould to business board appsvr_i Block management system sends inquiry request message, title namei2 in inquiry request message including application module app_i2 and answers The mark i of board where module app_i2;
Step 504, the application module management system of business board appsvr_i receives application module app_i1 transmission Inquiry request message directly exists when the mark i of board where confirmation application module app_i2 is identical as the board mark i of itself The communication means that application module app_i2 is searched in itself, since application module app_i2 is unregistered, then business board appsvr_ The application module management system of i inquires the communication means less than application module app_i2, therefore, business board in itself The application module management system of appsvr_i generates inquiry request response message according to query result, and the inquiry request is responded Message is sent to application module app_i1, includes the title namei2 of application module app_i2 in the inquiry request response message, The mark i of board where application module app_i2 and the mark 0 of inquiry failure;
The application module on application module app_i1 inquiry business board appsvr_j in business board appsvr_i The step of communication means of app_j1 includes:
Step 506, the application module app_i1 in business board appsvr_i applies mould to business board appsvr_i Block management system sends inquiry request message, title namej1 in inquiry request message including application module app_j1 and answers The mark j of board where module app_j1;
Step 508, the application module management system of business board appsvr_i receives application module app_i1 transmission Inquiry request message, the mark j of board where confirmation application module app_j1 is different from the board mark i of itself, then will inquiry Request message is forwarded to the application module management system of main control board appsvr_m;
Step 510, the application module management system of main control board appsvr_m receives business board appsvr_i hair When the inquiry request message sent, according to the title namej1 of the mark j and application module app_j1 of board, inquired in itself The communication means of application module app_j1, since application module app_j1 is unregistered, then the application of main control board appsvr_m Module management system inquires the communication means less than application module app_j1, and therefore, main control board appsvr_m's applies mould Block management system generates inquiry request response message according to query result, and the inquiry request response message is sent to business board Block the application module management system of appsvr_i, includes the title of application module app_j1 in the inquiry request response message Namej1, the mark j of board where application module app_j1 and the mark 0 of inquiry failure;
Step 512, the application module management system of business board appsvr_i receives main control board appsvr_m's When the inquiry request response message that application module management system is sent, which is forwarded to application module The mark 0 of app_i1, the mark 0 comprising inquiry failure in the inquiry request response message, inquiry failure are not looked into for identifying Ask the communication means of application module app_j1.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, the first application module is according to acquisition To the communication means of the second application module communicated with the second application module, comprising: the first application module and the second application Module is located at same board, and when the first application module is communicated with the second application module, the first application module is applied to second The mark and the communication means of itself of board where carrying itself in the message that module is sent;First application module is answered with second It is located at different boards with module, the first application module is answered with the second application module by board, second where the first application module Second, which is carried, when the board where module is communicated, in the message that the first application module is sent to the second application module applies mould The mark of board, the mark and the communication means of itself of the communication means of the second application module, board where itself where block.
When it is implemented, the first application module and the second application module are located at same board, the first application module and second When application module is communicated, the first application module is directly answered using the communication means of the second application module inquired to second Message is sent with module, the mark and the communication means of itself of board where itself is carried in message, the second application module are received To after message, using the communication means of the first application module carried in message, response message is replied to the first application module, and The communication means for inquiring the first application module again is not needed.
When it is implemented, by taking the first application module and the second application module are located at same business board as an example, the first application After module gets the communication means of the second application module, it can be communicated with the second application module, below with reference to Fig. 6 pairs The communication process of first application module and the second application module is described in detail.
As shown in fig. 6, the application module app_i1 and application module app_i2 that are located on same business board appsvr_i Communication process, comprising:
Step 602, application module app_i1 sends inquiry to the application module management system of business board appsvr_i and asks Message is sought, the communication means of application module app_i2 is inquired, includes the title of application module app_i2 in the inquiry request message The mark i of business board where namei2 and application module app_i2;
Step 604, the application module management system of business board appsvr_i receives application module app_i1 transmission Inquiry request message, the mark i of business board where confirmation application module app_i2 are identical as the business board mark i of itself When, directly itself the communication means of application module app_i2 is being searched, and according to the communication of the application module app_i2 found Method generates inquiry request response message and is sent to application module app_i1, includes: application module app_ in inquiry request response The title namei2 of i2, the communication means of the mark i and application module app_i2 of business board where application module app_i2 funci2;
Step 606, what the application module management system that application module app_i1 receives business board appsvr_i was sent looks into Request response is ask, the communication means of application module app_i2 is obtained from the inquiry request response message, and use acquisition The communication means of the application module app_i2 arrived sends message to application module app_i2, include in the message message content, The mark of business board and the communication means of application module app_i1 where application module app_i1, so that application module app_ I2 is according to the mark of business board and the communication means and application module of application module app_i1 where application module app_i1 App_i1 is communicated;
Step 608, application module app_i2 receives the message that application module app_i1 is sent, and obtains from message and applies mould The mark of business board and the communication means of application module app_i1 where block app_i1, and use application module app_i1 institute In the mark of business board and the communication means of application module app_i1, response message is replied to application module app_i1, is answered It include: content, the place the application module app_i2 business board of response message in the response message replied with module app_i2 The communication means of mark and application module app_i2;
Step 610, application module app_i1 is using the communication means of application module app_i2 again to application module app_ I2 sends message;
Step 612, application module app_i1 does not receive the response message of application module app_i2 within a preset time, again Send the communication that inquiry request message inquires application module app_i2 to the application module management system of business board appsvr_i Method;
Step 614, the application module management system of business board appsvr_i inquires application module again in itself The communication means of app_i2, and generate inquiry request response message and be sent to application module app_i1;
Step 616, application module app_i1 is using the communication means of application module app_i2 inquired again to answering Message is sent with module app_i2;
Step 618, if application module app_i1 does not receive the response message of application module app_i2 within a preset time, The application module management system that then third time sends inquiry request message to business board appsvr_i inquires application module app_ The communication means of i2;
Step 620, the application module management system of business board appsvr_i inquires application module again in itself The communication means of app_i2 generates inquiry according to query result and asks if not finding the communication means of application module app_i2 Response message is asked to be sent to application module app_i1, notice application module app_i1 inquiry failure does not find application module The communication means of app_i2.
From the application module app_i1 and application module app_ shown in Fig. 6 on same business board appsvr_i The communication means that the communication process of i2 can be seen that between application module provided in an embodiment of the present invention is equally applicable to single business board Communication between cartoon letters systematic difference module, does not need the participation of main control board, and single business board cartoon letters system is answered It is similar with communication process shown in Fig. 6 of the embodiment of the present invention the communication between module.
When it is implemented, when the first application module and the second application module are located at different boards, the first application module and the When two application modules are communicated by board where board, the second application module where the first application module, first applies mould The communication of the mark, the second application module of board where carrying the second application module in the message that block is sent to the second application module The mark and the communication means of itself of method, board where itself, in message transmitting process, the first application module disappears this Breath is sent to board where the first application module, and board applies mould according to second carried in the message where the first application module Board where the message is forwarded to the second application module by message between different boards by the mark of board where block, the second application module institute After board receives the message, due to including multiple application modules on board where the second application module, second answers The board where module needs that the message is forwarded to second according to the communication means of the second application module carried in the message Application module, and after the second application module receives the message, it needs using the first application module institute carried in the message Response message is replied to the first application module in the mark of board, the communication means of the first application module, the second application module returns The repeating process of multiple response message is similar with the first application module transmission process of message, applies below with reference to Fig. 7 to first The communication process of module and the second application module is described in detail.
As shown in fig. 7, with the application module app_i1 on business board appsvr_i and being located at business board For the communication process of application module app_j1 on appsvr_j, the specific steps of communication process, comprising:
Step 702, after application module app_i1 gets the communication means of application module app_j1, to application module App_j1 sends message svr_send, which needs to forward by business board appsvr_i, and therefore, the message is in the step In include: the mark j of business board where the content of message, application module app_j1 for message in plate, in the message, using mould The communication of the communication means, the mark i and application module app_i1 of the place application module app_i1 business board of block app_j1 Method;
Step 704, business board appsvr_i is according to business board where the application module app_j1 carried in message J is identified, the application module app_i1 message sent is forwarded to business board appsvr_j, the message is in this step in business It is transmitted between board, therefore, the form of the message is message between different boards (Inter-Board Communication, IBC) form;
Step 706, the business board appsvr_i message sent is forwarded to application module by business board appsvr_j App_j1, specifically, due on business board appsvr_j there are multiple application modules, business board appsvr_j When forwarding message, in order to determine that the application module for which forwarding determine message, business board appsvr_j need basis The communication means of the application module app_j1 carried in message forwards the messages to application module app_j1, includes: in the message The communication means of the mark i and application module app_i1 of business board where the content of message, application module app_i1;
Step 708, after application module app_j1 receives the message of application module app_i1 transmission, using being carried in message Application module app_i1 where business board mark i and application module app_i1 communication means, to application module App_i1 replys response message svr_send, which needs to forward by business board appsvr_j, therefore, the response Message is message in plate in this step, includes: content, the place the application module app_i1 business board of message in the response message Mark i, the communication means of application module app_i1, the mark j of the place application module app_j1 business board and the application of card The communication means of module app_j1;
Step 710, business board where the application module app_i1 that business board appsvr_j is carried in message according to response The application module app_j1 response message replied is forwarded to business board appsvr_i by the mark i of card, and the response message is at this It is transmitted between business board in step, therefore, the form of the response message is message between different boards IBC form;
Step 712, the business board appsvr_j response message sent is forwarded to using mould by business board appsvr_i Block app_i1, specifically, due on business board appsvr_i there are multiple application modules, business board appsvr_ I is when forwarding message, in order to determine that the application module for which forwarding determine message, business board appsvr_i need basis The communication means of the application module app_i1 carried in message forwards the messages to application module app_i1, in the response message It include: the communication party of the mark j and application module app_j1 of business board where the content of message, application module app_j1 Method.
It should be noted that be located at main control board on the first application module and the second application module communication process with Process shown in Fig. 6 is similar, the first application module on main control board and the second application being located on business board The communication means of module is similar with process shown in Fig. 7, no longer illustrates one by one.
When it is implemented, in order to guarantee the application module management system of business board and the application module pipe of main control board The accuracy and timeliness of the communication means of application module in reason system when application module unloads, send cancel register request and disappear It ceases to the application module management system of business board, so that the application module management system of business board deletes the application module institute In the corresponding relationship of the mark of board, the mark of the application module and communication means, and by the application module management of business board Cancel register request message is forwarded to the application module management system of main control board by system, so that the application of main control board Mark, the mark of the application module of board where module management system deletes the application module are corresponding with communication means to close System, specifically:
When each application module is unloaded, application module sends business where cancel register request message to the application module The application module management system of board, includes: the mark of application module in cancel register request message, and business board applies mould Mark, the mark of the application module of board are corresponding with communication means where block management system deletes the application module accordingly Relationship, and the cancel register request message of the mark comprising application module is forwarded to the application module management system of main control board System, mark, the mark of the application module of board where the application module management system of main control board deletes the application module It is avoided with the communication means of real-time update application module by the logical of unloaded application module with the corresponding relationship of communication means Letter method is supplied to other application module.
As more specific embodiment, as shown in figure 8, the application module app_j1 on business board appsvr_j is unloaded Process when load, comprising:
Step 802, when application module app_j1 is unloaded, application of the application module app_j1 to business board appsvr_j Module management system sends cancel register request message, includes: the name of application module app_j1 in the cancel register request message Claim namej1, more preferably, in the cancel register request message further include: the communication means of application module app_j1 funcj1;
Step 804, the application module management system of business board appsvr_j deletes board where application module app_j1 Mark, the mark of application module app_j1 and the corresponding relationship of communication means, and by the title comprising application module app_j1 The cancel register request message of namej1 is forwarded to the application module management system of main control board appsvr_m, so that main control The mark of board, application module app_j1 where the application module management system of board appsvr_m deletes application module app_j1 Mark and communication means corresponding relationship.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, the first application module is according to acquisition To the second application module communication means communicated with the second application module after, this method further include: when first application When the response message of the second application module is not received in module preset time, application module of first application module to target board Management system sends inquiry request message, and the application module management system of request target board inquires the second application module again Communication means.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, target board is first using mould Main control board where business board where block or the first application module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when main control board, what the application module management system of target board was registered when initializing from application module applies mould The communication party of the second application module is inquired in the mark, the mark of application module of board where block and the corresponding relationship of communication means Method, comprising: the application module management system of main control board inquires the second application module from itself where the first application module Communication means, wherein the application module management system of main control board stores the application when any application module initializes The corresponding relationship of the mark, the mark of the application module and communication means of board where module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: application module management of the application module management system of business board from main control board where the first application module The communication means of the second application module is inquired in system, wherein the application module management system of main control board is in any application Mark, the mark of the application module of board where storing the application module when module initialization are corresponding with communication means to close System.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: the application module management system of business board where the first application module is from itself or from main control board The communication means of the second application module is inquired in application module management system, wherein business board where the first application module Application module management system on this board any application module initialize when store the application module where board mark, should The mark of application module and the corresponding relationship of communication means, the application module management system of main control board is in any application module The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when initialization.
In target board side, communication means between a kind of application module provided in an embodiment of the present invention, as shown in figure 9, should Method includes:
Step 902, what application module management system the first application module of reception of target board was sent is used to inquire second The inquiry request message of application module communication means includes: the mark and second of the second application module in inquiry request message The mark of board where application module;
Step 904, the application module management system of target board is based on inquiry request message from when application module initialization The second application of inquiry in the mark, the mark of application module of board where the application module of registration and the corresponding relationship of communication means The communication means of module generates inquiry request response message according to query result, and the inquiry request response message of generation is sent out It send to the first application module.
In method provided in an embodiment of the present invention, since the application module management system of target board is initial from application module Second is inquired in the mark, the mark of application module of board where the application module registered when change and the corresponding relationship of communication means The communication means of application module, therefore, as long as the second application module is initialized, regardless of the second application module is opened with system The application module management system of dynamic initialization or dynamic initialization, target board can be from board where application module Inquiry obtains the communication means of the second application module in the corresponding relationship of mark, the mark of application module and communication means, and will The communication means of second application module is sent to the first application module, so that the first application module is led to the second application module Letter, the communication means between existing process have certain limitation, are not suitable for logical between the application module of dynamic initialization Letter is compared, and the present embodiment realizes the communication between the application module of dynamic initialization, also the as application module of dynamic initialization Between communication provide method.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, target board is first using mould Main control board where business board where block or the first application module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when main control board, what the application module management system of target board was registered when initializing from application module applies mould The communication party of the second application module is inquired in the mark, the mark of application module of board where block and the corresponding relationship of communication means Method, comprising: the application module management system of main control board inquires the second application module from itself where the first application module Communication means, wherein the application module management system of main control board stores the application when any application module initializes The corresponding relationship of the mark, the mark of the application module and communication means of board where module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when main control board, this method further include: the application module management system of main control board is in any application module The corresponding relationship of the mark, the mark of application module and communication means of board where deleting the application module when unloading.Wherein, appoint One application module can be the application module on business board, the application module being also possible on main control board.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: application module management of the application module management system of business board from main control board where the first application module The communication means of the second application module of system queries, wherein the application module management system of main control board applies mould any The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when initialization block.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, this method further include: the application module management system of business board exists where the first application module When any application module unloads on this board, the unloading request message of the mark comprising the application module is sent to main control board Application module management system so that the application module management system of main control board deletes the mark of board where the application module Know the mark pass corresponding with communication means of (namely the mark for sending the business board of unloading request message), the application module System.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: the application module management system of business board where the first application module is from itself or from main control board The communication means of the second application module is inquired in application module management system, wherein business board where the first application module Application module management system on this board any application module initialize when store the application module where board mark, should The mark of application module and the corresponding relationship of communication means, the application module management system of main control board is in any application module The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when initialization.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, business where the first application module The application module management system of board is inquired second from itself or from the application module management system of main control board and is answered With the communication means of module, comprising: the application module management system of business board, which is inquired in itself, where the first application module is The no communication means for being stored with the second application module, if inquiry failure, is forwarded to main control board for inquiry request message Application module management system, to request to inquire the communication of the second application module in the application module management system of main control board Method
In a kind of possible embodiment, in method provided in an embodiment of the present invention, in industry where the first application module Inquiry request message is forwarded to after the application module management system of main control board by the application module management system of business board, This method further include: the application module management system reception main control board of business board where the first application module applies mould The inquiry request response message that block management system is sent;The application module management system of business board where first application module from The communication means of the second application module is obtained in inquiry request response message, and stores the mark of the second application module place board Know, the corresponding relationship of the mark of the second application module and communication means.
In method provided in an embodiment of the present invention, the application module management system of business board is connect where the first application module After receiving the inquiry request response message that main control board is sent, the second application module is obtained from inquiry request response message Communication means, and the mark, the mark of the second application module that store the second application module place board are corresponding with communication means Relationship, when the communication means of the second application module of other application module polls, not need to disappear inquiry request on this board Breath is forwarded to main control board, so that it may directly inquire the communication means of the second application module, improve search efficiency.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, business where the first application module The application module management system of board inquires in itself the communication means for whether being stored with the second application module, comprising: when first The application module management system of business board where application module, which determines, is stored with the second application module place board in itself When the corresponding relationship of mark and the mark of the second application module, the application module management system of business board where the first application module System inquires the communication means of the second application module in itself.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, business where the first application module Mark, the mark and communication of the second application module of board where the application module management system of board stores the second application module After the corresponding relationship of method, this method further include: the application module management system of business board is true where the first application module Surely the communication means for storing the second application module reaches preset time, the mark of board, second where deleting the second application module The mark of application module and the corresponding relationship of communication means.
In method provided in an embodiment of the present invention, since the second application module is not business board where the first application module On application module, when the second application module initializes, the application module management system of business board where the first application module Mark, the mark of the second application module and the corresponding relationship of communication means of board where not storing the second application module, second When application module unloads, the application module management system of business board where the first application module can not timely learning, the The application module management system of business board where one application module can not timely update the communication means of the second application module, because This, the communication means that the application module management system of business board where the first application module stores the second application module reaches pre- If after the time, mark, the mark of the second application module of board are corresponding with communication means where deleting the second application module Relationship avoids the communication means because not updating the second application module for a long time, and provides mistake in other application module polls The second application module communication means.
When it is implemented, the mark of application module management system the second application module of storage place board of business board, After the mark of second application module and the corresponding relationship of communication means, start timer or counter, and pass through timer Timing result or the count value of counter determine whether the communication means of the second application module of storage reaches preset time, preset Time can freely set, certainly, more preferably, in order to ensure inquiring the standard of the obtained communication means of the second application module True property, the preset time can be set as the shorter time, such as: preset time is 5 minutes.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, business where the first application module The application module management system of board inquires in itself the communication means for whether being stored with the second application module, comprising: when first The mark of board and itself institute where the application module management system of business board determines the second application module where application module When the mark of board is identical, the application module management system of business board inquires second in itself where the first application module The communication means of application module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, this method further include: the first application The application module management system of business board sends registration message to the application module management system of main control board where module, And after the registration confirmation message that the application module management system for receiving main control board is sent, with answering for main control board Mark, the mark of application module and the communication means of board where synchronizing the application module stored in itself with module management system Corresponding relationship.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, this method further include: the application module management system of business board exists where the first application module When any application module unloads on this board, the mark of the application module place board of storage, the mark of the application module are deleted Know with the corresponding relationship of communication means, and send the unloading request message of the mark comprising the application module to main control board Application module management system, so that the application module management system of main control board deletes the mark of application module place board Know, the corresponding relationship of the mark of the application module and communication means.
In main control board side, communication means between a kind of application module provided in an embodiment of the present invention, as shown in Figure 10, This method comprises:
Step 1002, business board answers where the application module management system of main control board receives the first application module With module management system send for inquiring the inquiry request message of the second application module communication means, in inquiry request message It include: the mark of the second application module and the mark of the second application module place board;
Step 1004, the application module management system of main control board is answered according to the mark of the second application module and second The mark of board where module is inquired the communication means of the second application module in itself, and is looked into according to query result generation Request response is ask, the application module management of business board where inquiry request response message is sent to the first application module System;Wherein, the application module management system of main control board stores the application module institute when any application module initializes In the corresponding relationship of the mark of board, the mark of the application module and communication means.
In method provided in an embodiment of the present invention, the application module management system of main control board is at the beginning of any application module The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when beginningization, therefore, Business board where receiving the first application module in the application module management system of main control board send for inquiring the When the inquiry request message of two application module communication means, as long as the second application module is initialized, regardless of second using mould Block is with system start-up initialisation or dynamic initialization, and the application module management system of main control board can be from itself Middle inquiry obtains the communication means of the second application module, and the communication means of the second application module is passed through to the application of business board Module management system is sent to the first application module, and existing so that the first application module is communicated with the second application module Communication means between process has certain limitation, and the communication be not suitable between the application module of dynamic initialization is compared, this Embodiment realizes the communication between the application module of dynamic initialization, and also the communication as between the application module of dynamic initialization mentions Method is supplied.
When it is implemented, can also include standby controller board card in communication means between application module provided by the invention, Application module management system on standby controller board card is synchronous or all with the application module management system of main control board in real time Phase property is synchronous with the application module management system of main control board, and the application module management system in standby controller board card stores institute There is the communication means of the registered application module on registered business board.
It is worth noting that storing the communication means of application module in the application module management system of main control board When, need to store the corresponding relationship of the mark of board where application module, the mark of application module and communication means, to distinguish Multiple application modules of same application module id on different boards.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, this method further include: master board The note that the application module management system of business board where the application module management system of card receives the first application module is sent When volume message, the application module management system of registration confirmation message to business board where the first application module is sent, and with the The application module management system of business board where one application module, business board applies mould where synchronous first application module The corresponding relationship of the mark, the mark of application module and communication means of board where the application module stored in block management system.
When it is implemented, application module management system of the application module management system of main control board in any business board card When system registration, with the application module management system of the business board, synchronize in the application module management system of the business board The corresponding relationship of the mark, the mark of application module and communication means of board where the application module of storage.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, this method further include: master board The mark of board where the application module management system of card deletes the application module when any application module unloads, this apply mould The mark of block and the corresponding relationship of communication means;And the application module management system of main control board receives any business board When the message of card failure, mark, the application module of all business boards are deleted in itself according to the mark of the business board Mark and communication means corresponding relationship.
When it is implemented, as shown in figure 11, the application module management system of main control board appsvr_m receives business board Block j failure notification, then deletes all registration informations about business board j, namely delete all business board j, application module Mark and communication means corresponding relationship, wherein the failure of business board j includes: that business board j is pulled out card slot, business Board j Communications failure etc., and in more board machine frame facility communication systems, it will usually there is hardware facility to detect some slot Whether the plug event of plug-in card and business board, or the business board by software detection for a long time without message responded, example are had Such as: equipment management monitors event, notification interface management, interface management again Distribution Events to the module or subsystem needed.
Communication system between a kind of application module provided in an embodiment of the present invention, as shown in figure 12, which includes: master control Making sheet card 1202 and at least one business board (n-th of business board of the 1st business board 1204 as illustrated in the diagram 1205);Wherein, be provided on main control board and/or business board multiple application modules (application module 1 as illustrated in the diagram, 2 application module n) of application module;The application module pipe of the first application module in multiple application modules to target board Reason system sends the inquiry request message for inquiring the second application module communication means, includes: second in inquiry request message The mark of board where the mark of application module and the second application module;The application module management system of target board is from application In the mark, the mark of application module of board where the application module registered when module initialization and the corresponding relationship of communication means The communication means for inquiring the second application module generates inquiry request response message according to query result, and the inquiry of generation is asked Response message is asked to be sent to the first application module;First application module obtains second from the inquiry request response message received The communication means of application module, and led to according to the communication means and the second application module of the second application module got Letter;Wherein, target board is main control board where business board where the first application module or the first application module.
In system provided in an embodiment of the present invention, the application module management system of target board receives the first application module When what is sent is used to inquire the inquiry request message of the second application module communication means, the application module management system of target board Mark, the mark of application module of board are corresponding with communication means where the application module registered when initializing from application module The communication means of the second application module is inquired in relationship, and inquiry request response message is generated according to query result and is sent to first Application module, so that the first application module obtains the communication means of the second application module, and root from inquiry request response message It is communicated according to the communication means of the second application module got with the second application module, due to the application module of target board Mark, the mark of application module and the communication party of board where the application module that management system is registered when initializing from application module The communication means of the second application module is inquired in the corresponding relationship of method, therefore, as long as the second application module is initialized, regardless of Second application module is with system start-up initialisation or dynamic initialization, and the application module management system of target board can Enough inquiries from the corresponding relationship of the mark of board where application module, the mark of application module and communication means obtain second and answer With the communication means of module, and the communication means of the second application module is sent to the first application module, so that first applies mould Block is communicated with the second application module, and the communication means between existing process has certain limitation, is not suitable for dynamic just Communication between the application module of beginningization is compared, and the present embodiment realizes the communication between the application module of dynamic initialization, namely Communication between the application module of dynamic initialization provides method.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when main control board, what the application module management system of target board was registered when initializing from application module applies mould The communication party of the second application module is inquired in the mark, the mark of application module of board where block and the corresponding relationship of communication means Method, comprising: the application module management system of main control board inquires the second application module from itself where the first application module Communication means, wherein the application module management system of main control board stores the application when any application module initializes The corresponding relationship of the mark, the mark of the application module and communication means of board where module.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: application module management of the application module management system of business board from main control board where the first application module The communication means of the second application module of system queries, wherein the application module management system of main control board applies mould any The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when initialization block.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, when target board is the first application Where module when business board, application module that the application module management system of target board is registered when initializing from application module The communication party of the second application module is inquired in the corresponding relationship of the mark of place board, the mark of application module and communication means Method, comprising: the application module management system of business board where the first application module is from itself or from main control board The communication means of the second application module is inquired in application module management system, wherein business board where the first application module Application module management system on this board any application module initialize when store the application module where board mark, should The mark of application module and the corresponding relationship of communication means, the application module management system of main control board is in any application module The corresponding relationship of the mark, the mark of the application module and communication means of board where storing the application module when initialization.
In a kind of possible embodiment, in method provided in an embodiment of the present invention, business where the first application module The application module management system of board is inquired second from itself or from the application module management system of main control board and is answered With the communication means of module, comprising: the application module management system of business board, which is inquired in itself, where the first application module is The no communication means for being stored with the second application module, if inquiry failure, is forwarded to main control board for inquiry request message Application module management system, to request to inquire the communication of the second application module in the application module management system of main control board Method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (15)

1. the communication means between a kind of application module, which is characterized in that applied to including main control board and at least one industry The communication system of business board, wherein being provided with multiple application modules on the master board card and/or the business board;The party Method includes:
First application module sends inquiry request message to the application module management system of target board, requests the target board Application module management system mark of board where the application module registered when being initialized from application module, application module mark Know the communication means for inquiring the second application module in the corresponding relationship with communication means, includes: institute in the inquiry request message State the mark of the second application module and the mark of second application module place board;
The application module management system that first application module receives the target board is based on the inquiry request message and returns The inquiry request response message returned, obtains the communication means of second application module from the inquiry request response message, And it is communicated according to the communication means of second application module got with second application module;
Wherein, the communication means of application module is functional form or form of message;
First application module is according to the communication means of second application module got and second application module It is communicated, comprising:
First application module and second application module are located at same board, first application module and described second When application module is communicated, itself place is carried in the message that first application module is sent to second application module The mark of board and the communication means of itself;
First application module is located at different boards, first application module and described second from second application module It is described when application module is communicated by board where board, second application module where first application module The mark of board where carrying second application module in the message that first application module is sent to second application module, The mark and the communication means of itself of the communication means of second application module, board where itself.
2. the method according to claim 1, wherein first application module is according to described second got After the communication means of application module is communicated with second application module, this method further include:
When not receiving the response message of second application module in the first application module preset time, described first is answered Inquiry request message is sent to the application module management system of the target board with module, requests the application of the target board Module management system inquires the communication means of second application module again.
3. method described in any one of -2 according to claim 1, which is characterized in that the target board is first application Main control board where business board where module or first application module.
4. the communication means between a kind of application module, which is characterized in that applied to including main control board and at least one industry The communication system of business board, wherein being provided with multiple application modules on the master board card and/or the business board;The party Method includes:
The application module management system of target board receives second application module that is used to inquire that the first application module is sent and communicates The inquiry request message of method includes: the mark and described second of second application module in the inquiry request message The mark of board where application module;
The application module management system of the target board is based on registering when the inquiry request message is initialized from application module Application module where the mark of board, the mark of application module and communication means corresponding relationship in inquire the second application module Communication means, inquiry request response message is generated according to query result, and the inquiry request response message of generation is sent to First application module, to indicate that first application module is answered according to include in the inquiry request response message second It is communicated with the communication means of module with second application module;
Wherein, the communication means of application module is functional form or form of message;
First application module according to the communication means of the second application module for including in the inquiry request response message with Second application module is communicated, comprising:
First application module and second application module are located at same board, first application module and described second When application module is communicated, itself place is carried in the message that first application module is sent to second application module The mark of board and the communication means of itself;
First application module is located at different boards, first application module and described second from second application module It is described when application module is communicated by board where board, second application module where first application module The mark of board where carrying second application module in the message that first application module is sent to second application module, The mark and the communication means of itself of the communication means of second application module, board where itself.
5. according to the method described in claim 4, it is characterized in that, the target board is industry where first application module Main control board where business board or first application module.
6. according to the method described in claim 5, it is characterized in that, where the target board is first application module When business board, where the application module that the application module management system of the target board is registered when initializing from application module The communication means of the second application module is inquired in the corresponding relationship of the mark of board, the mark of application module and communication means, is wrapped It includes:
The application module management system of business board where first application module is from itself or from main control board The communication means of the second application module is inquired in application module management system, wherein business board where first application module The mark of board where the application module management system of card stores the application module when any application module on this board initializes Know, the corresponding relationship of the mark of the application module and communication means, the application module management system of the main control board is in office Pair of the mark, the mark of the application module and communication means of board one application module stores the application module when initializing where It should be related to.
7. according to the method described in claim 6, it is characterized in that, business board where first application module applies mould Block management system inquires the communication of the second application module from itself or from the application module management system of main control board Method, comprising:
The application module management system of business board where first application module inquires in itself whether be stored with described the The communication means of two application modules, if inquiry failure, is forwarded to answering for the main control board for the inquiry request message With module management system, second application module is inquired in the application module management system of the main control board with request Communication means.
8. the method according to the description of claim 7 is characterized in that in the application of business board where first application module The inquiry request message is forwarded to after the application module management system of the main control board by module management system, the party Method further include:
The application module management system of business board where first application module receives the application mould of the main control board The inquiry request response message that block management system is sent;
The application module management system of business board is obtained from the inquiry request response message where first application module The communication means of second application module is taken, and the mark of board where storing second application module, described second is answered With the mark of module and the corresponding relationship of communication means.
9. according to the method described in claim 8, it is characterized in that, business board where first application module applies mould Block management system inquires in itself the communication means for whether being stored with second application module, comprising:
The application module management system of business board, which determines, where first application module is stored with described second in itself When the corresponding relationship of the mark and the mark of second application module of board where application module, the first application module institute The communication means of second application module is inquired in itself in the application module management system of business board.
10. according to the method described in claim 8, it is characterized in that, the application of business board where first application module Mark, the mark of second application module and the communication party of board where module management system stores second application module After the corresponding relationship of method, this method further include:
The application module management system of business board where first application module, which determines, stores second application module Communication means reaches preset time, deletes the mark of the second application module place board, the mark of second application module Know the corresponding relationship with communication means.
11. the method according to the description of claim 7 is characterized in that the application of business board where first application module Module management system inquires in itself the communication means for whether being stored with second application module, comprising:
The application module management system of business board where first application module determines where second application module When the mark of board is identical as the mark of board where itself, the application module pipe of business board where first application module Reason system inquires the communication means of second application module in itself.
12. the method according to any one of claim 6-11, which is characterized in that when the target board is described first Where application module when business board, this method further include:
Any application module unloading on this board of the application module management system of business board where first application module When, the corresponding relationship of the mark, the mark of the application module and communication means of board where deleting the application module of storage, and The unloading request message of the mark comprising board where the application module, the mark of the application module is sent to the master board The application module management system of card, so that the application module management system of the main control board deletes plate where the application module The corresponding relationship of the mark of card, the mark of the application module and communication means.
13. the communication means between a kind of application module, which is characterized in that applied to including main control board and at least one industry The communication system of business board, wherein being provided with multiple application modules on the master board card and/or the business board;The party Method includes:
The application module management system of business board where the application module management system of main control board receives the first application module System send for inquiring the inquiry request message of the second application module communication means, include: institute in the inquiry request message State the mark of the second application module and the mark of second application module place board;
The application module management system of the main control board is answered according to the mark of second application module and described second The mark of board where module inquires the communication means of second application module in itself, and raw according to query result At inquiry request response message, business board where the inquiry request response message is sent to first application module Application module management system, to indicate that first application module is answered according to include in the inquiry request response message second It is communicated with the communication means of module with second application module;
Wherein, the application module management system of the main control board stores the application module when any application module initializes The corresponding relationship of the mark of place board, the mark of the application module and communication means;
The communication means of application module is functional form or form of message;
First application module according to the communication means of the second application module for including in the inquiry request response message with Second application module is communicated, comprising:
First application module and second application module are located at same board, first application module and described second When application module is communicated, itself place is carried in the message that first application module is sent to second application module The mark of board and the communication means of itself;
First application module is located at different boards, first application module and described second from second application module It is described when application module is communicated by board where board, second application module where first application module The mark of board where carrying second application module in the message that first application module is sent to second application module, The mark and the communication means of itself of the communication means of second application module, board where itself.
14. according to the method for claim 13, which is characterized in that this method further include:
The application module management system of the main control board deletes plate where the application module when any application module unloads The corresponding relationship of the mark of card, the mark of the application module and communication means;And
When the application module management system of the main control board receives the message of any business board faults, according to the business The mark of board deletes the mark of all business boards, the mark of application module pass corresponding with communication means in itself System.
15. the communication system between a kind of application module, which is characterized in that the system includes: main control board and at least one industry Business board;Wherein, multiple application modules are provided on the main control board and/or the business board;
The first application module in the multiple application module is sent to the application module management system of target board for inquiring The inquiry request message of second application module communication means includes: second application module in the inquiry request message The mark of board where mark and second application module;
Board where the application module that the application module management system of the target board is registered when initializing from application module The communication means that the second application module is inquired in the corresponding relationship of mark, the mark of application module and communication means, according to inquiry As a result inquiry request response message is generated, and the inquiry request response message of generation is sent to first application module;
First application module obtains the communication party of second application module from the inquiry request response message received Method, and communicated according to the communication means of second application module got with second application module;
Wherein, the target board is business board where first application module or first application module place Main control board;
The communication means of application module is functional form or form of message;
First application module according to the communication means of the second application module for including in the inquiry request response message with Second application module is communicated, comprising:
First application module and second application module are located at same board, first application module and described second When application module is communicated, itself place is carried in the message that first application module is sent to second application module The mark of board and the communication means of itself;
First application module is located at different boards, first application module and described second from second application module It is described when application module is communicated by board where board, second application module where first application module The mark of board where carrying second application module in the message that first application module is sent to second application module, The mark and the communication means of itself of the communication means of second application module, board where itself.
CN201610282636.9A 2016-04-29 2016-04-29 Communication means and system between a kind of application module Active CN105955830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610282636.9A CN105955830B (en) 2016-04-29 2016-04-29 Communication means and system between a kind of application module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610282636.9A CN105955830B (en) 2016-04-29 2016-04-29 Communication means and system between a kind of application module

Publications (2)

Publication Number Publication Date
CN105955830A CN105955830A (en) 2016-09-21
CN105955830B true CN105955830B (en) 2019-09-17

Family

ID=56914871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610282636.9A Active CN105955830B (en) 2016-04-29 2016-04-29 Communication means and system between a kind of application module

Country Status (1)

Country Link
CN (1) CN105955830B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114077453A (en) * 2020-08-04 2022-02-22 成都鼎桥通信技术有限公司 Starting method and device of application system and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852169A (en) * 2006-03-23 2006-10-25 华为技术有限公司 Method and system for centralized management of multiple functional units
CN102075580A (en) * 2011-01-20 2011-05-25 迈普通信技术股份有限公司 Method and system for storing synchronous data in distributive network equipment
CN104301447A (en) * 2014-09-10 2015-01-21 深圳市高视数字技术有限公司 Software module communication method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100466550C (en) * 2006-09-13 2009-03-04 杭州华三通信技术有限公司 Method, device and system for implementing multi-service type structure
CN101729580A (en) * 2008-10-24 2010-06-09 成都市华为赛门铁克科技有限公司 Storage method and system, terminal service panel, control panel and storage channel panel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852169A (en) * 2006-03-23 2006-10-25 华为技术有限公司 Method and system for centralized management of multiple functional units
CN102075580A (en) * 2011-01-20 2011-05-25 迈普通信技术股份有限公司 Method and system for storing synchronous data in distributive network equipment
CN104301447A (en) * 2014-09-10 2015-01-21 深圳市高视数字技术有限公司 Software module communication method

Also Published As

Publication number Publication date
CN105955830A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
CN100449548C (en) Method and system for synchronizing data base
CN106685691B (en) The efficient update configuration method of terminal device in Internet of things system
US10764369B2 (en) Data storage method and server applicable to distributed server cluster
CN110968586B (en) Distributed transaction processing method and device
CN112019369A (en) Dynamic configuration management method and system under micro-service framework
CN109614209B (en) Task processing method, application server and system
CN103973725B (en) A kind of distributed cooperative algorithm and synergist
CN102333029A (en) Routing method in server cluster system
CN110740155B (en) Request processing method and device in distributed system
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
CN110888858B (en) Database operation method and device, storage medium and electronic device
CN112988883A (en) Database data synchronization method and device and storage medium
CN111078238A (en) Centralized processing method and device for application configuration in container environment
CN113127023B (en) Service upgrading method, device and system
CN105955830B (en) Communication means and system between a kind of application module
US20080019288A1 (en) System and method for managing domain-state information
CN116150273A (en) Data processing method, device, computer equipment and storage medium
CN115834600A (en) Multi-cloud nanotube data synchronization method and device, electronic equipment and storage medium
US20180063242A1 (en) Method and apparatus for operating infrastructure layer in cloud computing architecture
CN111260375B (en) Service processing method and device
CN112148429A (en) Information processing method and device for managing container arrangement engine cluster
CN114064795A (en) Data synchronization method and device, electronic equipment and storage medium
CN106375414B (en) The treating method and apparatus of Remote configuration resource based on distributed environment
CN110610554A (en) Cloud attendance system and data synchronization method thereof
CN113890875B (en) Task allocation 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

GR01 Patent grant
GR01 Patent grant