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

Resource management method and device and electronic equipment Download PDF

Info

Publication number
CN111221560B
CN111221560B CN201911113497.7A CN201911113497A CN111221560B CN 111221560 B CN111221560 B CN 111221560B CN 201911113497 A CN201911113497 A CN 201911113497A CN 111221560 B CN111221560 B CN 111221560B
Authority
CN
China
Prior art keywords
resource
instance
relationship
relation
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911113497.7A
Other languages
Chinese (zh)
Other versions
CN111221560A (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 Technologies Inc
Nsfocus Technologies Group Co Ltd
Original Assignee
Nsfocus Technologies Inc
Nsfocus Technologies Group 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 Nsfocus Technologies Inc, Nsfocus Technologies Group Co Ltd filed Critical Nsfocus Technologies Inc
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

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 device and electronic equipment, and belongs to the technical field of resource management. The invention provides an interface for newly establishing the resource relation example for the user, and the resource relation example for describing the association relation between the objects selected by the user can be generated according to the relation type and the topological structure selected by the user, so that the user can know the interrelationship between the resource examples when looking up the resource examples. Moreover, through the method, the user can 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, a device, and an electronic device.
Background
In the computer arts, resources may comprise a wide variety of software, middleware, virtualization platforms, development frameworks, development languages, etc. installed or running in a computer. Resources are key elements that make up an asset, e.g., a resource of a host asset may include a redhat7.2 operating system, postgres6.4 database, chrome browser, etc.
An organization's manager or enterprise owner needs to use resource management software to orderly, uniformly, and standardize the overall organization and management of a wide variety of resources in a computer in order to know the asset resources owned by the organization or enterprise.
In the existing resource management products, the resource name is generally used for describing and recording the resource, and the resource management mode is used for tiling and managing the resource, so that the interrelationship between the resources can not be displayed.
Disclosure of Invention
The embodiment of the invention provides a resource management method and device, which are used for solving the problems of construction of a resource relationship and description and accurate display of the resource relationship.
The specific technical scheme provided by the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a resource management method, including:
responding to the received operation of the new resource relationship instance, and determining the relationship type and the topology structure selected by the user through a relationship 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
And generating a resource relation instance for describing the association 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 creating the resource relation example for the user, and can generate the resource relation example 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, thereby being beneficial to knowing the interrelationship between the resource examples when the user views the resource examples. Moreover, through the method, the user can dynamically define the relationship between the resource instances.
In one possible implementation manner, after the generating a 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:
naming the resource relation instance according to the name input by the user.
In the above method, the user can freely name the resource relation instance.
In one possible implementation manner, after the generating a 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 relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relationship among the objects contained in the first resource relationship instance through a resource display interface.
In one possible implementation manner, after the association relationship between the objects contained in the first resource relationship instance is displayed through the resource display interface, 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 examples through the resource relation example library, so that the interrelationship among the resource examples is solved.
In one possible implementation manner, the displaying the information of the object selected by the object selection operation includes:
if the selected object is a second resource relation instance, displaying the association relation among the objects contained in the second resource relation instance according to a set topological structure; or (b)
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 the resource relation instance for describing the association relation between the objects selected by the user is generated according to the determined relation type and the topological structure, the method further comprises the following steps:
responding to the received resource instance display request, and determining a second resource instance selected by a user;
judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances corresponding to the second resource instance.
In the above method, if the second resource instance selected by the user has a corresponding resource relationship instance, the association relationship between the resource instances included in the resource relationship instance is displayed. If the second resource instance selected by the user has a plurality of corresponding resource relationship instances, displaying the plurality of resource relationship instances corresponding to the second resource instance for the user to select one resource relationship instance from, and displaying the association relationship between the resource instances contained in the resource relationship instance selected by the user, so that the user can know the interrelationship between the concerned resource instance and other resource instances.
In a second aspect, an embodiment of the present invention provides a resource management device, including:
the information acquisition module is used for responding to the received operation of the new resource relationship instance and determining the relationship type and the topology structure selected by the user through the relationship 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
and the relationship instance establishing module is used for generating a resource relationship instance for describing the association relationship between the objects selected by the user according to the determined relationship type and the topological structure.
In one possible implementation manner, the relationship instance establishment module is further configured to:
naming the resource relation instance according to the name input by the user.
In one possible implementation manner, the apparatus further includes a resource display module, configured to:
responding to the received resource relation instance display request, and determining a first resource relation instance selected by a user;
And displaying the association relationship among the objects contained in the first resource relationship instance through a resource display interface.
In one possible implementation manner, the resource exhibition 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 one possible implementation manner, the resource exhibition module is further configured to:
if the selected object is a second resource relation instance, displaying the association relation among 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 one possible implementation manner, the resource exhibition module is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by a user;
judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances 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, the memory having stored thereon a computer program executable on the processor, which when executed by the processor causes the processor to perform the steps of:
responding to the received operation of the new resource relationship instance, and determining the relationship type and the topology structure selected by the user through a relationship 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
and generating a resource relation instance for describing the association 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 relation instance according to the name input by the user.
In one possible implementation, the processor further performs:
responding to the received resource relation instance display request, and determining a first resource relation instance selected by a user;
And displaying the association relationship among the objects contained in the first resource relationship 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 association relation among the objects contained in the second resource relation instance according to a set topological structure; or (b)
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 the resource relation instance for describing the association relation between the objects selected by the user is generated according to the determined relation type and the topological structure, the method further comprises the following steps:
responding to the received resource instance display request, and determining a second resource instance selected by a user;
judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
And if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances corresponding to the second resource instance.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having a computer program stored therein, which when executed by a processor, implements the above
The steps of any one of the resource management methods of the first aspect.
The technical effects caused by any implementation manner of the second aspect to the fourth aspect may refer to the technical effects caused by the corresponding implementation manner of the first aspect, and are not described herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a resource management system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of 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 resource relationships according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of another example of establishing resource relationships according to an embodiment of the present invention;
fig. 6 is a schematic flow chart 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 resource library 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 according to an embodiment of the present invention;
FIG. 10 is a flowchart illustrating another resource display 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 device according to an embodiment of the present invention;
fig. 13 is a block diagram of another resource management device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that, the application scenario described in the following embodiments of the present invention is for more clearly describing the technical solution of the embodiments of the present invention, and does not constitute a limitation on the technical solution provided by the embodiments of the present invention, and those skilled in the art can know that, with the appearance of the new application scenario, the technical solution provided by the embodiments of the present invention is also applicable to similar technical problems.
In order to enable asset resources of an organization or an enterprise to be managed more effectively, a user can know asset resources owned by the organization or the enterprise more intuitively, and 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 through an intra-enterprise network. On this server, a resource management system may be deployed in advance.
Illustratively, the resource management system may be structured as shown in fig. 1, including a resource access interface 1, a resource racking service layer 2, and a resource library 3. The resource access interface 1 is used for providing data services to the outside. A user may query the resource repository 3 for data of resource objects stored in the resource repository 3, including resource instances and resource relationship instances hereinafter, or add new resource objects to the resource repository 3 via the resource access interface 1. The resource sub-packaging service layer 2 is responsible for data disassembly and packaging of resource objects, and particularly for organization of data of resource relation instances. For example, when a user creates a resource relationship instance, the resource sub-packaging service layer 2 encapsulates the data of the created resource relationship instance and stores the encapsulated data in the resource library 3. When a user inquires about the resource relation instance, the resource sub-packaging service layer 2 disassembles the data of the resource relation instance in the resource library 3, and then outputs and displays the data to the user through the resource access interface 1. The resource access interface 1 may also be said to comprise or be connected to a resource presentation layer for presenting data of resource objects to a user.
In an embodiment of the present invention, the resource library 3 may include a resource instance library 31 and a resource relationship instance library 32. The resource instance library 31 is used to store resource instances, which are descriptive information of resources running in the electronic device. The resource instance library 31 is mainly used for maintaining basic resource instances and resource classification data. The resource relationship instance library 32 is used for storing resource relationship instances, and the resource relationship instances in the resource relationship instance library 32 are used for describing association relationships between at least two resource instances.
Considering that existing resource management software generally uses the names of resources to describe a logic resource, such as Unix, linux, phone, the representation form is simple and nonstandard, and the description of the same or same type of physical resource among multiple platforms is easy to cause great difference, so that a great amount of adaptation and unification work are needed when multiple platforms mutually reference resource information. In the resource instance library 31 of the embodiment of the present invention, the resource instance uses standard CPE (Common Platform Enumeration, common platform naming standard) to represent description information of the resource.
The resource instance library 31 contains a plurality of resource instances, and each resource instance can be understood as an entry describing a resource in the resource instance library 31, in which a plurality of attribute information of a resource can be contained. A plurality of attributes are separated in each resource instance by using the following: cpe/a: 3com:3c16115-us:2.01, the meaning of which is: "a" represents an application system, "3com" represents a manufacturer of a resource, "3c16115-us" represents a product type, "2.01" represents product version information, and an ordered combination of the above attributes can accurately delineate a resource. The embodiment of the invention adopts a unified and internationally-universal CPE naming standard to describe the resources, realizes the canonical description of the resources, and can support the cross-platform use of the resource instance library.
In the resource instance library, resource instances may be stored at a hierarchical level. For example, the next layer of "software" may be divided into "application software" and "operating system", which in turn includes "desktop operating system", "embedded operating system", and "server operating system", among others.
It will be appreciated that multiple resource instance libraries may be included in the resource management system.
The resource relationship instance library 32 stores therein a plurality of stored resource relationship instances, each of which is used to describe an association relationship between at least two resource instances. The resource relation instance is a data structure, and the association relation between the resource instances can be clearly depicted through the resource relation. When the built-in resource relation instance cannot meet the use scene of the user, the resource management system provided by the embodiment of the invention supports the user to customize the resource relation instance through the resource access interface 1, which is described in detail in the following embodiments.
In different usage scenarios, the association relationship between the same resource instance and other resource instances may also be different, so that one resource instance may be included in different resource relationship instances, i.e., one resource instance may correspond to multiple resource relationship instances.
The resource management system provided by the embodiment of the invention adopts CPE naming standards to describe the resource characteristics in a standardized manner, and can organize and manage the logic resources flexibly and orderly so as to achieve the purposes of unifying and standardizing the reference modes and the representation forms of the logic resources.
Fig. 2 shows a flowchart of a resource management method according to an embodiment of the present invention, as shown in fig. 2, where the method includes the following steps:
step S201, responding to the received new resource relationship instance operation, and determining the relationship type and the topology structure selected by the user through a relationship type selection interface.
The embodiment of the invention provides an interface for dynamically establishing resource relation examples by a user, and displays selectable relation types and topological structures corresponding to the relation types to the user through a relation type selection interface for the user to select. In some embodiments, the selectable relationship types and topologies may be displayed simultaneously in the same page. In other embodiments, the selectable relationship types may be displayed in one page, and after the relationship types are selected by the user, the topology corresponding to the relationship types selected by the user is displayed.
By way of example, relationship types may include dependency relationships and distribution relationships. Each resource relationship instance has a class id corresponding to a description of relationship classes such as dependency relationships, distribution relationships, and the like.
For dependencies, for example, resource instance A is an operating system class resource, attached to the operating system. Resource instance B, resource instance C and resource instance D are application class resource instances, and a dependency relationship exists among resource instance B, resource instance C, resource instance D and resource instance A. A resource relationship instance may be provided for describing 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 characteristic of the resource instance A. For example, in practical applications, QQ relies on windows operating systems, which rely on underlying physical devices. Qq→windows→physical devices in this resource relationship instance. The dependency relationship is typically a directed relationship. There may be two definition policies at the time of defining this resource relationship instance. Strategy 1: defining a resource relation instance a, windows- & gt physical equipment; defining a resource relation instance b, QQ→windows; define resource relationship instance c, b→a. Strategy 2: the relationship instance of QQ→windows→physical devices is directly defined. The two modes can realize the new construction of the resource relation instance.
For the distribution relationship, for example, the resource instance P is a platform class resource instance, and the resource instance PH, the resource instance PI, and the resource instance PJ are application class resource instances. The resource instance PH, the resource instance PI and the resource instance PJ depend on the resource instance P, and the resource instance PH, the resource instance PI and the resource instance PJ are distributed in different physical spaces, so that a distribution relationship and a dependency relationship exist between the resource instance PH, the resource instance PI, the resource instance PJ and the resource instance P. A resource relationship instance may be provided for describing the distribution and dependency 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 can inherit the distribution relationship characteristic of the resource instance P.
The resource relationship may be represented by a topology comprising at least one of: chain structure, ring structure, net structure, star structure, etc. For example, a network cluster formed by a plurality of physical machines is distributed in different geographic positions, and a map formed by the physical machines and based on geographic position distribution is an example of a distribution relationship.
Step S202, determining an object selected by a user for generating a resource relationship instance.
The object includes a resource instance or a resource relationship instance in a resource library. The resource instance is descriptive information of an application running in the electronic device or hardware of the electronic device. The resource relation instance is used for describing the association relation between at least two objects.
And displaying the resource examples contained in the resource example library or the resource relation examples contained in the resource relation example library to the user for the user to select an object for generating the resource relation examples.
The order of the above-described step S201 and step S202 may be exchanged with each other.
Step S203, a resource relation instance for describing the association relation between the objects selected by the user is generated 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 the name input by the user.
The resource management method provided by the embodiment of the invention provides an interface for newly creating the resource relation example for the user, and can generate the resource relation example 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, thereby being beneficial to knowing the interrelationship between the resource examples when the user views the resource examples. Moreover, through the method, the user can dynamically define the relationship between the resource instances.
For example, when a new resource relationship instance is required to be created for describing the association relationship between multiple resource instances, the user may first select a relationship type, such as "dependency relationship" is selected, then designate the topology as "chain structure", select resource instances "wikiApp", "mysql" and "linux_os" from the resource instance library, and designate the relationship path as wikiapp_mysql_linux_os. The user may name the newly generated resource relationship instance, e.g., named "wiki application". And generating a resource relation example 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 the designated relation path, and storing the resource relation example in a resource relation example library, as shown in figure 3.
Similarly, when another resource relationship instance needs to be created, the user may first select a relationship type, such as "distribution relationship" is selected, then designate the topology as "graph structure", select a resource instance "network card", "hard disk", "CPU" and "PCI bus" from the resource instance library, and designate a relationship path. The user may name the newly generated resource relationship instance, e.g., the resource relationship instance is named "server". And generating a resource relation example 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 the designated relation path, and storing the resource relation example in a resource relation example library, as shown in fig. 4.
When a new resource relationship instance for describing the association relationship among a plurality of resource relationship instances needs to be created, a user can select a relationship type, for example, a "dependency relationship" is selected, then a topology structure is designated as a "chain structure", a resource relationship instance "wiki application" and a "server" are selected from a resource relationship instance library, and a relationship path is designated as a wiki application- > server. The user may name the newly generated resource relationship instance, e.g., named "wiki panorama". And generating a resource relation example 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 the designated relation path, and storing the resource relation example in a resource relation example library, as shown in fig. 5.
The method provides an interface for newly establishing resource relation examples for users, and the users can newly increase the relation among the resource examples through the method, so that the problems that the relation among the resource examples cannot be dynamically defined in the prior art and the relation among the resource examples cannot be dynamically defined or modified by the existing resource management software can be solved.
Optionally, the embodiment of the invention can also support expanding the resource instance library. In one aspect, the resource library instance depends on CPE naming standards, and when a CPE library update at the network end is detected, an update interface may be invoked to update the local resource library instance increment. On the other hand, when the CPE specification fails to meet the description of certain resources, an extension interface may be invoked to add new resource instances.
In an alternative embodiment, there is also provided a method for presenting resource instances, as shown in fig. 6, after establishing resource relationship instances according to the above method, the method may further include the following steps:
step S601, in response to the received resource relationship instance presentation request, determines 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 association relations between at least two resource instances. The user may view the resource relationship instance through a resource library or resource relationship instance library. Alternatively, 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, and the first resource relationship instance selected by the user is received.
Step S602, the association relationship among the objects contained in the first resource relationship instance is displayed through the resource display interface.
For example, in the interface shown in fig. 7, if the first resource relationship instance selected by the user is "wiki panorama", the association relationship between the objects contained in the "wiki panorama" is displayed through the resource presentation interface shown in fig. 8.
In step S603, in response to the object selection operation received through the resource presentation interface, information of the object selected by the object selection operation is displayed.
The step is a drill-down process, and in the drill-down process, if the selected object is a second resource relation instance, the association relation among the objects contained in the second resource relation instance is displayed according to the 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 association relationship between the objects contained in the "Wiki panorama" is 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, the user selects the first resource instance, and information of the first resource instance is displayed.
In the prior art, resource management software generally describes a resource by using a resource name, has no function of describing and maintaining association relation between resources, can only tile and manage the resource, and cannot represent the hierarchical structure of the resource. According to the resource management method provided by the embodiment of the invention, the relationship among the resource instances can be displayed to the user through the resource relationship instance, so that the user can intuitively know the information of the resources and the interrelationship among the resources.
In another alternative embodiment, there is also provided a method for presenting resource instances, as shown in fig. 10, where after establishing resource relationship instances according to the above method, the method may further include the following steps:
step S1001, in response to the received resource instance presentation 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.
If a resource relationship instance includes a second resource instance, then the resource relationship instance is considered to be the resource relationship instance corresponding to the second resource instance. The resource relation instance library may include a plurality of resource relation instances corresponding to the second resource instance.
Step S1003, displaying information of the second resource instance.
And if the resource relation instance library does not have the resource relation instance corresponding to the second resource instance, directly displaying the information of the second resource instance.
Step S1004, displaying the association relationship between the information of the second resource instance and the object 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 instance library contains a plurality of resource relation instances corresponding to the second resource instance, displaying all the identifiers of the resource relation instances corresponding to the second resource instance for the user to select. And after the user selects one resource relation example, displaying the information of the second resource example and the association relation between each resource example contained in the resource relation example.
For example, for resource instance a, the resource relationship instance library includes three resource relationship instances corresponding to resource instance a, namely resource relationship instance 1, resource relationship instance 2, and resource relationship instance 3. The user selects a resource relation example 2 from the three resource relation examples, and the resource relation example 2 is used for describing the dependency relationship between the resource example a and the resource example b, so that the information of the resource example a and the association relationship between the resource example a and the resource example b contained in the resource relation example 2.
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, a plurality of resource relationship instances corresponding to the second resource instance are displayed for the user to select one resource relationship instance from, and the association relationship between the resource instances in the resource relationship instances selected by the user is displayed, so that the user can know the interrelationship between the resource instance concerned by the user and other resource instances.
In an optional embodiment, after the association relationship between the resource instances included in the resource relationship instance selected by the user from the resource relationship instances corresponding to the second resource instance is displayed, if the third resource instance selected by the user from the displayed resource instances is received, judging whether the resource relationship instance corresponding to the third resource instance selected by the user exists in the resource relationship instance library; if not, displaying information of the third resource instance; and if so, displaying the association relationship between the information of the third resource instance and the resource instance contained in the resource relationship instance selected by the user from the resource relationship instances corresponding to the third resource instance.
The above process is a drill-down process, if the user pays attention to the third resource instance in the resource instances with 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 user does not need to return and then search the third resource instance again, 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, the international CPE naming standard is adopted to name the resources uniformly and normally, so that the problems of non-standard 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 and self-defined resource instance and incremental update are supported, and the resource instance library can be flexibly expanded and updated; thirdly, supporting the user definition of various resource relationships and three-dimensionally describing resource instances; fourth, cross-platform use of resource information libraries may be supported.
Based on the same inventive concept as the above-mentioned resource management method, the embodiment of the invention also provides an electronic device, which may 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 can be implemented with reference to the method embodiment, and the repetition is omitted.
As shown in fig. 11, an electronic device provided in 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.
The processor 1100 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the resource management method described above may be performed by integrated logic circuitry of hardware in the processor 1100 or instructions in the form of software.
The memory 1101 may be a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, or the like. 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 networks, such as an internal network of a company or an external network, obtain update data of a CPE library, and the like.
The bus 1103 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 11, but not only one bus or type of bus.
The flow disclosed in the embodiments of the present invention may be applied to the processor 1100 or implemented by the processor 1100. In implementation, the steps of the signal processing flow may be performed by integrated logic circuitry in hardware or instructions in 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 device, discrete hardware components, where the methods, steps, and logic blocks disclosed in embodiments of the invention may be implemented or performed. The 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 embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as 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 steps of the signal processing flow in combination with its hardware. In an embodiment of the present invention, the processor 1100 is configured to read a program in the memory 1101 and execute the steps of the resource management method described above.
Based on the same inventive concept as the above-mentioned resource management method, the embodiment of the present invention further provides a resource management device, and since the principle of the device for solving the problem is similar to that of the above-mentioned resource management method, the device can be implemented with reference to the above-mentioned method embodiment, and the repetition is omitted.
As shown in fig. 12, a resource management device provided by an embodiment of the present invention includes the following modules:
the information acquisition module 1201 is configured to determine, through a relationship type selection interface, a relationship type and a topology structure selected by a user in response to the received operation of the new resource relationship instance; 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
a relationship instance creation module 1202 for generating a resource relationship instance for describing an association relationship between objects selected by a user according to the determined relationship type and topology.
In one possible implementation, the relationship instance establishment module 1202 is further configured to:
Naming the resource relation instance according to the name input by the user.
In a possible implementation manner, as shown in fig. 13, the apparatus further includes a resource display module 1301 configured to:
responding to the received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relationship among the objects contained in the first resource relationship instance through a resource display interface.
In one possible implementation, the resource exhibition 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 one possible implementation, the resource exhibition module 1301 is further configured to:
if the selected object is a second resource relation instance, displaying the association relation among 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 one possible implementation, the resource exhibition module 1301 is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by a user;
Judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances 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 has stored 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 resource management methods described above for embodiments of the application.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (13)

1. A method of resource management, comprising:
responding to the received operation of the new resource relationship instance, and determining the relationship type and the topology structure selected by the user through a relationship 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
And generating a resource relation instance for describing the association 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 resource relationship instances describing associations between user-selected objects based on the determined relationship types and topologies, the method further comprises:
naming the resource relation instance according to the name input by the user.
3. The method according to claim 1 or 2, wherein after generating a resource relationship instance describing an association relationship between objects selected by a user according to the determined relationship type and topology, the method further comprises:
responding to the received resource relation instance display request, and determining a first resource relation instance selected by a user;
and displaying the association relationship among the objects contained in the first resource relationship instance through a resource display interface.
4. The method of claim 3, wherein after the displaying, via the resource presentation interface, the association relationship between the objects included in the first resource relationship instance, 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 of claim 4, wherein displaying information of the object selected by the object selection operation comprises:
if the selected object is a second resource relation instance, displaying the association relation among the objects contained in the second resource relation instance according to a set topological structure; or (b)
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 a resource relationship instance describing an association relationship between objects selected by a user 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 a user;
judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances 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 new resource relationship instance and determining the relationship type and the topology structure selected by the user through the relationship 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 the description information of an application running in the electronic equipment or the hardware of the electronic equipment; the resource relation instance is used for describing the association relation between at least two objects;
and the relationship instance establishing module is used for generating a resource relationship instance for describing the association relationship between the objects selected by the user according to the determined relationship type and the topological structure.
8. The apparatus of claim 7, wherein the relationship instance establishment module is further configured to:
naming the resource relation instance according to the name input by the user.
9. The apparatus according to claim 7 or 8, further comprising a resource presentation module for:
responding to the received resource relation instance display request, and determining a first resource relation instance selected by a user;
And displaying the association relationship among the objects contained in the first resource relationship instance through a resource display interface.
10. The apparatus of claim 9, wherein the resource presentation 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 presentation module is further configured to:
if the selected object is a second resource relation instance, displaying the association relation among 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 presentation module is further configured to:
responding to the received resource instance display request, and determining a second resource instance selected by a user;
judging whether a resource relation instance corresponding to the second resource instance exists in a resource library or not;
if not, displaying the information of the second resource instance;
and if so, displaying the association relationship between the information of the second resource instance and the object contained in the resource relationship instance selected by the user from the resource relationship instances corresponding to the second resource instance.
13. An electronic device comprising a memory and a processor, the memory having stored thereon a computer program executable on the processor, which when executed by the processor causes 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 CN111221560A (en) 2020-06-02
CN111221560B true 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)

