CN110554819A - Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium - Google Patents

Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium Download PDF

Info

Publication number
CN110554819A
CN110554819A CN201910841096.7A CN201910841096A CN110554819A CN 110554819 A CN110554819 A CN 110554819A CN 201910841096 A CN201910841096 A CN 201910841096A CN 110554819 A CN110554819 A CN 110554819A
Authority
CN
China
Prior art keywords
graph
displaying
physical
physical device
attribute
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
CN201910841096.7A
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.)
Dawning Information Industry Beijing Co Ltd
Original Assignee
Dawning Information Industry Beijing 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 Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201910841096.7A priority Critical patent/CN110554819A/en
Publication of CN110554819A publication Critical patent/CN110554819A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/005Tree description, e.g. octree, quadtree
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09FDISPLAYING; ADVERTISING; SIGNS; LABELS OR NAME-PLATES; SEALS
    • G09F9/00Indicating arrangements for variable information in which the information is built-up on a support by selection or combination of individual elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a display method and device of physical equipment, a terminal and a storage medium. The method comprises the following steps: acquiring the spatial attribute of physical equipment in a machine room; and displaying a physical device graph in a designated area on the display interface according to the spatial attributes, wherein the position of the physical device graph in the designated area corresponds to the position of the physical device in the machine room. According to the spatial attribute of the physical equipment in the machine room, a physical equipment graph can be displayed in the visual interface. Because the position of the physical device graph in the visual interface corresponds to the position of the physical device in the machine room, the physical device graph displayed in the visual interface can restore the layout of the physical device in the machine room, so that the operation and maintenance personnel can clearly know the layout condition of the physical device in the machine room.

Description

physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a display method and apparatus for a physical device, a terminal, and a storage medium.
Background
The computer room provides a relatively independent environment for the arrangement of the physical devices, and the cluster-type physical devices are specially arranged in the relatively independent environment, for example, a server cluster is arranged in the computer room, so that the operation and maintenance management can be facilitated.
For implementing operation and maintenance management, the logical relationship of the physical devices in the computer room may be displayed in the display interface through some technical means, for example, a topological graph of the server cluster in the computer room is displayed on the display interface based on the logical relationship of the server cluster in the computer room. However, the logical relationship of the physical devices is displayed, so that the operation and maintenance personnel cannot know the real arrangement condition of the physical devices in the machine room.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a terminal, and a storage medium for displaying physical devices, so that an operation and maintenance worker can clearly know a layout situation of the physical devices in a machine room.
In a first aspect, an embodiment of the present application provides a display method for a physical device, where the method includes:
acquiring the spatial attribute of physical equipment in a machine room;
And displaying a physical device graph in a designated area on a display interface according to the space attribute, wherein the position of the physical device graph in the designated area corresponds to the position of the physical device in the machine room.
In the embodiment of the application, the physical device graph can be displayed in the visual interface according to the spatial attribute of the physical device in the machine room. Because the position of the physical device graph in the visual interface corresponds to the position of the physical device in the machine room, the physical device graph displayed in the visual interface can restore the layout of the physical device in the machine room, so that the operation and maintenance personnel can clearly know the layout condition of the physical device in the machine room.
With reference to the first aspect, in a first possible implementation manner, the displaying, by a display interface, a physical device graph in a designated area according to the spatial attribute includes:
And sequentially displaying a plurality of physical equipment graphs in the designated area according to the spatial attributes.
In the embodiment of the application, the plurality of physical device graphs are sequentially displayed, so that the phenomenon that an operation and maintenance person waits for a long time and then displays the plurality of physical device graphs at the same time can be avoided, and the use experience of the operation and maintenance person is improved.
with reference to the first aspect, in a second possible implementation manner, the displaying, by the physical device, a physical device graph in a designated area on a display interface according to the spatial attribute includes:
Displaying the cabinet graph in the designated area according to the space attribute, and displaying the electronic equipment graph in the cabinet graph, wherein the position of the cabinet graph in the designated area corresponds to the position of the cabinet in the machine room, and the position of the electronic equipment graph in the cabinet graph corresponds to the position of the electronic equipment in the cabinet.
In the embodiment of the application, the position of the cabinet graph in the designated area corresponds to the position of the cabinet in the machine room, and the position of the electronic equipment graph in the cabinet graph corresponds to the position of the electronic equipment in the cabinet, so that the picture displayed in the designated area can more truly restore the layout condition of the electronic equipment in the machine room.
with reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, displaying the cabinet graph in the designated area and displaying the electronic device graph in the cabinet graph according to the spatial attribute includes:
According to the space attribute, firstly displaying the cabinet graph in the designated area, and then displaying the electronic equipment graph in the cabinet graph; or
And according to the space attribute, firstly displaying the electronic equipment graph in the designated area, and then displaying the cabinet graph on the electronic equipment graph.
In the embodiment of the application, the cabinet graph and the electronic equipment graph are sequentially displayed, so that the problem that operation and maintenance personnel are obtrusive when waiting for a long time and simultaneously displaying the cabinet graph and the electronic equipment graph can be avoided, and the use experience of the operation and maintenance personnel is improved.
With reference to the first aspect, in a fourth possible implementation manner, displaying a physical device graph in a designated area on a display interface according to the spatial attribute includes:
Generating a DOM tree containing the physical equipment graph according to the spatial attribute;
And displaying the physical equipment graph in the designated area by rendering the physical equipment graph in the DOM tree.
in the embodiment of the application, the DOM tree is a convenient and quick graph display technology, so that the DOM tree can be used for displaying the graphs of the physical equipment conveniently and quickly.
With reference to the first aspect, in a fifth possible implementation manner, the method further includes:
Acquiring the state attribute of the physical equipment;
And displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute.
In the embodiment of the application, the icon representing the performance index of the physical equipment is displayed in the designated area through the state attribute of the physical equipment, so that operation and maintenance personnel can intuitively know which performance indexes of the physical equipment need to be monitored based on the icon.
with reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, displaying an icon for representing a performance index of the physical device in the designated area according to the status attribute includes:
And displaying the icon in the physical equipment graph according to the state attribute.
in the embodiment of the application, the icon corresponding to the physical device is displayed in the physical device graph of the physical device, so that operation and maintenance personnel can more intuitively and quickly know which performance indexes of the corresponding physical device need to be monitored based on the icon.
With reference to the fifth possible implementation manner of the first aspect, in a seventh possible implementation manner, after the state attribute of the physical device is obtained, before the displaying the physical device graph and the icon, the method further includes:
Determining a first display effect for representing whether the physical equipment operates or not and determining a second display effect for representing the high and low performance indexes of the physical equipment according to a preset display rule and the state attribute;
correspondingly, according to the spatial attribute, displaying a physical device graph in a designated area on a display interface, including:
displaying the physical device graph in the designated area with the first display effect according to the spatial attribute;
Correspondingly, displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute comprises:
and displaying the icon in the designated area with the second display effect according to the state attribute.
In this embodiment, by displaying the physical device graph with the first display effect and displaying the icon with the second display effect, the operation and maintenance personnel can intuitively and clearly know the on-off state of the electronic device based on the display effect and intuitively and clearly know the performance index of the electronic device.
with reference to the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner, determining, according to a preset display rule and the state attribute, a first display effect used for indicating whether the physical device operates, and determining a second display effect used for indicating that the performance index of the physical device is high or low includes:
Generating a rule tree containing the first display effect and the second display effect according to the display rule and the state attribute;
Correspondingly, displaying the physical device graph in the designated area with the first display effect according to the spatial attribute, and displaying the icon in the designated area with the second display effect according to the status attribute, includes:
Generating a DOM tree containing the physical equipment graph and the icon according to the space attribute and the state attribute;
Fusing the DOM tree and the rule tree into an object tree;
displaying the physical device graphic with the first display effect in the designated area and displaying the icon with the second display effect in the physical device graphic by rendering the physical device graphic with the first display effect and the icon with the second display effect in the object tree.
In the embodiment of the application, the DOM tree is a convenient and fast graphic display technology, and the rule tree is a convenient and fast display effect definition technology, so that the DOM tree and the rule tree can be used for conveniently and fast displaying the graphic and the icon of the physical device with the specified display effect.
with reference to the first aspect, in a ninth possible implementation manner,
If the physical equipment is a blade server, the physical equipment graph is in a strip shape; or
And if the physical equipment is the tower server, the graph of the physical equipment is rectangular.
In this embodiment, the blade server is displayed in a strip shape, and the tower server is displayed in a rectangular shape, so that the displayed physical device graph can be closer to the actual situation.
With reference to the first aspect, in a tenth possible implementation manner, displaying a physical device graph in a designated area on a display interface according to the spatial attribute includes:
Displaying a two-dimensional graph of the physical equipment in the designated area according to the spatial attribute and a preset two-dimensional graph algorithm; or
And displaying the three-dimensional graph of the physical equipment in the designated area according to the spatial attribute and a preset three-dimensional graph algorithm.
In this embodiment, if the two-dimensional graphics algorithm is used to display the physical device graph in two dimensions, the physical device graph can be displayed more quickly. If a three-dimensional graph algorithm is adopted to display the physical equipment graph in three dimensions, the simulation of the machine room can be realized.
In a second aspect, an embodiment of the present application provides a display apparatus of a physical device, where the apparatus includes:
The attribute acquisition module is used for acquiring the spatial attribute of the physical equipment in the machine room;
and the graphic processing module is used for displaying a physical device graphic in a designated area on a display interface according to the space attribute, wherein the position of the physical device graphic in the designated area corresponds to the position of the physical device in the machine room.
With reference to the second aspect, in a first possible implementation manner, the physical device is multiple,
And the graphic processing module is used for sequentially displaying a plurality of physical equipment graphics in the designated area according to the spatial attributes.
With reference to the second aspect, in a second possible implementation manner, the physical equipment includes a cabinet, and electronic equipment installed in the cabinet,
the graphic processing module is configured to display the cabinet graphic in the designated area and the electronic equipment graphic in the cabinet graphic according to the spatial attribute, where a position of the cabinet graphic in the designated area corresponds to a position of the cabinet in the computer room, and a position of the electronic equipment graphic in the cabinet graphic corresponds to a position of the electronic equipment in the cabinet.
with reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, according to the spatial attribute,
The graphic processing module is used for firstly displaying the cabinet graphic in the designated area according to the space attribute and then displaying the electronic equipment graphic in the cabinet graphic; or according to the space attribute, firstly displaying the electronic equipment graph in the designated area, and then displaying the cabinet graph on the electronic equipment graph.
In combination with the second aspect, in a fourth possible implementation manner,
The graph processing module is used for generating a DOM tree containing the physical equipment graph according to the space attribute; and displaying the physical equipment graph in the designated area by rendering the physical equipment graph in the DOM tree.
With reference to the second aspect, in a fifth possible implementation manner,
The attribute acquisition module is further configured to acquire a state attribute of the physical device;
the graphic processing module is further configured to display an icon for representing the performance index of the physical device in the designated area according to the status attribute.
With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner,
And the graphic processing module is used for displaying the icon in the physical equipment graphic according to the state attribute.
With reference to the fifth possible implementation manner of the second aspect, in a seventh possible implementation manner, after the attribute obtaining module obtains the status attribute of the physical device, before the graphics processing module displays the physical device graphics and displays the icon,
the graphic processing module is further configured to determine, according to a preset display rule and the state attribute, a first display effect used for indicating whether the physical device operates, and determine a second display effect used for indicating that the performance index of the physical device is high or low;
Correspondingly, the graphics processing module is configured to display the physical device graphics in the designated area with the first display effect according to the spatial attribute;
correspondingly, the graphics processing module is configured to display the icon in the designated area with the second display effect according to the status attribute.
With reference to the seventh possible implementation manner of the second aspect, in an eighth possible implementation manner,
The graphic processing module is used for generating a rule tree containing the first display effect and the second display effect according to the display rule and the state attribute; and generating a DOM tree containing the physical device graph and the icon according to the space attribute and the state attribute; fusing the DOM tree and the rule tree into an object tree; displaying the physical device graphic with the first display effect in the designated area and displaying the icon with the second display effect in the physical device graphic by rendering the physical device graphic with the first display effect and the icon with the second display effect in the object tree.
With reference to the second aspect, in a ninth possible implementation manner,
if the physical equipment is a blade server, the physical equipment graph is in a strip shape; or
And if the physical equipment is the tower server, the graph of the physical equipment is rectangular.
With reference to the second aspect, in a tenth possible implementation manner,
The graphic processing module is used for displaying a two-dimensional graphic of the physical equipment in the designated area according to the spatial attribute and a preset two-dimensional graphic algorithm; or
and the graphic processing module is used for displaying the three-dimensional graphic of the physical equipment in the designated area according to the spatial attribute and a preset three-dimensional graphic algorithm.
in a third aspect, an embodiment of the present application provides a terminal, including: the display comprises a memory, a display and a processor connected with the memory and the display;
The memory is used for storing programs;
The display is used for providing a display interface;
the processor is configured to call and run the program to execute the display method of the physical device according to the first aspect and any possible implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the storage medium has program codes stored thereon, and when the program codes are executed by the computer, the method for displaying a physical device according to the first aspect and any one of the possible implementation manners of the first aspect is performed.
drawings
in order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
fig. 1 is an application scene diagram of a display method of a physical device according to an embodiment of the present application;
Fig. 2 is a first flowchart of a display method of a physical device according to an embodiment of the present disclosure;
Fig. 3A is a first real scene diagram of a machine room in a display method of a physical device according to an embodiment of the present application;
Fig. 3B is a first schematic diagram of a display interface in a display method of a physical device according to an embodiment of the present application;
Fig. 4A is a second real scene diagram of a machine room in the display method of the physical device according to the embodiment of the present application;
fig. 4B is a second schematic view of a display interface in the display method of the physical device according to the embodiment of the present application;
Fig. 5A is a first space structure diagram of a machine room in a display method of a physical device according to an embodiment of the present application;
Fig. 5B is a first schematic diagram of a designated area in a display method of a physical device according to an embodiment of the present application;
fig. 6A is a second space structure diagram of a machine room in a display method of a physical device according to an embodiment of the present application;
Fig. 6B is a second schematic diagram of a designated area in a display method of a physical device according to an embodiment of the present application;
fig. 7A is a third schematic view of a display interface in a display method of a physical device according to an embodiment of the present application;
Fig. 7B is a fourth schematic view of a display interface in the display method of the physical device according to the embodiment of the present application;
fig. 8A is a fifth schematic view of a display interface in a display method of a physical device according to an embodiment of the present application;
Fig. 8B is a sixth schematic view of a display interface in the display method of the physical device according to the embodiment of the present application;
fig. 9A is a seventh schematic view of a display interface in a display method of a physical device according to an embodiment of the present application;
Fig. 9B is an eighth schematic view of a display interface in the display method for a physical device according to the embodiment of the present application;
Fig. 10 is a second flowchart of a display method of a physical device according to an embodiment of the present application;
Fig. 11 is a ninth schematic view of a display interface in a display method of a physical device according to an embodiment of the present application;
Fig. 12 is a block diagram of a terminal according to an embodiment of the present disclosure;
fig. 13 is a block diagram of a display device of a physical device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1 and 2, an embodiment of the present application provides a display method for a physical device, where the display method for the physical device may be performed by a terminal with a display capability, and the terminal may be a Personal Computer (PC), a tablet computer, a smart phone, a Personal Digital Assistant (PDA), or the like.
Fig. 1 illustrates an application scenario of a display method of a physical device, and in some embodiments, a flow of the display method of the physical device may be as illustrated in fig. 2, and the flow may include:
step S100: and acquiring the space attribute of the physical equipment in the machine room.
Step S200: and displaying a physical device graph in a designated area on the display interface according to the spatial attributes, wherein the position of the physical device graph in the designated area corresponds to the position of the physical device in the machine room.
The flow of step S100 and step S200 of the display method of the physical device will be described in detail with reference to examples.
Step S100: and acquiring the space attribute of the physical equipment in the machine room.
The physical device is installed in the machine room, and the spatial attribute of the physical device in the machine room can be used to describe the spatial structure of the machine room, the physical structure of the physical device itself, and the relative position of the physical device in the machine room.
In some application scenarios, the physical devices in the computer room may include electronic devices disposed in the computer room, wherein the electronic devices may be servers, switches, routers, gateways, access devices, and the like. Correspondingly, the spatial attributes of the physical device may include, but are not limited to: the length, the width and the height of the electronic equipment and the three-dimensional coordinate position of the electronic equipment in the machine room. The length, the width and the height of the electronic equipment can be used for describing the physical structure of the physical equipment; and the three-dimensional coordinate position of the electronic device in the machine room can be used for describing the relative position of the physical device in the machine room.
in other application scenarios, the physical devices in the computer room include not only the electronic devices in the computer room, but also the cabinets for installing the electronic devices in the computer room. Correspondingly, the spatial attributes of the physical device may include, but are not limited to: the length, the width and the height of the cabinet, the three-dimensional coordinate position of the cabinet in the machine room, the length, the width and the height of the electronic equipment and the three-dimensional coordinate position of the electronic equipment on the corresponding cabinet. The length, the width and the height of the cabinet and the length, the width and the height of the electronic equipment can be used for describing the physical structure of the physical equipment; the three-dimensional coordinate position of the cabinet in the machine room and the three-dimensional coordinate position of the electronic equipment on the corresponding cabinet can be used for describing the relative position of the physical equipment in the machine room.
In this embodiment, as a way of acquiring the space attribute of the physical device, the space attribute of the physical device may be stored in a designated storage area of the terminal in advance in the form of a file package, for example, on a hard disk of the terminal. When the physical device graph needs to be displayed, the terminal can find the file package from the designated storage area of the terminal, and load the space attribute of the physical device in the file package into the memory of the terminal, so as to obtain the space attribute of the physical device.
as another way of acquiring the spatial attribute of the physical device, the spatial attribute of the physical device may be stored in a designated storage area of the other device in advance, for example, to another terminal or another server. When the physical device graph needs to be displayed, the terminal can send a space attribute acquisition request to other devices, so that the other devices can pack the space attributes of the physical devices in the specified storage area into a file package, and then send the file package to the terminal. Correspondingly, the terminal also loads the space attribute of the physical device in the file package into the memory of the terminal, so that the space attribute of the physical device is acquired.
It should be noted that the file package containing the spatial attribute of the physical device may be an HTML (Hyper Text Markup Language) file, so as to conveniently display the physical device graph by using the HTML file.
Further, the terminal may execute step S200 by acquiring the spatial attribute of the physical device.
step S200: and displaying a physical device graph in a designated area on the display interface according to the spatial attributes, wherein the position of the physical device graph in the designated area corresponds to the position of the physical device in the machine room.
as an exemplary way to display the physical device graphics, since the file package is an HTML file, the spatial attributes of the physical devices in the file package correspond to the HTML format. Based on the HTML format, the terminal can display the physical device graphic using a DOM (Document Object Model) tree that forms a fit with the HTML format.
the terminal may preset a building rule of the DOM tree, where the building rule may be used to define how to display the physical device graph at a corresponding position in a designated area on a display interface of the terminal (the designated area on the display interface may be used to represent the machine room) according to the spatial attribute of the physical device, so that the position of the physical device graph in the designated area is consistent with the position of the physical device in the machine room. Then, the terminal can construct a DOM tree corresponding to the spatial attribute by analyzing the spatial attribute of the physical device in the memory according to the construction rule of the DOM tree.
Specifically, if the physical device includes an electronic device, the process of the terminal building the DOM tree and displaying the graph of the physical device may be:
and the terminal generates an electronic equipment graph corresponding to the length, the width and the height of the electronic equipment according to the length, the width and the height of the electronic equipment in the space attribute. Generating an electronic device graph corresponding to the length, width and height of the electronic device can be understood as follows: if the electronic equipment is a tower server, the width of the electronic equipment is larger, so that the generated electronic equipment graph can be rectangular; or, if the electronic device is a blade server, the width of the electronic device is relatively small, so that the generated electronic device pattern may be a long strip.
And the terminal also generates the coordinates of the electronic equipment graph in the designated area according to the three-dimensional coordinate position of the electronic equipment in the machine room in the spatial attribute, and the coordinates in the designated area correspond to the three-dimensional coordinate position.
Then, according to the electronic device graph and the coordinates of the electronic device graph, the terminal can construct a DOM tree containing the electronic device graph and the coordinates of the electronic device graph, which are elements in the DOM tree.
and finally, rendering the electronic device graph in the DOM tree by the terminal according to the coordinates of the electronic device graph, so that the electronic device graph can be displayed at the corresponding position of the specified area, and the position of the electronic device graph in the specified area corresponds to the position of the electronic device in the machine room.
When displaying the physical device graph, the terminal may display a two-dimensional image of the physical device or a three-dimensional image of the physical device according to actual conditions. For example, when the number of the physical devices in the machine room is large, for example, the number of the physical devices is hundreds or thousands, the terminal may display the two-dimensional graph of the physical device in the designated area according to the spatial attribute of the physical device and a preset two-dimensional graph algorithm, for example, a recursive filling algorithm, a seed filling method, a scan line algorithm, or the like; or, when the number of the physical devices in the computer room is relatively small, for example, the number of the physical devices is tens or hundreds, the terminal may display the three-dimensional graphics of the physical devices in the designated area according to the spatial attributes of the physical devices and a preset three-dimensional graphics algorithm, for example, Unity3D algorithm, OpenGLES algorithm, DirectX algorithm, or the like, so as to display the real situation in the computer room through three-dimensional graphics simulation.
The following is explained by a first example.
assume that the real situation in the machine room is as shown in fig. 3A. In FIG. 3A, the physical equipment includes a tower server F1 (tower server F1 is represented by the elongated cube in FIG. 4A) and a blade server F2 (blade server F2 is represented by the sheet-shaped cube in FIG. 4A). The tower servers F1 and the blade servers F2 are arranged on the floor S of the machine room in a stacking manner to form two stacks of servers, the left stack of servers D1 is the tower server F1, and the right stack of servers D2 comprises the tower server F1 and the blade server F2.
The terminal may display a screen in a designated area of the display interface as shown in fig. 3B by processing the spatial attributes of the tower server F1 and the blade server F2 in the computer room. Fig. 3B shows a display interface J including two tiles in a designated area Q, a left tile K1 representing a left bank of servers D1 in fig. 3A, and a right tile K2 representing a right bank of servers D2 in fig. 3A. Each rectangle in the left tile K1 represents a tower server graph F11; each rectangle in the right tile K2 also represents a tower server graphic F11, and each bar represents a blade server graphic F22. Obviously, the planar position of each tower server graph F11 on the designated area Q in fig. 3B corresponds to the three-dimensional position of the tower server F1 in the computer room of fig. 3A; the planar position of each blade server graphic F22 on the designated area Q in fig. 3B corresponds to the three-dimensional position of that blade server F1 in the room of fig. 3A.
In this embodiment, if the physical device includes an electronic device and a cabinet, the process of the terminal building the DOM tree and displaying the graph of the physical device may be as follows:
The terminal generates an electronic equipment graph corresponding to the length, the width and the height of the electronic equipment according to the length, the width and the height of the electronic equipment in the space attribute; and generating an electronic equipment graph corresponding to the length, the width and the height of the cabinet according to the length, the width and the height of the cabinet in the space attribute.
the terminal also correspondingly generates coordinates of the cabinet graph in the designated area according to the three-dimensional coordinate position of the cabinet in the machine room in the spatial attribute; and correspondingly generating the coordinates of the electronic equipment graph on the corresponding cabinet graph according to the three-dimensional coordinate position of the electronic equipment on the corresponding cabinet in the space attribute.
the terminal can construct a DOM tree containing the electronic equipment graph, the cabinet graph, the coordinates of the cabinet graph and the coordinates of the electronic equipment graph according to the electronic equipment graph, the cabinet graph, the coordinates of the cabinet graph and the coordinates of the electronic equipment graph, the cabinet graph, the coordinates of the cabinet graph and the coordinates of the electronic equipment graph are used as elements in the DOM tree.
and finally, the terminal renders the electronic equipment graph and the cabinet graph in the DOM tree according to the coordinates of the electronic equipment graph and the coordinates of the cabinet graph, so that the cabinet graph can be displayed at the corresponding position of the specified area, and the electronic equipment graph can be displayed at the corresponding position in the cabinet graph, so that the position of the electronic equipment graph in the cabinet graph corresponds to the position of the electronic equipment in the cabinet, and the position of the cabinet graph in the specified area corresponds to the position of the cabinet in the machine room.
this is explained below by a second example.
assume that the real situation in the machine room is as shown in fig. 4A. In FIG. 4A, the physical equipment includes cabinet G1 (cabinet G1 is represented by the thicker solid line in FIG. 4A), cabinet G2 (cabinet G1 is represented by the thicker solid line in FIG. 4A), tower server F1 (tower server F1 is represented by the elongated cube in FIG. 4A), and blade server F2 (blade server F2 is represented by the tile-shaped cube in FIG. 4A). Each tower server F1 is orderly installed in the cabinet G1 and the cabinet G2, the blade server F2 is intensively installed in the corresponding cabinet in the cabinet G2, and the cabinet G1 and the cabinet G2 are arranged on the ground S of the machine room.
The terminal may display a screen in a designated area of the display interface as shown in fig. 4B by processing the spatial attributes of the cabinet G1, the cabinet G2, the tower server F1, and the blade server F2 in the room. Within a designated area Q in the display interface J shown in FIG. 4B, a cabinet graphic G11 (cabinet graphic G11 is represented by the thicker solid line in FIG. 4B) is located to the left of the designated area Q, and a cabinet graphic G22 (cabinet graphic G22 is represented by the thicker solid line in FIG. 4B) is located to the right of the designated area Q; it is apparent that the planar position of cabinet graph G11 on designated area Q in fig. 4B corresponds to the perspective position of cabinet G1 in the room of fig. 4A, and the planar position of cabinet graph G22 on designated area Q in fig. 4B corresponds to the perspective position of cabinet G2 in the room of fig. 4A. In FIG. 4B, each rectangle corresponds to a tower server graph F11, and each bar corresponds to a blade server graph F22; notably, the planar position of each tower server graph F11 in the cabinet graph G11 on the cabinet graph G11 in fig. 4B corresponds to the three-dimensional position of that tower server F1 in the cabinet G1 of fig. 4A; the planar position of each tower server graph F11 in the cabinet graph G22 on the cabinet graph G22 in FIG. 4B also corresponds to the three-dimensional position of that tower server F1 in the cabinet G2 of FIG. 4A; and the planar position of each blade server F22 on the rack pattern G22 in FIG. 4B corresponds to the perspective position of each blade server F2 in the rack G2 of FIG. 4A.
it should be noted that, in some cases, the designated area in the display interface may be an area defined in the display interface in advance by the terminal.
In other cases, the designated area may be an area dynamically generated by the terminal in the display interface according to the spatial attribute of the physical device, the area having a shape consistent with the spatial shape of the machine room; for example, as shown in fig. 5A, the spatial shape of the machine room is a three-dimensional L-shape, and the designated area generated in the display interface J is an L-shaped planar area shown in fig. 5B; for another example, as shown in fig. 6A, the spatial shape of the machine room is a three-dimensional O-shape, and the designated area generated on the display interface J is an O-shaped planar area shown in fig. 6B.
In this embodiment, as an exemplary manner of dynamically generating the designated area, the space attribute of the physical device acquired by the terminal may further include: the length, the width and the height of the machine room can be used for describing the space shape of the machine room. Correspondingly, the terminal generates a specified area corresponding to the length, the width and the height of the machine room according to the length, the width and the height of the machine room in the space attribute, and the specified area is used as an element in the DOM tree to construct the DOM tree. In this way, by rendering the elements in the DOM tree, the terminal can display the designated area in the display interface, which is consistent with the spatial shape of the machine room, and correspondingly display the physical device graph in the designated area.
In this embodiment, since the number of the physical devices in the computer room is generally large, the terminal needs to process a large amount of data to be able to display the physical device graphs corresponding to the physical devices. And the processed data volume is too large, so that the terminal needs a long time to display the physical device graph. In other words, after the operation and maintenance personnel initiate the control of the graphic display of the physical device, the operation and maintenance personnel can see the graphic of the physical device on the display interface only after waiting for a long time, which results in poor operation experience of the operation and maintenance personnel.
in order to improve the operation experience of the operation and maintenance personnel, the embodiment can adopt a dynamic display technology to realize the purpose of processing data and displaying the physical equipment graph, so that the display of the physical equipment graph is a dynamic continuous process.
Specifically, a JS (JavaScript, interpreted scripting language) file including a display sequence of a plurality of physical device graphics may be preset in the terminal, or a JS file preset in another device may be obtained from another device.
and the terminal can load the JS file after the DOM tree is built, wherein the purpose of loading the JS file after the DOM tree is built is to avoid that the JS file changes the structure in the DOM tree. In this way, in the process of displaying the plurality of physical device graphs by rendering the DOM tree, the terminal may sequentially display the plurality of physical device graphs in the designated area according to the display sequence defined in the JS file, or display the cabinet graph in the designated area first and then display the electronic device graph in the cabinet graph, or display the electronic device graph in the designated area first and then display the cabinet graph on the electronic device graph.
The description of the foregoing second example is continued.
if the display order is to sequentially display a plurality of physical device graphs, as shown in fig. 7A, the terminal may first display the cabinet graph G11 in the designated area Q in the display interface J and display all tower server graphs F11 in the cabinet graph G11. Then, as shown in fig. 7B, the terminal displays the cabinet graph G22 in the designated area Q in the display interface J, and displays all tower server graphs F11 and blade server graphs F22 in the cabinet graph G22.
If the display sequence is to display the cabinet graph first and then display the electronic device graph in the cabinet graph, as shown in fig. 8A, the terminal may display the cabinet graph G11 and the cabinet graph G22 in the designated area Q in the display interface J first. Then, as shown in fig. 8B, the terminal displays all tower server graphs F11 in the cabinet graph G22, and displays all tower server graphs F11 and blade server graphs F22 in the cabinet graph G22.
If the display sequence is to display the electronic device graph first and then display the cabinet graph on the cabinet graph, as shown in fig. 9A, the terminal may first display all the tower server graphs F11 and the blade server graphs F22 in the designated area Q in the display interface J. Then, as shown in fig. 9B, the terminal displays a cabinet graph G11 and a cabinet graph G22 on all of the tower server graph F11 and the blade server graph F22.
through the display mode, from the perspective of operation and maintenance personnel, the terminal displays the cabinet graph and/or the electronic equipment graph in a continuous process, so that the operation and maintenance personnel are prevented from waiting too long, and the operation experience is improved.
In this embodiment, in addition to the flows provided by the foregoing embodiments, in other embodiments, the flow of the display method of the physical device may further include a flow shown in fig. 10, where the flow may include:
Step S101: and acquiring the state attribute of the physical equipment.
Step S201: and displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute.
In other words, the terminal can further display the performance index of the physical device on the basis of displaying the physical device graph.
It should be noted that the physical device may include a cabinet in addition to the electronic device. Because the cabinet is a mechanical structure, it has no operation capability. Therefore, the status attribute of the physical device described in this embodiment refers to the status attribute of the electronic device.
The flow of step S101 and step S201 of the display method of the physical device will be described in detail with reference to an example.
step S101: and acquiring the state attribute of the physical equipment.
when the electronic equipment in the computer room runs, the running of the electronic equipment can be described through some performance indexes. These performance indicators may be collectively referred to as status attributes of the electronic device, including but not limited to: whether the electronic device is turned on or off, a Central Processing Unit (CPU) utilization rate of the electronic device, a memory utilization rate of the electronic device, a CPU temperature of the electronic device, and a partial index or a whole index of a motherboard temperature of the electronic device.
in this embodiment, as a way of acquiring the status attribute of the electronic device, the status attribute of the electronic device may be stored in a designated storage area of the terminal in advance in the form of a file package, for example, on a hard disk of the terminal. When the performance indexes are required to be displayed in the designated area of the display interface by icons, the terminal can find the file package from the designated storage area of the terminal, and load the state attribute of the electronic equipment in the file package into the memory of the terminal, so as to obtain the state attribute of the electronic equipment.
As another way of acquiring the state attribute of the electronic device, the terminal may establish communication with the electronic device in the computer room, and when the performance indicators need to be displayed as icons in the designated area of the display interface, the terminal may send a request for acquiring the state attribute to the electronic device, so that the electronic device packages the state attribute of itself in the designated storage area into a file package, and then sends the file package to the terminal. Correspondingly, the terminal also loads the state attribute of the electronic equipment in the file package into the memory of the terminal, so that the state attribute of the electronic equipment is acquired.
It should be noted that the terminal may execute the process of acquiring the spatial attribute of the physical device and the process of acquiring the status attribute of the electronic device asynchronously or synchronously according to different requirements in time sequence.
For example, if the application scenario does not require the execution efficiency, the process of acquiring the spatial attribute of the physical device and the process of acquiring the status attribute of the electronic device may be executed asynchronously, that is, the process of acquiring the spatial attribute of the physical device and the process of acquiring the status attribute of the electronic device by the terminal may be executed independently in sequence. In other words, the terminal may first obtain the file package containing the status attribute of the electronic device, and then obtain the file package containing the status attribute of the electronic device.
for another example, if the application scenario requires relatively high execution efficiency, the process of acquiring the spatial attribute of the physical device and the process of acquiring the status attribute of the electronic device may be executed synchronously, that is, the terminal may acquire the spatial attribute of the physical device and the status attribute of the electronic device synchronously. In this case, the spatial attribute of the physical device and the status attribute of the electronic device may be stored in the same file package, thereby achieving synchronous acquisition of the spatial attribute of the physical device and the status attribute of the electronic device.
In addition, it should be noted that the file package containing the status attribute of the electronic device may also be an HTML file, so as to conveniently display an icon representing the performance index.
further, the terminal may execute step S201 after acquiring the state attribute of the electronic device.
Step S201: and displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute.
As an exemplary way of displaying the icon representing the performance index, since the package of files is also an HTML file, the status attribute of the electronic device in the package of files is also corresponding to the HTML format. Based on the HTML format, the terminal may also display the icon representing the performance indicator using a DOM tree that forms a fit with the HTML format. In addition, the preset construction rule of the terminal can be used for defining how to display the icon representing the performance index in the designated area on the display interface of the terminal according to the state attribute of the electronic equipment. Then, the terminal may construct a DOM tree corresponding to the state attribute of the electronic device by analyzing the performance attribute of the electronic device in the memory according to the preset construction rule, where the DOM tree may include an icon for representing a performance index of the electronic device and coordinates of the icon in the designated area.
In this embodiment, the terminal may also asynchronously or synchronously execute a process of constructing a DOM tree corresponding to the spatial attribute of the physical device and a process of constructing a DOM tree corresponding to the state attribute of the electronic device according to different requirements in time sequence.
For example, if the performance of the terminal is relatively general, the process of building the DOM tree corresponding to the spatial attribute of the physical device and the process of building the DOM tree corresponding to the state attribute of the electronic device may be performed asynchronously. Namely, the DOM trees corresponding to the space attributes of the physical equipment are constructed, and the DOM trees corresponding to the state attributes of the electronic equipment can be independently executed in sequence. In other words, the terminal can construct two DOM trees, one DOM tree is a DOM tree corresponding to the spatial attribute of the physical device, and the DOM tree contains the physical device graph and the coordinates of the physical device; the other DOM tree is a DOM tree corresponding to the state attribute of the electronic device, and contains an icon for representing the performance index of the electronic device and the coordinates of the icon.
For another example, if the terminal has a strong performance, the process of building a DOM tree corresponding to the spatial attribute of the physical device and the process of building a DOM tree corresponding to the state attribute of the electronic device may be performed synchronously, that is, the terminal may build a DOM tree that includes both the physical device graph and the coordinates of the physical device, and also includes an icon for indicating the performance index of the electronic device and the coordinates of the icon according to the spatial attribute of the physical device and the state attribute of the electronic device.
Further, if there are two DOM trees, the terminal may render a DOM tree corresponding to the spatial attribute of the physical device and a DOM tree corresponding to the state attribute of the electronic device, respectively, so as to sequentially display a physical device graphic and an icon representing a performance index in a designated area of the display interface. If the DOM tree is one, the terminal can render the DOM tree corresponding to the spatial attribute of the physical equipment and the state attribute of the electronic equipment, so that the graph of the physical equipment and the icon representing the performance index of the electronic equipment are synchronously displayed in the specified area.
it should be noted that, in order to enable the operation and maintenance staff to clearly know what performance indicators each electronic device has based on the display screen so as to perform important monitoring on the performance indicators, an icon of the performance indicator of each electronic device may be displayed near the electronic device graphic. For example, by setting the coordinates of the icons, the icon of the performance index of each electronic device may be displayed at the edge of the electronic device graphic, or the icon of the performance index of each electronic device may be displayed in the electronic device graphic.
The foregoing second example is explained with reference to fig. 4A and 4B.
Assume that the state attributes of the tower server F1 include: CPU temperature, CPU utilization, and memory utilization. The state attributes of the blade server F2 include: CPU temperature, memory utilization and motherboard temperature.
the terminal may display a screen in a designated area of the display interface as shown in fig. 11 by processing the status attributes of the tower server F1 and the blade server F2. In fig. 11, a circular icon in each tower server graph F11 is used to indicate the CPU temperature of the tower server F1, a triangular icon in each tower server graph F11 is used to indicate the CPU utilization of the tower server F1, and a rectangular icon in each tower server graph F11 is used to indicate the memory utilization of the tower server graph F1. The circular icon in each blade server graph F22 is used to indicate the CPU temperature of the blade server F2, the rectangular icon in each blade server graph F22 is used to indicate the memory utilization of the blade server F2, and the star icon in each blade server graph F22 is used to indicate the motherboard temperature of the blade server F2.
obviously, based on the icon shown in fig. 11, the operation and maintenance personnel can quickly and clearly know which performance indexes each electronic device has, so as to monitor the indexes in the operation and maintenance management.
in this embodiment, in order to improve the operation experience of the operation and maintenance staff, a dynamic display technology may also be used to display the physical device graph and the icon representing the performance index while processing data, so that the display of the physical device graph and the icon representing the performance index is a dynamic continuous process.
specifically, the terminal may acquire a JS file including a display order of a plurality of physical device graphics and a plurality of icons indicating performance indicators. After the DOM tree is built, the JS file can be loaded by the terminal. Therefore, in the process of rendering the DOM tree to display the plurality of physical equipment graphs and the plurality of icons representing the performance indexes, the cabinet graph, the electronic equipment graph and the icons representing the performance indexes of the electronic equipment are sequentially displayed in the designated area according to the display sequence defined in the JS file.
In this embodiment, the terminal may display, through the icon, the performance index of the electronic device, and the graph of the electronic device and the icon representing the performance index with a certain display effect, so as to display the device state of the electronic device and the high or low performance index of the electronic device through the display effect.
Specifically, when the terminal requests the state attribute of the electronic device from the electronic device, the terminal may obtain the performance index parameter and carry the performance index parameter in the sent request. Therefore, the electronic equipment can carry the latest collected performance index parameters in the state attribute and return the latest collected performance index parameters to the terminal, so that the terminal can acquire the performance indexes of the electronic equipment and specific parameters of the performance indexes according to the returned state attribute.
Of course, if the electronic device is in the power-off state, the electronic device cannot acquire the latest performance index parameter of the electronic device, and cannot return the latest performance index parameter of the electronic device to the terminal. Therefore, the terminal may correspondingly determine the device status of the electronic device by whether the electronic device returns the latest performance index parameter, for example, the electronic device may determine that the device status of the electronic device that returns the latest performance index parameter is in an on state, and determine that the device status of the electronic device that does not return the latest performance index parameter is in an off state.
it is to be understood that the manner in which the terminal obtains the latest performance index parameter of the electronic device is not limited to the above-mentioned manner, for example, the terminal may send the performance index parameter obtaining request to the electronic device in the computer room separately. Correspondingly, the electronic equipment can acquire the latest performance index parameters according to the request and return the latest performance index parameters to the terminal.
In this embodiment, if the terminal needs to obtain a display rule for specifying what display effect the level of the performance index corresponds to in order to display the device status and the level of the performance index of the electronic device with the corresponding display effect, and the terminal processes the status attribute including the electronic device through the display rule, it is possible to determine a first display effect indicating whether the electronic device is operating or not, and determine a second display effect indicating the level of the performance index of the electronic device. For example, if the device status of the electronic device is the power-off status, determining the first display effect according to the display rule may be to display the electronic device graphic in the first color, or may also be to flash the electronic device graphic in the first color. For another example, if the device status of the electronic device is the power-on status, determining the first display effect according to the display rule may be to display the electronic device graphic in the second color, or may also be to flash the electronic device graphic in the second color. For another example, if the memory utilization rate of the electronic device exceeds the normal utilization rate, determining the second display effect according to the display rule may be that the icon representing the memory utilization rate of the electronic device is displayed in a third color, or may be that the icon representing the memory utilization rate of the electronic device is flashed in the third color. For example, if the memory utilization rate of the electronic device does not exceed the normal utilization rate, determining, according to the display rule, that the second display effect is to display the icon representing the memory utilization rate of the electronic device in a fourth color, or to flash the icon representing the memory utilization rate of the electronic device in the fourth color. Wherein the first color, the second color, the third color and the fourth color are different from each other.
It is to be understood that the difference in display effect is not limited to the difference in color, and may be, for example, a difference in display shape of the electronic device graphic or a difference in filling pattern in the electronic device graphic.
illustratively, as one way of obtaining the display rule, the display rule may be stored in advance in a designated storage area of the terminal, for example, on a hard disk of the terminal, in the form of a file package. When the display effect needs to be determined, the terminal can find the file package from the designated storage area of the terminal, and load the display rule in the file package into the memory of the terminal, so as to obtain the preset display rule.
illustratively, as another way of acquiring the display rule, the display rule may be stored in a designated storage area of the other device in advance. When the display effect needs to be determined, the terminal can send a display rule acquisition request to other equipment, so that the other equipment packs the display rules in the specified storage area into a file packet, and then sends the file packet to the terminal. Correspondingly, the terminal also loads the display rule in the file package into the memory of the terminal, and the preset display rule is also acquired.
in this embodiment, in order to display the electronic device graphic and the icon representing the performance index with a certain display effect, it is necessary to combine the first display effect with the electronic device graphic and combine the second display effect with the icon representing the performance index.
optionally, the terminal determines that the first display effect and the second display effect may be: and processing the state attribute of the electronic equipment according to the display rule to generate a rule tree containing the first display effect and the second display effect. Since the rule tree can be fused with the DOM tree, it is possible to combine the first display effect with the electronic device graphic and the second display effect with the icon representing the performance index.
further, the terminal can fuse the DOM tree and the rule tree into an object tree, so that the electronic device graph in the object tree forms a mapping relation with the first display effect, and the icon representing the performance index forms a mapping relation with the second display effect. Therefore, the terminal can display the electronic equipment graph with the first display effect in the designated area by rendering the electronic equipment graph which needs to be displayed with the first display effect in the object tree and display the icon representing the performance index with the second display effect in the physical equipment graph, so that operation and maintenance personnel can clearly know which electronic equipment works, which electronic equipment is not started, which performance index is normal and which performance index is abnormal based on the display effects of each electronic equipment graph and the icon representing the performance index in the designated area.
It can be understood that, on the basis of displaying the electronic device graph with the first display effect and displaying the icon representing the performance index with the second display effect in the physical device graph, in order to improve the operation experience of the operation and maintenance personnel, a dynamic display technology may also be adopted to realize the display of the cabinet graph while processing data, the display of the electronic device graph with the first display effect and the display of the icon representing the performance index with the second display effect.
Specifically, the terminal may acquire a JS file including a display order of a plurality of physical device graphics and a plurality of icons indicating performance indicators. After the DOM tree and the rule tree are built, the terminal can also load the JS file, wherein the JS file is loaded only after the DOM tree and the rule tree are built, so that the purpose of avoiding the JS file from changing the structures in the DOM tree and the rule tree is achieved. And displaying the cabinet graph, the electronic equipment graph with the first display effect and the icon representing the performance index in the designated area in sequence according to the display sequence defined in the JS file in the process of displaying the plurality of physical equipment graphs and the plurality of icons representing the performance indexes by the rendering object tree.
referring to fig. 12, embodiments of the present application also provide a terminal 10 based on the same inventive concept, and the terminal 10 may include a display 11, one or more processors 12 for executing program instructions, a bus 13, and a memory 14 in different forms, such as a disk, a ROM, or a RAM, or any combination thereof. Illustratively, the computer platform may also include program instructions stored in ROM, RAM, or other types of non-transitory storage media, or any combination thereof.
the display 11 is used for providing a display interface;
The memory 14 is used for storing programs, and the processor 12 is used for calling and executing the programs in the memory 14 to perform the aforementioned display method of the physical device.
Referring to fig. 13, based on the same inventive concept, an embodiment of the present application further provides a display apparatus 100 of a physical device, where the display apparatus 100 of the physical device may be applied to a terminal, and the display apparatus 100 of the physical device may include:
The attribute obtaining module 110 is configured to obtain a space attribute of the physical device in the computer room.
and the graphics processing module 120 is configured to display a physical device graphic in a designated area on a display interface according to the spatial attribute, where a position of the physical device graphic in the designated area corresponds to a position of the physical device in the computer room.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Some embodiments of the present application further provide a computer-readable storage medium of a non-volatile program code executable by a computer, where the storage medium can be a general-purpose storage medium, such as a removable disk or a hard disk, and the computer-readable storage medium has a program code stored thereon, and when the program code is executed by the computer, the steps of the display method of the physical device of any of the above embodiments are performed.
The program code product of the display method of the physical device provided in the embodiment of the present application includes a computer-readable storage medium storing the program code, and instructions included in the program code may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
in summary, the present application provides a display method and apparatus for a physical device, a terminal, and a storage medium. According to the spatial attribute of the physical equipment in the machine room, a physical equipment graph can be displayed in the visual interface. Because the position of the physical device graph in the visual interface corresponds to the position of the physical device in the machine room, the physical device graph displayed in the visual interface can restore the layout of the physical device in the machine room, so that the operation and maintenance personnel can clearly know the layout condition of the physical device in the machine room.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method of displaying a physical device, the method comprising:
Acquiring the spatial attribute of physical equipment in a machine room;
and displaying a physical device graph in a designated area on a display interface according to the space attribute, wherein the position of the physical device graph in the designated area corresponds to the position of the physical device in the machine room.
2. The method for displaying the physical device according to claim 1, wherein the number of the physical devices is plural, and the displaying the physical device graph in the designated area on the display interface according to the spatial attribute comprises:
And sequentially displaying a plurality of physical equipment graphs in the designated area according to the spatial attributes.
3. The method for displaying the physical equipment according to claim 1, wherein the physical equipment comprises a cabinet and electronic equipment installed in the cabinet, and the displaying of the physical equipment graph in the designated area on the display interface according to the spatial attribute comprises:
Displaying the cabinet graph in the designated area according to the space attribute, and displaying the electronic equipment graph in the cabinet graph, wherein the position of the cabinet graph in the designated area corresponds to the position of the cabinet in the machine room, and the position of the electronic equipment graph in the cabinet graph corresponds to the position of the electronic equipment in the cabinet.
4. the method for displaying the physical device according to claim 3, wherein displaying the cabinet graph in the designated area and displaying the electronic device graph in the cabinet graph according to the spatial attribute comprises:
according to the space attribute, firstly displaying the cabinet graph in the designated area, and then displaying the electronic equipment graph in the cabinet graph; or
And according to the space attribute, firstly displaying the electronic equipment graph in the designated area, and then displaying the cabinet graph on the electronic equipment graph.
5. The method for displaying the physical device according to claim 1, wherein displaying the physical device graph in a designated area on a display interface according to the spatial attribute comprises:
Generating a DOM tree containing the physical equipment graph according to the spatial attribute;
And displaying the physical equipment graph in the designated area by rendering the physical equipment graph in the DOM tree.
6. The method of displaying of a physical device of claim 1, the method further comprising:
acquiring the state attribute of the physical equipment;
and displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute.
7. the method for displaying physical devices according to claim 6, wherein after the obtaining of the status attribute of the physical device, before displaying the physical device graphic and displaying the icon, the method further comprises:
Determining a first display effect for representing whether the physical equipment operates or not and determining a second display effect for representing the high and low performance indexes of the physical equipment according to a preset display rule and the state attribute;
Correspondingly, according to the spatial attribute, displaying a physical device graph in a designated area on a display interface, including:
Displaying the physical device graph in the designated area with the first display effect according to the spatial attribute;
Correspondingly, displaying an icon for representing the performance index of the physical equipment in the designated area according to the state attribute comprises:
and displaying the icon in the designated area with the second display effect according to the state attribute.
8. the method for displaying the physical device according to claim 7, wherein determining a first display effect for indicating whether the physical device is operating and a second display effect for indicating that a performance index of the physical device is high or low according to a preset display rule and the status attribute comprises:
Generating a rule tree containing the first display effect and the second display effect according to the display rule and the state attribute;
Correspondingly, displaying the physical device graph in the designated area with the first display effect according to the spatial attribute, and displaying the icon in the designated area with the second display effect according to the status attribute, includes:
generating a DOM tree containing the physical equipment graph and the icon according to the space attribute and the state attribute;
fusing the DOM tree and the rule tree into an object tree;
Displaying the physical device graphic with the first display effect in the designated area and displaying the icon with the second display effect in the physical device graphic by rendering the physical device graphic with the first display effect and the icon with the second display effect in the object tree.
9. A display apparatus of a physical device, the apparatus comprising:
The attribute acquisition module is used for acquiring the spatial attribute of the physical equipment in the machine room;
And the graphic processing module is used for displaying a physical device graphic in a designated area on a display interface according to the space attribute, wherein the position of the physical device graphic in the designated area corresponds to the position of the physical device in the machine room.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a program code which, when executed by the computer, executes a display method of a physical device according to any one of claims 1 to 8.
CN201910841096.7A 2019-09-05 2019-09-05 Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium Pending CN110554819A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910841096.7A CN110554819A (en) 2019-09-05 2019-09-05 Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910841096.7A CN110554819A (en) 2019-09-05 2019-09-05 Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110554819A true CN110554819A (en) 2019-12-10

