CN109104316B - Method and device for sharing topology structure diagram data - Google Patents

Method and device for sharing topology structure diagram data Download PDF

Info

Publication number
CN109104316B
CN109104316B CN201810960061.0A CN201810960061A CN109104316B CN 109104316 B CN109104316 B CN 109104316B CN 201810960061 A CN201810960061 A CN 201810960061A CN 109104316 B CN109104316 B CN 109104316B
Authority
CN
China
Prior art keywords
topology structure
structure diagram
data
user
cloud computing
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
CN201810960061.0A
Other languages
Chinese (zh)
Other versions
CN109104316A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810960061.0A priority Critical patent/CN109104316B/en
Publication of CN109104316A publication Critical patent/CN109104316A/en
Application granted granted Critical
Publication of CN109104316B publication Critical patent/CN109104316B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The invention discloses a method and a device for sharing topology structure diagram data. The method comprises the following steps: receiving topology structure diagram data edited by a user and storing the topology structure diagram data in a cloud computing system; receiving a label added by a user for the data of the topology structure chart; and when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to the appointed computer system, all other computer systems or not shared according to the label. By the aid of the method, stability of data can be guaranteed, the data of the topology structure diagram can be shared to other computer systems according to requirements, and the data of the topology structure diagram is shared to other computer systems, so that other computer systems can develop the front end by referring to the topology structure diagram, and development efficiency is improved.

Description

