CN113761419A - Display method and device of topological information, electronic equipment and storage medium - Google Patents

Display method and device of topological information, electronic equipment and storage medium Download PDF

Info

Publication number
CN113761419A
CN113761419A CN202110088859.2A CN202110088859A CN113761419A CN 113761419 A CN113761419 A CN 113761419A CN 202110088859 A CN202110088859 A CN 202110088859A CN 113761419 A CN113761419 A CN 113761419A
Authority
CN
China
Prior art keywords
target
program
information
character string
topology information
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.)
Pending
Application number
CN202110088859.2A
Other languages
Chinese (zh)
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202110088859.2A priority Critical patent/CN113761419A/en
Publication of CN113761419A publication Critical patent/CN113761419A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Library & Information Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a display method and a display device of topological information, electronic equipment and a storage medium, wherein the method comprises the following steps: when detecting that the operation of analyzing the topological information of the target program is triggered, acquiring edited contents edited in each content editing control; generating a target request according to the editing content, sending the target request to a target engine so that the target engine converts a target program into topological information based on the target request, determining a target character string corresponding to the topological information, and feeding back the target character string; receiving a target character string, and generating a topological graph corresponding to a target program and displayed on a display interface based on the target character string; the topological graph comprises operator attribute information in the target program. The technical scheme of the embodiment of the invention solves the problem that the topology information and the topology operator attribute can not be previewed before the target program is operated in the prior art, and achieves the technical effect that the topology information and the operator attribute can be previewed before or during the operation of the target program.

Description