Family

ID=68739286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910841096.7A Pending CN110554819A (en) 2019-09-05 2019-09-05 Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110554819A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111860728A (en) * 2020-07-31 2020-10-30 中国工商银行股份有限公司 U bit management method and device for cabinet and cabinet management system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102567570A (en) * 2011-12-02 2012-07-11 曙光信息产业(北京)有限公司 Method for plane display of configurable machine room layouts
US20130138988A1 (en) * 2011-11-28 2013-05-30 Inventec Corporation Server rack system
CN105117835A (en) * 2015-08-18 2015-12-02 电子科技大学 A power grid information machine room three-dimensional visualized management platform based on a B/S framework
CN106991151A (en) * 2017-03-28 2017-07-28 上海烟草集团有限责任公司 A kind of graphic method and device managed for calculator room equipment
JP2018024502A (en) * 2016-08-09 2018-02-15 株式会社日立ビルシステム Elevator machine room drawing generation device, elevator machine room modeling data generation device, elevator machine room drawing generation method, and elevator machine room modeling data generation method
JP2018163491A (en) * 2017-03-24 2018-10-18 株式会社Nttファシリティーズ Management system, method for management, and program
CN109887068A (en) * 2018-07-20 2019-06-14 广东电网有限责任公司 A kind of 3D visualization computer room
CN110135042A (en) * 2019-05-08 2019-08-16 国网江苏省电力有限公司信息通信分公司 A kind of visualization integrated management method of information machine room

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138988A1 (en) * 2011-11-28 2013-05-30 Inventec Corporation Server rack system
CN102567570A (en) * 2011-12-02 2012-07-11 曙光信息产业(北京)有限公司 Method for plane display of configurable machine room layouts
CN105117835A (en) * 2015-08-18 2015-12-02 电子科技大学 A power grid information machine room three-dimensional visualized management platform based on a B/S framework
JP2018024502A (en) * 2016-08-09 2018-02-15 株式会社日立ビルシステム Elevator machine room drawing generation device, elevator machine room modeling data generation device, elevator machine room drawing generation method, and elevator machine room modeling data generation method
JP2018163491A (en) * 2017-03-24 2018-10-18 株式会社Nttファシリティーズ Management system, method for management, and program
CN106991151A (en) * 2017-03-28 2017-07-28 上海烟草集团有限责任公司 A kind of graphic method and device managed for calculator room equipment
CN109887068A (en) * 2018-07-20 2019-06-14 广东电网有限责任公司 A kind of 3D visualization computer room
CN110135042A (en) * 2019-05-08 2019-08-16 国网江苏省电力有限公司信息通信分公司 A kind of visualization integrated management method of information machine room

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111860728A (en) * 2020-07-31 2020-10-30 中国工商银行股份有限公司 U bit management method and device for cabinet and cabinet management system