Method and device for sharing topology structure diagram data
Technical Field
The invention relates to the field of topology structure diagrams in cloud computing systems, in particular to a method and a device for sharing data of the topology structure diagrams.
Background
In front-end development, some resources with complex relationships are often encountered, and in order to show the relationships among the resources more friendly and clear, a topological structure diagram is usually used. The relationship among the resources is generally stored in a background database of the cloud computing system where the resources are located, and after the relationship is acquired through an interface, the logical structure of the relationship is shown on a page in a certain topological structure diagram. Although the data of the topological structure diagram is stored in the database, the stability of the data is ensured, but the sharing requirement between computer systems cannot be met, and the development of a topological structure diagram model is not facilitated, so that the development efficiency is reduced.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides a method and apparatus for sharing data of a topology structure diagram, which can share data of a data structure diagram between different computer systems.
In order to achieve the object of the present invention, the present invention provides a method for sharing data of a topology structure diagram, which is applied to a cloud computing system, and the method comprises the following steps:
receiving topology structure diagram data edited by a user and storing the topology structure diagram data in a cloud computing system;
receiving a label added by a user for the data of the topology structure diagram, wherein the label is provided with the function of sharing the data of the topology structure diagram to a specified computer system, all other computer systems or not;
and when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to the appointed computer system, all other computer systems or not shared according to the label.
Further, in an optional embodiment, after the step of receiving the label added by the user for the topology structure map data, the method further includes:
and exporting the data of the topology structure diagram as a data file of the topology structure diagram, downloading the exported data file of the topology structure diagram to a local computer system of a user, and backing up the data file of the topology structure diagram.
Further, in an optional embodiment, the method further comprises:
importing and parsing a topology structure graph data file shared by other computer systems, and parsing and presenting topology structure graph data included in the imported topology structure graph data file.
Further, in an optional embodiment, the step of receiving the topology structure diagram data edited by the user and storing the topology structure diagram data in the cloud computing system comprises:
receiving the topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command for storing the topology structure map data is received, the topology structure map data is stored in a permanent memory of the cloud computing system.
Further, in an optional embodiment, after the step of storing the topology structure map data in the permanent memory of the cloud computing system, the method further comprises:
the topology structure map data stored in the permanent memory of the cloud computing system is purged from the temporary memory.
In another aspect, an embodiment of the present invention provides an apparatus for sharing data of a topology structure diagram, where the apparatus is applied to a cloud computing system, and the apparatus includes a topology structure diagram receiving module, a tag receiving module, and a topology structure diagram sharing module; wherein the content of the first and second substances,
the topology structure chart receiving module is used for: receiving topology structure diagram data edited by a user and storing the topology structure diagram data in a cloud computing system;
the tag receiving module is used for: receiving a label added by a user for the data of the topology structure diagram, wherein the label is provided with the function of sharing the data of the topology structure diagram to a specified computer system, all other computer systems or not;
the topology structure chart sharing module is used for: and when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to the appointed computer system, all other computer systems or not shared according to the label.
Further, in an optional embodiment, the apparatus further includes a topology structure graph derivation module;
the topology structure chart deriving module is used for: after the label receiving module receives a label added by a user for the data of the topology structure diagram, the data of the topology structure diagram is exported to be a data file of the topology structure diagram, the exported data file of the topology structure diagram is downloaded to a local computer system of the user, and meanwhile, the data file of the topology structure diagram is backed up.
Further, in an optional embodiment, the apparatus further comprises: a topology structure chart importing module;
the topology structure chart importing module is used for: importing and parsing a topology structure diagram data file shared by other computer systems, and parsing and presenting topology structure diagram data included in the imported topology structure diagram data file.
Further, in an optional embodiment, the topology structure diagram receiving module is configured to: receiving the topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command for storing the topology structure map data is received, the topology structure map data is stored in a permanent memory of the cloud computing system.
Further, in an optional embodiment, the apparatus further comprises a temporary memory clearing module;
the temporary memory removal module is to: the topology structure map data stored in the permanent memory of the cloud computing system is purged from the temporary memory.
The embodiment of the invention has the beneficial effects that: after receiving the data of the topology structure diagram, receiving a label added by a user to the data of the topology structure diagram, thereby sharing the data of the topology structure diagram to a specified computer system and sharing the data of the topology structure diagram to all other computer systems or not sharing the data according to the label, not only ensuring the stability of the data, but also sharing the data of the topology structure diagram to other computer systems according to the requirement, and by sharing the data of the topology structure diagram to other computer systems, enabling other computer systems to develop a front end by referring to the topology structure diagram, and improving the development efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of a method for sharing topology structure diagram data according to an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for sharing topology structure diagram data according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
In one aspect, an embodiment of the present invention provides a method for displaying a table, where the method is applied to a cloud computing system, and as shown in fig. 1, the method includes steps S101 to S105.
Step S101, receiving the topology structure diagram data edited by the user and storing the topology structure diagram data in the cloud computing system.
The data of the topology structure diagram is the data of the topology structure diagram defined by a user through configuration software or a network simulation tool platform in a dragging, connecting and other modes.
And step S103, receiving a label added by the user for the topology structure data.
The label is provided with a function of sharing the data of the topology structure diagram to a designated computer system, all other computer systems or not.
Step S105, when receiving the request for sharing the topology structure diagram data, shares the topology structure diagram data to the designated computer system, to all other computer systems, or not according to the label.
The embodiment of the invention has the beneficial effects that: after receiving the data of the topology structure diagram, receiving a label added by a user to the data of the topology structure diagram, thereby sharing the data of the topology structure diagram to a specified computer system and sharing the data of the topology structure diagram to all other computer systems or not sharing the data according to the label, not only ensuring the stability of the data, but also sharing the data of the topology structure diagram to other computer systems according to the requirement, and by sharing the data of the topology structure diagram to other computer systems, enabling other computer systems to develop a front end by referring to the topology structure diagram, and improving the development efficiency.
Further, in an optional embodiment, after step S103, the method further includes:
and exporting the data of the topology structure diagram as a data file of the topology structure diagram, downloading the exported data file of the topology structure diagram to a local computer system of a user, and backing up the data file of the topology structure diagram.
Here, because the manner of sharing the data of the topology structure diagram enables the cloud computing system and the other system to still interfere with each other when using the data of the topology structure diagram, the manner of sharing the data of the topology structure diagram is not adopted, but the manner of exporting the data of the topology structure diagram as the data file of the topology structure diagram is adopted, and the data of the topology structure diagram is stored in the local computer system of the user, so that the user can edit the data of the topology structure diagram in the data file of the topology structure diagram in the local computer system. Here, the topology structure diagram data may be stored as a topology structure diagram data file with an extension of ". topo", and this file may be run on a network simulation tool platform in a computer system local to the user, and when the user runs the topology structure diagram data file on the network simulation tool platform, software simulation may be performed on an enterprise network router and a switch, and a real device scenario is presented, that is, a drilling may be simulated without a real device.
Further, in an optional embodiment, the method further comprises:
importing and parsing a topology structure graph data file shared by other computer systems, and parsing and presenting topology structure graph data included in the imported topology structure graph data file.
Here, the cloud computing system as the execution subject of the method uses the data file of the topology structure diagram shared by other computer systems, that is, the other computer systems execute the above steps S101 to S105, so that the data file of the topology structure diagram is shared by the plurality of computer systems, thereby improving the development efficiency.
Further, in an optional embodiment, step S101 includes:
receiving the topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command for storing the topology structure map data is received, the topology structure map data is stored in a permanent memory of the cloud computing system.
The cloud computing system firstly uses the temporary storage to store the topology structure diagram data edited by the user, and the temporary storage has the advantages of being capable of reading and writing at any time and high in reading and writing speed, so that the cloud computing system is beneficial to storing the topology structure diagram data which is additionally, deleted, checked and modified in real time by the user; when receiving a command input by a user to store topology structure map data, the topology structure map data is saved to a permanent memory.
Further, in an optional embodiment, after the step of storing the topology structure map data in the permanent memory of the cloud computing system, the method further comprises:
the topology structure map data stored in the permanent memory of the cloud computing system is purged from the temporary memory.
By the method, the topology structure diagram data stored in the permanent memory is not stored in the temporary memory any more, the available memory space of the temporary memory is increased, and the working efficiency of the temporary memory is improved.
In another aspect, an embodiment of the present invention provides an apparatus for sharing topology structure diagram data, where the apparatus is applied to a cloud computing system, and as shown in fig. 2, the apparatus includes a topology structure diagram receiving module 201, a tag receiving module 203, and a topology structure diagram sharing module 205.
The topology structure diagram receiving module 201 is configured to: topology structure graph data edited by a user is received and stored in the cloud computing system.
The tag receiving module 203 is configured to: and receiving a label added by a user for the data of the topology structure diagram, wherein the label is provided with the data of the topology structure diagram to be shared to the appointed computer system, shared to all other computer systems or not shared.
The topology structure chart sharing module 205 is configured to: and when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to the appointed computer system, all other computer systems or not shared according to the label.
The embodiment of the invention has the beneficial effects that: after receiving the data of the topology structure diagram, receiving a label added by a user to the data of the topology structure diagram, thereby sharing the data of the topology structure diagram to a specified computer system and sharing the data of the topology structure diagram to all other computer systems or not sharing the data according to the label, not only ensuring the stability of the data, but also sharing the data of the topology structure diagram to other computer systems according to the requirement, and by sharing the data of the topology structure diagram to other computer systems, enabling other computer systems to develop a front end by referring to the topology structure diagram, and improving the development efficiency.
Further, in an optional embodiment, the apparatus further includes a topology structure graph derivation module;
the topology structure chart deriving module is used for: after the label receiving module receives a label added by a user for the data of the topology structure diagram, the data of the topology structure diagram is exported to be a data file of the topology structure diagram, the exported data file of the topology structure diagram is downloaded to a local computer system of the user, and meanwhile, the data file of the topology structure diagram is backed up.
Further, in an optional embodiment, the apparatus further comprises: a topology structure chart importing module;
the topology structure chart importing module is used for: importing and parsing a topology structure diagram data file shared by other computer systems, and parsing and presenting topology structure diagram data included in the imported topology structure diagram data file.
Further, in an optional embodiment, the topology structure diagram receiving module 201 is configured to: receiving the topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command for storing the topology structure map data is received, the topology structure map data is stored in a permanent memory of the cloud computing system.
Further, in an optional embodiment, the apparatus further comprises a temporary memory clearing module.
The temporary memory removal module is to: the topology structure map data stored in the permanent memory of the cloud computing system is purged from the temporary memory.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A method for sharing data of a topological structure diagram is applied to a cloud computing system, and is characterized by comprising the following steps:
receiving topology structure diagram data edited by a user and storing the topology structure diagram data in a cloud computing system;
receiving a label added by the user for the data of the topology structure diagram, wherein the label is provided with the function of sharing the data of the topology structure diagram to a specified computer system, all other computer systems or not;
when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to a designated computer system, all other computer systems or not according to the label;
after the step of receiving the label added by the user for the topological structure diagram data, the method further comprises:
and exporting the data of the topology structure diagram as a data file of the topology structure diagram, downloading the exported data file of the topology structure diagram to the local computer system of the user, and backing up the data file of the topology structure diagram.
2. The method of claim 1, further comprising:
importing and parsing a topology structure graph data file shared by other computer systems, and parsing and presenting topology structure graph data included in the imported topology structure graph data file.
3. The method of claim 1, wherein the step of receiving topology structure map data edited by a user and saving it in a cloud computing system comprises:
receiving topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command to store the topology structure map data is received, the topology structure map data is stored in a persistent memory of the cloud computing system.
4. The method of claim 3, wherein after the step of storing the topology structure map data in persistent memory of the cloud computing system, the method further comprises:
and clearing the topological structure diagram data stored in the permanent memory of the cloud computing system from the temporary memory.
5. The device for sharing the data of the topological structure diagram is applied to a cloud computing system and is characterized by comprising a topological structure diagram receiving module, a label receiving module and a topological structure diagram sharing module; wherein the content of the first and second substances,
the topology structure chart receiving module is used for: receiving topology structure diagram data edited by a user and storing the topology structure diagram data in a cloud computing system;
the tag receiving module is configured to: receiving a label added by the user for the data of the topology structure diagram, wherein the label is provided with the function of sharing the data of the topology structure diagram to a specified computer system, all other computer systems or not;
the topology structure chart sharing module is used for: when a request for sharing the data of the topology structure diagram is received, the data of the topology structure diagram is shared to a designated computer system, all other computer systems or not according to the label;
the device also comprises a topology structure chart deriving module;
the topology structure diagram deriving module is used for: after the label receiving module receives the label added by the user for the topology structure diagram data, the topology structure diagram data is exported to be a topology structure diagram data file, the exported topology structure diagram data file is downloaded to the local computer system of the user, and meanwhile, the topology structure diagram data file is backed up.
6. The apparatus of claim 5, further comprising: a topology structure chart importing module;
the topology structure chart importing module is used for: importing and parsing a topology structure diagram data file shared by other computer systems, and parsing and presenting topology structure diagram data included in the imported topology structure diagram data file.
7. The apparatus of claim 5, wherein the topology structure map receiving module is configured to: receiving topology structure diagram data edited by a user in real time, and saving the topology structure diagram data edited by the user in a temporary memory of the cloud computing system;
when a command to store the topology structure map data is received, the topology structure map data is stored in a persistent memory of the cloud computing system.
8. The apparatus of claim 7, further comprising a temporary memory cleanup module;
the temporary memory removal module is to: and clearing the topological structure diagram data stored in the permanent memory of the cloud computing system from the temporary memory.
CN201810960061.0A 2018-08-22 2018-08-22 Method and device for sharing topology structure diagram data Active CN109104316B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810960061.0A CN109104316B (en) 2018-08-22 2018-08-22 Method and device for sharing topology structure diagram data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810960061.0A CN109104316B (en) 2018-08-22 2018-08-22 Method and device for sharing topology structure diagram data