Display method and device of topological information, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for displaying topology information, electronic equipment and a storage medium.
Background
At present, research and development users developed based on Flink can write corresponding program codes, edit parallelism of operators in the corresponding program codes in the program codes, and import the programs into an engine to run after the editing is completed. The operators refer to processing modules in the distributed engine, and the number of the operators is determined based on the running memory of the physical machine in the engine. Parallelism corresponds to slot position, chain policy refers to a means of sharing,
when the present invention is implemented based on the above-described embodiments, the inventors have found that the following problems occur:
in the actual operation process, when it is detected that a certain deviation exists between the operator attribute set in the program code and the actual operation, for example, the operation memory of the physical machine is large, a high parallelism can be set, but the parallelism set in the code is low, and a problem of resource waste exists. At this time, a developer is required to change the operator attribute in the code.
When changing the operator attribute in the code, the currently running program code needs to be paused, and the operator attribute information in the original program code needs to be modified. After the modification of the operator attribute is completed, the program code needs to be compiled and imported into the engine for running. If the modified product meets the actual requirement, the modification is not needed again; if the requirement is still not met, the steps need to be repeatedly executed, and the technical problems of low efficiency and high labor cost exist.
Disclosure of Invention
The invention provides a display method and device of topology information, electronic equipment and a storage medium, which can display the topology information on a display interface, thereby facilitating the technical effect that a user modifies the corresponding topology information.
In a first aspect, an embodiment of the present invention provides a method for displaying topology information, where the method includes:
when detecting that the operation of analyzing the topological information of the target program is triggered, acquiring edited contents edited in each content editing control;
generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determining a target character string corresponding to the topology information, and feeding back the target character string;
receiving the target character string, and generating a topological graph which is displayed on a display interface and corresponds to the target program based on the target character string; the topological graph comprises operator attribute information in the target program.
In a second aspect, an embodiment of the present invention further provides a device for displaying topology information, where the device includes:
the editing content determining module is used for acquiring editing content edited in each content editing control when detecting that the operation of analyzing the topological information of the target program is triggered;
the target character string generating module is used for generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determines a target character string corresponding to the topology information, and feeds back the target character string;
the topological graph generating module is used for receiving the target character string and generating a topological graph which is displayed on a display interface and corresponds to the target program based on the target character string; the topological graph comprises operator attribute information in the target program.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the topology information display method according to any of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for displaying topology information according to any one of the embodiments of the present invention.
The technical scheme of the embodiment of the invention obtains the target content edited in each content editing control when detecting the operation of triggering and analyzing the topological information of the target program through the pre-programmed service logic, generates the target request according to the target content, and sends the target request to the target engine, so that the target engine determines the topological information corresponding to the target program based on the target request, and simultaneously feeds back the topological information, and further, the corresponding topological graph can be reconstructed and displayed according to the received topological information, thereby solving the technical problems that the written program code is imported into the engine and operated after being compiled in the prior art, when the operation state is not good, the corresponding operator attribute needs to be modified in the original code of the program, then the imported engine is compiled, the technical problems of complicated operation and low efficiency exist, and the topological graph can be previewed, and the operator attribute in the topological graph can be modified, and the technical effect of operating the target program based on the modified operator attribute is further achieved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a method for displaying topology information according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a topology provided in accordance with an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for displaying topology information according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of an interface for modifying operator attributes according to a second embodiment of the present invention;
fig. 5 is a schematic flowchart of a method for displaying topology information according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a display device for topology information according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flowchart of a method for displaying topology information according to an embodiment of the present invention, where this embodiment is applicable to a situation where after an object program is compiled and imported into a distributed engine, the topology information of the object program can be determined, and the topology information is fed back to a web end, so that the web end generates a topology map according to the fed-back topology information.
As shown in fig. 1, the method of this embodiment includes:
and S110, acquiring edited contents edited in each content editing control when the operation of triggering and analyzing the topological information of the target program is detected.
After compiling the program written based on the Flink, the compiled program can be imported into the distributed engine, and at this time, topology information corresponding to the Flink program can be generated. The Web side may display a key requesting resolution of topology information. When it is detected that the user triggers the key, a request for resolving topology information sent to the Flink cluster may be generated. If the topology information of the program a needs to be analyzed currently, the program a may be used as a target program. That is, the target program is a program whose topology information needs to be acquired currently. When the topology information of the target program needs to be analyzed, the information associated with the target program can be edited in the display interface of the Web end, so that a corresponding target request can be generated according to the associated information. The associated information may be edited content in a content editing control.
In this embodiment, the content editing control may be a program identification control for editing the target program to be parsed, a control of a start class of the target program, and a start parameter control of the target program.
When the program is imported into the target engine, a program identifier corresponding to the application program, i.e., a program ID, may be generated. Each target program has a program identification corresponding to it. The program startup class can be understood as what programs are executed, and the startup parameters can be parameter information when the application program is started.
Specifically, when the topology information of the target program is analyzed, corresponding parameter information may be written in the target program identifier editing control, the startup type editing control, and the startup parameter editing control of the Web end. And taking the edited parameter information as the edited content. And editing the content edited in the control, so that the target cluster can generate corresponding topological information according to the information carried in the request information.
For example, the user may edit the jar package (package identification of the target program), launch (which programs to execute), launch parameters in the content editing control. The information edited by the user in the content editing control can be used as the editing content.
It should be noted that, when the target cluster generates topology information according to the received request, a program needs to be first imported into the engine, and if the application program is not imported into the engine, the corresponding topology information may not be generated.
Optionally, before the obtaining of the edited content edited in each content editing control when the operation of triggering the analysis of the topology information of the target program is detected, the method includes: and importing the target program into the target engine so as to distribute and generate topology information in the target engine according to the target program when a target request for analyzing the topology information is received. Specifically, the target program may be compiled, and the compiled target program is imported into a target engine, that is, a distributed engine, so that when the target engine receives a target request for analyzing topology information, topology information is generated according to distribution of the target program in the target engine, and then a character string corresponding to the topology information is fed back to the Web side, so that the Web side can reconstruct a corresponding topological graph.
S120, generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determining a target character string corresponding to the topology information, and feeding back the target character string.
The target request is generated according to the content edited in the content editing control by the user, that is, the target request may carry information such as a program identifier, a start class, and a start parameter. The target engine refers to an engine cluster corresponding to the target program after the target program is imported into the distributed engine. The topology information is determined after the target program is imported into the distributed engine, and is information such as an operator for executing the target program and operator parallelism. The target character string is a character string corresponding to the topology information.
Specifically, a corresponding target request may be generated according to the editing content, and the target request is sent to the target engine, so that the target engine processes the target program based on the target request and converts the target program into corresponding topology information. After the conversion of the topology information is completed, a character string corresponding to the topology information can be generated, and the character string is fed back to the Web end, so that the Web end can generate a topology map according to the received character string, and the technical effect of displaying the topology map on a display interface is realized.
Illustratively, the target request is generated according to parameters such as jarId (package identifier), entryClass (boot class), programArgs (boot class) and the like edited by the user in the content editing control, and the target request may carry the identifier. After the target cluster, that is, the Flink cluster, receives the target request, it may generate corresponding streamGraphJson (for a stream program) or PlanJson (for a batch program), jobgraphpan and slotGroupPlan (slot), and feed back the information to the Web end as the corresponding target string json.
S130, receiving the target character string, and generating a topological graph corresponding to the target program on a display interface based on the target character string; the topological graph comprises operator attribute information in the target program.
The target character string is a character string corresponding to the topology information, and the character string may include operator attribute information of the target program, parallelism and slot position information in the attribute information, and the like. The topology is a structure diagram obtained by processing a character string. Correspondingly, the topological graph can comprise operator attribute information edited in the target program. The operator attribute information comprises information such as parallelism and operation.
Specifically, after receiving the target character string, the Web end may perform rendering processing on the target character string to obtain a topological graph corresponding to the target character string, as shown in fig. 2. Referring to fig. 2, the topology map includes information such as slot position and parallelism.
In this embodiment, the generating and displaying a topological graph corresponding to the target program on a display interface based on the target character string includes: and reconstructing the received target character string to obtain a topological graph which is displayed on a display interface and comprises the parallelism and the slot position for running the target program.
Specifically, the target string includes operator attribute information, and the operator attribute information includes parallelism and slot position. After the target character string is received, the target character string can be rebuilt, so that a topological graph which is displayed on a display interface and comprises the parallelism and the slot position of the running target program is rebuilt.
On the exemplary basis of S120, the Web end may draw a structure diagram corresponding to the jobgraphpan and the slotgrouppan according to the fed back target character string, that is, draw a topological diagram corresponding to the target program, thereby achieving a technical effect of pre-topological diagram at the Web end.
The technical scheme of the embodiment of the invention obtains the target content edited in each content editing control when detecting the operation of triggering and analyzing the topological information of the target program through the pre-programmed service logic, generates the target request according to the target content, and sends the target request to the target engine, so that the target engine determines the topological information corresponding to the target program based on the target request, and simultaneously feeds back the topological information, and further, the corresponding topological graph can be reconstructed and displayed according to the received topological information, thereby solving the technical problems that the written program code is imported into the engine and operated after being compiled in the prior art, when the operation state is not good, the corresponding operator attribute needs to be modified in the original code of the program, then the imported engine is compiled, the technical problems of complicated operation and low efficiency exist, and the topological graph can be previewed, and the operator attribute in the topological graph can be modified, and the technical effect of operating the target program based on the modified operator attribute is further achieved.
Example two
Fig. 3 is a flowchart illustrating a topology information display method according to a second embodiment of the present invention. On the basis of the foregoing embodiment, after the user modifies the operator attribute in the topological graph, the modified operator attribute may be fed back to the target engine, so that the target engine updates the topological information based on the fed-back operator attribute. The specific implementation manner of the method can be seen in the technical scheme of the embodiment. The technical terms that are the same as or corresponding to the above embodiments are not repeated herein.
As shown in fig. 3, the method includes:
and S210, when the operation of triggering the analysis of the topological information of the target program is detected, acquiring the edited contents edited in each content editing control.
Specifically, the content that the user can edit in the content editing control in the content editing page on the Web end, and the corresponding content may be a program ID (jar package), a launch class (entryClass) and launch parameters (programArgs) of the target program. The benefits of defining the startup class are: it may be determined which specific program segment in the target program is to be started, i.e. which specific program segments need to have their topology information obtained.
S220, generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determining a target character string corresponding to the topology information, and feeding back the target character string.
Specifically, the target request generated according to the edited content may be: and/jars/: jar/jobplan, wherein jar is a program package, a jar program package identifier and an entryClass boot class. After the target request is generated, the target request can be sent to a target engine, namely a Flink cluster, and after the target engine receives the target request, a target program corresponding to the target request can be processed to generate topology information, and the topology information is converted into a corresponding target character string and fed back to the Web end, so that the Web end can draw a corresponding topological graph according to the received target character string.
S230, receiving the target character string, and generating a topological graph corresponding to the target program on a display interface based on the target character string; the topological graph comprises operator attribute information in the target program.
Specifically, a topological graph corresponding to the target program and displayed on the display interface can be drawn according to the received target character string, wherein operator attribute information of the target program is included in the topology.
S240, when the target control in the topological graph is detected to be triggered, obtaining the attribute information of the update operator in the topological graph, and sending the attribute information of the update operator to a target engine, so that the target engine changes the topological information of the target program to obtain the updated topological information.
Wherein the user can modify operator attributes in the topological graph. And when the operator attribute is modified by the user and the confirmation key is triggered, the updated operator attribute in the topological graph can be obtained. Namely, the operator attribute is updated to be the operator attribute modified by the user in the topological graph. The target control may be an "ok" button. The updated operator attribute may be sent to the target engine, so that the target engine updates the topology information of the target program according to the received operator attribute, and the topology information obtained at this time may be used as the updated topology information, that is, the updated topology information is the topology information determined based on the updated operator attribute.
It should be noted that, at this time, only the updated graph topology information is used, and the original program code of the target program is not updated.
Specifically, the user may modify the operator attribute in the topological graph, and if the updated operator attribute needs to be synchronized into the target cluster, even if the target cluster runs the program based on the updated operator attribute, the "confirmation" of the target control may be triggered after the operator attribute is changed. After the trigger is detected to determine the target control, the operator attribute in the topological graph can be obtained, the obtained operator attribute is used as an updated operator attribute, and meanwhile, the updated operator attribute is sent to the target engine, so that the target engine can adjust topological information according to the updated operator attribute, and then a program is operated based on the adjusted topological information.
Illustratively, when a user triggers a certain operator attribute in fig. 2, a schematic diagram shown in fig. 4 may pop up, the user may modify the operator attribute, such as modifying information of parallelism, operator name, slot position, and the like, and when the user triggers a target control to "change", the updated operator attribute information may be fed back to the target cluster.
In this embodiment, after sending the updated operator attribute to the target cluster, in order to facilitate the user to confirm whether the target cluster adjusts the topology information based on the updated operator attribute, corresponding target data may be generated and fed back to the Web end, so that the user confirms that the Flink cluster updates the topology information.
Optionally, update target data corresponding to the update topology information and fed back by the target engine are received, and a topology map corresponding to the update topology information is reconstructed based on the update target data.
And the updated target data is a character string corresponding to the updated topology information. At this time, the topology map is a topology map generated from the user update target data.
Specifically, after the update operator attribute is sent to the target engine, the target engine may adjust topology information according to the received update operator attribute, and may feed back a character string corresponding to the updated topology information after the topology information adjustment is completed. After the Web end receives the updated character string, the target character string can be rebuilt to obtain an updated topological graph.
In this embodiment, the specific implementation may be: the user can modify the name, parallelism, operator strategy, slot position and other attribute information of the operator in the topological graph, and after the user clicks a 'confirm' key, the modified operator attribute information can be sent to the Flink cluster, namely the target cluster. The target cluster may update the topology structure according to the received attribute information. The target cluster may perform a corresponding task based on the updated topology graph structure.
In this embodiment, in order to adjust the topological structure information based on the updated operator attribute, when the target cluster receives the target request, not only the topological information but also the corresponding operator identifier may be generated.
Optionally, the target request is sent to a target engine, so that the target engine determines a hash value of the target program executed by each operator, and stores the hash value in the target engine and serves as a partial character string in the target character string; correspondingly, sending the updated operator attribute information to a target engine so that the target engine changes topology information of the target program to obtain updated topology information, including: and sending the attribute information of the update operator to the target engine so that the target engine changes the topology information of the target program based on the hash value to obtain the updated topology information.
Wherein, a unique hash value can be generated according to the corresponding position of the operator in the program. On the premise that a user does not modify a corresponding program, a hash value can be generated for each operator and is unchanged, so that the operator attributes in the topology can be modified and then correspond to the Flink clusters one by one, and meanwhile, the modified attribute information can be transmitted to the operators generated by the Flink, and the purpose of modifying the operator attributes is achieved.
Specifically, when the target sends the target request to the target engine, the target engine may determine a hash value of each operator executing the target program, store the hash value in the target engine, and use the hash value as a partial character string in the target character string. Correspondingly, after the user updates the operator attribute and sends the operator attribute to the target engine, the target engine can update the topology information of the target program according to the hash value and obtain the updated topology information.
According to the technical scheme of the embodiment of the invention, through pre-programmed service logic, when the operation of triggering and analyzing the topological information of the target program is detected, the target content edited in each content editing control is obtained, the target request is generated according to the target content and is sent to the target engine, so that the target engine determines the topological information corresponding to the target program based on the target request and feeds back the topological information, further, the Web end can reconstruct and display the corresponding topological graph according to the received topological information, the technical problems that in the prior art, the compiled program code is imported into the engine and runs after being compiled, when the running state is not good, the corresponding operator attribute needs to be modified in the original code of the program, then the imported engine is compiled, the technical problems of complicated operation and low efficiency exist, and the topological graph can be previewed are realized, and the operator attribute in the topological graph can be modified, and the technical effect of operating the target program based on the modified operator attribute is further achieved.
As an alternative embodiment of the foregoing embodiment, fig. 5 is a schematic flowchart of a method for displaying topology information according to a second embodiment of the present invention. After a user needs to determine topology information of a target program, the user can trigger a key on a Web display interface for requesting to analyze the topology, a Web end can send a request for requesting to analyze the topology interface to a target cluster, and a Flink cluster (target cluster) can generate corresponding topology information according to the received request. Meanwhile, the Flink cluster can generate a corresponding target character string according to the topology information and feed the target character string back to the Web end. After receiving the target character string, the Web end can reconstruct a topological graph corresponding to the topological information from the target character string. If the user needs to modify the topology information, the attribute information in the topology map can be modified, and a 'confirm' button can be triggered after the modification is completed. The Web end can send the modified operator attribute to the Flink cluster, the Flink cluster regenerates the topological information according to the operator attribute modified by the user and feeds the topological information back to the Web end, and the Web end can display the modified topological graph after receiving the feedback information. The user modifications may be applied to the corresponding topology nodes using the modified topology information submission effects, and the jobs submitted to run the target program according to the submitted jobs.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a display device of topology information according to a third embodiment of the present invention, where the device includes: an edit content determination module 310, a target string generation module 320, and a topology map generation module 330.
The editing content determining module 310 is configured to, when detecting that an operation of triggering analysis of topology information of a target program is performed, obtain editing content edited in each content editing control; a target character string generating module 320, configured to generate a target request according to the editing content, and send the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determines a target character string corresponding to the topology information, and feeds back the target character string; the topological graph generating module 330 is configured to receive the target character string, and generate a topological graph corresponding to the target program and displayed on a display interface based on the target character string; the topological graph comprises operator attribute information in the target program.
According to the technical scheme of the embodiment of the invention, through pre-programmed service logic, when the operation of triggering and analyzing the topological information of the target program is detected, the target content edited in each content editing control is obtained, the target request is generated according to the target content and is sent to the target engine, so that the target engine determines the topological information corresponding to the target program based on the target request and feeds back the topological information, further, the Web end can reconstruct and display the corresponding topological graph according to the received topological information, the technical problems that in the prior art, the compiled program code is imported into the engine and runs after being compiled, when the running state is not good, the corresponding operator attribute needs to be modified in the original code of the program, then the imported engine is compiled, the technical problems of complicated operation and low efficiency exist, and the topological graph can be previewed are realized, and the operator attribute in the topological graph can be modified, and the technical effect of operating the target program based on the modified operator attribute is further achieved.
On the basis of the above technical solution, the edit content determining module, before being configured to obtain the edit content edited in each content edit control when detecting the operation of triggering the analysis of the topology information of the target program, is further configured to: and importing the target program into the target engine so as to distribute and generate topology information in the target engine according to the target program when a target request for analyzing the topology information is received.
On the basis of the above technical solutions, the editing content includes a program identifier of the target program, a starting class of the target program, and a starting parameter of the target program.
On the basis of the above technical solutions, the target character string generation module is further configured to generate a target request sent to a target engine according to the program identifier, the startup class, and the startup parameter in the edited content, so that the target engine converts the target program into topology information based on the target request, and converts the topology information into the target character string.
On the basis of the above technical solutions, the topological graph generating module is further configured to obtain a topological graph that is displayed on a display interface and includes the parallelism and the slot in which the target running program is run, by performing reconstruction processing on the received target character string.
On the basis of the above technical solutions, the apparatus further includes: and the topology information updating module is used for acquiring the attribute information of the updating operator in the topological graph and sending the attribute information of the updating operator to a target engine when the target control in the topological graph is detected to be triggered, so that the target engine can change the topology information of the target program to obtain the updated topology information.
On the basis of the above technical solutions, the apparatus further includes: and the topological graph display module is used for receiving updated target data which are fed back by a target engine and correspond to the updated topological information, and reconstructing a topological graph corresponding to the updated topological information based on the updated target data.
On the basis of the above technical solutions, the apparatus further includes: a hash value determining module, configured to send the target request to a target engine, so that the target engine determines a hash value of the target program executed by each operator, and stores the hash value in the target engine and serves as a partial character string in the target character string;
correspondingly, the topology map display module is further configured to: and sending the attribute information of the update operator to the target engine so that the target engine changes the topology information of the target program based on the hash value to obtain the updated topology information.
The display device of the topology information provided by the embodiment of the invention can execute the display method of the topology information provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, to implement the display method of topology information provided by the embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which are used to perform a topology information display method when executed by a computer processor.
The method comprises the following steps:
when detecting that the operation of analyzing the topological information of the target program is triggered, acquiring edited contents edited in each content editing control;
generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determining a target character string corresponding to the topology information, and feeding back the target character string;
receiving the target character string, and generating a topological graph which is displayed on a display interface and corresponds to the target program based on the target character string; the topological graph comprises operator attribute information in the target program.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A display method of topology information is characterized by comprising the following steps:
when detecting that the operation of analyzing the topological information of the target program is triggered, acquiring edited contents edited in each content editing control;
generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determining a target character string corresponding to the topology information, and feeding back the target character string;
receiving the target character string, and generating a topological graph which is displayed on a display interface and corresponds to the target program based on the target character string; the topological graph comprises operator attribute information in the target program.
2. The method according to claim 1, wherein before the obtaining of the edited content edited in each content editing control when the operation of triggering the parsing of the topology information of the target program is detected, the method includes:
and importing the target program into the target engine so as to distribute and generate topology information in the target engine according to the target program when a target request for analyzing the topology information is received.
3. The method of claim 1, wherein the edited content comprises a program identifier of the target program, a launch class of the target program, and launch parameters of the target program.
4. The method according to claim 3, wherein the generating a target request according to the edited content and sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, and determines a target character string corresponding to the topology information comprises:
and generating a target request sent to a target engine according to the program identifier, the starting class and the starting parameter in the editing content, so that the target engine converts the target program into topology information based on the target request and converts the topology information into a target character string.
5. The method of claim 1, wherein the target string comprises operator attribute information, the operator attribute information comprises parallelism and slot, and wherein generating the topology map corresponding to the target program displayed on the display interface based on the target string comprises:
and reconstructing the received target character string to obtain a topological graph which is displayed on a display interface and comprises the parallelism and the slot position for running the target program.
6. The method of claim 1, further comprising:
when the target control in the topological graph is detected to be triggered, obtaining the attribute information of the update operator in the topological graph, and sending the attribute information of the update operator to a target engine, so that the target engine changes the topological information of the target program to obtain the updated topological information.
7. The method of claim 6, further comprising:
and receiving updated target data corresponding to the updated topological information fed back by a target engine, and reconstructing a topological graph corresponding to the updated topological information based on the updated target data.
8. The method of claim 6, further comprising:
sending the target request to a target engine so that the target engine determines a hash value of the target program executed by each operator, and storing the hash value into the target engine and serving as a partial character string in the target character string;
the sending the updated operator attribute information to a target engine to enable the target engine to change topology information of the target program to obtain updated topology information includes:
and sending the attribute information of the update operator to the target engine so that the target engine changes the topology information of the target program based on the hash value to obtain the updated topology information.
9. A display device of topology information, comprising:
the editing content determining module is used for acquiring editing content edited in each content editing control when detecting that the operation of analyzing the topological information of the target program is triggered;
the target character string generating module is used for generating a target request according to the editing content, sending the target request to a target engine, so that the target engine converts the target program into topology information based on the target request, determines a target character string corresponding to the topology information, and feeds back the target character string;
the topological graph generating module is used for receiving the target character string and generating a topological graph which is displayed on a display interface and corresponds to the target program based on the target character string; the topological graph comprises operator attribute information in the target program.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of displaying topology information as recited in any of claims 1-8.
11. A storage medium containing computer-executable instructions for performing the method of displaying topology information of any one of claims 1-8 when executed by a computer processor.
CN202110088859.2A 2021-01-22 2021-01-22 Display method and device of topological information, electronic equipment and storage medium Pending CN113761419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110088859.2A CN113761419A (en) 2021-01-22 2021-01-22 Display method and device of topological information, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110088859.2A CN113761419A (en) 2021-01-22 2021-01-22 Display method and device of topological information, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113761419A true CN113761419A (en) 2021-12-07

