CN102427419A - Method for supporting poly-morphism function of message bus - Google Patents

Method for supporting poly-morphism function of message bus Download PDF

Info

Publication number
CN102427419A
CN102427419A CN201110227300XA CN201110227300A CN102427419A CN 102427419 A CN102427419 A CN 102427419A CN 201110227300X A CN201110227300X A CN 201110227300XA CN 201110227300 A CN201110227300 A CN 201110227300A CN 102427419 A CN102427419 A CN 102427419A
Authority
CN
China
Prior art keywords
message
physical channel
messaging bus
channel
logical channel
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
Application number
CN201110227300XA
Other languages
Chinese (zh)
Other versions
CN102427419B (en
Inventor
翟明玉
雷宝龙
葛以踊
杨志宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Original Assignee
Nari Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nari Technology Co Ltd filed Critical Nari Technology Co Ltd
Priority to CN201110227300.XA priority Critical patent/CN102427419B/en
Publication of CN102427419A publication Critical patent/CN102427419A/en
Application granted granted Critical
Publication of CN102427419B publication Critical patent/CN102427419B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method for supporting a poly-morphism function of a message bus. The method is characterized in that a morphism identification and progress identification binary group is utilized to indentify message examples; even if a plurality of morphisms are operated on a same node, each message example can be conveniently distinguished; message channels are divided into a logical channel and a physical channel according to information; and the logical channel is mapped to the only physical channel according to belonged states and certain rules. The logical channel is directly used by an application program and facilitates the use of the application progress; the physical channel is used for the message bus to perform communication and management so that the messages among the different morphisms can be isolated from a network communication level. According to the method provided by the invention, the normal communication between progresses at the same morphism can be conveniently realized and the progresses between the different morphisms cannot communicate with each other, thereby meeting the requirements of a poly-morphism application environment in an automatic scheduling system.

Description

A kind of messaging bus is supported the method for polymorphic function
Technical field
The present invention relates to a kind of messaging bus and support the method for polymorphic function, be used for satisfying the needs of dispatch automated system, belong to the power network schedule automation field polymorphic applied environment.
Background technology
In automation system for the power network dispatching now; The combination of the application service routine that to be a data entity and a group handle this data entity, the composition of using such as SCADA has: the real-time storehouse of SCADA, data, services process, operate services process, remote signalling remote measurement and operating mode are handled service processes etc.Attitude is the set for one group of application accomplishing some objective function, and processing logic that this group is used is identical, and data entity has certain incidence relation, but the data environment of operation is different.Application between the attitude has separately independently data entity and service processes, and processing logic does not disturb mutually.Can move a plurality of attitudes simultaneously on same the node.
Under polymorphic environment; An identical process can be moved respectively in different attitudes, and in each process, the messaging bus instance can be subscribed to identical passage; And messaging bus is as the bottom communication support of dispatch automated system, requires again that each channel number is unique in whole system.Existing messaging bus (message-oriented middleware) product is not supported this function.
Summary of the invention
The technical problem that the present invention will solve provides the method that a kind of messaging bus is supported polymorphic function, satisfies dispatch automated system to polymorphic applied environment needs.
For solving the problems of the technologies described above, the method that the present invention provides a kind of messaging bus to support polymorphic function, defining an instance with self message attributes and one group of message operating function interface is a message instance.
The invention is characterized in and may further comprise the steps:
(1), the definition message instance, message instance is carried out initialization, initialization information comprises attitude sign, process identification (PID);
(2), message instance is through the subscribing interface subscribe message, logical channel is mapped as unique physical channel in the messaging bus according to attitude under the message instance, is recorded in this node subscription information table;
(3), messaging bus is broadcast to other nodes with the property information cycle property in the node subscription information table;
(4), messaging bus receives the subscription information that other nodes send over;
(5), when message instance sends a message to a certain passage through transmission interface, logical channel is mapped as unique physical channel according to attitude under the message instance, messaging bus sends a message on the node of subscribing to this physical channel;
(6), after messaging bus receives message,, find out the message instance of subscribing to this physical channel, again message is submitted to these message instance according to the mapping ruler of logical channel to the physical channel.
Aforesaid a kind of messaging bus is supported the method for polymorphic function; It is characterized in that: in step 1); Message instance has attitude sign, process identification (PID) doublet; This doublet unique identification a message instance, even operation still can conveniently be distinguished each message instance during a plurality of attitude on same node.
Aforesaid a kind of messaging bus is supported the method for polymorphic function, it is characterized in that: in step 2), 3) in, message channel information is divided into logical channel and physical channel, logical channel is mapped as unique physical channel according to affiliated attitude and certain rule.The logical channel programs is directly used, and makes things convenient for application program to use; Use when the physical channel supplies messaging bus to communicate, isolated the not message between the homomorphism from the network service level.During subscription information, logical channel is mapped as the physical channel, be kept in the subscription information table of this node, and periodic broadcasting is to other nodes.
The beneficial effect that the present invention reached:
Use message instance of a doublet unique identification, realized isolating each other between the message instance, can move the message instance of a plurality of attitudes on the same node; Message channel is divided into logical channel and physical channel; Logical channel is convenient to application program and is used, and the application process of homomorphism can not subscribed to identical logical channel when using the messaging bus instance, has simplified program structure, the whole strong maintainability of application program; Messaging bus internal control and maintenance are convenient in the physical channel, on the network service level, have just isolated the not message between the homomorphism fully, guarantee the principle that message between the attitude can not mutual communication.
 
Description of drawings
Fig. 1 logical channel and physical channel corresponding relation figure;
Fig. 2 is the message transmission flow figure that supports polymorphic function;
Fig. 3 is a message sink flow chart of supporting polymorphic function.
Embodiment
Below in conjunction with accompanying drawing messaging bus mechanism of the present invention is done further detailed introduction.
Fig. 1 is logical channel and physical channel mapping relations figure, and same logical channel be not mapped as different physical channels under the homomorphism, and messaging bus directly uses the physical channel to communicate on the communication level.
Fig. 2 is the message transmission flow figure that supports polymorphic function.
Context iUnder the attitude, App aUse process Proc down pNeed be to channel C hannel xSend message, at first define message instance, and carry out initialization, initiation parameter does<context i, Proc p, Procp_alias1>, message instance is called transmission interface and is sent message, logical channel Channel xBe mapped as physical channel channel x, channel is subscribed in the messaging bus inspection 1Node, message is sent to these nodes.
Fig. 3 is a message sink flow chart of supporting polymorphic function.
Context iUnder the attitude, App bUse process Proc down qNeed receive path Channel xMessage, at first define message instance, and carry out initialization, initiation parameter does<context i, Proc x, Procq_alias1>, message instance is called subscribing interface and is subscribed to Channel x, logical channel Channel xBe mapped as physical channel channel x, messaging bus all physical channels of this node subscription information periodically through broadcasting to other nodes.After the message that receives on the network, all subscribe to channel on this node of messaging bus inspection xMessage instance, and message passed to these message instance.Process Proc qObtain message through calling receiving interface.
The present invention is illustrated according to the preferred embodiment, should be appreciated that the foregoing description does not limit the present invention in any form, and all employings are equal to the technical scheme that mode obtained of replacement or equivalent transformation, all drop in protection scope of the present invention.

Claims (3)

1. a messaging bus is supported the method for polymorphic function, comprises following steps:
1) the definition message instance is carried out initialization to message instance, and initialization information comprises attitude, process identification (PID) name;
2) message instance is through the subscribing interface subscribe message, and logical channel is mapped as unique physical channel in the messaging bus according to attitude under the message instance, is recorded in this node subscription information table;
3) messaging bus is broadcast to other nodes with the property information cycle property in the node subscription information table;
4) messaging bus receives the subscription information that other nodes send over;
When 5) message instance sent a message to a certain passage through transmission interface, logical channel was mapped as unique physical channel according to attitude under the message instance, and messaging bus sends a message on the node of subscribing to this physical channel;
6) after messaging bus receives message,, find out the message instance of subscribing to this physical channel, again message is submitted to these message instance according to the mapping ruler of logical channel to the physical channel.
2. a kind of messaging bus according to claim 1 is supported the method for polymorphic function; It is characterized in that: in step 1); Message instance has attitude sign, process identification (PID) doublet; The doublet unique identification message instance, even operation still can conveniently be distinguished each message instance during a plurality of attitude on same node.
3. a kind of messaging bus according to claim 1 is supported the method for polymorphic function; It is characterized in that: in step 2), 3) in; Message channel information is divided into logical channel and physical channel; Logical channel is mapped as unique physical channel according to affiliated attitude and certain rule, and the logical channel programs is directly used, and makes things convenient for application program to use; Use when the physical channel supplies messaging bus to communicate, isolated the not message between the homomorphism from the network service level, during subscription information, logical channel is mapped as the physical channel, be kept in the subscription information table of this node, and periodic broadcasting is to other nodes.
CN201110227300.XA 2011-08-09 2011-08-09 Method for supporting poly-morphism function of message bus Active CN102427419B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110227300.XA CN102427419B (en) 2011-08-09 2011-08-09 Method for supporting poly-morphism function of message bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110227300.XA CN102427419B (en) 2011-08-09 2011-08-09 Method for supporting poly-morphism function of message bus