Publications (2)

Publication Number Publication Date
CN109104316A CN109104316A (en) 2018-12-28
CN109104316B true CN109104316B (en) 2021-07-02

Family

ID=64850699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810960061.0A Active CN109104316B (en) 2018-08-22 2018-08-22 Method and device for sharing topology structure diagram data

Country Status (1)

Country Link
CN (1) CN109104316B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457507A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Secure sharing method, device and system for cloud computing resources
CN103607469A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Cloud platform for achieving distributed isomerous data sharing and data sharing method thereof
CN107181800A (en) * 2017-05-22 2017-09-19 中国电子科技集团公司第四十研究所 A kind of Web Real-Time Sharing implementation methods of status monitoring media data
CN107291880A (en) * 2017-06-19 2017-10-24 郑州云海信息技术有限公司 The creation method and device of a kind of resource graphics
CN107679223A (en) * 2017-10-20 2018-02-09 郑州云海信息技术有限公司 A kind of books resource sharing system and method based on cloud computing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457507A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Secure sharing method, device and system for cloud computing resources
CN103607469A (en) * 2013-11-28 2014-02-26 东莞中国科学院云计算产业技术创新与育成中心 Cloud platform for achieving distributed isomerous data sharing and data sharing method thereof
CN107181800A (en) * 2017-05-22 2017-09-19 中国电子科技集团公司第四十研究所 A kind of Web Real-Time Sharing implementation methods of status monitoring media data
CN107291880A (en) * 2017-06-19 2017-10-24 郑州云海信息技术有限公司 The creation method and device of a kind of resource graphics
CN107679223A (en) * 2017-10-20 2018-02-09 郑州云海信息技术有限公司 A kind of books resource sharing system and method based on cloud computing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种面向云计算虚拟机资源拓扑结构的任务调度;张亮等;《计算机应用研究》;20151231;第32卷(第12期);参见第3739页 *