Families Citing this family (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 (10)

* 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
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
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
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2503463A (en) * 2012-06-27 2014-01-01 Ibm Overriding abstract resource manager methods to provide resources to implement nodes in a service definition
US9893947B2 (en) * 2015-06-26 2018-02-13 International Business Machines Corporation Transactional orchestration of resource management and system topology in a cloud environment
US11461318B2 (en) * 2017-02-28 2022-10-04 Microsoft Technology Licensing, Llc Ontology-based graph query optimization

Patent Citations (10)

* 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
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
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
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
基于分层语义网络的设计资源库建模及实现;蔡鸿明, 何援军, 刘胡瑶;计算机集成制造系统-CIMS(第01期);全文 *
系统集成中基于中间件的软件资源管理设计;李俊坤;;无线电通信技术(第03期);全文 *
面向多租户的门户资源管理框架;高蕾;杨燕;钟华;于谨维;;计算机工程与设计(第08期);全文 *

Also Published As

Publication number Publication date
CN111221560A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
US9928038B2 (en) Dynamically building locale objects or subsections of locale objects based on historical data
US7624349B2 (en) Declarative definition enabling graphical designer reuse
US20170103226A1 (en) Database public interface
US20050049906A1 (en) Provisioning of software components via workflow management systems
US10594800B2 (en) Platform runtime abstraction
CN111475227B (en) Business plug-in loading implementation method and device and terminal equipment
CN102841780B (en) A kind ofly create and call the method and apparatus of general purpose module
JP2004280830A (en) Extensible customization framework for software system
JP2004280814A (en) Customization method of processing logic in software system
CN112136112A (en) System and method for building idempotent configuration management modules for cloud infrastructure services
CN102073525A (en) Method and device for dynamically upgrading Web service system based on Java platform
CN113641338B (en) Method and device for dynamically generating view component
US9122559B2 (en) Extensible dependency management framework and method
CN114942796A (en) Plug-in compiling and calling method, device, equipment and storage medium
US20120159515A1 (en) Sharing object representations
US9141353B2 (en) Dynamically building locale objects at run-time
CN111221560B (en) Resource management method and device and electronic equipment
US20090138621A1 (en) System and method for delegating a dependent business object
US9298473B2 (en) System and method for a generic object access layer
JP2004272911A (en) Customization of field in object in computing environment
CN115617797A (en) Dynamic expansion method of service metadata field, electronic equipment and storage medium
US20220067065A1 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
CN117112654B (en) City data display method, device, computer equipment and storage medium
CN113050979B (en) Installation configuration method and device for installing operating system, and installation method and device
US20060136434A1 (en) System and method for managing objects in a server namespace

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant