CN102427419B - 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
CN102427419B
CN102427419B CN201110227300.XA CN201110227300A CN102427419B CN 102427419 B CN102427419 B CN 102427419B CN 201110227300 A CN201110227300 A CN 201110227300A CN 102427419 B CN102427419 B CN 102427419B
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.)
Active
Application number
CN201110227300.XA
Other languages
Chinese (zh)
Other versions
CN102427419A (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, for meeting the needs of dispatch automated system to polymorphic applied environment, belong to power network schedule automation field.
Background technology
In automation system for the power network dispatching now, application is the combination of a data entity and one group of service routine that this data entity is processed, and the composition of applying such as SCADA has: the real-time storehouse of SCADA, data, services process, operate services process, remote signalling remote measurement and operating mode are processed service processes etc.State is that the processing logic of this group application is identical in order to complete the set of one group of application of some objective function, and data entity has certain incidence relation, but the data environment of operation is different.Application between state has separately independently data entity and service processes, and processing logic does not interfere with each other.On same node, can move a plurality of states simultaneously.
Under polymorphic environment, an identical process can be moved respectively in different states, and in each process, messaging bus example can be subscribed to identical passage, and messaging bus is as the bottom communication support of dispatch automated system, it is unique requiring again each channel number in whole system.Existing messaging bus (message-oriented middleware) product is not supported this function.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method that messaging bus is supported polymorphic function, meets dispatch automated system to polymorphic applied environment needs.
For solving the problems of the technologies described above, the invention provides a kind of method that messaging bus is supported polymorphic function, defining an example with self message attributes and one group of message operating function interface is a message instance.
The invention is characterized in and comprise the following steps:
(1), definition message instance, message instance is carried out to initialization, initialization information comprises state sign, process identification (PID);
(2), message instance is by subscribing interface subscribe message, logical channel is mapped as unique physical channel in messaging bus according to state under message instance, is recorded in this node subscription information table;
(3), messaging bus is broadcast to other nodes by property information cycle in node subscription information table;
(4), messaging bus receives the subscription information that other nodes send over;
(5), message instance is while sending a message to a certain passage by transmission interface, logical channel is mapped as unique physical channel according to state under message instance, messaging bus sends a message on the node of subscribing to this physical channel;
(6), after messaging bus receipt message, the mapping ruler according to logical channel to physical channel, finds out the message instance of subscribing to this physical channel, then message is submitted to these message instance.
Aforesaid a kind of messaging bus is supported the method for polymorphic function, it is characterized in that: in step 1), message instance has state sign, process identification (PID) two tuples, this two tuples unique identification a message instance, even while moving a plurality of state on same node, still can conveniently distinguish each message instance.
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 state and certain rule.Logical channel for application program directly, facilitates application program to use; When physical channel communicates for messaging bus, from network service level, isolated the not message between homomorphism.During subscription information, logical channel is mapped as 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 reaches:
Use message instance of a two tuple unique identification, realized isolation mutually between message instance, on same node, can move the message instance of a plurality of states; 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, when using messaging bus example, can not subscribed to identical logical channel, has simplified program structure, the whole strong maintainability of application program; Messaging bus internal control and maintenance are convenient in physical channel, on network service level, have just isolated the not message between homomorphism completely, guarantee the principle that between state, message can not be communicated by letter mutually.
Accompanying drawing explanation
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 the message sink flow chart of supporting polymorphic function.
Embodiment
Below in conjunction with accompanying drawing, messaging bus mechanism of the present invention is done to 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 homomorphism, and messaging bus is directly used physical channel to communicate on communication gradation.
Fig. 2 is the message transmission flow figure that supports polymorphic function.
Context iunder state, App athe lower process Proc of application pneed to be to channel C hannel xsend message, first define message instance, and carry out initialization, initiation parameter is <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 messaging bus inspection 1node, message is sent to these nodes.
Fig. 3 is the message sink flow chart of supporting polymorphic function.
Context iunder state, App bthe lower process Proc of application qneed receive path Channel xmessage, first define message instance, and carry out initialization, initiation parameter is < 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 is managed passage subscription information periodically by broadcasting to other nodes this node property.After the message receiving on network, messaging bus checks all subscription channel on this node xmessage instance, and message is passed to these message instance.Process Proc qby calling receiving interface, obtain message.
The present invention is illustrated according to the preferred embodiment, should be appreciated that above-described embodiment does not limit the present invention in any form, and all employings are equal to replaces or technical scheme that the mode of equivalent transformation obtains, all drops in protection scope of the present invention.