Also Published As

Publication number Publication date
CN109104316A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN104965757A (en) Virtual machine live migration method, virtual machine migration management apparatus, and virtual machine live migration system
CN104317749A (en) Information writing method and device
CN104407935A (en) Snapshot rollback method and storage equipment
CN105357042A (en) High-availability cluster system, master node and slave node
CN104899218A (en) Data reading and writing method and data reading and writing apparatus
CN108765142B (en) Electronic device, multi-blockchain integration control method, and computer-readable storage medium
CN105528371A (en) Method, device, and system for executing writing task
CN105610899A (en) Text file parallel uploading method and device
CN109635022B (en) Visual elastic search data acquisition method and device
CN113687779B (en) Data migration method, device, electronic equipment and readable storage medium
CN109104316B (en) Method and device for sharing topology structure diagram data
CN112288841A (en) Method and device for creating rendering frame graph
CN112685417A (en) Database operation method, system, device, server and storage medium
CN105488047B (en) Metadata reading/writing method and device
CN109388716B (en) Relationship graph updating method and device
CN110597821A (en) Method and device for changing database table structure
CN116400914A (en) Method for quickly constructing web application based on data model
CN105278877A (en) Object storage method and device
CN104572655A (en) Data processing method, device and system
CN111880803B (en) Software construction method and device applied to multiple platforms
JP2023553220A (en) Process mining for multi-instance processes
CN111001157B (en) Method and device for generating reference information, storage medium and electronic device
CN107491363A (en) A kind of Snapshot Method and device of the storage volume based on linux kernel
JP2014513342A (en) Conservative garbage collection with simultaneous marks and sweeps for memory management
CN109002343B (en) Method and device for realizing batch creation of virtual machines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant