CN104202230B - Data interaction device and method for multilevel hierarchy - Google Patents
Data interaction device and method for multilevel hierarchy Download PDFInfo
- Publication number
- CN104202230B CN104202230B CN201410505877.6A CN201410505877A CN104202230B CN 104202230 B CN104202230 B CN 104202230B CN 201410505877 A CN201410505877 A CN 201410505877A CN 104202230 B CN104202230 B CN 104202230B
- Authority
- CN
- China
- Prior art keywords
- data
- preposition node
- switching centre
- preposition
- node
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a kind of data interaction device and method for multilevel hierarchy, every level structure in the multilevel hierarchy includes for providing data or obtaining at least one preposition node of data, and switching centre's system for being managed at least one preposition node, data interactive method include:It is attached with switching centre's system per level structure;The acquisition of data in the specified preposition node to other level structures that any preposition node for receiving any level structure in the multilevel hierarchy passes through switching centre's system transmission of any structure is asked;Asked according to described obtain, read the data of any preposition node acquisition request from described specify in preposition node, and the data are sent to any preposition node by switching centre's system of any level structure.Technical scheme realizes in multilevel hierarchy the two-way exchange of data between not peer-to-peer architecture with shared, while also improves the stability of data transfer.
Description
Technical field
The present invention relates to technical field of data processing, is filled in particular to a kind of data interaction for multilevel hierarchy
Put and a kind of volume data interactive method for multilevel hierarchy.
Background technology
At present, the data interaction system for multilevel hierarchy in the prior art, the data exchange between different levels structure
Mode is usually that one-way data exchanges, as shown in figure 1, data processing tools (ETL) timing extraction is with collecting in lower structures
Database in data (such as database table, file) supreme level structure, and upper level structure passes through ESB (ESB)
Call and serviced with customization, to reach the function of subscribing to data in inquiry lower structures, complete the processing of customization task.
But aforesaid way is collecting, subscribe to or inquiring about for one-way data, it is impossible to the two-way interactive of data is completed, and
The complex steps for the acquisition across DBMS, autgmentability is poor, and is not exchanged with every one-level in multilevel hierarchy
Heart system interaction so that switching centre's system can not monitor well with statistics status information, hinder informationization hair
Exhibition is built.
Therefore, how to realize that the two-way exchange of data is asked with shared as technology urgently to be resolved hurrily between multilevel hierarchy
Topic.
The content of the invention
The present invention is based at least one above-mentioned technical problem, it is proposed that a kind of new data for multilevel hierarchy are handed over
Mutual scheme, the two-way exchange of data between not peer-to-peer architecture is realized in multilevel hierarchy with shared, while also improve data biography
Defeated stability.
It is another object of the present invention to propose a kind of data interactive method for multilevel hierarchy.
In view of this, the present invention proposes a kind of data interaction device for multilevel hierarchy, in the multilevel hierarchy
Include at least one preposition node for providing data or acquisition data per level structure, and for described at least one
Switching centre's system that individual preposition node is managed, the data interaction device, including:Connection establishment unit, for institute
The switching centre's system for stating every level structure is attached;Receiving unit, for receiving any level structure in the multilevel hierarchy
In the specified preposition node to other level structures of any preposition node by switching centre's system transmission of any structure
Data acquisition request;Processing unit, for being asked according to described obtain, described appoint is read in preposition node from described specify
The data of one preposition node acquisition request, and the data are sent to institute by switching centre's system of any level structure
State any preposition node.
In the technical scheme, it is attached by switching centre's system with every level structure, switching centre can be passed through
System completes the request and acquisition of data between multilevel hierarchy, is taken compared to data processing tools is passed through in the prior art with enterprise
The scheme that business bus is directly handled data source, the technical scheme of the application with switching centre's system due to can be handed over
Mutually, and switching centre's system can be managed to data, therefore improve the stability of data transfer.And by receiving
In the specified preposition node to other level structures that any preposition node in any level structure is sent during the acquisition request of data,
Corresponding Data Concurrent is read according to acquisition request and delivers to any of the above-described preposition node, realizes knot not at the same level in multilevel hierarchy
The two-way exchange of data is with shared between structure, compared to the scheme for being only capable of DBMS under higher level reads in the prior art, the application
Technical scheme realize the flexibility of data interaction.
In the above-mentioned technical solutions, it is preferable that the processing unit includes:Acquiring unit, for being asked according to the acquisition
Ask and directly obtain the data from described specify in preposition node;And/or transmitting element, for notifying the specified preposition node
Corresponding switching centre's system, so that described specify switching centre's system corresponding to preposition node to be specified from described in preposition node
Obtain and feed back the data.
, specifically, both can be direct when receiving the acquisition request that any preposition node is sent in the technical scheme
Data are obtained from specifying in preposition node, directly, rapidly to obtain the data in preposition node;Can also be preposition by specifying
Switching centre's system corresponding to node from specifying preposition node to obtain data so that switching centre's system data are prestored,
The processing such as monitoring, statistics, and then improve the stability of data transfer.
In the above-mentioned technical solutions, it is preferable that the transmitting element is specifically used for:Described obtain is asked to send to described
Switching centre's system corresponding to preposition node is specified, so that described specify described in switching centre's system interrogation corresponding to preposition node
Specify whether preposition node agrees to that described obtain is asked, and for listening to the specified preposition node pair in the first monitoring unit
When the switching centre's system creation first answered exchanges memory space, feedback letter is sent to the switching centre of any level structure
Breath, so that the switching centre of any level structure creates the second exchange memory space and notifies any preposition node to create
Digital independent task, and receive exchange of any preposition node by any level structure in the receiving unit
During the information that the digital independent task creation that center is sent is completed, the specified preposition node is notified to send the data;It is described
First monitoring unit, for monitor it is described specify preposition node corresponding to switching centre's system whether create the first exchange storage in
The heart;The receiving unit is additionally operable to, and receives what any preposition node was sent by the switching centre of any level structure
The information that the digital independent task creation is completed.
In the technical scheme, by switching centre's system send feedback information of any level structure so that above-mentioned
Switching centre's system of primary structure, which can create, to be exchanged memory space and notifies any of the above-described preposition node to create digital independent
Task, the switching centre of any of the above-described level structure is enabled to carry out the preparation for receiving data in advance, and then can efficiently, stably
Ground receives data, so as to improve the stability for obtaining data.
In the above-mentioned technical solutions, it is preferable that also include:Second monitoring unit, for being sent by the data to institute
After stating any preposition node, switching centre's system corresponding to preposition node is specified to monitor the specified preposition node by described
In the data whether update;The processing unit is additionally operable to, and is listened in second monitoring unit described specified preposition
When the data in node update, the data specified after being updated in preposition node are re-read, and send to institute
State any preposition node.
In the technical scheme, specify whether the data in preposition node update by monitoring, and in node is specified
When data update, the data after renewal are re-read, it can be ensured that any of the above-described preposition node gets timely, accurate
Data.
In the above-mentioned technical solutions, it is preferable that also include:Compression unit, for the data are passed through it is described any
Switching centre's system of level structure is compressed before sending to any preposition node to the data;And/or encryption is single
Member, for the data to be sent to before any preposition node by switching centre's system of any level structure
The data are encrypted.
In the technical scheme, by the compression to data, the bandwidth taken during data transfer can be reduced, and then can
Data are quickly and efficiently transmitted in realization;And by the way that data are encrypted, it is possible to increase the security of data, it is ensured that data
Safely it is transferred to any of the above-described preposition node.
According to the second aspect of the invention, it is also proposed that a kind of data interactive method for multilevel hierarchy, the multistage
Every level structure in structure includes at least one preposition node for providing data or acquisition data, and for institute
State switching centre's system that at least one preposition node is managed, the data interactive method, including:With described per level structure
Switching centre's system be attached;Receive any level structure in the multilevel hierarchy any preposition node pass through it is described any
The acquisition request of data in the specified preposition node to other level structures that switching centre's system of structure is sent;According to described
Request is obtained, the data of any preposition node acquisition request are read in preposition node from described specify, and by the data
Sent by switching centre's system of any level structure to any preposition node.
In the technical scheme, it is attached by switching centre's system with every level structure, switching centre can be passed through
System completes the request and acquisition of data between multilevel hierarchy, is taken compared to data processing tools is passed through in the prior art with enterprise
The scheme that business bus is directly handled data source, the technical scheme of the application with switching centre's system due to can be handed over
Mutually, and switching centre's system can be managed to data, therefore improve the stability of data transfer.And by receiving
In the specified preposition node to other level structures that any preposition node in any level structure is sent during the acquisition request of data,
Corresponding Data Concurrent is read according to acquisition request and delivers to any of the above-described preposition node, realizes knot not at the same level in multilevel hierarchy
The two-way exchange of data is with shared between structure, compared to the scheme for being only capable of DBMS under higher level reads in the prior art, the application
Technical scheme realize the flexibility of data interaction.
In the above-mentioned technical solutions, it is preferable that asked according to described obtain, specified from described in preposition node described in reading
The step of data of any preposition node acquisition request is specially:Request is obtained directly from the specified preposition node according to described
It is middle to obtain the data;Or switching centre's system corresponding to the specified preposition node is notified, so that described specify preposition node
Corresponding switching centre's system obtains from the specified preposition node and feeds back the data.
, specifically, both can be direct when receiving the acquisition request that any preposition node is sent in the technical scheme
Data are obtained from specifying in preposition node, directly, rapidly to obtain the data in preposition node;Can also be preposition by specifying
Switching centre's system corresponding to node from specifying preposition node to obtain data so that switching centre's system data are prestored,
The processing such as monitoring, statistics, and then improve the stability of data transfer.
In the above-mentioned technical solutions, it is preferable that asked according to described obtain, specified from described in preposition node described in reading
The data of any preposition node acquisition request, and by the data by switching centre's system of any level structure send to
The step of any preposition node is specially:Obtained described in exchange corresponding to request transmission to the specified preposition node
System is felt concerned about, so that it is described to specify preposition node whether to agree to described in switching centre's system interrogation corresponding to the specified preposition node
Obtain request;Whether switching centre's system corresponding to monitoring the specified preposition node creates the first exchange memory space, if so,
Then to switching centre's send feedback information of any level structure, so that the switching centre of any level structure creates second
Exchange memory space and notify any preposition node to create digital independent task;Lead to receiving any preposition node
When crossing the information of the digital independent task creation completion of switching centre's transmission of any level structure, notify described specified preposition
Node sends the data.
In the technical scheme, by switching centre's system send feedback information of any level structure so that above-mentioned
Switching centre's system of primary structure, which can create, to be exchanged memory space and notifies any of the above-described preposition node to create digital independent
Task, the switching centre of any of the above-described level structure is enabled to carry out the preparation for receiving data in advance, and then can efficiently, stably
Ground receives data, so as to improve the stability for obtaining data.
In the above-mentioned technical solutions, it is preferable that the data are being sent to any preposition node, also wrapped
Include:Specify whether switching centre's system corresponding to preposition node monitors the data specified in preposition node by described
Renewal;Passing through the number for specifying switching centre's system corresponding to preposition node to listen in the specified preposition node
During according to updating, the data specified after being updated in preposition node are re-read, and send to described any preposition
Node.
In the technical scheme, specify whether the data in preposition node update by monitoring, and in node is specified
When data update, the data after renewal are re-read, it can be ensured that any of the above-described preposition node gets timely, accurate
Data.
In the above-mentioned technical solutions, it is preferable that in switching centre's system by the data by any level structure
Also include before sending to any preposition node:The data are compressed and/or encryption.
In the technical scheme, by the compression to data, the bandwidth taken during data transfer can be reduced, and then can
Data are quickly and efficiently transmitted in realization;And by the way that data are encrypted, it is possible to increase the security of data, it is ensured that data
Safely it is transferred to any of the above-described preposition node.
By above technical scheme, the two-way exchange of data between not peer-to-peer architecture is realized in multilevel hierarchy with shared,
Simultaneously because completing the request and acquisition of data between multilevel hierarchy by switching centre's system, therefore also improve data biography
Defeated stability.
Brief description of the drawings
Fig. 1 shows the structural representation of data exchange system in the prior art;
Fig. 2 shows the schematic block diagram of the data interaction device for multilevel hierarchy of an implementation according to the present invention;
Fig. 3 shows the exemplary flow of the data interactive method according to an embodiment of the invention for multilevel hierarchy
Figure;
Fig. 4 shows the annexation of data interaction device according to an embodiment of the invention and switching centre's system
Schematic diagram;
Fig. 5 shows the schematic block diagram of cascade unit according to an embodiment of the invention;
Fig. 6 shows the structural representation of data interaction system according to an embodiment of the invention;
Fig. 7 shows the signal stream of the data interactive method for multilevel hierarchy according to another embodiment of the invention
Cheng Tu.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
To be different from other modes described here using other to implement, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 2 shows the schematic block of the data interaction device according to an embodiment of the invention for multilevel hierarchy
Figure.
As shown in Fig. 2 the data interaction device 200 according to an embodiment of the invention for multilevel hierarchy, described
Every level structure in multilevel hierarchy includes for providing data or obtaining at least one preposition node of data, and is used for
The switching centre's system being managed at least one preposition node, the data interaction device 200, including:Connection is built
Vertical unit 202, for being attached with switching centre's system per level structure;Receiving unit 204 is described more for receiving
In level structure any preposition node of any level structure pass through that the switching centre system of any structure sends to other levels
The acquisition request of data in the specified preposition node of structure;Processing unit 206, for being asked according to described obtain, from described
Specify in preposition node and read the data of any preposition node acquisition request, and the data are passed through into any level knot
Switching centre's system of structure is sent to any preposition node.
In the technical scheme, it is attached by switching centre's system with every level structure, switching centre can be passed through
System completes the request and acquisition of data between multilevel hierarchy, is taken compared to data processing tools is passed through in the prior art with enterprise
The scheme that business bus is directly handled data source, the technical scheme of the application with switching centre's system due to can be handed over
Mutually, and switching centre's system can be managed to data, therefore improve the stability of data transfer.And by receiving
In the specified preposition node to other level structures that any preposition node in any level structure is sent during the acquisition request of data,
Corresponding Data Concurrent is read according to acquisition request and delivers to any of the above-described preposition node, realizes knot not at the same level in multilevel hierarchy
The two-way exchange of data is with shared between structure, compared to the scheme for being only capable of DBMS under higher level reads in the prior art, the application
Technical scheme realize the flexibility of data interaction.
In the above-mentioned technical solutions, it is preferable that the processing unit 206 includes:Acquiring unit 2062, for according to
Obtain request and directly obtain the data from described specify in preposition node;And/or transmitting element 2064, for notifying the finger
Switching centre's system corresponding to fixed preposition node, so that described specify switching centre's system corresponding to preposition node to be specified from described
Obtained in preposition node and feed back the data.
, specifically, both can be direct when receiving the acquisition request that any preposition node is sent in the technical scheme
Data are obtained from specifying in preposition node, directly, rapidly to obtain the data in preposition node;Can also be preposition by specifying
Switching centre's system corresponding to node from specifying preposition node to obtain data so that switching centre's system data are prestored,
The processing such as monitoring, statistics, and then improve the stability of data transfer.
In the above-mentioned technical solutions, it is preferable that the transmitting element 2064 is specifically used for:Request transmission is obtained by described extremely
It is described to specify switching centre's system corresponding to preposition node, so that described specify switching centre's system interrogation corresponding to preposition node
It is described to specify whether preposition node agrees to that described obtain is asked, and for before the first monitoring unit 208 listens to described specify
When putting the exchange of switching centre's system creation first memory space corresponding to node, sent to the switching centre of any level structure
Feedback information, so that the switching centre of any level structure creates the second exchange memory space and notifies any preposition section
Point creates digital independent task, and receives any preposition node in the receiving unit 204 and pass through any level
During the information that the digital independent task creation that the switching centre of structure sends is completed, described specify described in preposition node transmission is notified
Data;First monitoring unit 208, described specify whether switching centre's system corresponding to preposition node creates for monitoring
One exchanges storage center;The receiving unit 204 is additionally operable to, and is received any preposition node and is passed through any level structure
The information that the digital independent task creation that switching centre sends is completed.
In the technical scheme, by switching centre's system send feedback information of any level structure so that above-mentioned
Switching centre's system of primary structure, which can create, to be exchanged memory space and notifies any of the above-described preposition node to create digital independent
Task, the switching centre of any of the above-described level structure is enabled to carry out the preparation for receiving data in advance, and then can efficiently, stably
Ground receives data, so as to improve the stability for obtaining data.
In the above-mentioned technical solutions, it is preferable that also include:Second monitoring unit 210, for by the data send to
After any preposition node, switching centre's system corresponding to preposition node is specified to monitor in specified preposition node by described
Data whether update;The processing unit 206 is additionally operable to, in the data that the second monitoring unit is listened in specified preposition node
When updating, the data after being updated in specified preposition node are re-read, and send to any preposition node.
In the technical scheme, specify whether the data in preposition node update by monitoring, and in node is specified
When data update, the data after renewal are re-read, it can be ensured that any of the above-described preposition node gets timely, accurate
Data.
In the above-mentioned technical solutions, it is preferable that also include:Compression unit 212, for data to be passed through into any level
Switching centre's system of structure is compressed before sending to any preposition node to the data;And/or ciphering unit
214, for by the data by switching centre's system of any level structure send to any preposition node it
It is preceding that the data are encrypted.
In the technical scheme, by the compression to data, the bandwidth taken during data transfer can be reduced, and then can
Data are quickly and efficiently transmitted in realization;And by the way that data are encrypted, it is possible to increase the security of data, it is ensured that data
Safely it is transferred to any of the above-described preposition node.
Fig. 3 shows the exemplary flow of the data interactive method according to an embodiment of the invention for multilevel hierarchy
Figure.
As shown in figure 3, the data interactive method according to an embodiment of the invention for multilevel hierarchy, the multistage
Every level structure in structure includes at least one preposition node for providing data or acquisition data, and for institute
State switching centre's system that at least one preposition node is managed, the data interactive method, including:Step 302, with it is described
Switching centre's system per level structure is attached;Step 304 receives any preposition of any level structure in the multilevel hierarchy
Data in the specified preposition node to other level structures that the switching centre system that node passes through any structure is sent
Obtain request;Step 306, asked according to described obtain, reading any preposition node from the specified preposition node please
The data of acquisition are sought, and the data are sent to any preposition section by switching centre's system of any level structure
Point.
In the technical scheme, it is attached by switching centre's system with every level structure, switching centre can be passed through
System completes the request and acquisition of data between multilevel hierarchy, is taken compared to data processing tools is passed through in the prior art with enterprise
The scheme that business bus is directly handled data source, the technical scheme of the application with switching centre's system due to can be handed over
Mutually, and switching centre's system can be managed to data, therefore improve the stability of data transfer.And by receiving
In the specified preposition node to other level structures that any preposition node in any level structure is sent during the acquisition request of data,
Corresponding Data Concurrent is read according to acquisition request and delivers to any of the above-described preposition node, realizes knot not at the same level in multilevel hierarchy
The two-way exchange of data is with shared between structure, compared to the scheme for being only capable of DBMS under higher level reads in the prior art, the application
Technical scheme realize the flexibility of data interaction.
In the above-mentioned technical solutions, it is preferable that asked according to described obtain, specified from described in preposition node described in reading
The step of data of any preposition node acquisition request is specially:Request is obtained directly from the specified preposition node according to described
It is middle to obtain the data;Or switching centre's system corresponding to the specified preposition node is notified, so that described specify preposition node
Corresponding switching centre's system obtains from the specified preposition node and feeds back the data.
, specifically, both can be direct when receiving the acquisition request that any preposition node is sent in the technical scheme
Data are obtained from specifying in preposition node, directly, rapidly to obtain the data in preposition node;Can also be preposition by specifying
Switching centre's system corresponding to node from specifying preposition node to obtain data so that switching centre's system data are prestored,
The processing such as monitoring, statistics, and then improve the stability of data transfer.
In the above-mentioned technical solutions, it is preferable that asked according to described obtain, specified from described in preposition node described in reading
The data of any preposition node acquisition request, and by the data by switching centre's system of any level structure send to
The step of any preposition node is specially:Obtained described in exchange corresponding to request transmission to the specified preposition node
System is felt concerned about, so that it is described to specify preposition node whether to agree to described in switching centre's system interrogation corresponding to the specified preposition node
Obtain request;Whether switching centre's system corresponding to monitoring the specified preposition node creates the first exchange memory space, if so,
Then to switching centre's send feedback information of any level structure, so that the switching centre of any level structure creates second
Exchange memory space and notify any preposition node to create digital independent task;Lead to receiving any preposition node
When crossing the information of the digital independent task creation completion of switching centre's transmission of any level structure, notify described specified preposition
Node sends the data.
In the technical scheme, by switching centre's system send feedback information of any level structure so that above-mentioned
Switching centre's system of primary structure, which can create, to be exchanged memory space and notifies any of the above-described preposition node to create digital independent
Task, the switching centre of any of the above-described level structure is enabled to carry out the preparation for receiving data in advance, and then can efficiently, stably
Ground receives data, so as to improve the stability for obtaining data.
In the above-mentioned technical solutions, it is preferable that the data are being sent to any preposition node, also wrapped
Include:Specify whether switching centre's system corresponding to preposition node monitors the data specified in preposition node by described
Renewal;Passing through the number for specifying switching centre's system corresponding to preposition node to listen in the specified preposition node
During according to updating, the data specified after being updated in preposition node are re-read, and send to described any preposition
Node.
In the technical scheme, specify whether the data in preposition node update by monitoring, and in node is specified
When data update, the data after renewal are re-read, it can be ensured that any of the above-described preposition node gets timely, accurate
Data.
In the above-mentioned technical solutions, it is preferable that in switching centre's system by the data by any level structure
Also include before sending to any preposition node:The data are compressed and/or encryption.
In the technical scheme, by the compression to data, the bandwidth taken during data transfer can be reduced, and then can
Data are quickly and efficiently transmitted in realization;And by the way that data are encrypted, it is possible to increase the security of data, it is ensured that data
Safely it is transferred to any of the above-described preposition node.
Wherein, the data interaction device 200 for multilevel hierarchy shown in Fig. 2 and switching centre's system per level structure
Annexation it is as shown in Figure 4.
Fig. 4 shows the annexation of data interaction device according to an embodiment of the invention and switching centre's system
Schematic diagram.
As shown in figure 4, data interaction device 200 carries out the middleware of data interaction as switching centre's systems at different levels, lead to
Data interaction device 200 is crossed, data double-way processing can be carried out between upper level structure and lower structures, switching centre's systems at different levels are led to
Cross and interact command process between data interaction device 200, the tasks such as corresponding data subscription, exchange monitoring can be completed.
Fig. 5 shows the schematic block diagram of cascade unit according to an embodiment of the invention.
As shown in figure 5, cascade unit 500 according to an embodiment of the invention, i.e., data interaction device described above, bag
Include:
Role management unit 502, for being shared for multi-stage data and exchanging subscribing relationship, shared switching task is established,
Complete data transmission or reception processing.
The role management unit 502 includes:Data-reading unit 5022, data transmission unit 5024 and data decryptor list
Member 5026.Wherein, data-reading unit 5022 is responsible for across tasks such as the readings, decryption, storage of DBMS, its reading higher level or under
The data of level switching centre, data are transferred to the task in task pool handled.According to subscription information, read task directly with
The switching centre of higher level or subordinate interacts processing.
Data transmission unit 5024, it is responsible for across tasks such as the packings, encryption, transmission of DBMS.The data of transmission are by receiving
The higher level of data or the switching centre of subordinate carry out reception processing, and are responsible for being distributed to corresponding preposition node.
Data are monitored by data decryptor unit 5026, when hair available data updates, at corresponding task
Reason.
Cascade unit 500 also includes:Order monitoring unit 504, command interaction mainly is carried out with switching centre, complete data
Subscribe to or querying command is handled.
Service routing unit 506, for across DBMS carry out real-time query, it is routed to by service request across the preposition of level
Node is handled, and to obtain real time data, route can directly obtain the data needed according to configuration, can also entrust subordinate
Switching centre completes query processing.
Fig. 6 shows the structural representation of data interaction system according to an embodiment of the invention.
As shown in fig. 6, cascade unit 500 is connected between switching centre not at the same level.In the deployment ring of this multilevel hierarchy
In border, each switching centre can manage multiple preposition child nodes, be between the preposition child node in primary structure sane level close
System, the switching centre of peer-to-peer architecture will not carry out Data share-and-exchange, it is necessary to dispose cascade unit 500.Wherein, data subscription
Side can be the preposition child node of subordinate, there is provided side can be the preposition child node of higher level;Data sharing is with handing between multilevel hierarchy
Change not only be directed to figure in structure step by step be supported, can across level configuration cascade unit, complete across DBMS share with exchanging.
Fig. 7 shows the signal stream of the data interactive method for multilevel hierarchy according to another embodiment of the invention
Cheng Tu.
As shown in fig. 7, the data interactive method for multilevel hierarchy according to another embodiment of the invention, wherein with
As data subscription side, the preposition node in lower structures is carried out as exemplified by data providing for preposition node in upper level structure
Illustrate, step is as follows:
Step 702, data subscription side (the preposition node of higher level) carries out subscription application.
Step 704, higher level switching centre makes requests on judgement, judges to subscribe to whether application is across level application, if so, then holding
Row step 708;Otherwise, step 706 is performed.
Step 706, when it is not across level application that higher level switching centre, which judges the subscription application of data subscriber, carry out at the same level
Subscription is handled.
Step 708, when it is across level application that higher level switching centre, which judges the subscription application of data subscriber, make requests on and turn
Hair processing, cascade unit is sent to by subscription request message.
Step 710, subscription request is routed to data and provided by routing iinformation of the cascade unit in subscription request message
Switching centre where side's (specified preposition node managed as lower level switching center) is handled.
Step 712, lower level switching center makes requests on forwarding, will subscribe to request and is forwarded to data providing.
Step 714, data providing judges whether to agree to subscribe to request, if so, then performing step 716.
Step 716, subscribe to request and carry out examination & approval processing in the preposition node of provider, after agreement, lower level switching center will be created
Data providing memory space is built, data message is subscribed to for storing.
Step 718, cascade unit monitors lower level switching center and creates the processing state of memory space, and subordinate is exchanged
The process state information of the heart feeds back to higher level switching centre.
Step 720, the process state information that higher level switching centre feeds back according to cascade unit, the storage of data subscription side is created
Space.
Step 722, higher level switching centre notice data subscription side creates digital independent task, is responsible for reading in higher level's exchange
The data in data receiver's memory space in the heart, and carry out serializing storage.
Step 724, judge whether the preparation of the preposition node of higher level and switching centre is ready, if so, then performing step
726。
Step 726, when the preparation of the preposition node of higher level and switching centre is ready, cascade unit synchronizes order
Processing, that is, lower level switching center is notified to carry out data sending processing.
Step 728, lower level switching center synchronizes command process.
Step 730, subordinate's data providing sends according to the timing of subscription period information and subscribes to data.
Step 732, lower level switching center carries out data statistics monitoring.
Step 734, cascade unit reads the data that lower level switching center is sent.
Step 736, cascade unit transmits data to higher level switching centre.
Step 738, higher level switching centre carries out data statistics monitoring.
Step 740, data subscription side receives data and stored.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that in correlation technique not between peer-to-peer architecture
Can only unidirectional delivery data, the interaction of data between any not peer-to-peer architecture can not be completed.Therefore, the present invention proposes a kind of new
The data interaction scheme for multilevel hierarchy, realize in multilevel hierarchy the two-way exchange of data between not peer-to-peer architecture together
Enjoy, while also improve the stability of data transfer.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. a kind of data interaction device for multilevel hierarchy, it is characterised in that every level structure in the multilevel hierarchy wraps
Containing at least one preposition node for providing data or acquisition data, and for entering at least one preposition node
Switching centre's system of row management, the data interaction device, including:
Connection establishment unit, for being attached with switching centre's system per level structure;
Receiving unit, any preposition node for receiving any level structure in the multilevel hierarchy pass through any structure
The acquisition request of data in the specified preposition node to other level structures that switching centre's system is sent;
Processing unit, for being asked according to described obtain, reading any preposition node from the specified preposition node please
The data of acquisition are sought, and the data are sent to any preposition section by switching centre's system of any level structure
Point;
Second monitoring unit, for sending the data to any preposition node, by described specified preposition
Switching centre's system corresponding to node monitors whether the data specified in preposition node update;
The processing unit is additionally operable to, and listening to the data specified in preposition node in second monitoring unit sends out
During raw renewal, the data specified after being updated in preposition node are re-read, and send to any preposition node.
2. the data interaction device according to claim 1 for multilevel hierarchy, it is characterised in that the processing unit bag
Include:
Acquiring unit, for asking directly to obtain the data from described specify in preposition node according to described obtain;And/or
Transmitting element, for notifying switching centre's system corresponding to the specified preposition node, so that described specify preposition node
Corresponding switching centre's system obtains from the specified preposition node and feeds back the data.
3. the data interaction device according to claim 2 for multilevel hierarchy, it is characterised in that the transmitting element tool
Body is used for:
Switching centre's system corresponding to request transmission to the specified preposition node is obtained by described, so that described specify preposition section
Specify whether preposition node agrees to that described obtain is asked described in switching centre's system interrogation corresponding to point, and for being monitored first
Unit listen to it is described when specifying that switching centre's system creation first exchanges memory space corresponding to preposition node, to described any
Switching centre's send feedback information of level structure, so that the switching centre of any level structure, which creates second, exchanges memory space
And notify any preposition node to create digital independent task, and receive any preposition section in the receiving unit
During the information that the digital independent task creation that point is sent by the switching centre of any level structure is completed, described specify is notified
Preposition node sends the data;
First monitoring unit, for monitor it is described specify preposition node corresponding to switching centre's system whether create the first friendship
Change storage center;
The receiving unit is additionally operable to, and receives what any preposition node was sent by the switching centre of any level structure
The information that the digital independent task creation is completed.
4. the data interaction device according to any one of claim 1 to 3 for multilevel hierarchy, it is characterised in that also
Including:
Compression unit, for the data are sent by switching centre's system of any level structure to it is described it is any before
The data are compressed before putting node;And/or
Ciphering unit, for the data are sent by switching centre's system of any level structure to it is described it is any before
The data are encrypted before putting node.
5. a kind of data interactive method for multilevel hierarchy, it is characterised in that every level structure in the multilevel hierarchy wraps
Containing at least one preposition node for providing data or acquisition data, and for entering at least one preposition node
Switching centre's system of row management, the data interactive method, including:
It is attached with switching centre's system per level structure;
Receive switching centre's system that any preposition node of any level structure in the multilevel hierarchy passes through any structure
The acquisition request of data in the specified preposition node to other level structures sent;
Asked according to described obtain, the data of any preposition node acquisition request read from the specified preposition node,
And the data are sent to any preposition node by switching centre's system of any level structure;
The data are being sent to any preposition node, in addition to:
It is by the data specified in the specified preposition node of switching centre's system monitoring corresponding to preposition node
No renewal;
Passing through the number for specifying switching centre's system corresponding to preposition node to listen in the specified preposition node
During according to updating, the data specified after being updated in preposition node are re-read, and send to described any preposition
Node.
6. the data interactive method according to claim 5 for multilevel hierarchy, it is characterised in that please according to the acquisition
Ask, from it is described specify preposition node in read the data of any preposition node acquisition request the step of be specially:
Ask directly to obtain the data from described specify in preposition node according to described obtain;Or
Switching centre's system corresponding to the specified preposition node is notified, so that described specify switching centre corresponding to preposition node
System obtains from the specified preposition node and feeds back the data.
7. the data interactive method according to claim 6 for multilevel hierarchy, it is characterised in that please according to the acquisition
Ask, read the data of any preposition node acquisition request from described specify in preposition node, and the data are passed through into institute
The switching centre's system for stating any level structure sends to the step of any preposition node and is specially:
Switching centre's system corresponding to request transmission to the specified preposition node is obtained by described, so that described specify preposition section
Specify whether preposition node agrees to that described obtain is asked described in switching centre's system interrogation corresponding to point;
Monitor it is described specify preposition node corresponding to switching centre's system whether create the first exchange memory space, if so, then to
Switching centre's send feedback information of any level structure, exchanged so that the switching centre of any level structure creates second
Memory space simultaneously notifies any preposition node to create digital independent task;
Created in the digital independent task for receiving switching centre's transmission that any preposition node passes through any level structure
When building the information of completion, the specified preposition node is notified to send the data.
8. the data interactive method for multilevel hierarchy according to any one of claim 5 to 7, it is characterised in that
Also include before the data are sent to any preposition node by switching centre's system of any level structure:It is right
The data are compressed and/or encryption.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410505877.6A CN104202230B (en) | 2014-09-26 | 2014-09-26 | Data interaction device and method for multilevel hierarchy |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410505877.6A CN104202230B (en) | 2014-09-26 | 2014-09-26 | Data interaction device and method for multilevel hierarchy |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104202230A CN104202230A (en) | 2014-12-10 |
CN104202230B true CN104202230B (en) | 2017-12-05 |
Family
ID=52087460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410505877.6A Active CN104202230B (en) | 2014-09-26 | 2014-09-26 | Data interaction device and method for multilevel hierarchy |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202230B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112788074B (en) * | 2019-11-07 | 2024-05-31 | 中兴通讯股份有限公司 | Data transmitting method, processing method, receiving method, apparatus thereof, and storage medium |
CN111092940A (en) * | 2019-12-06 | 2020-05-01 | 浩云科技股份有限公司 | Cascade data synchronization system |
US11223574B2 (en) * | 2019-12-27 | 2022-01-11 | Google Llc | Multi-stage switching topology |
CN116503010B (en) * | 2023-03-09 | 2024-03-15 | 北京健康在线技术开发有限公司 | Data statistics method, device, equipment and medium based on multi-stage data reporting |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741616A (en) * | 2009-12-03 | 2010-06-16 | 北京和利时系统工程有限公司 | Data acquisition system and device thereof |
CN101795222A (en) * | 2009-11-13 | 2010-08-04 | 深圳市科陆电子科技股份有限公司 | Multi-stage forward service system and method |
WO2011150718A1 (en) * | 2010-06-01 | 2011-12-08 | 杭州和利时自动化有限公司 | Data sharing realization method for distributed control system and device thereof |
CN102281286A (en) * | 2010-06-14 | 2011-12-14 | 微软公司 | Flexible end-point compliance and strong authentication for distributed hybrid enterprises |
CN103532838A (en) * | 2013-10-09 | 2014-01-22 | 中国联合网络通信集团有限公司 | Method and system for realizing data exchange between isolation networks |
-
2014
- 2014-09-26 CN CN201410505877.6A patent/CN104202230B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101795222A (en) * | 2009-11-13 | 2010-08-04 | 深圳市科陆电子科技股份有限公司 | Multi-stage forward service system and method |
CN101741616A (en) * | 2009-12-03 | 2010-06-16 | 北京和利时系统工程有限公司 | Data acquisition system and device thereof |
WO2011150718A1 (en) * | 2010-06-01 | 2011-12-08 | 杭州和利时自动化有限公司 | Data sharing realization method for distributed control system and device thereof |
CN102281286A (en) * | 2010-06-14 | 2011-12-14 | 微软公司 | Flexible end-point compliance and strong authentication for distributed hybrid enterprises |
CN103532838A (en) * | 2013-10-09 | 2014-01-22 | 中国联合网络通信集团有限公司 | Method and system for realizing data exchange between isolation networks |
Also Published As
Publication number | Publication date |
---|---|
CN104202230A (en) | 2014-12-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6563555B2 (en) | Service layer session transfer and sharing | |
JP6464298B2 (en) | End-to-end M2M service layer session | |
CN106790420B (en) | A kind of more session channel method for building up and system | |
KR101678606B1 (en) | SERVICE PROVIDING METHOD USING IoT DEVICE AND SERVICE PROVIDING SYSTEM USING IoT DEVICE | |
CN109565658A (en) | It subscribes to and notice services | |
CN104202230B (en) | Data interaction device and method for multilevel hierarchy | |
CA3093718C (en) | Method, apparatus, and computer program product for encryption key management within a group-based communication system | |
KR101467173B1 (en) | Method and Apparatus of resource management of M2M network | |
CN107810613A (en) | The method and apparatus that program and device class right are provided in the broadcast stream using inventory file | |
CN109565465A (en) | Business forwarding in virtual network based on service | |
DE112019003309T5 (en) | DEVICE FOR SECURE RECEIVING OF SHIPMENTS WITH DELEGATING CHAIN | |
US9867164B2 (en) | Method and device for processing a specific request message in wireless communication system | |
CN104363407B (en) | A kind of video conferencing system means of communication and related device | |
CN103997725A (en) | System and method for abstracting and orchestrating mobile data networks in a network environment | |
CN106170969A (en) | Context management | |
KR100474235B1 (en) | An event alerting method using a dynamic local grouping, and a method thereof | |
CN110263579A (en) | A kind of data processing method, system and relevant device | |
CN101986614A (en) | Logistics application-oriented universal industry service bus system and implement method thereof | |
CN101212661A (en) | Method for controlling media stream transmission between customer premise equipment and video sever | |
CN104410657A (en) | Data transmission method and device in distributed central monitoring system | |
WO2015117365A1 (en) | Method, device and system for interacting hello packets | |
US11134365B2 (en) | Resource link management at service layer | |
JP2005159780A (en) | Secure group management method | |
US20150222651A1 (en) | Multicast message update | |
WO2015184870A1 (en) | Management method, apparatus and system for grouped communications |
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 |