Family

ID=78786456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110088859.2A Pending CN113761419A (en) 2021-01-22 2021-01-22 Display method and device of topological information, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113761419A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348177A (en) * 2022-08-17 2022-11-15 西安热工研究院有限公司 Industrial control system network topology safety reconstruction method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348177A (en) * 2022-08-17 2022-11-15 西安热工研究院有限公司 Industrial control system network topology safety reconstruction method, device and storage medium
CN115348177B (en) * 2022-08-17 2023-10-20 西安热工研究院有限公司 Industrial control system network topology security reconstruction method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109739604B (en) Page rendering method, device, server and storage medium
EP2972827B1 (en) Collaborative editing
CN107395784B (en) Method and device for importing internet protocol IP pools in batches
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN108984202B (en) Electronic resource sharing method and device and storage medium
CN111026439B (en) Application program compatibility method, device, equipment and computer storage medium
CN112528274B (en) Data processing method, device, electronic equipment and storage medium
CN111679886A (en) Heterogeneous computing resource scheduling method, system, electronic device and storage medium
CN111414350A (en) Service generation method and device
CN112612977A (en) Page display method, system, device, equipment and storage medium
CN114036439A (en) Website building method, device, medium and electronic equipment
CN112769706A (en) Componentized routing method and system
CN115599386A (en) Code generation method, device, equipment and storage medium
CN113761419A (en) Display method and device of topological information, electronic equipment and storage medium
US11176223B1 (en) Page rendering by an intermediary system that uses a truncated library
US20130138782A1 (en) Tiered xml services in a content management system
CN113761412A (en) Application page display method and device, electronic equipment, medium and application system
JP2009031960A (en) Technology for relaying communication between client device and server device
CN113495723B (en) Method, device and storage medium for calling functional component
CN114866533A (en) File uploading method and device and electronic equipment
CN114817803A (en) Page skipping method and device and electronic equipment
CN114201234A (en) File processing method, device, system, equipment and storage medium
US20110179087A1 (en) Method for combining and processing web data using tables and programming-by-demonstration
CN112445790B (en) Report data storage method, device, equipment and medium
CN112769975B (en) Data integration method and device, server and storage medium

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