Similar Documents

Publication Publication Date Title
CN109377542B (en) Three-dimensional model rendering method and device and electronic equipment
CN110647608A (en) Map-based mass data aggregation display method, system, device and medium
US20160261459A1 (en) Package dependency maps for distributed computing
CN112990699A (en) Power data processing method and device, computer equipment and storage medium
CN109992473A (en) Monitoring method, device, equipment and the storage medium of application system
CN112003729B (en) Heterogeneous cloud platform resource topology display method, system, terminal and storage medium
CN112489213A (en) Three-dimensional terrain model generation method and device, electronic equipment and storage medium
US20180373548A1 (en) System And Method For Configuring Equipment That Is Reliant On A Power Distribution System
CN110990431A (en) Method for realizing synchronous linkage carousel of China map and line graph data
CN113808728A (en) Medical equipment management method and device, computer equipment and storage medium
JP7311384B2 (en) Display information processing device, display information processing method, and display information processing program
CN110554819A (en) Physical equipment display method, physical equipment display device, physical equipment display terminal and storage medium
CN114758034A (en) Map generation method and device, computer-readable storage medium and electronic device
CN112200861B (en) Method and device for determining column type, storage medium and electronic equipment
CN114338412A (en) Method, device, equipment and product for displaying topology view of 5G network
US20180052574A1 (en) Energy Efficiency and Energy Security Optimization Dashboard for Computing Systems
CN114117274A (en) Data rendering method and device, computer equipment and storage medium
CN111240550B (en) Chat window display method and device, electronic equipment and storage medium
CN117472704A (en) Machine room management method, equipment and storage medium based on three-dimensional model
US9958843B2 (en) System and program for managing management target system
CN102779086B (en) Monitor evaluating apparatus and monitor evaluation methodology
CN109525039A (en) A kind of power distribution network operation monitoring method and system
CN109766236A (en) KAFKA message queue number monitoring method, device, electronic equipment and storage medium
CN110831387B (en) Method and device for visually arranging and positioning machine room cabinet
CN108566293B (en) Electronic device, zk node information notification method, 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191210

RJ01 Rejection of invention patent application after publication