Claims (3)

1. messaging bus is supported a method for polymorphic function, comprises following steps:
1) definition message instance, carries out initialization to message instance, and initialization information comprises state identification name, process identification (PID) name;
2) message instance is by subscribing interface subscribe message, and logical channel is mapped as unique physical channel in messaging bus according to state under message instance, is recorded in this node subscription information table;
3) messaging bus is broadcast to other nodes by property information cycle in 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 by transmission interface, logical channel is mapped as unique physical channel according to state under message instance, and messaging bus sends a message on the node of subscribing to this physical channel;
6), after messaging bus receipt message, the mapping ruler according to logical channel to physical channel, finds out the message instance of subscribing to this physical channel, then message is submitted to these message instance;
State is that the processing logic of this group application is identical in order to complete the set of one group of application of some objective function, and data entity has certain incidence relation, but the data environment of operation is different, and polymorphic is a plurality of states.
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 state sign, process identification (PID) two tuples, two tuple unique identifications a message instance, even while moving a plurality of state on same node, still can conveniently distinguish each message instance.
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 state and certain rule, logical channel for application program directly, facilitates application program to use; When physical channel communicates for messaging bus, from network service level, isolated the not message between homomorphism, during subscription information, logical channel is mapped as 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 CN102427419A (en) 2012-04-25
CN102427419B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943579A (en) * 2017-11-08 2018-04-20 深圳前海微众银行股份有限公司 Resource bottleneck Forecasting Methodology, equipment, system and readable storage medium storing program for executing

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259701A (en) * 2012-12-04 2013-08-21 中国科学院沈阳自动化研究所 Message bus implementation method for complex production process management system
CN103368693B (en) * 2013-07-04 2016-12-28 国家电网公司 A kind of method of power distribution network interexchange bus reliable data transmission
CN109710432B (en) * 2018-12-29 2020-11-20 苏州思必驰信息科技有限公司 Multi-node communication method and system for application program development

Citations (2)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010014800A2 (en) * 2008-07-31 2010-02-04 Google Inc. Modular workflow management

Patent Citations (2)

* 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

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
EMS应用软件支撑环境设计与功能整合;姚建国等;《电力系统自动化》;20060225;第30卷(第4期);全文 *
姚建国等.EMS应用软件支撑环境设计与功能整合.《电力系统自动化》.2006,第30卷(第4期),

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943579A (en) * 2017-11-08 2018-04-20 深圳前海微众银行股份有限公司 Resource bottleneck Forecasting Methodology, equipment, system and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN102427419A (en) 2012-04-25

Similar Documents

Publication Publication Date Title
CN103298117B (en) A kind of instruction of running time-frequency resource and confirmation method and device
CN102427419B (en) Method for supporting poly-morphism function of message bus
CN102035684B (en) A kind of failure notification method and system
CN102057698A (en) System and method for enabling efficient MBMS downlink radio resource re-use for other downlink traffic
CN105991731A (en) Method for obtaining information, intelligent terminal and server side
CN103812787A (en) Electric power telecommunication network message prior forwarding method
CN107423890B (en) Rapid distributed processing method for power grid regulation and control system and power distribution automation system
WO2015062479A1 (en) Method, device and system for monitoring terminal status
CN103037526A (en) Resource scheduling method for machine-type communication (MTC)
CN102415200A (en) Wireless communication system, wireless base station, wireless communication method, and program
CN101877656A (en) Network management and monitoring system and method for realizing parallel processing of fault alarms thereof
CN104104723A (en) Distributed collaboration monitoring system
CN108932182B (en) Message bus performance test method and system
CN105449855B (en) A kind of intelligent grid allotment automated system real time data insertion method
CN111277507A (en) Method for realizing information exchange between wireless terminals
US10122835B2 (en) Method and radio communication system for an industrial automation system, radio subscriber station and serialization unit
CN108809949A (en) The method converted and dispatched between profinet, FF H1, CAN and profibus agreements
CN102769867A (en) Network access method
CN103366245A (en) OSB (operation sevice bus)-based power grid fault information distribution method and system
CN104185289A (en) Base station and method of scheduling service by base station
CN113472574A (en) Method, device, medium and electronic equipment for monitoring user equipment based on 5G private network
CN103079207A (en) Configuration method and equipment of physical cell identity (PCI)
CN102722797A (en) Power dispatching automation system information layering method based on responsibility area
CN101938383A (en) On-line monitoring method and system of user account with multiple services as well as monitoring service system
US11265798B2 (en) Method and radio communication system for an industrial automation system

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.