CN111221560A - Resource management method and device and electronic equipment - Google Patents

Resource management method and device and electronic equipment Download PDF

Info

Publication number
CN111221560A
CN111221560A CN201911113497.7A CN201911113497A CN111221560A CN 111221560 A CN111221560 A CN 111221560A CN 201911113497 A CN201911113497 A CN 201911113497A CN 111221560 A CN111221560 A CN 111221560A
Authority
CN
China
Prior art keywords
resource
instance
relation
user
relationship
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.)
Granted
Application number
CN201911113497.7A
Other languages
Chinese (zh)
Other versions
CN111221560B (en
Inventor
吴磊
李瀛
张迎苹
琚渲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NSFOCUS Information Technology Co Ltd
Nsfocus Technologies Inc
Original Assignee
NSFOCUS Information Technology Co Ltd
Nsfocus Technologies Inc
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 NSFOCUS Information Technology Co Ltd, Nsfocus Technologies Inc filed Critical NSFOCUS Information Technology Co Ltd
Priority to CN201911113497.7A priority Critical patent/CN111221560B/en
Publication of CN111221560A publication Critical patent/CN111221560A/en
Application granted granted Critical
Publication of CN111221560B publication Critical patent/CN111221560B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • 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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The invention provides a resource management method, a resource management device and electronic equipment, and belongs to the technical field of resource management. The invention provides an interface for newly building the resource relation instance for the user, can generate the resource relation instance for describing the incidence relation between the objects selected by the user according to the relation type and the topological structure selected by the user, and is beneficial to the user to know the mutual relation between the resource instances when looking up the resource instances. And, through the above method, the user can also dynamically define the relationship between the resource instances.

Description

Resource management method and device and electronic equipment
Technical Field
The present invention relates to the field of resource management technologies, and in particular, to a resource management method and apparatus, and an electronic device.
Background
In the computer field, resources may include a wide variety of software installed or running in a computer, middleware, virtualization platforms, development frameworks, development languages, and the like. Resources are key elements that make up an asset, e.g., the resources of a host asset may include a redhat7.2 operating system, postgres6.4 database, chrome browser, etc.
An organization administrator or enterprise owner needs to use resource management software to orderly, uniformly and standard overall organization and management of various resources in a computer to know asset resources owned by the organization or enterprise.
In the existing resource management products, resources are usually described and recorded by using resource names, and the resource management mode is used for tiling and managing the resources and cannot show the mutual relation among the resources.
Disclosure of Invention
The embodiment of the invention provides a resource management method and device, and aims to solve the problems of construction of a resource relation and description and accurate display of the resource relation.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, an embodiment of the present invention provides a resource management method, including:
responding to the received operation of the newly-built resource relation instance, and determining the relation type and the topological structure selected by the user through a relation type selection interface;
determining an object selected by a user for generating a resource relationship instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
and generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
The resource management method provided by the embodiment of the invention provides an interface for newly establishing the resource relation instance for the user, can generate the resource relation instance for describing the association relation between the objects selected by the user according to the relation type and the topological structure selected by the user, and is favorable for the user to know the mutual relation between the resource instances when viewing the resource instances. And, through the above method, the user can also dynamically define the relationship between the resource instances.
In a possible implementation manner, after generating a resource relationship instance for describing an association relationship between objects selected by a user according to the determined relationship type and the topology, the method further includes:
naming the resource relationship instance according to a name input by a user.
In the method, the user can freely name the resource relation instance.
In a possible implementation manner, after generating a resource relationship instance for describing an association relationship between objects selected by a user according to the determined relationship type and the topology, the method further includes:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
In a possible implementation manner, after displaying, through the resource display interface, the association relationship between the objects included in the first resource relationship instance, the method further includes:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
In the method, the user can check the resource instances through the resource relationship instance library, so that the mutual relationship among the resource instances is solved.
In a possible implementation manner, the displaying information of the object selected by the object selection operation includes:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure; or
And if the selected object is the first resource instance, displaying the information of the first resource instance.
In one possible implementation, the method further includes:
after generating the resource relationship instance for describing the association relationship between the objects selected by the user according to the determined relationship type and the topology structure, the method further includes:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
In the method, if the second resource instance selected by the user has the corresponding resource relationship instance, the association relationship between the resource instances contained in the resource relationship instance is displayed. If the second resource instance selected by the user has a plurality of corresponding resource relation instances, displaying the plurality of resource relation instances having corresponding relations with the second resource instance for the user to select one resource relation instance from the plurality of resource relation instances, and displaying the association relation between the resource instances contained in the resource relation instance selected by the user, so that the user can know the interrelation between the concerned resource instance and other resource instances.
In a second aspect, an embodiment of the present invention provides a resource management apparatus, including:
the information acquisition module is used for responding to the received operation of the newly-built resource relation instance and determining the relation type and the topological structure selected by the user through the relation type selection interface; determining an object selected by a user and used for generating a resource relation instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
and the relation instance establishing module is used for generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
In a possible implementation manner, the relationship instance establishing module is further configured to:
naming the resource relationship instance according to a name input by a user.
In a possible implementation manner, the apparatus further includes a resource showing module, configured to:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
In a possible implementation manner, the resource showing module is further configured to:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
In a possible implementation manner, the resource showing module is further configured to:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure;
and if the selected object is the first resource instance, displaying the information of the first resource instance.
In a possible implementation manner, the resource showing module is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory stores a computer program that is executable on the processor, and when the computer program is executed by the processor, the processor is caused to perform the following steps:
responding to the received operation of the newly-built resource relation instance, and determining the relation type and the topological structure selected by the user through a relation type selection interface;
determining an object selected by a user for generating a resource relationship instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
and generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
In one possible implementation, the processor further performs:
naming the resource relationship instance according to a name input by a user.
In one possible implementation, the processor further performs:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
In one possible implementation, the processor further performs:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
In one possible implementation, the processor specifically performs:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure; or
And if the selected object is the first resource instance, displaying the information of the first resource instance.
In one possible implementation, the processor further performs:
after generating the resource relationship instance for describing the association relationship between the objects selected by the user according to the determined relationship type and the topology structure, the method further includes:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the foregoing
A step of any one of the resource management methods of the first aspect.
For technical effects brought by any one implementation manner in the second aspect to the fourth aspect, reference may be made to technical effects brought by a corresponding implementation manner in the first aspect, and details are not described here.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a block diagram of a resource management system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a resource management method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of establishing a resource relationship according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another example of establishing a resource relationship according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another example of establishing a resource relationship according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of a resource display method according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a display interface of a repository according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a resource display interface according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another resource display interface provided in accordance with an embodiment of the present invention;
FIG. 10 is a flowchart illustrating another resource displaying method according to an embodiment of the present invention;
fig. 11 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 12 is a block diagram of a resource management apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram of another resource management apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the following application scenarios described in the embodiments of the present invention are for more clearly illustrating the technical solutions of the embodiments of the present invention, and do not constitute limitations on the technical solutions provided in the embodiments of the present invention, and it is known by those skilled in the art that with the occurrence of new application scenarios, the technical solutions provided in the embodiments of the present invention are also applicable to similar technical problems.
In order to more effectively manage asset resources of an organization or an enterprise and enable a user to more intuitively know the asset resources owned by the organization or the enterprise, the embodiment of the invention provides a resource management method, a resource management device and electronic equipment.
The resource management method provided by the embodiment of the invention can be applied to a computer or a server. For example, in one embodiment, the resource management method may be applied to a server of an enterprise that may be connected to computers, printers, or other devices within the enterprise via an intranet. On this server, a resource management system may be deployed in advance.
Illustratively, the structure of the resource management system can be as shown in fig. 1, and includes a resource access interface 1, a resource split service layer 2 and a resource library 3. The resource access interface 1 is used for providing data services to the outside. The user can query the data of the resource object stored in the resource library 3 or add the data of a new resource object to the resource library 3 through the resource access interface 1, where the resource object includes the following resource instance and resource relationship instance. The resource split charging service layer 2 is responsible for data disassembly and encapsulation of resource objects, in particular for organization of data of resource relation instances. For example, when a user creates a new resource relationship instance, the resource subpackaging service layer 2 encapsulates the data of the new resource relationship instance and stores the encapsulated data in the resource library 3. When a user inquires the resource relation example, the resource subpackaging service layer 2 disassembles the data of the resource relation example in the resource library 3, and then outputs and displays the data to the user through the resource access interface 1. It can also be said that the resource access interface 1 comprises or is connected with a resource representation layer, which is used for presenting the data of the resource object to the user.
In the embodiment of the present invention, the resource library 3 may include a resource instance library 31 and a resource relation instance library 32. The resource instance repository 31 is used for storing resource instances, which are description information of resources running in the electronic device. The resource instance repository 31 is primarily used to maintain basic resource instances and resource classification data. The resource relation instance library 32 is used for storing resource relation instances, and the resource relation instances in the resource relation instance library 32 are used for describing an association relation between at least two resource instances.
Considering that the existing resource management software generally describes a logical resource by using a name of the resource, such as Unix, Linux, Phone, etc., which is simple and non-standard in representation form, it is easy to cause a great difference in description of the same or similar physical resource among multiple platforms, so that a great deal of adaptation and unification work is required when multiple platforms refer to resource information mutually. In the resource instance library 31 of the embodiment of the present invention, the resource instance uses a Common platform naming standard (CPE) to represent description information of the resource.
The resource instance library 31 includes a plurality of resource instances, each resource instance may be understood as an entry describing a resource in the resource instance library 31, and in the entry, a plurality of attribute information of a resource may be included. In each resource instance ": cpe: a:3com:3c16115-us:2.01, meaning: "a" represents application system, "3 com" represents manufacturer of resource, "3 c 16115-us" represents product type, "2.01" represents product version information, and the ordered combination of the above attributes can accurately depict a resource. The embodiment of the invention adopts the unified and international common CPE naming standard to describe the resources, realizes the standard description of the resources and can support the cross-platform use of the resource instance library.
In a resource instance store, resource instances may be stored in a hierarchical level. For example, the lower layer of "software" can be divided into "application software" and "operating system", the lower layer of "operating system" includes "desktop operating system", "embedded operating system", and "server operating system", etc.
It will be appreciated that multiple resource instance libraries may be included in the resource management system.
The resource relation instance library 32 stores a plurality of storage resource relation instances, and each resource relation instance is used for describing an association relation between at least two resource instances. The resource relation instance is a data structure, and the incidence relation among the resource instances can be clearly described through the resource relation. When the built-in resource relationship example cannot meet the use scene of the user, the resource management system provided by the embodiment of the invention supports the user to self-define the resource relationship example through the resource access interface 1, which will be described in detail in the embodiment below.
In different usage scenarios, the association relationship between the same resource instance and other resource instances may also be different, and therefore, one resource instance may be included in different resource relationship instances, that is, one resource instance may correspond to multiple resource relationship instances.
The resource management system provided by the embodiment of the invention adopts the CPE naming standard to describe the resource characteristics in a standard manner, and can flexibly and orderly organize and manage the logic resources so as to achieve the purposes of unifying and standardizing the reference mode and the representation form of the logic resources.
Fig. 2 is a flowchart illustrating a resource management method according to an embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S201, responding to the received operation of the new resource relation instance, and determining the relation type and the topological structure selected by the user through the relation type selection interface.
The embodiment of the invention provides an interface for dynamically establishing the resource relation instance by a user, and the selectable relation type and the topological structure corresponding to the relation type are displayed to the user through the relation type selection interface for the user to select. In some embodiments, selectable relationship types and topologies may be displayed simultaneously in the same page. In other embodiments, a selectable relationship type may be displayed in a page, and after the user selects the relationship type, a topology structure corresponding to the relationship type selected by the user is displayed.
Illustratively, the relationship types may include dependency relationships and distribution relationships. Each resource relation instance has a category id, and the category id corresponds to the description of the relation categories such as dependency relation, distribution relation and the like.
For dependencies, for example, resource instance A is an operating system class resource that is attached to the operating system. The resource instance B, the resource instance C and the resource instance D are application class resource instances, and the resource instance B, the resource instance C, the resource instance D and the resource instance A have dependency relations. A resource relationship instance may be set to describe the dependency between resource instance B, resource instance C, resource instance D, and resource instance a. In the dependency relationship, the instance B, the resource instance C and the resource instance D can inherit the dependency relationship characteristics of the resource instance A. For example, in practical applications, the QQ depends on the windows operating system, which depends on the underlying physical device. QQ → windows → physical devices in this resource relationship example. Dependencies are typically directed relationships. There may be two defining policies when defining this resource relationship instance. Strategy 1: defining a resource relation instance a, windows → physical equipment; defining a resource relation instance b, QQ → windows; define resource relationship instance c, b → a. Strategy 2: directly define the QQ → windows → the relationship instance of the physical device. The two ways can realize the new establishment of the resource relation instance.
For the distribution relationship, for example, the resource instance P is a platform class resource instance, and the resource instances PH, PI, and PJ are application class resource instances. The resource instances PH, the resource instances PI and the resource instances PJ depend on the resource instances P, and the resource instances PH, the resource instances PI and the resource instances PJ are distributed in different physical spaces, and at the moment, a distribution relation and a dependency relation exist among the resource instances PH, the resource instances PI and the resource instances PJ. A resource relationship instance may be set to describe the distribution relationship and dependency relationship between the resource instance PH, the resource instance PI, the resource instance PJ, and the resource instance P. In the distribution relationship, the resource instance PH, the resource instance PI, and the resource instance PJ may inherit the distribution relationship characteristic of the resource instance P.
The resource relationships may be represented in a topology, the topology including at least one of: chain structure, ring structure, net structure, star structure, etc. For example, a network cluster composed of several physical machines is distributed at different geographic locations, and a map composed of these physical machines based on the geographic location distribution is an example of a distribution relationship.
Step S202, determining the object selected by the user for generating the resource relation instance.
The object includes a resource instance or resource relationship instance in a resource repository. The resource instance is description information of an application running in the electronic device or hardware of the electronic device. The resource relation instance is used for describing an association relation between at least two objects.
And displaying the resource instances contained in the resource instance library or the resource relation instances contained in the resource relation instance library to a user for the user to select the object for generating the resource relation instances.
The order of step S201 and step S202 may be interchanged.
Step S203, generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
When the resource relation instance is generated, the resource relation instance can be named according to a name input by a user.
The resource management method provided by the embodiment of the invention provides an interface for newly establishing the resource relation instance for the user, can generate the resource relation instance for describing the association relation between the objects selected by the user according to the relation type and the topological structure selected by the user, and is favorable for the user to know the mutual relation between the resource instances when viewing the resource instances. And, through the above method, the user can also dynamically define the relationship between the resource instances.
For example, when a new resource relationship instance for describing an association relationship between multiple resource instances needs to be created, a user may first select a relationship type, such as "dependency relationship" if selected, then specify a topology as "chain structure", select resource instances "wikiApp", "mysql", and "linux _ os" from a resource instance library, and specify a relationship path as wikiApp- > mysql- > linux _ os. The user may name the newly generated resource relationship instance, e.g., to name the resource relationship instance as a "wiki application". According to the relationship type and the topological structure selected by the user and the specified relationship path, a resource relationship instance for describing the association relationship between the objects selected by the user is generated and stored in a resource relationship instance library, as shown in fig. 3.
Similarly, when another resource relationship instance needs to be created, the user may first select the relationship type, for example, if the selected relationship type is "distribution relationship", then designate the topology as "graph structure", select the resource instances "network card", "hard disk", "CPU", and "PCI bus" from the resource instance library, and designate the relationship path. The user may name the newly generated resource relationship instance, e.g., name the resource relationship instance as "server". According to the relationship type and the topological structure selected by the user and the specified relationship path, a resource relationship instance for describing the association relationship between the objects selected by the user is generated and stored in a resource relationship instance library, as shown in fig. 4.
When a new resource relationship instance for describing the association relationship among multiple resource relationship instances needs to be created, a user may first select a relationship type, such as "dependency relationship" if selected, then designate a topology as "chain structure", select resource relationship instances "wiki application" and "server" from a resource relationship instance library, and designate a relationship path as wiki application- > server. The user may name the newly generated resource relationship instance, e.g., naming the resource relationship instance as a "wiki panorama". According to the relationship type and the topology structure selected by the user and the designated relationship path, a resource relationship instance for describing the association relationship between the objects selected by the user is generated and stored in a resource relationship instance library, as shown in fig. 5.
The method provides an interface for newly building resource relation examples for users, and the users can newly build the relation among the resource examples through the method, thereby solving the problems that the relation among the resource examples can not be dynamically defined in the prior art and the relation among the resource examples can not be dynamically defined or modified by the prior resource management software.
Optionally, the embodiment of the present invention may further support expanding the resource instance base. In one aspect, the resource library instance is dependent on CPE naming standards, and when a CPE library update at the network end is detected, an update interface may be invoked to perform incremental update on the local resource library instance. On the other hand, when the CPE specification cannot meet the description of certain resources, the extension interface may be invoked to add a new resource instance.
In an optional embodiment, a method for presenting a resource instance is further provided, as shown in fig. 6, after the resource relationship instance is established according to the foregoing method, the method may further include the following steps:
step S601, responding to the received resource relationship instance display request, determining a first resource relationship instance selected by the user.
The resource relation instance library is used for storing resource relation instances, and the resource relation instances are used for describing the incidence relation between at least two resource instances. The user may view the resource relationship instance through the resource repository or the resource relationship instance repository. Optionally, an interface for selecting a resource relationship instance display mode may be displayed to the user through a human-computer interaction interface, as shown in fig. 7, the first resource relationship instance selected by the user is received.
Step S602, displaying, through the resource display interface, an association relationship between objects included in the first resource relationship instance.
For example, in the interface shown in FIG. 7, if the first resource relationship instance selected by the user is a "wiki panorama," the associative relationships between the objects contained in the "wiki panorama" are displayed through the resource presentation interface shown in FIG. 8.
Step S603, responding to the object selection operation received through the resource display interface, and displaying information of the object selected by the object selection operation.
The step is a drilling-down process, and in the drilling-down process, if the selected object is a second resource relation instance, the incidence relation between the objects contained in the second resource relation instance is displayed according to a set topological structure. The set topology includes at least one of: chain structure, ring structure, net structure, star structure, etc. For example, in the interface shown in FIG. 8, if the user selects the second resource relationship instance "Wiki application," the associative relationships between the objects contained in the "Wiki panorama" are displayed through the resource presentation interface shown in FIG. 9.
And if the selected object is the first resource instance, displaying the information of the first resource instance. For example, if the first resource relationship instance includes a resource instance, and the user selects the first resource instance, the information of the first resource instance is displayed.
In the prior art, resource management software generally describes a resource by using a resource name, does not have a function of describing and maintaining an association relationship between resources, can only manage the tiling of the resources, and cannot embody a hierarchical structure of the resources. The resource management method provided by the embodiment of the invention can show the relationship between the resource instances to the user through the resource relationship instances, so that the user can intuitively know the information of the resources and the mutual relationship between the resources.
In another optional embodiment, a method for presenting a resource instance is further provided, as shown in fig. 10, after the resource relationship instance is established according to the foregoing method, the method may further include the following steps:
step S1001, in response to the received resource instance display request, determines a second resource instance selected by the user.
If the user selects a resource instance in the interface shown in FIG. 7, a second resource instance selected by the user is determined.
Step S1002, judging whether a resource relation instance corresponding to the second resource instance exists in the resource library; if yes, go to step S1004; if not, step S1003 is performed.
And if a certain resource relation instance contains a second resource instance, the resource relation instance is considered to be the resource relation instance corresponding to the second resource instance. The resource relationship instance library may include a plurality of resource relationship instances corresponding to the second resource instance.
Step S1003, displaying information of the second resource instance.
And if the resource relation example corresponding to the second resource example does not exist in the resource relation example library, directly displaying the information of the second resource example.
Step S1004, displaying the information of the second resource instance and the association relationship between the objects included in the resource relationship instance selected by the user from the resource relationship instances corresponding to the second resource instance.
And if the resource relation example library comprises a plurality of resource relation examples corresponding to the second resource examples, displaying the identifiers of all the resource relation examples corresponding to the second resource examples for the user to select. And when the user selects a certain resource relation instance, displaying the information of the second resource instance and the association relation between the resource instances contained in the resource relation instance.
For example, for the resource instance a, the resource relationship instance library includes three resource relationship instances corresponding to the resource instance a, which are respectively a resource relationship instance 1, a resource relationship instance 2, and a resource relationship instance 3. The user selects a resource relation instance 2 from the three resource relation instances, the resource relation instance 2 is used for describing the dependency relation between the resource instance a and the resource instance b, and then the information of the resource instance a and the incidence relation between the resource instance a and the resource instance b contained in the resource relation instance 2 are obtained.
In the method, if a second resource instance selected by a user from a resource instance library has a plurality of corresponding resource relationship instances, the plurality of resource relationship instances having corresponding relationships with the second resource instance are displayed so that the user can select one resource relationship instance from the resource relationship instances and display the incidence relationship between the resource instances in the resource relationship instances selected by the user, thereby enabling the user to know the mutual relationship between the concerned resource instance and other resource instances.
In an optional embodiment, after displaying an association relationship between resource instances included in a resource relationship instance selected by a user from resource relationship instances corresponding to a second resource instance, if it is received that the user selects a third resource instance from the displayed resource instances, determining whether a resource relationship instance corresponding to the third resource instance selected by the user exists in the resource relationship instance library; if not, displaying the information of the third resource instance; and if so, displaying the information of the third resource instance and the association relationship between the resource instances contained in the resource relationship instances selected by the user from the resource relationship instances corresponding to the third resource instance.
The above process is a drilling-down process, and if the user pays attention to the third resource instance in the resource instances having the association relationship with the second resource instance when viewing the second resource instance, the third resource instance can be directly selected to view the information and the corresponding resource relationship instance thereof, and the third resource instance does not need to be searched again after returning, so that the operation of the user can be saved, and the time of the user can be saved.
The resource management method provided by the embodiment of the invention has the following effects: firstly, resources are named uniformly and normatively by adopting an international common CPE naming standard, so that the problems of non-normative and non-uniform resource description in the prior art can be solved, and the reference difference of different platforms to the resources can be eliminated; secondly, an independent resource instance library is set, user expansion, user-defined resource instance and incremental updating are supported, and the resource instance library can be expanded and updated flexibly; thirdly, supporting the user to define the user-defined and three-dimensional resource instance of a plurality of resource relationships; fourth, cross-platform use of resource repositories may be supported.
Based on the same inventive concept as the resource management method, the embodiment of the invention also provides an electronic device, which can be a server or a computer. Because the principle of the electronic device for solving the problem is similar to that of the resource management method, the electronic device may be implemented by referring to the method embodiment, and repeated details are not described again.
As shown in fig. 11, an electronic device provided by an embodiment of the present invention includes a processor 1100, a memory 1101, and a network interface 1102. The processor 1100, memory 1101, and network interface 1102 may be connected by a bus 1103.
Processor 1100 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the resource management method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 1100.
The memory 1101 may be a random access memory, a flash memory, a read only memory, a programmable read only memory, or an electrically erasable programmable memory, etc. The memory 1101 is used to store a program implementing the above-described resource management method and data used by the processor 1100 when executing the program.
The network interface 1102 is used to connect to a network, such as a company's internal network or external network, to obtain updated data of the CPE pool, and the like.
The bus 1103 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 11, but that does not indicate only one bus or one type of bus.
The processes disclosed in the embodiments of the present invention can be implemented in the processor 1100, or implemented by the processor 1100. In implementation, the steps of the signal processing flow may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1100. The processor 1100 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like that implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1101, and the processor 1100 reads information in the memory 1101, and completes the steps of the signal processing flow in combination with hardware thereof. In an embodiment of the present invention, the processor 1100 is configured to read the program in the memory 1101 and execute the steps of the resource management method described above.
The resource management method is based on the same inventive concept, and the embodiment of the present invention further provides a resource management device, because the principle of the device for solving the problem is similar to that of the resource management method, the device can be referred to the embodiment of the method, and repeated details are not described.
As shown in fig. 12, a resource management apparatus provided in an embodiment of the present invention includes the following modules:
the information acquisition module 1201 is configured to respond to the received operation of creating the resource relationship instance, and determine a relationship type and a topology structure selected by a user through a relationship type selection interface; determining an object selected by a user and used for generating a resource relation instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
a relationship instance establishing module 1202, configured to generate a resource relationship instance for describing an association relationship between objects selected by a user according to the determined relationship type and the topology structure.
In a possible implementation manner, the relationship instance establishing module 1202 is further configured to:
naming the resource relationship instance according to a name input by a user.
In one possible implementation manner, as shown in fig. 13, the apparatus further includes a resource showing module 1301 configured to:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
In a possible implementation manner, the resource showing module 1301 is further configured to:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
In a possible implementation manner, the resource showing module 1301 is further configured to:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure;
and if the selected object is the first resource instance, displaying the information of the first resource instance.
In a possible implementation manner, the resource showing module 1301 is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
The embodiment of the application also provides a storage medium readable by the computing equipment aiming at the resource management method, namely, the content is not lost after power failure. The storage medium stores therein a software program comprising program code which, when executed on a computing device, when read and executed by one or more processors, implements aspects of any of the above resource management methods of embodiments of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. A method for resource management, comprising:
responding to the received operation of the newly-built resource relation instance, and determining the relation type and the topological structure selected by the user through a relation type selection interface;
determining an object selected by a user for generating a resource relationship instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
and generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
2. The method of claim 1, wherein after generating the resource relationship instance describing the association relationship between the user-selected objects according to the determined relationship type and topology, the method further comprises:
naming the resource relationship instance according to a name input by a user.
3. The method according to claim 1 or 2, wherein after generating the resource relationship instance for describing the association relationship between the user-selected objects according to the determined relationship type and topology, the method further comprises:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
4. The method according to claim 3, wherein after displaying the association relationship between the objects included in the first resource relationship instance through the resource presentation interface, the method further comprises:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
5. The method according to claim 4, wherein the displaying the information of the object selected by the object selection operation comprises:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure; or
And if the selected object is the first resource instance, displaying the information of the first resource instance.
6. The method according to claim 1 or 2, wherein after generating the resource relationship instance for describing the association relationship between the user-selected objects according to the determined relationship type and topology, the method further comprises:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
7. A resource management apparatus, comprising:
the information acquisition module is used for responding to the received operation of the newly-built resource relation instance and determining the relation type and the topological structure selected by the user through the relation type selection interface; determining an object selected by a user and used for generating a resource relation instance; the object comprises a resource instance or a resource relation instance in a resource library; the resource instance is description information of an application running in the electronic equipment or hardware of the electronic equipment; the resource relation instance is used for describing the incidence relation between at least two objects;
and the relation instance establishing module is used for generating a resource relation instance for describing the incidence relation between the objects selected by the user according to the determined relation type and the topological structure.
8. The apparatus of claim 7, wherein the relationship instance establishing module is further configured to:
naming the resource relationship instance according to a name input by a user.
9. The apparatus of claim 7 or 8, further comprising a resource exposure module configured to:
responding to a received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relation between the objects contained in the first resource relation instance through a resource display interface.
10. The apparatus of claim 9, wherein the resource exposure module is further configured to:
and responding to the object selection operation received through the resource display interface, and displaying the information of the object selected by the object selection operation.
11. The apparatus of claim 10, wherein the resource exposure module is further configured to:
if the selected object is a second resource relation instance, displaying the incidence relation between the objects contained in the second resource relation instance according to a set topological structure;
and if the selected object is the first resource instance, displaying the information of the first resource instance.
12. The apparatus of claim 7 or 8, wherein the resource exhibition module is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by the user;
judging whether a resource relation example corresponding to the second resource example exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the information of the second resource instance and the association relation between the objects contained in the resource relation instance selected by the user from the resource relation instance corresponding to the second resource instance.
13. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, the computer program, when executed by the processor, causing the processor to perform the resource management method of any of claims 1-6.
CN201911113497.7A 2019-11-14 2019-11-14 Resource management method and device and electronic equipment Active CN111221560B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911113497.7A CN111221560B (en) 2019-11-14 2019-11-14 Resource management method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911113497.7A CN111221560B (en) 2019-11-14 2019-11-14 Resource management method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111221560A true CN111221560A (en) 2020-06-02
CN111221560B CN111221560B (en) 2023-10-03

Family

ID=70830614

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911113497.7A Active CN111221560B (en) 2019-11-14 2019-11-14 Resource management method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111221560B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819577A (en) * 2021-01-28 2021-05-18 长沙市到家悠享网络科技有限公司 Dependency relationship visualization method, device, equipment and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453379A (en) * 2009-01-06 2009-06-10 中国人民解放军信息工程大学 Resource management method and system
US20140006627A1 (en) * 2012-06-27 2014-01-02 International Business Machines Corporation Instantiating resources of an it-service
CN104754013A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Cloud computing platform network resource control method, device and system
CN105591803A (en) * 2015-08-24 2016-05-18 杭州华三通信技术有限公司 Resource processing method and equipment
US20160380913A1 (en) * 2015-06-26 2016-12-29 International Business Machines Corporation Transactional Orchestration of Resource Management and System Topology in a Cloud Environment
CN106663034A (en) * 2014-05-09 2017-05-10 亚马逊技术股份有限公司 Migration of applications between an enterprise-based network and a multi-tenant network
CN107145378A (en) * 2016-03-01 2017-09-08 中兴通讯股份有限公司 A kind of method for managing resource and device
US20180246929A1 (en) * 2017-02-28 2018-08-30 Microsoft Technology Licensing, Llc Ontology-based graph query optimization
CN108701132A (en) * 2015-11-27 2018-10-23 华为技术有限公司 Resource management system and method
CN108881374A (en) * 2018-04-28 2018-11-23 安徽四创电子股份有限公司 The design method that a kind of cloud computing resources framework front end is shown
CN108965008A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of generation method and its device of customized network topology structure
US10200252B1 (en) * 2015-09-18 2019-02-05 Quest Software Inc. Systems and methods for integrated modeling of monitored virtual desktop infrastructure systems
CN109739484A (en) * 2018-12-28 2019-05-10 北京神州绿盟信息安全科技股份有限公司 A kind of relationship of assets model construction system, method and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101453379A (en) * 2009-01-06 2009-06-10 中国人民解放军信息工程大学 Resource management method and system
US20140006627A1 (en) * 2012-06-27 2014-01-02 International Business Machines Corporation Instantiating resources of an it-service
CN104754013A (en) * 2013-12-31 2015-07-01 中国移动通信集团公司 Cloud computing platform network resource control method, device and system
CN106663034A (en) * 2014-05-09 2017-05-10 亚马逊技术股份有限公司 Migration of applications between an enterprise-based network and a multi-tenant network
US20160380913A1 (en) * 2015-06-26 2016-12-29 International Business Machines Corporation Transactional Orchestration of Resource Management and System Topology in a Cloud Environment
CN105591803A (en) * 2015-08-24 2016-05-18 杭州华三通信技术有限公司 Resource processing method and equipment
US10200252B1 (en) * 2015-09-18 2019-02-05 Quest Software Inc. Systems and methods for integrated modeling of monitored virtual desktop infrastructure systems
CN108701132A (en) * 2015-11-27 2018-10-23 华为技术有限公司 Resource management system and method
CN107145378A (en) * 2016-03-01 2017-09-08 中兴通讯股份有限公司 A kind of method for managing resource and device
US20180246929A1 (en) * 2017-02-28 2018-08-30 Microsoft Technology Licensing, Llc Ontology-based graph query optimization
CN108881374A (en) * 2018-04-28 2018-11-23 安徽四创电子股份有限公司 The design method that a kind of cloud computing resources framework front end is shown
CN108965008A (en) * 2018-07-19 2018-12-07 郑州云海信息技术有限公司 A kind of generation method and its device of customized network topology structure
CN109739484A (en) * 2018-12-28 2019-05-10 北京神州绿盟信息安全科技股份有限公司 A kind of relationship of assets model construction system, method and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李俊坤;: "系统集成中基于中间件的软件资源管理设计", 无线电通信技术, no. 03 *
蔡鸿明, 何援军, 刘胡瑶: "基于分层语义网络的设计资源库建模及实现", 计算机集成制造系统-CIMS, no. 01 *
高蕾;杨燕;钟华;于谨维;: "面向多租户的门户资源管理框架", 计算机工程与设计, no. 08 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112819577A (en) * 2021-01-28 2021-05-18 长沙市到家悠享网络科技有限公司 Dependency relationship visualization method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111221560B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN111176802B (en) Task processing method and device, electronic equipment and storage medium
EP3072070B1 (en) Callpath finder
JP6813152B2 (en) Methods, systems, and programs for determining the identification of software in a software container
US20170103226A1 (en) Database public interface
US10635408B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
US20150040041A1 (en) Descriptive framework for data visualization
CN112136112A (en) System and method for building idempotent configuration management modules for cloud infrastructure services
US20170048331A1 (en) Platform runtime abstraction
US7490077B2 (en) Extensible dependency management framework and method
US20120159515A1 (en) Sharing object representations
CN111221560B (en) Resource management method and device and electronic equipment
CN111258567A (en) Service code development processing method and device
US20120030680A1 (en) System and Method of General Service Management
US9298473B2 (en) System and method for a generic object access layer
US20090138621A1 (en) System and method for delegating a dependent business object
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
EP4030280A1 (en) Seamless lifecycle stability for extensible software features
CN113076086B (en) Metadata management system and method for modeling model object using the same
CN115617797A (en) Dynamic expansion method of service metadata field, electronic equipment and storage medium
CN110290172B (en) Container application cloning method and device, computer equipment and storage medium
CN109739484B (en) Asset relationship model construction system, method and storage medium
CN111191057A (en) User-defined retrieval method and device, electronic equipment and storage medium thereof
US11853750B2 (en) Subject matter expert identification and code analysis based on a probabilistic filter
US20230246916A1 (en) Service map conversion with preserved historical information
US20240028408A1 (en) Reference implementation of cloud computing resources

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building

Applicant after: NSFOCUS Technologies Group Co.,Ltd.

Applicant after: NSFOCUS TECHNOLOGIES Inc.

Address before: 100089 Beijing city Haidian District Road No. 4 North wa Yitai three storey building

Applicant before: NSFOCUS INFORMATION TECHNOLOGY Co.,Ltd.

Applicant before: NSFOCUS TECHNOLOGIES Inc.

GR01 Patent grant
GR01 Patent grant