Publications (2)

Publication Number Publication Date
CN102427419A true CN102427419A (en) 2012-04-25
CN102427419B CN102427419B (en) 2014-03-26

Family

ID=45961365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110227300.XA Active CN102427419B (en) 2011-08-09 2011-08-09 Method for supporting poly-morphism function of message bus

Country Status (1)

Country Link
CN (1) CN102427419B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103368693A (en) * 2013-07-04 2013-10-23 国家电网公司 Method for reliably transmitting data of power distribution network information exchange bus
WO2014086143A1 (en) * 2012-12-04 2014-06-12 中国科学院沈阳自动化研究所 Message bus implementation method oriented for complicated production process management system
CN109710432A (en) * 2018-12-29 2019-05-03 苏州思必驰信息科技有限公司 For the multi-node communication method and system in application development

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943579B (en) * 2017-11-08 2022-01-11 深圳前海微众银行股份有限公司 Resource bottleneck prediction method, device, system and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625119A (en) * 2004-12-09 2005-06-08 中国科学院软件研究所 Routing method of pub/sub system on structural P2P network
CN101534021A (en) * 2009-04-27 2009-09-16 北京四方继保自动化股份有限公司 Multimode data acquisitions and processing method applied to power automation system
WO2010014800A2 (en) * 2008-07-31 2010-02-04 Google Inc. Modular workflow management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625119A (en) * 2004-12-09 2005-06-08 中国科学院软件研究所 Routing method of pub/sub system on structural P2P network
WO2010014800A2 (en) * 2008-07-31 2010-02-04 Google Inc. Modular workflow management
CN101534021A (en) * 2009-04-27 2009-09-16 北京四方继保自动化股份有限公司 Multimode data acquisitions and processing method applied to power automation system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚建国等: "EMS应用软件支撑环境设计与功能整合", 《电力系统自动化》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014086143A1 (en) * 2012-12-04 2014-06-12 中国科学院沈阳自动化研究所 Message bus implementation method oriented for complicated production process management system
CN103368693A (en) * 2013-07-04 2013-10-23 国家电网公司 Method for reliably transmitting data of power distribution network information exchange bus
CN103368693B (en) * 2013-07-04 2016-12-28 国家电网公司 A kind of method of power distribution network interexchange bus reliable data transmission
CN109710432A (en) * 2018-12-29 2019-05-03 苏州思必驰信息科技有限公司 For the multi-node communication method and system in application development

Also Published As

Publication number Publication date
CN102427419B (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US10191529B2 (en) Real-time data management for a power grid
CN102035684B (en) A kind of failure notification method and system
CN102427419B (en) Method for supporting poly-morphism function of message bus
CN110740146B (en) Method and device for scheduling cache nodes and computer network system
CN1620836A (en) Method and system for sending localization and identity dependent information to mobile terminals
CN105592122A (en) Cloud platform monitoring method and cloud platform monitoring system
CN107423890B (en) Rapid distributed processing method for power grid regulation and control system and power distribution automation system
CN104809028A (en) Method for subscribing and pushing data among multiple local processes
CN103678860A (en) Dispatching optimization method and device
CN104504010B (en) The data collecting system and its acquisition method of a kind of multi-to-multi
CN101877656A (en) Network management and monitoring system and method for realizing parallel processing of fault alarms thereof
CN110705891A (en) Data processing method based on high-allocable changeability
CN104734983A (en) Scheduling system, method and device for service data request
CN102769867A (en) Network access method
CN103150682A (en) Workshop information intelligent interactive system
CN104185289A (en) Base station and method of scheduling service by base station
CN103366245A (en) OSB (operation sevice bus)-based power grid fault information distribution method and system
CN111222810B (en) Method and device for distributing grid openings in real time
CN105762928B (en) A kind of energy-accumulating power station monitoring system
CN102722797A (en) Power dispatching automation system information layering method based on responsibility area
CN103079207A (en) Configuration method and equipment of physical cell identity (PCI)
CN102594654A (en) Method and device for queue scheduling
CN109669982A (en) The called statistical system of platform interface and method
CN103368862B (en) Load balance dispatching method and load balance dispatching device
CN102577170B (en) Multicast system and method using abbreviated address based on near field communication, and device applied thereto

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: NARI NANJING CONTROL SYSTEM LTD.

Effective date: 20141215

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20141215

Address after: High road high tech Development Zone Nanjing city Jiangsu province 210061 No. 20

Patentee after: NARI Technology Development Co., Ltd.

Patentee after: SGCC NARI Nanjing Control System Co., Ltd.

Address before: High road high tech Development Zone Nanjing city Jiangsu province 210061 No. 20

Patentee before: NARI Technology Development Co., Ltd.