CN105955830A - Communication method and system among application modules - Google Patents
Communication method and system among application modules Download PDFInfo
- Publication number
- CN105955830A CN105955830A CN201610282636.9A CN201610282636A CN105955830A CN 105955830 A CN105955830 A CN 105955830A CN 201610282636 A CN201610282636 A CN 201610282636A CN 105955830 A CN105955830 A CN 105955830A
- Authority
- CN
- China
- Prior art keywords
- application module
- board
- mark
- communication means
- place
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/541—Interprogram communication via adapters, e.g. between incompatible applications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/547—Messaging 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 a communication method and system among application modules, used for providing a method for communication among dynamically initialized application modules. The communication method among the application modules comprises the steps that: a first application module sends an inquiry request message to an application module management system of a target board card for requesting the application module management system of the target board card to inquire a communication method of a second application module from a corresponding relationship between the registered identifiers of the board cards where the application modules are during the initialization of the application modules as well as the identifier of the second application module and the communication method, wherein the inquiry request message comprises the identifier of the second application module and the identifier of the board card where the second application module is; and the first application module receives an inquiry request response message which is returned by the application module management system of the target board card based on the inquiry request message, obtains the communication method of the second application module from the inquiry request response message and communicates with the second application module based on the obtained communication method of the second application module.
Description
Technical field
The present invention relates to communication technical field, particularly relate to the communication means between a kind of application module and system.
Background technology
At present, multiple task operating system both provides the method for communication between some processes (task), such as:
Message queue, shared drive and pipeline etc., also have the synchronous method between some processes (task), such as:
Semaphore, lock, event, it is possible to be applied to the communication between process (task).These methods can help
Embedded Multi-task system developer encodes realization and processes concurrent tasks, but in some special scenes
Under, these communication means also have some limitation, specifically:
These communication means are mainly used between father and son or brother's process of special relationship, or in advance
Having between the process of fixing binding relationship, for the sake of simplicity, these communication means usually require that system process (is appointed
Business) or time application module initializes after system start-up, initialize in a certain order, so not
It is suitable for dynamic load, unloading and the application module of dynamic initialization, because the process of these application modules (is appointed
Business) mark, communication means instance identification position in operating system nucleus and internal memory be dynamically distribution,
The opportunity loaded is different, and mark is likely to difference, communication means example after application module online upgrading, renewal
Mark is it can also happen that change, if restart whole system every time, cost is too big, it addition, these
Communication means can not conveniently be applied to the machine frame system of the application module composition being distributed on many boards.
In sum, the communication means between existing process has certain limitation, is not suitable for dynamic initialization
Application module between communication.
Summary of the invention
Embodiments provide the communication means between a kind of application module and system, the most initial with thinking
Communication provider method between the application module changed.
Communication means between a kind of application module that the embodiment of the present invention provides, the method includes: the first application
Module manages system to the application module of target board and sends inquiry request message, asks described target board
Application module manages the mark of application module place board, the application that system was registered when application module initializes
The mark of module and the corresponding relation of communication means are inquired about the communication means of the second application module, described inquiry
Request message includes: the mark of described second application module and described second application module place board
Mark;Described first application module receives the application module management system of described target board based on described inquiry
The inquiry request response message that request message returns, obtains described second from described inquiry request response message
The communication means of application module, and according to the communication means of described second application module got and described the
Two application modules communicate.
Communication means between a kind of application module that the embodiment of the present invention provides, the method includes: target board
Application module management system receive first application module send for inquiring about the second application module communication party
The inquiry request message of method, described inquiry request message includes: the mark of described second application module and
The mark of described second application module place board;The application module management system of described target board is based on institute
State the mark of the application module place board that inquiry request message was registered when application module initializes, application mould
The mark of block and the corresponding relation of communication means are inquired about the communication means of the second application module, according to inquiry knot
Fruit generates inquiry request response message, and sends the inquiry request response message generated to described first application
Module.
Communication means between a kind of application module that the embodiment of the present invention provides, the method includes: master board
The application module management system of card receives the application module management system of the first application module place business board
The inquiry request message for inquiry the second application module communication means sent, in described inquiry request message
Including: the mark of described second application module and the mark of described second application module place board;Described
The application module management system of main control board is according to the mark and described second of described second application module
The mark of application module place board, inquires about the communication means of described second application module, and root in self
Generate inquiry request response message according to Query Result, described inquiry request response message is sent to described first
The application module management system of application module place business board;Wherein, the application mould of described main control board
Block management system stores the mark of this application module place board, this application when arbitrary application module initializes
The mark of module and the corresponding relation of communication means.
Communication system between a kind of application module that the embodiment of the present invention provides, this system includes: master board
Card and at least one business board;Wherein, described main control board and/or described business board are provided with many
Individual application module;The first application module in the plurality of application module manages to the application module of target board
System sends the inquiry request message for inquiry the second application module communication means, described inquiry request message
Include: the mark of described second application module and the mark of described second application module place board;Institute
State the application module place plate that the application module management system of target board was registered when application module initializes
The mark of card, the mark of application module and the corresponding relation of communication means are inquired about the communication of the second application module
Method, generates inquiry request response message according to Query Result, and is sent out by the inquiry request response message of generation
Deliver to described first application module;Described first application module obtains from the inquiry request response message received
Take the communication means of described second application module, and according to the communication party of described second application module got
Method communicates with described second application module;Wherein, described target board is described first application module institute
At business board, or described first application module place main control board.
The embodiment of the present invention provide application module between communication means and system in, be previously stored with application mould
The mark of application module place board, the mark of application module registered during initialization block are right with communication means
Should be related to;When the first application module in a communications system is wanted to communicate with the second application module, can be by mesh
Application module management system on target card obtains second according to the inquiry of described corresponding relation directly or indirectly
The communication means of application module;And then, so that the first application module is according to the second application mould inquired
Communication means and second application module of block communicate.Due to target board application module manage system from
The mark of application module place board, the mark of application module and the communication party of registration when application module initializes
The corresponding relation of method is inquired about the communication means of the second application module, therefore, as long as the second application module is
Initializing, no matter the second application module is with system start-up initialisation, or dynamic initialization, target board
Application module management system can from the mark of application module place board, application module mark with logical
In the corresponding relation of letter method, inquiry obtains the communication means of the second application module, and by the second application module
Communication means sends to the first application module, so that the first application module and the second application module communicate,
And the communication means between existing process has certain limitation, be not suitable for dynamic initialization application module it
Between communication compare, the embodiment of the present invention achieves the communication between the application module of dynamic initialization, is also
Communication between the application module of dynamic initialization provides method.
Accompanying drawing explanation
Showing of communication means between a kind of application module of the application module side that Fig. 1 provides for the embodiment of the present invention
Meaning flow chart;
The application module that Fig. 2 provides for the embodiment of the present invention manages system registry to the application module of business board
Principle schematic;
The application module that Fig. 3 provides for the embodiment of the present invention manages system note to the application module of main control board
The principle schematic of volume;
The first application module inquiry that Fig. 4 provides for the embodiment of the present invention obtains the second application module communication means
Principle schematic;
The first application module inquiry that Fig. 5 provides for the embodiment of the present invention does not obtains the second application module communication party
The principle schematic of method;
The principle signal of communication between application module on the same business board that Fig. 6 provides for the embodiment of the present invention
Figure;
The principle signal of communication between application module on the different business board that Fig. 7 provides for the embodiment of the present invention
Figure;
The principle schematic of cancel register when application module that Fig. 8 provides for the embodiment of the present invention is unloaded;
Showing of communication means between a kind of application module of the target board side that Fig. 9 provides for the embodiment of the present invention
Meaning flow chart;
A kind of communication means between the application module of the main control board side that Figure 10 provides for the embodiment of the present invention
Schematic flow diagram;
The principle schematic of cancel register during the business board card failure that Figure 11 provides for the embodiment of the present invention;
The structural representation of the communication system between a kind of application module that Figure 12 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings, the communication means between a kind of application module embodiment of the present invention provided and system
Detailed description of the invention be described in detail.
It should be noted that the mark of the application module provided in the embodiment of the present invention is in application module institute
Board on single static identify this application module, application module design, coding time be assigned, such as:
The mark of application module can be the title of application module;The communication means of application module refers to that application module carries
Supply the communication means of other application module so that it is its application module is able to the communication party oneself sending message
Method, after many boards machine frame communication equipment os starting, application module is passive when loading and initialize
State assignment, such as: the communication means of application module can be functional form, form of message;Business board
Mark is for the business board identifying one piece of running status unique in many boards machine frame facility communication system, example
As: the mark of business board can be board number, the slot number in machine frame when business board is inserted into machine frame
Determining the board number of this business board, same business board can be inserted in several same kind board and insert
The diverse location of groove, but the board difference of every sub-distribution;Application module management system refers to operate in many plates
In card machine frame facility communication system, for receiving the login request message of application module, and response application module
The subsystem of inquiry request message.Wherein, many boards machine frame facility communication system is by one piece or two pieces control
Board (main control board and standby controller board card) and polylith various types of business board composition.
In application module side, the communication means between a kind of application module that the embodiment of the present invention provides, such as Fig. 1
Shown in, the method includes:
Step 102, the first application module manages system transmission inquiry request to the application module of target board and disappears
Breath, the application module institute that the application module management system of request target board was registered when application module initializes
Mark, the mark of application module at board inquire about the second application module in the corresponding relation of communication means
Communication means, inquiry request message includes: the mark of the second application module and the second application module place
The mark of board;
Step 104, the first application module receives the application module management system of target board based on inquiry request
The inquiry request response message that message returns, obtains the logical of the second application module from inquiry request response message
Letter method, and the communication means and the second application module according to the second application module got communicate.
In the method that the embodiment of the present invention provides, owing to being the application module of registration when application module initializes
The mark of place board, the mark of application module and the corresponding relation of communication means inquire about the second application module
Communication means, therefore, as long as the second application module is the most initialized, no matter the second application module is with being
System starts initialization, or dynamic initialization, and the application module management system of target board can be from application
The mark of module place board, the mark of application module obtain second with inquiry in the corresponding relation of communication means
The communication means of application module, and the communication means of the second application module is sent to the first application module, with
Make the first application module and the second application module communicate, and the communication means between existing process has necessarily
Limitation, the communication be not suitable between the application module of dynamic initialization compares, and the present embodiment achieves dynamic
Communication between the initialized application module of state, the communication being also between the application module of dynamic initialization provides
Method.
When being embodied as, the first application module manages system transmission to the application module of target board and is used for inquiring about
The inquiry request message of the second application module communication means, when the first application module is the application on business board
During module, target board can be preassigned business board, such as: have two pieces of business boards: business
Board 1 and business board 2, it is intended that the application module on two pieces of business boards is inquiring about other application module
During communication means, all manage system to the application module of business board 2 and send inquiry request message, then business
Board 2 is target board, and certainly, the most preferably, this target board is the first application module place business
Board, when the application module management system of each business board application module on this board initializes, deposits
Mark, the mark of application module and the corresponding relation of communication means of storage application module place board, and receive
On this business board, application module inquires about the inquiry request message of the communication means of other application module;Work as application
When module is the application module on main control board, target board is application module place main control board, when
So, when the application module management system of main control board application module on this board initializes, need equally
The mark of application module place to be stored board, the mark of application module and the corresponding relation of communication means, and
And arbitrary application module that the application module management system of main control board is on other business boards initializes
Time, in addition it is also necessary to store mark and the communication means of the mark of this application module place board, this application module
In corresponding relation, namely the application module management system of main control board when arbitrary application module initializes,
No matter this application module is the application module on the application module on business board, or main control board, main
The application module management system of Control card is required to store the mark of this application module place board, this application
The mark of module and the corresponding relation of communication means.Wherein, the arbitrary application being previously mentioned in the embodiment of the present invention
Module is the application module on business board or the application module on main control board.
When being embodied as, when the application module on business board initializes, application module is to place business board
Application module management system send login request message, this login request message includes: application module
Mark and communication means, the application module management system of this application module place business board, according to this registration
Request message stores the mark (namely the mark of self) of this application module place board, this application module
Mark and the corresponding relation of communication means, and login request message is forwarded to the application module of main control board
Management system, the application module management system of main control board stores this application mould according to this login request message
The mark of block place board, the mark of this application module and the corresponding relation of communication means.
What deserves to be explained is, due to mark single static mark on the board at application module place of application module
Know this application module, therefore, in other embodiments of the present invention, if all to self when application module initializes
The application module management system of place board sends login request message, such as: answering on each business board
When using module initialization, the application module on business board is to the application module system of self place business board
Send login request message, then the application module management system of business board can also only store application module
Mark and the corresponding relation of communication means, and without storing the mark of application module place board, application module
The corresponding relation of mark and communication means.
Below in conjunction with specific embodiment, in the embodiment of the present invention, the application module on business board is initial
During change, the process managing system transmission login request message registration to the application module of place business board is carried out
Describe in detail.When being embodied as, when the application module on business board initializes, answering to this business board
Sending login request message with module management system, this login request message includes: the mark of application module
And communication means, application module includes that many boards machine frame facility communication system is initial with system start-up when starting
Application module, the application module of dynamic initialization and the application module of online updating changed, business board
When application module management system receives this login request message, store the mark of this application module place board
Knowledge, the mark of this application module and the corresponding relation of communication means, and send registration request to this application module
Confirm message, and this login request message is sent the application module management system to main control board, master control
When the application module management system of making sheet card receives login request message, store this application module place board
Mark, the corresponding relation of mark and communication means of application module.Wherein, during business board card initialization,
The application module management system of business board needs to manage system registry to the application module of main control board.
Certainly, in other embodiments of the invention, the application module management system of business board is receiving
On this board during the login request message of application module, it is also possible to do not store the mark of this application module place board
Knowledge, the mark of application module and the corresponding relation of communication means, and directly this login request message is sent extremely
The application module management system of main control board, the application module management system storage making main control board should
By the mark of module place board, the mark of this application module and the corresponding relation of communication means, this embodiment
The application module management system of middle business board receives answering for inquiry second of the first application module transmission
During with the inquiry request message of the communication means of module, directly this inquiry request message is forwarded to master board
The application module management system of card is inquired about.It should be noted that the application module management of business board is
Mark, the mark of application module and the relation of communication means of system storage application module place board, with business
Board application module management system do not store the mark of application module place board, application module mark with
The corresponding relation of communication means is compared, and has the advantage that first, when the second application module and the first application mould
When block is positioned at same business board, the mark of the application module that can directly store at self and communication means
Corresponding relation is inquired about the communication means of the second application module, without the application being relayed to main control board
Module management system is inquired about, and improves search efficiency, and reduces the control information of communication between plates;Next, by
In plate, the reliability of communication is far above the reliability of communication between plates, therefore, it is possible to improve the reliability of communication;
Finally, if main control board lost efficacy, standby controller board card by standby be upgraded to primary, if standby controller board card
Data inconsistent with the data in the main control board card of inefficacy, it is possible to use the application module of business board
In management system, the data of storage are audited.
During as the most concrete enforcement, as in figure 2 it is shown, the application module in business board appsvr_i
Register flow path when app_i1 and application module app_i2 initializes includes:
Step 202, when business board appsvr_i initializes, the application module pipe of business board appsvr_i
Reason system manages system registry to the application module of main control board appsvr_m;
Step 204, synchronized update, specifically, the application module management of main control board appsvr_m is
Application module place board the most stored in the application module management system of system synchronous service board appsvr_i
Mark, the corresponding relation of mark and communication means of application module;
Step 206, the application module app_i1 in business board appsvr_i initializes, to business board
The application module management system registry of appsvr_i, carries the title of application module in login request message
Namei1 and communication means funci1;
Step 208, the application module management system of business board appsvr_i receives application module app_i1
Login request message time, can store application module app_i1 place business board mark i, application mould
Title namei1 of block app_i1 and the corresponding relation of communication means funci1, then by application module app_i1
Login request message be forwarded to main control board appsvr_m application module management system, with in master control
The application module management system of making sheet card appsvr_m stores application module app_i1 place business board
Mark i, title namei1 of application module app_i1 and the corresponding relation of communication means funci1;Can also
Do not store the mark i of application module app_i1 place business board, title namei1 of application module app_i1
With the corresponding relation of communication means funci1, directly the login request message of application module app_i1 is forwarded to
The application module management system of main control board appsvr_m, with the application at main control board appsvr_m
Module management system stores mark i of application module app_i1 place business board, application module app_i1
The corresponding relation of title namei1 and communication means funci1;
Step 210, the application module app_i2 in business board appsvr_i initializes, to business board
The application module management system registry of appsvr_i, carries the name of application module app_i2 in login request message
Claim namei2 and communication means funci2;
Step 212, the application module management system of business board appsvr_i receives application module app_i2
Login request message time, can store application module app_i2 place business board mark i, application mould
Title namei2 of block app_i2 and the corresponding relation of communication means funci2, then by application module app_i2
Login request message be forwarded to main control board appsvr_m application module management system, with in master control
The application module management system of making sheet card appsvr_m stores application module app_i2 place business board
Mark i, title namei2 of application module app_i2 and the corresponding relation of communication means funci2;Can also
Do not store the mark i of application module app_i2 place business board, title namei2 of application module app_i2
With the corresponding relation of communication means funci2, directly the login request message of application module app_i2 is forwarded to
The application module management system of main control board appsvr_m, with the application at main control board appsvr_m
Module management system stores mark i of application module app_i2 place business board, application module app_i2
The corresponding relation of title namei2 and communication means funci2.
During it should be noted that the application module on main control board initializes, directly to main control board
Application module management system registry, and need not move through the application module management system of business board, it is embodied as
Time, during as it is shown on figure 3, the application module app_01 in main control board appsvr_m initializes, directly
Manage system registry to the application module of main control board appsvr_m, login request message is carried equally
Title name01 of application module app_01 and communication means func01, the application module of main control board
The mark of management system storage application module app_01 place board, the title of application module app_01
The corresponding relation of name01 and communication means func01.
Below in conjunction with specific embodiment, to first application module inquiry the second application mould in the embodiment of the present invention
The process of the communication means of block is described in detail, as shown in Figure 4, and the application in business board appsvr_i
The step of the communication means that module app_i1 inquires about the application module app_i2 on this business board includes:
Step 402, the application module app_i1 in business board appsvr_i is to business board appsvr_i's
Application module management system sends inquiry request message, and inquiry request message includes application module app_i2
Title namei2 and mark i of application module app_i2 place board;
Step 404, the application module management system of business board appsvr_i receives application module app_i1
The inquiry request message sent, confirms the mark i board mark with self of application module app_i2 place board
Know i identical time, in self, directly search the communication means of application module app_i2, and according to finding
The communication means of application module app_i2 generates inquiry request response message and sends to application module app_i1, looks into
The request response of inquiry includes: title namei2 of application module app_i2, application module app_i2 place plate
The mark i and the communication means funci2 of application module app_i2 of card;
The application mould on application module app_i1 inquiry business board appsvr_j in business board appsvr_i
The step of the communication means of block app_j1 includes:
Step 406, the application module app_i1 in business board appsvr_i is to business board appsvr_i's
Application module management system sends inquiry request message, and inquiry request message includes application module app_j1
Title namej1 and mark j of application module app_j1 place board;
Step 408, the application module management system of business board appsvr_i receives application module app_i1
The inquiry request message sent, confirms the mark j board mark with self of application module app_j1 place board
Know i different, then 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
During the inquiry request message that the application module management system of appsvr_i sends, according to mark j of board and
Title namej1 of application module app_j1, inquires about the communication means of application module app_j1 in self,
And generate the transmission of inquiry request response message to industry according to the communication means of the application module app_j1 found
The application module management system of business board appsvr_i, inquiry request response includes: application module app_j1
Title namej1, the mark j's and application module app_j1 of application module app_j1 place board is logical
Letter method funcj1;
Step 412, the application module management system of business board appsvr_i receives main control board
During the inquiry request response message that the application module management system of appsvr_m sends, this inquiry request is responded
Message is forwarded to application module app_i1, and certainly, the application module management system of business board appsvr_i is also
The inquiry of application module management system application modules app_j1 of main control board appsvr_m can be cached
Request response, for other application module subsequent query on this board, if other application follow-up
The communication means of module polls application module app_j1, then the application module management of business board appsvr_i is
System is no longer necessary to be forwarded to inquiry request message the application module management system of main control board appsvr_m
Inquire about, and can directly inquire about from the inquiry request response message of the application module app_j1 of caching and answer
With the communication means of module app_j1.
Certainly, if it will be apparent to a skilled person that, the second application module is not actuated, namely not to
The application module management system of business board and application module management system registry, the then industry of main control board
The application module management system of business board and the application module management system of main control board all cannot be looked into
Ask the communication means of the second application module, then inquiry request response message comprise the mark that inquiry is failed,
When first application module receives the inquiry request response message comprising the failed mark of inquiry, it is impossible to second
Application module communicates, and wherein, inquires about failed mark and can arbitrarily arrange, such as: use 0 mark
Inquire about unsuccessfully.
As more specific embodiment, it is assumed that application module app_i2 in business board appsvr_i and
Application module app_j1 in business board appsvr_j is the most unregistered, as it is shown in figure 5, business board
Application module app_i1 in appsvr_i inquires about the communication means of the application module app_i2 on this business board
Step include:
Step 502, the application module app_i1 in business board appsvr_i is to business board appsvr_i's
Application module management system sends inquiry request message, and inquiry request message includes application module app_i2
Title namei2 and mark i of application module app_i2 place board;
Step 504, the application module management system of business board appsvr_i receives application module app_i1
The inquiry request message sent, confirms the mark i board mark with self of application module app_i2 place board
When knowledge i is identical, in self, directly search the communication means of application module app_i2, due to application module
App_i2 is unregistered, then the application module management system of business board appsvr_i is inquired about less than answering in self
With the communication means of module app_i2, therefore, the application module management system of business board appsvr_i according to
Query Result generates inquiry request response message, and sends this inquiry request response message to application module
App_i1, comprises title namei2 of application module app_i2, application module in this inquiry request response message
The mark i of app_i2 place board and the failed mark 0 of inquiry;
The application mould on application module app_i1 inquiry business board appsvr_j in business board appsvr_i
The step of the communication means of block app_j1 includes:
Step 506, the application module app_i1 in business board appsvr_i is to business board appsvr_i's
Application module management system sends inquiry request message, and inquiry request message includes application module app_j1
Title namej1 and mark j of application module app_j1 place board;
Step 508, the application module management system of business board appsvr_i receives application module app_i1
The inquiry request message sent, confirms the mark j board mark with self of application module app_j1 place board
Know i different, then 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
During the inquiry request message that appsvr_i sends, according to mark j and the name of application module app_j1 of board
Claim namej1, self inquires about the communication means of application module app_j1, due to application module app_j1
Unregistered, then the application module management system queries of main control board appsvr_m is less than application module app_j1
Communication means, therefore, the application module of main control board appsvr_m management system is according to Query Result
Generate inquiry request response message, and this inquiry request response message is sent to business board appsvr_i's
Application module management system, comprises the title of application module app_j1 in this inquiry request response message
The mark j of namej1, application module app_j1 place board and the failed mark 0 of inquiry;
Step 512, the application module management system of business board appsvr_i receives main control board
During the inquiry request response message that the application module management system of appsvr_m sends, this inquiry request is responded
Message is forwarded to application module app_i1, comprises the mark 0 that inquiry is failed in this inquiry request response message,
The mark 0 that this inquiry is failed does not inquires the communication means of application module app_j1 for mark.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module root
Communication means and the second application module according to the second application module got communicate, including: first should
It is positioned at same board, the first application module and the second application module with module and the second application module to communicate
Time, the first application module carry in the message that the second application module sends self place board mark and
The communication means of self;First application module and the second application module are positioned at different board, the first application module
Communicated by the first application module place board, the second application module place board with the second application module
Time, the first application module carries the second application module place board in the message that the second application module sends
Mark, the communication means of the second application module, the mark of self place board and the communication means of self.
When being embodied as, the first application module and the second application module are positioned at same board, the first application module
When communicating with the second application module, the first application module directly uses the second application module of inquiring
Communication means sends message to the second application module, message is carried the mark of self place board and self
Communication means, after the second application module receives message, use in message the logical of the first application module of carrying
Letter method, replys response message to the first application module, without the communication inquiring about the first application module again
Method.
When being embodied as, it is positioned at as a example by same business board by the first application module and the second application module, the
After one application module gets the communication means of the second application module, can lead to the second application module
Letter, is described in detail to the communication process of the first application module and the second application module below in conjunction with Fig. 6.
As shown in Figure 6, it is positioned at the application module app_i1 on same business board appsvr_i and application module
The communication process of app_i2, including:
Step 602, application module app_i1 manages system to the application module of business board appsvr_i and sends
Inquiry request message, the communication means of inquiry application module app_i2, this inquiry request message includes application
Title namei2 of module app_i2 and mark i of application module app_i2 place business board;
Step 604, the application module management system of business board appsvr_i receives application module app_i1
The inquiry request message sent, confirms the mark i industry with self of application module app_i2 place business board
When business board mark i is identical, directly search the communication means of application module app_i2 at self, and according to looking into
The communication means of the application module app_i2 found generates inquiry request response message and sends to application module
App_i1, inquiry request response includes: title namei2 of application module app_i2, application module app_i2
The mark i and the communication means funci2 of application module app_i2 of place business board;
Step 606, application module app_i1 receives the application module management system of business board appsvr_i and sends out
The inquiry request response message sent, obtains the communication of application module app_i2 from this inquiry request response message
Method, and use the communication means of the application module app_i2 got to disappear to application module app_i2 transmission
Breath, this message includes the content of message, the mark of application module app_i1 place business board and application
The communication means of module app_i1, so that application module app_i2 is according to application module app_i1 place business
The mark of board and the communication means of application module app_i1 communicate with application module app_i1;
Step 608, application module app_i2 receives the message that application module app_i1 sends, obtains from message
Take mark and the communication means of application module app_i1 of application module app_i1 place business board, and
Use mark and the communication means of application module app_i1 of application module app_i1 place business board,
Replying response message to application module app_i1, the response message that application module app_i2 replys includes:
The content of response message, the mark of application module app_i2 place business board and application module app_i2
Communication means;
Step 610, application module app_i1 uses the communication means of application module app_i2 again to application mould
Block app_i2 sends message;
Step 612, application module app_i1 does not receives the response of application module app_i2 in Preset Time and disappears
Breath, transmission inquiry request message manages system queries application to the application module of business board appsvr_i again
The communication means of module app_i2;
Step 614, the application module management system of business board appsvr_i inquires about application in self again
The communication means of module app_i2, and generate inquiry request response message and send to application module app_i1;
Step 616, application module app_i1 utilizes the communication party again inquiring about the application module app_i2 obtained
Normal direction application module app_i2 sends message;
Step 618, if application module app_i1 does not receives the sound of application module app_i2 in Preset Time
Answer message, then third time transmission inquiry request message manages system to the application module of business board appsvr_i
The communication means of inquiry application module app_i2;
Step 620, the application module management system of business board appsvr_i inquires about application in self again
The communication means of module app_i2, if not finding the communication means of application module app_i2, then according to looking into
Ask result generation inquiry request response message to send to application module app_i1, notify application module app_i1
Inquire about unsuccessfully, do not find the communication means of application module app_i2.
From the application module app_i1 being positioned at same business board appsvr_i shown in Fig. 6 and application mould
The communication process of block app_i2 it can be seen that communication means between the application module that provides of the embodiment of the present invention with
Sample is applicable to the communication between single business board cartoon letters systematic difference module, it is not necessary to the ginseng of main control board
With, the communication between single business board cartoon letters systematic difference module is similar to and illustrates with embodiment of the present invention Fig. 6
Communication process.
When being embodied as, when the first application module and the second application module are positioned at different board, the first application mould
Block and the second application module are led to by the first application module place board, the second application module place board
During letter, the first application module carries the second application module place board in the message that the second application module sends
Mark, the communication means of the second application module, the mark of self place board and the communication means of self,
In message transmitting process, the first application module sends the message to the first application module place board, the
One application module place board should according to the mark of the second application module place board carried in this message
Message is forwarded to the second application module place board by message between different boards, and the second application module place board receives
After this message, owing to including multiple application module, therefore, second on the second application module place board
Application module place board needs this to be disappeared according to the communication means of the second application module carried in this message
Breath is forwarded to the second application module, and after the second application module receives this message, needs to use this message
In carry the mark of the first application module place board, the first application module communication means to first application
Module replys response message, the repeating process of the response message that the second application module is replied and the first application module
The process sending message is similar to, below in conjunction with Fig. 7 to the first application module and the communication of the second application module
Journey is described in detail.
As it is shown in fig. 7, with the application module app_i1 that is positioned on business board appsvr_i be positioned at business board
As a example by the communication process of the application module app_j1 on card appsvr_j, the concrete steps of communication process, including:
Step 702, after application module app_i1 gets the communication means of application module app_j1, Xiang Ying
Sending message svr_send by module app_j1, this message needs to forward through business board appsvr_i, because of
This, this message is message in plate in this step, and this message includes: the content of message, application module
The mark j of app_j1 place business board, the communication means of application module app_j1, application module app_i1
The mark i of place business board and the communication means of application module app_i1;
Step 704, business board appsvr_i is according to the application module app_j1 place business carried in message
Mark j of board, is forwarded to business board appsvr_j by the message that application module app_i1 sends, and this disappears
Breath transmits in this step between business board, and therefore, the form of this message is message between different boards (Inter-Board
Communication, IBC) form;
Step 706, the message that business board appsvr_i sends is forwarded to application by business board appsvr_j
Module app_j1, specifically, owing to there is multiple application module on business board appsvr_j, therefore,
Business board appsvr_j is when forwarding message, in order to determine the application module which forwarding determine message,
Business board appsvr_j needs the communication means according to the application module app_j1 carried in message, by message
Being forwarded to application module app_j1, this message includes: the content of message, application module app_i1 place industry
The mark i of business board and the communication means of application module app_i1;
Step 708, after application module app_j1 receives the message that application module app_i1 sends, use disappears
The mark i of the application module app_i1 place business board carried in breath and the communication of application module app_i1
Method, replys response message svr_send to application module app_i1, and this response message needs through business board
Card appsvr_j forwards, and therefore, this response message is message in plate in this step, wraps in this response message
Include: the content of message, the mark i of application module app_i1 place business board, application module app_i1
Communication means, the mark j of application module app_j1 place business board and the communication of application module app_j1
Method;
Step 710, business board appsvr_j is according to the application module app_i1 place carried in response message
Mark i of business board, is forwarded to business board by the response message that application module app_j1 replys
Appsvr_i, this response message transmits in this step between business board, therefore, the shape of this response message
Formula is message between different boards IBC form;
Step 712, the response message that business board appsvr_j sends is forwarded to by business board appsvr_i
Application module app_i1, specifically, owing to there is multiple application module on business board appsvr_i, because of
This, business board appsvr_i is when forwarding message, in order to determine the application which forwarding determine message
Module, business board appsvr_i needs the communication means according to the application module app_i1 carried in message,
Forwarding the messages to application module app_i1, this response message includes: the content of message, application module
The mark j of app_j1 place business board and the communication means of application module app_j1.
It should be noted that the first application module being positioned on main control board and the communication of the second application module
Process is similar with the process shown in Fig. 6, the first application module being positioned on main control board be positioned at business
The communication means of the second application module on board is similar with the process shown in Fig. 7, illustrates the most one by one
Bright.
When being embodied as, in order to ensure that the application module of business board manages system and the application of main control board
The accuracy of the communication means of application module and ageing in module management system, during application module unloading, sends out
Cancel register request message is sent to manage system to the application module of business board, so that the application mould of business board
The block management mark of this application module place board of system-kill, mark and the communication means of this application module
Corresponding relation, and asked message to be forwarded to master control cancel register by the application module management system of business board
The application module management system of making sheet card, so that application module management this application of system-kill of main control board
The mark of module place board, the mark of this application module and the corresponding relation of communication means, specifically:
When each application module is unloaded, application module sends cancel register request message to this application module institute
Application module at business board manages system, and cancel register request message includes: the mark of application module,
The application module management system of business board deletes the mark of this application module place board, this application accordingly
The mark of module and the corresponding relation of communication means, and the cancel register comprising the mark of application module is asked
Message is forwarded to the application module management system of main control board, the application module management system of main control board
Delete the mark of this application module place board, the mark of this application module and the corresponding relation of communication means,
Communication means with real-time update application module, it is to avoid the communication means of unloaded application module is supplied to
Other application module.
As more specific embodiment, as shown in Figure 8, the application module on business board appsvr_j
Flow process when app_j1 is unloaded, including:
Step 802, when application module app_j1 is unloaded, application module app_j1 is to business board appsvr_j
Application module management system send cancel register request message, this cancel register request message include: should
By title namej1 of module app_j1, the most preferably, this cancel register request message also includes:
The communication means funcj1 of application module app_j1;
Step 804, the application module management system-kill application module app_j1 institute of business board appsvr_j
At the mark of board, the mark of application module app_j1 and the corresponding relation of communication means, and application will be comprised
The cancel register request message of title namej1 of module app_j1 is forwarded to main control board appsvr_m's
Application module management system, so that the application module management system-kill application of main control board appsvr_m
The mark of module app_j1 place board, the mark of application module app_j1 and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module root
After communicating according to the communication means of the second application module got and the second application module, the method is also
Including: when not receiving the response message of the second application module in the first application module Preset Time, first should
Manage system by module to the application module of target board and send inquiry request message, answering of request target board
Again the communication means of the second application module is inquired about with module management system.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, target board is first
Application module place business board, or the first application module place main control board.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place main control board, the application module management system of target board is initial from application module
The mark of application module place board of registration, the mark of application module and the corresponding relation of communication means during change
The communication means of middle inquiry the second application module, including: the application of the first application module place main control board
Module management system inquires about the communication means of the second application module, wherein, answering of main control board from self
Store the mark of this application module place board when arbitrary application module initializes with module management system, be somebody's turn to do
The mark of application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system inquires about the communication means of the second application module from the application module management system of main control board,
Wherein, the application module management system of main control board stores this application mould when arbitrary application module initializes
The mark of block place board, the mark of this application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system inquires about the second application mould from self or from the application module management system of main control board
The communication means of block, wherein, the application module management system of the first application module place business board is at this plate
On card, arbitrary application module stores the mark of this application module place board, the mark of this application module when initializing
Knowing the corresponding relation with communication means, the application module management system of main control board is at the beginning of arbitrary application module
Store during beginningization the mark of this application module place board, this application module mark corresponding with communication means
Relation.
In target board side, the communication means between a kind of application module that the embodiment of the present invention provides, such as Fig. 9
Shown in, the method includes:
Step 902, target board application module management system receive first application module send be used for look into
Asking the inquiry request message of the second application module communication means, inquiry request message includes: the second application mould
The mark of block and the mark of the second application module place board;
Step 904, the application module of target board manages system based on inquiry request message from the beginning of application module
The mark pass corresponding with communication means of the mark of application module place board of registration, application module during beginningization
System is inquired about the communication means of the second application module, generates inquiry request response message according to Query Result, and
The inquiry request response message generated is sent to the first application module.
In the method that the embodiment of the present invention provides, owing to the application module of target board manages system from application mould
The mark of application module place board, the mark of application module registered during initialization block are right with communication means
The communication means of middle inquiry the second application module should be related to, therefore, as long as the second application module is the most initialized,
No matter the second application module is with system start-up initialisation, or dynamic initialization, the application mould of target board
Block management system can be from the mark of application module place board, mark and the communication means of application module
In corresponding relation, inquiry obtains the communication means of the second application module, and by the communication means of the second application module
Send to the first application module so that the first application module and the second application module communicate, with existing enter
Communication means between journey has certain limitation, is not suitable for the communication between the application module of dynamic initialization
Comparing, the present embodiment achieves the communication between the application module of dynamic initialization, is also dynamic initialization
Communication between application module provides method.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, target board is first
Application module place business board, or the first application module place main control board.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place main control board, the application module management system of target board is initial from application module
The mark of application module place board of registration, the mark of application module and the corresponding relation of communication means during change
The communication means of middle inquiry the second application module, including: the application of the first application module place main control board
Module management system inquires about the communication means of the second application module, wherein, answering of main control board from self
Store the mark of this application module place board when arbitrary application module initializes with module management system, be somebody's turn to do
The mark of application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place main control board, the method also includes: the application module management of main control board is
System delete when arbitrary application module unload the mark of this application module place board, application module mark and
The corresponding relation of communication means.Wherein, arbitrary application module can be the application module on business board, also
It can be the application module on main control board.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system manages the communication means of system queries the second application module from the application module of main control board, its
In, the application module management system of main control board stores this application module when arbitrary application module initializes
The mark of place board, the mark of this application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the method also includes: answering of the first application module place business board
On this board, when the unloading of arbitrary application module, the mark comprising this application module is sent with module management system
Unloading request message to the application module of main control board manage system, so that the application mould of main control board
Block management this application module place board of system-kill mark (namely send unloading request message business board
The mark of card), the corresponding relation of the mark of this application module and communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system inquires about the second application mould from self or from the application module management system of main control board
The communication means of block, wherein, the application module management system of the first application module place business board is at this plate
On card, arbitrary application module stores the mark of this application module place board, the mark of this application module when initializing
Knowing the corresponding relation with communication means, the application module management system of main control board is at the beginning of arbitrary application module
Store during beginningization the mark of this application module place board, this application module mark corresponding with communication means
Relation.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module institute
Application module at business board manages system from self or from the application module management of main control board
System is inquired about the communication means of the second application module, including: answering of the first application module place business board
The communication means whether storing the second application module in self is inquired about, if inquiry is lost with module management system
Lose, then inquiry request message is forwarded to the application module management system of main control board, with request in master control
The application module management system of making sheet card is inquired about the communication means of the second application module
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, at the first application module
Inquiry request message is forwarded to the application of main control board by the application module management system of place business board
After module management system, the method also includes: the application module pipe of the first application module place business board
Reason system receives the inquiry request response message that the application module management system of main control board sends;First should
Obtaining second from inquiry request response message by the application module management system of module place business board should
With the communication means of module, and store the mark of the second application module place board, the mark of the second application module
Know the corresponding relation with communication means.
In the method that the embodiment of the present invention provides, the application module management of the first application module place business board
After system receives the inquiry request response message that main control board sends, obtain from inquiry request response message
Take the communication means of the second application module, and store the mark of the second application module place board, the second application
The mark of module and the corresponding relation of communication means, with the inquiry of other application module on this board the second application
During the communication means of module, it is not necessary to inquiry request message is forwarded to main control board, it is possible to directly look into
Ask the communication means of the second application module, improve search efficiency.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module institute
Application module at business board manages the communication whether storing the second application module in system queries self
Method, including: deposit when the application module management system of the first application module place business board determines in self
When containing the corresponding relation of the mark of the second application module place board and the mark of the second application module, first
The application module management system of application module place business board inquires about the logical of the second application module in self
Letter method.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module institute
Application module at business board manages system and stores the mark of the second application module place board, the second application
After the mark of module and the corresponding relation of communication means, the method also includes: the first application module place industry
The application module management system of business board determines that the communication means of storage the second application module reaches Preset Time,
Delete the mark pass corresponding with communication means of the mark of the second application module place board, the second application module
System.
In the method that the embodiment of the present invention provides, owing to the second application module is not the first application module place industry
Application module on business board, when the second application module initializes, the first application module place business board
Application module management system does not store the mark of the second application module place board, the mark of the second application module
With the corresponding relation of communication means, during the second application module unloading, the first application module place business board
Application module management system can not be known in time, the application module of the first application module place business board
Management system cannot upgrade in time the communication means of the second application module, therefore, the first application module place industry
The application module management system of business board stores after the communication means of the second application module reaches Preset Time,
Delete the mark pass corresponding with communication means of the mark of the second application module place board, the second application module
System, it is to avoid because not updating the communication means of the second application module for a long time, and when other application module is inquired about
The communication means of the second application module of mistake is provided.
When being embodied as, the application module management system of business board stores the second application module place board
After mark, the mark of the second application module and the corresponding relation of communication means, start intervalometer or enumerator,
And the communication of the second application module of storage is determined by the timing result of intervalometer or the count value of enumerator
Whether method reaches Preset Time, and Preset Time can freely set, certainly, the most preferably, in order to really
Protecting the accuracy of the communication means of the second application module that inquiry obtains, this Preset Time can be set as shorter
Time, such as: Preset Time is 5 minutes.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module institute
Application module at business board manages the communication whether storing the second application module in system queries self
Method, including: determine the second application when the application module of the first application module place business board manages system
When the mark of module place board is identical with the mark of self place board, the first application module place business board
The application module management system of card inquires about the communication means of the second application module in self.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the method also includes:
The application module management system application module pipe to main control board of the first application module place business board
Reason system sends registration message, and manages, at the application module receiving main control board, the registration that system sends
After confirming message, manage the application module of storage in system synchronization self with the application module of main control board
The mark of place board, the mark of application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the method also includes: answering of the first application module place business board
On this board, when the unloading of arbitrary application module, this application module place of storage is deleted with module management system
The mark of board, the corresponding relation of mark and communication means of this application module, and send and comprise this application mould
The unloading request message of the mark of block manages system to the application module of main control board, so that main control board
The application module management mark of this application module place board of system-kill, this application module mark with logical
The corresponding relation of letter method.
In main control board side, the communication means between a kind of application module that the embodiment of the present invention provides, such as figure
Shown in 10, the method includes:
Step 1002, the application module management system of main control board receives the first application module place business board
The inquiry request for inquiry the second application module communication means that the application module management system of card sends disappears
Breath, inquiry request message includes: the mark of the second application module and the second application module place board
Mark;
Step 1004, the application module management system of main control board according to the mark of the second application module and
The mark of the second application module place board, inquires about the communication means of the second application module, and root in self
Generate inquiry request response message according to Query Result, inquiry request response message is sent to the first application module
The application module management system of place business board;Wherein, the application module management system of main control board exists
Arbitrary application module initialize time store the mark of this application module place board, this application module mark with
The corresponding relation of communication means.
In the method that the embodiment of the present invention provides, the application module management system of main control board is in arbitrary application
The mark of this application module place board, the mark of this application module and communication means is stored during module initialization
Corresponding relation, therefore, main control board application module manage system receive the first application module institute
When the inquiry request message being used for inquiry the second application module communication means that business board sends, as long as the
Two application modules are the most initialized, and no matter the second application module is with system start-up initialisation, or dynamically at the beginning of
Beginningization, the application module management system of main control board can be inquired about from self and be obtained the second application module
Communication means, and by the communication means of the second application module by the application module of business board management system
Send to the first application module so that the first application module and the second application module communicate, with existing enter
Communication means between journey has certain limitation, is not suitable for the communication between the application module of dynamic initialization
Comparing, the present embodiment achieves the communication between the application module of dynamic initialization, is also dynamic initialization
Communication between application module provides method.
When being embodied as, in the communication means between the application module that the present invention provides, it is also possible to include standby control
Making sheet card, the application module management system on standby controller board card is in real time and the application module pipe of main control board
Manage the application module management system synchronization of system synchronization or periodicity and main control board, standby controller board card
In application module management system store registered application module on all registered business boards
Communication means.
What deserves to be explained is, the application module management system of main control board stores the communication of application module
During method, need mark, the mark of application module and the communication means of storage application module place board
Corresponding relation, is positioned at multiple application modules of same application module mark on different board to distinguish.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the method also includes:
The application module management system of main control board receives the application mould of the first application module place business board
During the registration message that block management system sends, send registration confirmation message to the first application module place business board
The application module management system of card, and manage system with the application module of the first application module place business board
System, synchronizes the application module institute of storage in the application module management system of the first application module place business board
At the mark of board, the mark of application module and the corresponding relation of communication means.
When being embodied as, the application module management system of main control board is at the application module of arbitrary business board card
During management system registry, all application modules with this business board manage system, synchronize answering of this business board
With the mark of application module place board, the mark of application module and the communication party of storage in module management system
The corresponding relation of method.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the method also includes:
The application module management system of main control board deletes this application module place when arbitrary application module unloads
The mark of board, the mark of this application module and the corresponding relation of communication means;And main control board should
When receiving the message of arbitrary business board card failure with module management system, exist according to the mark of this business board
Self deletes the mark of this business boards all, the mark of application module and the corresponding relation of communication means.
When being embodied as, as shown in figure 11, the application module management system of main control board appsvr_m is received
To business board j failure notification, then delete all log-on messages about business board j, namely delete institute
There are business board j, the mark of application module and the corresponding relation of communication means, wherein, the event of business board j
Barrier includes: business board j is pulled out draw-in groove, business board j Communications failure etc., and at many boards machine
In frame facility communication system, it will usually have hardware facility to detect whether certain slot has plug-in card, and business board
The plug event of card, or be there is no the business board that message responds for a long time by software detection, such as: equipment pipe
Reason monitors event, and notification interface manages, and interface management Distribution Events again is to the module needed or subsystem.
Communication system between a kind of application module that the embodiment of the present invention provides, as shown in figure 12, this system
Including: main control board 1202 and at least one business board (the 1st business board as illustrated
1204 n-th business boards 1205);Wherein, main control board and/or business board are provided with many
Individual application module (application module 1 as illustrated, application module 2 application module n);Multiple should
Manage system with the first application module in module to the application module of target board to send for inquiry second
The inquiry request message of application module communication means, inquiry request message includes: the mark of the second application module
Know and the mark of the second application module place board;The application module management system of target board is from application mould
The mark of application module place board, the mark of application module registered during initialization block are right with communication means
The communication means of middle inquiry the second application module should be related to, generate inquiry request response according to Query Result and disappear
Breath, and the inquiry request response message generated is sent to the first application module;First application module is from reception
To inquiry request response message in obtain the communication means of the second application module, and according to second got
Communication means and second application module of application module communicate;Wherein, target board is the first application mould
Block place business board, or the first application module place main control board.
In the system that the embodiment of the present invention provides, the application module management system of target board receives first should
With module send for inquiry the second application module communication means inquiry request message time, target board
Application module manages the mark of application module place board, the application that system was registered when application module initializes
The mark of module and the corresponding relation of communication means are inquired about the communication means of the second application module, and according to looking into
Ask result generation inquiry request response message to send to the first application module, so that the first application module is from inquiry
Request response obtains the communication means of the second application module, and according to the second application module got
Communication means and the second application module communicate, due to target board application module manage system from should
With the mark of application module place board, the mark of application module and the communication means of registration during module initialization
Corresponding relation in inquire about the communication means of the second application module, therefore, as long as the second application module at the beginning of
Beginningization, no matter the second application module is with system start-up initialisation, or dynamic initialization, target board
Application module management system can be from the mark of application module place board, the mark of application module and communication
In the corresponding relation of method, inquiry obtains the communication means of the second application module, and leading to the second application module
Letter method sends to the first application module, so that the first application module and the second application module communicate, with
Communication means between existing process has certain limitation, is not suitable between the application module of dynamic initialization
Communication compare, the present embodiment achieves the communication between the application module of dynamic initialization, at the beginning of being also dynamically
Communication between the application module of beginningization provides method.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place main control board, the application module management system of target board is initial from application module
The mark of application module place board of registration, the mark of application module and the corresponding relation of communication means during change
The communication means of middle inquiry the second application module, including: the application of the first application module place main control board
Module management system inquires about the communication means of the second application module, wherein, answering of main control board from self
Store the mark of this application module place board when arbitrary application module initializes with module management system, be somebody's turn to do
The mark of application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system manages the communication means of system queries the second application module from the application module of main control board, its
In, the application module management system of main control board stores this application module when arbitrary application module initializes
The mark of place board, the mark of this application module and the corresponding relation of communication means.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, when target board is the
During one application module place business board, the application module management system of target board initializes from application module
Time the mark of application module place board of registration, the mark of application module and the corresponding relation of communication means in
Inquire about the communication means of the second application module, including: the application module of the first application module place business board
Management system inquires about the second application mould from self or from the application module management system of main control board
The communication means of block, wherein, the application module management system of the first application module place business board is at this plate
On card, arbitrary application module stores the mark of this application module place board, the mark of this application module when initializing
Knowing the corresponding relation with communication means, the application module management system of main control board is at the beginning of arbitrary application module
Store during beginningization the mark of this application module place board, this application module mark corresponding with communication means
Relation.
In a kind of possible embodiment, in the method that the embodiment of the present invention provides, the first application module institute
Application module at business board manages system from self or from the application module management of main control board
System is inquired about the communication means of the second application module, including: answering of the first application module place business board
The communication means whether storing the second application module in self is inquired about, if inquiry is lost with module management system
Lose, then inquiry request message is forwarded to the application module management system of main control board, with request in master control
The application module management system of making sheet card is inquired about the communication means of the second application module.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can use complete hardware embodiment, complete software implementation or knot
The form of the embodiment in terms of conjunction software and hardware.And, the present invention can use and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (include but not limited to disk memory and
Optical memory etc.) form of the upper computer program implemented.
The present invention is with reference to method, equipment (system) and computer program product according to embodiments of the present invention
The flow chart of product and/or block diagram describe.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to general purpose computer, special-purpose computer, embedding
The processor of formula datatron or other programmable data processing device is to produce a machine so that by calculating
The instruction that the processor of machine or other programmable data processing device performs produces for realizing at flow chart one
The device of the function specified in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or the process of other programmable datas can be guided to set
In the standby computer-readable memory worked in a specific way so that be stored in this computer-readable memory
Instruction produce and include the manufacture of command device, this command device realizes in one flow process or multiple of flow chart
The function specified in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Sequence of operations step must be performed to produce computer implemented place on computer or other programmable devices
Reason, thus the instruction performed on computer or other programmable devices provides for realizing flow chart one
The step of the function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification without deviating from this to the present invention
Bright spirit and scope.So, if the present invention these amendment and modification belong to the claims in the present invention and
Within the scope of its equivalent technologies, then the present invention is also intended to comprise these change and modification.
Claims (16)
1. the communication means between an application module, it is characterised in that the method includes:
First application module manages system to the application module of target board and sends inquiry request message, asks institute
State the application module place plate that the application module management system of target board was registered when application module initializes
The mark of card, the mark of application module and the corresponding relation of communication means are inquired about the communication of the second application module
Method, described inquiry request message includes: the mark of described second application module and described second application
The mark of module place board;
Described first application module receives the application module management system of described target board based on described inquiry
The inquiry request response message that request message returns, obtains described second from described inquiry request response message
The communication means of application module, and according to the communication means of described second application module got and described the
Two application modules communicate.
Method the most according to claim 1, it is characterised in that described first application module is according to obtaining
The communication means of described second application module got communicates with described second application module, including:
Described first application module and described second application module are positioned at same board, described first application module
When communicating with described second application module, described first application module sends to described second application module
Message in carry mark and the communication means of self of self place board;
Described first application module is positioned at different board, described first application module from described second application module
With described second application module by described first application module place board, described second application module place
When board communicates, described first application module carries institute in the message that described second application module sends
State the mark of the second application module place board, the communication means of described second application module, self place plate
The mark of card and the communication means of self.
Method the most according to claim 2, it is characterised in that described first application module is according to obtaining
After the communication means of described second application module got and described second application module communicate, the party
Method also includes:
When not receiving the response message of described second application module in described first application module Preset Time,
Described first application module manages system to the application module of described target board and sends inquiry request message, please
The application module management system seeking described target board inquires about the communication means of described second application module again.
4. according to the method according to any one of claim 1-3, it is characterised in that described target board
For described first application module place business board, or described first application module place main control board.
5. the communication means between an application module, it is characterised in that the method includes:
The application module management system of target board receives answering for inquiry second of the first application module transmission
With the inquiry request message of module communication means, described inquiry request message includes: described second application mould
The mark of block and the mark of described second application module place board;
The application module of described target board manages system based on described inquiry request message from the beginning of application module
The mark pass corresponding with communication means of the mark of application module place board of registration, application module during beginningization
System is inquired about the communication means of the second application module, generates inquiry request response message according to Query Result, and
The inquiry request response message generated is sent to described first application module.
Method the most according to claim 5, it is characterised in that described target board is described first
Application module place business board, or described first application module place main control board.
Method the most according to claim 6, it is characterised in that when described target board is described
During one application module place business board, the application module management system of described target board is from the beginning of application module
The mark pass corresponding with communication means of the mark of application module place board of registration, application module during beginningization
System is inquired about the communication means of the second application module, including:
The application module management system of described first application module place business board is from self or from master
The application module management system of Control card is inquired about the communication means of the second application module, wherein, described
Application module management system arbitrary application module on this board of one application module place business board is initial
The mark pass corresponding with communication means of the mark of this application module place board, this application module is stored during change
System, the application module management system of described main control board stores this application when arbitrary application module initializes
The mark of module place board, the mark of this application module and the corresponding relation of communication means.
Method the most according to claim 7, it is characterised in that described first application module place industry
The application module management system of business board manages system from self or from the application module of main control board
The communication means of middle inquiry the second application module, including:
Whether the application module management system queries self of described first application module place business board deposits
Containing the communication means of described second application module, if inquiring about unsuccessfully, then described inquiry request message being forwarded
To the application module management system of described main control board, to ask the application module at described main control board
Management system is inquired about the communication means of described second application module.
Method the most according to claim 8, it is characterised in that at described first application module place
Described inquiry request message is forwarded to described main control board by the application module management system of business board
After application module management system, the method also includes:
The application module management system of described first application module place business board receives described master board
The inquiry request response message that the application module management system of card sends;
The application module management system of described first application module place business board is rung from described inquiry request
Answer the communication means obtaining described second application module in message, and store described second application module place plate
The mark of card, the mark of described second application module and the corresponding relation of communication means.
Method the most according to claim 9, it is characterised in that described first application module place industry
Whether the application module management system queries self of business board stores the communication of described second application module
Method, including:
Storage in self is determined when the application module of described first application module place business board manages system
There are the mark of described second application module place board and the corresponding relation of the mark of described second application module
Time, the application module management system of described first application module place business board inquires about described the in self
The communication means of two application modules.
11. methods according to claim 9, it is characterised in that described first application module place industry
Business board application module management system storage the mark of described second application module place board, described second
After the mark of application module and the corresponding relation of communication means, the method also includes:
The application module management system of described first application module place business board determines storage described second
The communication means of application module reaches Preset Time, delete described second application module place board mark,
The mark of described second application module and the corresponding relation of communication means.
12. methods according to claim 8, it is characterised in that described first application module place industry
Whether the application module management system queries self of business board stores the communication of described second application module
Method, including:
Determine that described second should when the application module of described first application module place business board manages system
With when identifying identical with the mark of self place board of module place board, described first application module place
The application module management system of business board inquires about the communication means of described second application module in self.
13. according to the method according to any one of claim 7-12, it is characterised in that when described target
When board is described first application module place business board, the method also includes:
The application module management system of described first application module place business board is arbitrary on this board should
When unloading by module, delete storage the mark of this application module place board, this application module mark with
The corresponding relation of communication means, and send and comprise the mark of this application module place board, this application module
The unloading request message of mark manages system to the application module of described main control board, so that described main control
Application module the management mark of this application module place board of system-kill, the mark of this application module of board
Corresponding relation with communication means.
Communication means between 14. 1 kinds of application modules, it is characterised in that the method includes:
The application module management system of main control board receives the application of the first application module place business board
Module management system send for inquiry the second application module communication means inquiry request message, described in look into
Ask request message to include: the mark of described second application module and described second application module place board
Mark;
The application module management system of described main control board according to the mark of described second application module and
The mark of described second application module place board, inquires about the communication party of described second application module in self
Method, and generate inquiry request response message according to Query Result, described inquiry request response message is sent extremely
The application module management system of described first application module place business board;
Wherein, the application module management system of described main control board stores when arbitrary application module initializes
The mark of this application module place board, the mark of this application module and the corresponding relation of communication means.
15. methods according to claim 14, it is characterised in that the method also includes:
The application module management system of described main control board deletes this application when arbitrary application module unloads
The mark of module place board, the mark of this application module and the corresponding relation of communication means;And
When the application module management system of described main control board receives the message of arbitrary business board card failure,
Mark according to this business board deletes the mark of this business boards all, the mark of application module in self
Corresponding relation with communication means.
Communication system between 16. 1 kinds of application modules, it is characterised in that this system includes: main control board
With at least one business board;Wherein, described main control board and/or described business board are provided with multiple
Application module;
The first application module in the plurality of application module manages system to the application module of target board and sends out
Send the inquiry request message for inquiring about the second application module communication means, described inquiry request message wraps
Include: the mark of described second application module and the mark of described second application module place board;
The application module that the application module management system of described target board was registered when application module initializes
The mark of place board, the mark of application module and the corresponding relation of communication means inquire about the second application module
Communication means, according to Query Result generate inquiry request response message, and will generate inquiry request response
Message sends to described first application module;
Described first application module obtains described second application mould from the inquiry request response message received
The communication means of block, and apply with described second according to the communication means of described second application module got
Module communicates;
Wherein, described target board is described first application module place business board, or described first should
With module place main control board.
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 true CN105955830A (en) | 2016-09-21 |
CN105955830B 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) |
Cited By (1)
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 (5)
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 |
CN1956392A (en) * | 2006-09-13 | 2007-05-02 | 杭州华为三康技术有限公司 | Method, device and system for implementing multi-service type structure |
CN102075580A (en) * | 2011-01-20 | 2011-05-25 | 迈普通信技术股份有限公司 | Method and system for storing synchronous data in distributive network equipment |
US20110208923A1 (en) * | 2008-10-24 | 2011-08-25 | Chengdu Huawei Symantec Technologies Co., Ltd. | Storage method and system, terminal service board, control board and storage channel board |
CN104301447A (en) * | 2014-09-10 | 2015-01-21 | 深圳市高视数字技术有限公司 | Software module communication method |
-
2016
- 2016-04-29 CN CN201610282636.9A patent/CN105955830B/en active Active
Patent Citations (5)
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 |
CN1956392A (en) * | 2006-09-13 | 2007-05-02 | 杭州华为三康技术有限公司 | Method, device and system for implementing multi-service type structure |
US20110208923A1 (en) * | 2008-10-24 | 2011-08-25 | Chengdu Huawei Symantec Technologies Co., Ltd. | Storage method and system, terminal service board, control board and storage channel board |
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 |
Cited By (1)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105955830B (en) | 2019-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11336522B2 (en) | Information handling system physical component inventory to aid operational management through near field communication device interaction | |
CN109309693B (en) | Multi-service system based on docker, deployment method, device, equipment and storage medium | |
CN102306197B (en) | Device and method for guaranteeing consistency of data-source-crossing operation results | |
US10079882B2 (en) | Method and system for synchronizing information to contacts on cloud platform | |
CN100449548C (en) | Method and system for synchronizing data base | |
US9967759B2 (en) | Information handling system physical component maintenance through near field communication device interaction | |
US9124655B2 (en) | Information handling system operational management through near field communication device interaction | |
CN101751415B (en) | Metadata service system, metadata synchronized method and writing server updating method | |
KR20060079078A (en) | Server queuing system and method | |
CN101436209B (en) | Method and apparatus for synchronizing multiple databases | |
KR101545626B1 (en) | System for interoperation between dds and dbms | |
US10282120B2 (en) | Method, apparatus and system for inserting disk | |
CN112579101B (en) | Task script management and control method and device, electronic equipment and storage medium | |
CN101136768A (en) | Software and hardware version management method and system of communication equipment | |
EP4060514A1 (en) | Distributed database system and data disaster backup drilling method | |
CN116566984B (en) | Routing information creation method and device of k8s container cluster and electronic equipment | |
CN113127023B (en) | Service upgrading method, device and system | |
CN104793981A (en) | Online snapshot managing method and device for virtual machine cluster | |
CN105955830A (en) | Communication method and system among application modules | |
CN110798358B (en) | Distributed service identification method and device, computer readable medium and electronic equipment | |
CN112231395A (en) | Transaction data synchronization method and server | |
US9852385B2 (en) | Processing of business object identifiers in master data integration scenarios involving non-local identifiers | |
CN111212138B (en) | Cross-site storage system and data information access method | |
CN113010600A (en) | Data management system, method, related device and medium based on block chain | |
CN113743564B (en) | Counting method, counting device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
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 |