CN114830618A - Resource management method, device and readable storage medium - Google Patents

Resource management method, device and readable storage medium Download PDF

Info

Publication number
CN114830618A
CN114830618A CN202080086691.5A CN202080086691A CN114830618A CN 114830618 A CN114830618 A CN 114830618A CN 202080086691 A CN202080086691 A CN 202080086691A CN 114830618 A CN114830618 A CN 114830618A
Authority
CN
China
Prior art keywords
resource
information
target
referenced
service module
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
CN202080086691.5A
Other languages
Chinese (zh)
Other versions
CN114830618B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114830618A publication Critical patent/CN114830618A/en
Application granted granted Critical
Publication of CN114830618B publication Critical patent/CN114830618B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A resource management method, a device and a readable storage medium are provided, wherein the method comprises the following steps: the proxy service module acquires first information used for indicating target operation executed on the target reference resource from the server, and the proxy service module executes operation corresponding to the target operation according to a resource list and the first information, wherein the resource list comprises related information of at least one reference resource, and the at least one reference resource is stored in different first equipment. By arranging the proxy service module, the proxy service module uniformly executes the management of the remote link, thereby simplifying the dispersion degree of codes for carrying out target operation on the reference resources indicated by the remote link and further reducing the redundancy of the codes. In addition, the code for carrying out target operation on the remotely linked reference resource is more centralized, and the centralized maintenance of the code is more facilitated.

Description

Resource management method, device and readable storage medium Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a resource management method, a resource management device and a readable storage medium.
Background
With the continuous development of communication technology and the continuous expansion of the application field of the internet of things, an Open Connectivity Foundation (OCF) is established and becomes one of the important organizations in the industry of the internet of things, and the OCF provides a new idea for the future development of the internet of things. In the OCF protocol, the functions of the devices are defined by using resources (resources), where the resources represent logical functional entities of each device, each functional service of the device, the state of the device, and other information, and these logical functional entities can be disclosed by a server in the communication system to a client for access and operation, and the client interacts with the server through resource operation. In a communication system, a collection resource (collection resource) may include one or more links, each link indicating a referenced resource, referred to as a "referenced resource," that devices may access via the link. If the referenced resource and the set resource are on the same device, the referenced resource and the set resource are called local reference or local link; if the referenced resource is on a different device than the aggregated resource, it is referred to as a remote reference or remote link.
Currently, for a remote link, resource operations are performed on reference resources included in different set resources, and each set resource is generally required to implement and call related codes to perform corresponding operations, so that the code redundancy is high, and the code redundancy is increased along with the continuous increase of functions using the remote link.
Disclosure of Invention
The embodiment of the application provides a resource management method, a resource management device and a readable storage medium, so as to reduce the code redundancy of equipment.
In a first aspect, an embodiment of the present application provides a resource management method, where the method includes:
the proxy service module acquires first information from a server, wherein the first information is used for indicating target operation aiming at a target reference resource;
the proxy service module executes the operation corresponding to the target operation according to the resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
In a second aspect, an embodiment of the present application provides a resource management method, where the method includes:
the server generates first information, wherein the first information is used for indicating target operation aiming at the target reference resource;
the server side sends the first information to an agent service module so that the agent service module executes the operation corresponding to the target operation according to a resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
In a third aspect, an embodiment of the present application provides a resource management method, where the method includes:
the method comprises the steps that first equipment receives second information sent by an agent service module according to first information and a resource list, wherein the second information is used for requesting the first equipment to carry out target operation on target reference resources; wherein the resource list comprises at least one piece of related information of the referenced resource, and the at least one referenced resource is stored in different first devices; the first information is used for indicating a target operation aiming at a target reference resource;
the first device performs the target operation on the target referenced resource.
In a fourth aspect, an embodiment of the present application provides a resource management apparatus, including:
the system comprises a receiving and sending module, a processing module and a processing module, wherein the receiving and sending module is used for acquiring first information from a server, and the first information is used for indicating target operation aiming at a target reference resource;
the processing module is used for executing the operation corresponding to the target operation according to the resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
In a fifth aspect, an embodiment of the present application provides a server, including:
a processing module to generate first information indicating a target operation for a target referenced resource;
the receiving and sending module is further used for sending the first information to an agent service module so that the agent service module executes an operation corresponding to the target operation according to a resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
In a sixth aspect, an embodiment of the present application provides a resource management apparatus, including:
the receiving and sending module is used for receiving second information sent by the proxy service module according to the first information and the resource list, and the second information is used for requesting the first equipment to perform target operation on the target reference resource; wherein the resource list comprises at least one piece of related information of the referenced resource, and the at least one referenced resource is stored in different first devices; the first information is used for indicating a target operation aiming at a target reference resource;
and the processing module is used for carrying out the target operation on the target reference resource.
In a seventh aspect, an embodiment of the present application provides an electronic device, including:
a processor, a memory, an interface to communicate with a network device;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to cause the processor to perform the resource management method of any one of the first aspect, or any one of the second aspect, or any one of the third aspect.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-readable storage medium is configured to implement the resource management method according to any one of the first aspect, the second aspect, or the third aspect.
In a ninth aspect, an embodiment of the present application provides a computer program product, including: program instructions for implementing a method of resource management as claimed in any one of the first aspect, or any one of the second aspect, or any one of the third aspect.
In a tenth aspect, an embodiment of the present application provides a program, which when executed by a processor, is configured to perform the resource management method according to any one of the first aspect, the second aspect, or the third aspect.
In an eleventh aspect, embodiments of the present application may further provide a chip, including: a processing module capable of performing the method of resource management as described in any of the first, second, or third aspects above is interfaced with a communication.
Further, the chip further includes a storage module (e.g., a memory), the storage module is configured to store instructions, the processing module is configured to execute the instructions stored by the storage module, and execution of the instructions stored in the storage module causes the chip to execute the resource management method according to any one of the first aspect, the second aspect, or the third aspect.
The embodiment of the application provides a resource management method, a resource management device and a readable storage medium, wherein the method comprises the following steps: the proxy service module acquires first information used for indicating target operation executed on the target reference resource from the server, and the proxy service module executes operation corresponding to the target operation according to a resource list and the first information, wherein the resource list comprises related information of at least one reference resource, and the at least one reference resource is stored in different first equipment. According to the method and the system, the proxy service module is arranged, and the proxy service module is used for uniformly managing the remote link, so that the dispersion degree of codes for performing target operation on the reference resources indicated by the remote link is simplified, and the redundancy of the codes is reduced. In addition, in the scheme, codes for performing target operation on the reference resources indicated by the remote link are more centralized, and centralized maintenance of the codes is more facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a communication system to which embodiments of the present application are applied;
fig. 2 is a flowchart of a resource management method according to an embodiment of the present application;
FIG. 3 is a flowchart of a resource management method according to another embodiment of the present application;
FIG. 4 is a flowchart of a resource management method according to another embodiment of the present application;
FIG. 5 is a flowchart of a resource management method according to another embodiment of the present application;
FIG. 6 is a flowchart of a resource management method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a resource management device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a resource management apparatus according to another embodiment of the present application;
fig. 10 is a schematic structural diagram of a resource management apparatus according to another embodiment of the present application;
fig. 11 is a schematic structural diagram of a server according to another embodiment of the present application;
fig. 12 is a schematic structural diagram of a resource management device according to another embodiment of the present application.
Detailed description of the preferred embodiments
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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 application.
The terms "first," "second," and the like in the description and in the claims, and in the drawings, of the embodiments of the application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the OCF protocol, the functions of the devices are defined by using resources, where the resources are logical functional entities representing information such as each device, each functional service of the device, and the state of the device, and these logical functional entities can be disclosed by a server in the communication system to a client for access and operation, and the client interacts with the server through the resource operation. In the OCF protocol, a resource may also be referred to as an OCF resource or other name.
Parameters of an OCF Resource may include a Uniform Resource Identifier (URI), Resource attributes, Resource links and interfaces, and the like. Wherein, URI: each resource has a corresponding URI, and part of the resources have predefined URIs, so that the client can access the corresponding resources through the URIs. Resource attribute: each resource contains attributes, which are used to describe the relevant information of the resource. Resource linking (link): reference relationships between resources can be established through links. Interface (interface): disclosed are representations of resources and corresponding methods of operation.
A Collection Resource contains a "links" attribute, i.e., the Collection Resource includes one or more links corresponding to resources, each link indicating a referenced Resource, which may become a "referenced Resource". Multiple target resources or other rendezvous resources may be referenced by a rendezvous resource. When a referenced resource is on the same device as a collection resource, it is called a local reference or local link; when a referenced resource is on a different device than a collection resource, it is referred to as a remote reference or remote link.
For example, a collective resource includes the switching resources of device a (e.g., device a is a lighting device a) and the switching resources of device B (e.g., device B is a lighting device B), and the collective resources form a collective group of resources. The client can simultaneously request a plurality of resources through an interface for accessing the set resources, the set resources can send requests to the resources indicated by each link in the set, receive responses returned by each resource, and then return the requests to the client in a centralized manner.
A Scene Resource (Scene Resource) is an aggregate Resource that can reference one or more Scene Member resources (Scene Member resources), and each Scene Member Resource is also an aggregate Resource that references a local or remote device Resource. In the OCF protocol, device automation control can be realized by operating scene resources that have been created.
A Rule Resource (Rule Resource) is an assembly Resource, the Rule Resource references a Rule Input aggregation Resource (Rule Input Collection Resource), the Rule Input aggregation Resource references one or more resources, and the resources referenced in the Rule Input aggregation Resource may be functional resources of a device, which can generate a status data notification of the device. The Rule Resource also refers to a Rule Expression Resource (Rule Expression Resource), the Rule Resource also refers to a Rule operation Collection Resource (Rule Action Collection Resource), and the Rule operation Collection Resource refers to one or more scene resources. The rule expression resources are composed of relational expressions and logic expressions, and when the attribute values of the resources referenced by the links in the rule input set resources enable the judgment result of the rule expression resources to be 'true', the scene resources referenced by the links in the rule operation set resources are caused to be operated.
In the OCF protocol, when a link is added or deleted for an aggregate resource, such as a scene resource, a scene member resource, a rule input aggregate resource, a rule operation aggregate resource, or the like, "add link interface" or "delete link interface" is used. When a scene is executed, the scene resource needs to acquire and update the reference resource in the scene member. When the rule is executed, the rule resource needs to perform the operations of obtaining and subscribing the reference resource in the rule input set resource, and also needs to perform the operations of obtaining and updating the reference resource in the rule operation set resource.
As previously described, for local links, the referenced resources are internal to the same device as the aggregated resources and can be used by means of internal device calls. For remote links, the referenced resource is on a different device than the aggregated resource, which needs to communicate with the referenced resource over a network for resource operations.
In the prior art, when remote linking is used, each set resource generally implements and calls a related code to execute a corresponding operation, for example, a scene resource, a rule resource, and other set resources generally include a scene function module, a rule function module, and a function module corresponding to the other set resources, respectively; the system comprises a scene function module, a rule function module and other set resources, wherein the scene function module is used for accessing quote resources included in scene resources, the rule function module is used for accessing quote resources included in operation rule set resources, and the function modules corresponding to the other set resources are used for accessing quote resources included in the other set resources; each module using the remote link needs to be configured with relevant code, and the functional modules realize access to the referenced resources by calling the respective relevant code, so that the redundancy of the code in the device is high. In addition, as the use of remote links increases, the redundancy of the code in the device increases.
Therefore, how to reduce the redundancy of codes in the device is an urgent problem to be solved.
An implementation environment to which embodiments of the present application relate is described.
The technical scheme of the embodiment of the application can be applied to various communication systems, for example: a GSM (Global System for Mobile communications) System, a CDMA (Code Division Multiple Access) System, a WCDMA (Wideband Code Division Multiple Access) System, a GPRS (General Packet Radio Service), an LTE (Long Term Evolution ) System, an LTE FDD (Frequency Division Duplex ) System, an LTE TDD (Time Division Duplex, Time Division Duplex) System, an LTE-a (Advanced Long Term Evolution ) System, an NR (New Radio) System, an NR (non-licensed To-Universal) System, an LTE-U (Unlicensed To Unlicensed Spectrum, an NR-Based) System, an NR (Universal Mobile telecommunications System, non-licensed To-Universal telecommunications) System, an NR (Universal telecommunications System, non-licensed To-Universal telecommunications) System, a UMTS-Based (Universal telecommunications) System, a Radio System, WiMAX (Worldwide Interoperability for Microwave Access) communication system, WLAN (Wireless Local Area network), WiFi (Wireless Fidelity), next generation communication system, or other communication systems.
Generally, the conventional Communication system supports a limited number of connections and is easy to implement, however, with the development of Communication technology, the mobile Communication system will support not only conventional Communication but also, for example, D2D (Device to Device) Communication, M2M (Machine to Machine) Communication, MTC (Machine Type Communication), V2V (Vehicle to Vehicle) Communication, V2X (Vehicle to Vehicle networking) system, and the like. The embodiments of the present application can also be applied to these communication systems.
The system architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and as a person of ordinary skill in the art knows that along with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
Illustratively, a communication system 100 applied in the embodiment of the present application is shown in fig. 1. The communication system 100 may include a network device 110, and the network device 110 may be a device that communicates with a terminal device 120 (or other names called communication terminal, etc.). Network device 110 may provide communication coverage for a particular geographic area and may communicate with terminals located within the coverage area. Optionally, the Network device 110 may be an evolved Node B (eNB or eNodeB) in an LTE system, or a wireless controller in a CRAN (Cloud Radio Access Network), or the Network device may be a mobile switching center, a server (also referred to as a server), a relay station, an Access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a Network-side device in a 5G Network, or a Network device in a future communication system, and the like.
The communication system 100 further comprises at least one terminal device 120 located within the coverage area of the network device 110. As used herein, "terminal" includes, but is not limited to, a connection via a wire Line, such as a connection via PSTN (Public Switched Telephone network), DSL (Digital Subscriber Line), Digital cable, direct cable; and/or another data connection/network; and/or via a Wireless interface, e.g., for a cellular Network, a WLAN (Wireless Local Area Network), a digital television Network such as a DVB-H Network, a satellite Network, an AM-FM broadcast transmitter; and/or means of another terminal arranged to receive/transmit communication signals; and/or IoT (Internet of Things) devices. A terminal that is arranged to communicate over a wireless interface may be referred to as a "wireless communication terminal", "wireless terminal", or "mobile terminal". Examples of mobile terminals include, but are not limited to, satellite or cellular telephones; a PCS (Personal Communications System) terminal that can combine a cellular radiotelephone with data processing, facsimile, and data Communications capabilities; PDAs that may include radiotelephones, pagers, internet/intranet access, Web browsers, notepads, calendars, and/or GPS (Global Positioning System) receivers; and conventional laptop and/or palmtop receivers or other electronic devices that include a radiotelephone transceiver. A terminal device may refer to an access terminal, UE (User Equipment), subscriber unit, subscriber station, mobile station, remote terminal, mobile device, User terminal, wireless communication device, User agent, or User Equipment. An access terminal may be a cellular phone, a cordless phone, a SIP (Session Initiation Protocol) phone, a WLL (Wireless Local Loop) station, a PDA (Personal Digital Assistant), a handheld device with Wireless communication capability, a computing device or other processing device connected to a Wireless modem, a vehicle mounted device, a wearable device, a terminal in a 5G network or a terminal in a PLMN for future evolution, etc.
Optionally, terminal direct D2D communication may be performed between terminal devices 120.
Alternatively, the 5G communication system or the 5G network may also be referred to as an NR system or an NR network or other names.
Fig. 1 exemplarily shows one network device and 1 terminal device, and optionally, the communication system 100 may include a plurality of network devices and may include other numbers of terminals within the coverage of each network device, which is not limited in this embodiment of the present application.
Optionally, the communication system 100 may further include other network entities such as a network controller, a mobility management entity, and the like, which is not limited in this embodiment.
It should be understood that a device having a communication function in a network/system in the embodiments of the present application may be referred to as a communication device. Taking the communication system 100 shown in fig. 1 as an example, the communication device may include a network device 110 and a terminal device 120 having a communication function, and the network device 110 and the terminal device 120 may be the specific devices described above and are not described herein again; the communication device may also include other devices in the communication system 100, such as other network entities, for example, a network controller, a mobility management entity, and the like, which is not limited in this embodiment.
The resource management method provided by the application comprises at least part of the following contents.
The proxy service module acquires first information used for indicating target operation executed on the target reference resource from the server, and the proxy service module executes operation corresponding to the target operation according to a resource list and the first information, wherein the resource list comprises related information of at least one reference resource, and the at least one reference resource is stored in different first equipment. According to the method and the system, the proxy service module is arranged, and the proxy service module is used for uniformly managing the remote link, so that the dispersion degree of codes for performing target operation on the reference resources indicated by the remote link is simplified, and the redundancy of the codes is reduced. In addition, in the scheme, codes for performing target operation on the reference resources of the remote link are more centralized, and centralized maintenance of the codes is facilitated.
The resource management method provided by the present application is described in detail below with reference to several specific embodiments.
Fig. 2 is a flowchart of a resource management method according to an embodiment of the present application. As shown in fig. 2, the method of the present embodiment includes:
s101, the agent service module acquires first information from the server.
Wherein the first information is used for indicating that the target operation is carried out on the target reference resource. In this scheme, the target reference resource may be a resource indicated by a link in a scene resource, or may also be a resource indicated by a link in a rule resource, or may also be a resource indicated by a link in another set resource, which is not limited in this scheme.
Illustratively, the first information may include attribute-related information of the target referenced resource and related information of a device storing the target referenced resource, and the proxy service module may uniquely determine the target referenced resource according to the first information. The attribute related information of the target referenced Resource may include, for example, a Resource Type (Resource Type) of the target referenced Resource, a URI of the target referenced Resource, and the like, and the related information of the device storing the target referenced Resource may include, for example, an identifier ID of the device storing the target referenced Resource and/or an IP address and a port number of the device storing the target referenced Resource. Of course, the first information may also include other parameters, which are described herein for exemplary purposes only and are not limiting of the first information. For example, the first information may further include information indicating whether the target referenced resource is discoverable and observable, a context URI of the target referenced resource, attribute information indicating a relationship between the URI of the target referenced resource and the context URI, readability description information of the target referenced resource, a constraint condition of an attribute value of the target referenced resource, an access mode of the target referenced resource, information indicating whether a resource type corresponding to the target referenced resource is mandatory in the OCF protocol, and the like.
The target operation may include any one or combination of query, create, get, update, delete, and notify. Accordingly, the first information may include related information of the target referenced resource, which may be different according to the target operation.
S102, the agent service module executes operation corresponding to the target operation according to the resource list and the first information.
The resource list related in this step includes at least one piece of related information referring to the resource, and the resource list at least includes a URI, an interface, and an identifier of the first device of each referring resource, where the first device referred to here is a device storing the corresponding referring resource, and the first device may be other terminal device, or may also be a network side device. Optionally, the identification of the first device may comprise an identification code ID of the first device and/or an IP address and port number of the first device.
After the agent service module acquires the first information, the agent service module may execute the target operation indicated in the first information according to the relevant information of the target referenced resource included in the first information and the relevant information of each referenced resource in the resource list.
Exemplarily, the following steps are carried out: if the target operation is query and the first information comprises the URI of the target reference resource and the identifier of the device for storing the target reference resource, the proxy service module can query a resource list according to the URI of the target reference resource and the identifier of the device for storing the target reference resource to obtain a query result.
If the target operation includes one or more of creating, obtaining, updating, deleting, notifying and other operations, and the first information includes the URI of the target referenced resource and the identifier of the device storing the target referenced resource, the proxy service module may query a resource list according to the URI of the target referenced resource and the identifier of the device storing the target referenced resource, determine whether the resource list includes the target referenced resource, and obtain, by the proxy service module and the first device storing the target referenced resource, a processing result of the first device performing the target operation on the target referenced resource through interaction according to the query result.
It should be noted that, in this step, the operation corresponding to the target operation executed by the proxy service module does not execute the target operation itself, but executes an operation related to the target operation, for example, an inquiry operation.
In the following embodiments, specific implementations of the respective target operations will be described in detail respectively.
In this embodiment, the proxy service module receives, from the server, first information indicating that a target operation is performed on a target referenced resource, and the proxy service module performs an operation corresponding to the target operation according to a resource list and the first information, where the resource list includes information about at least one referenced resource, and the at least one referenced resource is stored in a different first device. In the embodiment, by setting the proxy service module, the proxy service module performs management on the remote link in a unified manner, so that the dispersion degree of the code for performing target operation on the reference resource indicated by the remote link is simplified, and the redundancy of the code is reduced. In addition, in the scheme, codes for performing target operation on the remotely linked reference resources are more centralized, and centralized maintenance of the codes is more facilitated.
Fig. 3 is a flowchart of a resource management method according to another embodiment of the present application. As shown in fig. 3, the method of the present embodiment includes:
s201, the proxy service module obtains a resource search result.
In this scenario, the resource search result may include the related information of the searched at least one resource. Illustratively, the related information of the searched at least one resource may include an attribute of the searched at least one resource and an identification of a device storing the searched resource. Illustratively, the attribute of the searched at least one resource may include a URI corresponding to each of the at least one resource, and the identifier of the device storing the searched resource may include an ID of the device storing the searched resource and/or an IP address of the device storing the searched resource.
It should be noted that in an actual communication system, the URI of a resource and the identity of the device storing the resource may uniquely identify a resource. The URI of a resource and the identity of the device storing the resource may typically be in the form of a binary, e.g., (URI, ID) or (URI, eps), where eps (endpoint) represents the message endpoint that has access to the resource, i.e., represents the IP address and port number of the device storing the resource.
According to a possible implementation manner, the proxy service module can send a resource acquisition request to other devices in the local area network in a multicast manner, then the other devices send the related information of the resources stored by the proxy service module to the proxy service module in a unicast manner, and the proxy service module acquires the resource search result by acquiring the related information of the resources stored by the proxy service module, which is sent by each device.
In practical application, after the agent service module obtains the first information in S101, the agent service module starts resource search to obtain a resource search result; or, the proxy service module may also start the resource search after the initialization is completed, that is, the resource search is started before the proxy service module acquires the first information in S101, so as to acquire the resource search result.
Optionally, the agent service module may periodically start resource search to obtain a resource search result; or, the proxy service module may start resource search at a preset time to obtain a resource search result. The period of starting the resource search by the agent service module or the preset time described above can be set according to actual requirements.
S202, the proxy service module obtains a resource list according to the resource searching result.
According to a possible implementation mode, the proxy service module establishes a resource list according to the resource search result, and the proxy service module can uniformly manage remote links in the resource list according to the established resource list.
In another possible implementation manner, if the proxy service module includes a pre-cached resource list, the proxy service module may update the pre-cached resource list according to the resource search result, thereby obtaining the resource list. Specifically, the proxy service module may query a pre-cached resource list according to the resource search result, and determine whether the pre-cached resource list includes the searched at least one resource; if the proxy service module determines that the pre-cached resource list does not include one or more resources in the searched at least one resource, the proxy service module may update the pre-cached resource list according to the searched at least one resource and the query result, and acquire the resource list.
The method for updating the pre-cached resource list and acquiring the resource list by the proxy service module according to the searched at least one resource and the query result comprises the following steps: according to the query result, the related information of the resource which belongs to the searched at least one resource but does not belong to the pre-cached resource list is added to the pre-cached resource list according to the format of the resource list to obtain an updated resource list, and the proxy service module can uniformly manage the remote links in the resource list according to the updated resource list.
In this embodiment, the proxy service module obtains the resource search result and obtains the resource list according to the resource search result, and the method of this embodiment provides a basis for the proxy service module to perform unified management on the remote links in the resource list.
Fig. 4 is a flowchart of a resource management method according to another embodiment of the present application. In this embodiment, the target operation includes: one or a combination of creation, acquisition, update, deletion, and notification is described in detail as an example. As shown in fig. 4, the method of the present embodiment includes:
s301, the agent service module acquires first information from the server.
The first information is used to indicate that a target operation is performed on the target reference resource, and the target operation may include: one or a combination of create, get, update, delete, and notify.
S302, the proxy service module determines whether the resource list comprises the target reference resource according to the resource list and the first information.
S303, the proxy service module sends the second information to the first device corresponding to the target reference resource.
Specifically, the proxy service module determines, according to the first information and the resource list, a first device corresponding to the target-referenced resource, and sends second information to the first device corresponding to the target-referenced resource. Correspondingly, the first device receives second information sent by the proxy service module, and the second information is used for requesting the first device corresponding to the target reference resource to perform target operation on the target reference resource.
If the first information includes the attribute of the target reference resource and the identifier of the device storing the target reference resource, the proxy service module may query the resource list according to the attribute of the target reference resource and the identifier of the device storing the target reference resource, and determine whether the resource list includes the target reference resource; if the proxy service module determines that the resource list comprises the target reference resource, a session is established with the device according to the identifier of the device storing the target reference resource, and after the session is successfully established, the proxy service module sends second information to the first device to indicate the first device to perform target operation on the target reference resource.
If the target referenced resource comprises a plurality of referenced resources, and the plurality of referenced resources are stored in the same first device, or stored in different first devices; if a plurality of referenced resources included in the target referenced resource are stored in the same first device, the proxy service module may send second information to the first device storing the target referenced resource; if the target referenced resource comprises a plurality of referenced resources stored in different first devices, the proxy service module may send second information to the plurality of first devices storing the target referenced resource, respectively.
Illustratively, the target referenced resources include 3 referenced resources, and the 3 referenced resources are stored in the same first device, then the second information sent by the proxy service module to the first device is used to request target operation on the 3 referenced resources. The target referenced resources include 3 referenced resources stored in 3 different first devices, and then the proxy service module sends second information to the first device 1, the first device 2, and the first device 3, respectively.
If the target referenced resource includes multiple referenced resources, the target operations performed on the multiple referenced resources may be the same or different. That is, each second information is used to request the first device to perform a target operation on the target referenced resource, and the target operation requested in each second information may have a difference.
Exemplarily, the target referenced resources include 3 referenced resources, and the 3 referenced resources are stored in the same first device, then the second information sent by the proxy service module to the first device is used to request that the target operations are respectively performed on the 3 referenced resources included in the target referenced resources, where the target operations respectively performed on the 3 referenced resources included in the target referenced resources may be the same, for example, all the target operations are acquisition operations, or the target operations respectively performed on the 3 referenced resources included in the target referenced resources may not be completely the same, for example, the creating operation is performed on the 1 st referenced resource, the creating operation is performed on the 2 nd referenced resource, and the updating operation is performed on the 3 rd referenced resource.
Illustratively, the target referenced resources include 3 referenced resources, and the 3 referenced resources are stored in 3 different first devices, and the second information sent by the proxy service module to the first device 1 is used to request the first device 1 to perform creation operation on the target referenced resources; the second information sent by the proxy service module to the first device 2 is used for requesting the first device 2 to perform creation operation on the target reference resource; the second information sent by the proxy service module to the first device 3 is used for requesting an update operation on the target referenced resource.
S304, the first device executes target operation on the target reference resource according to the second information.
S305, the first device sends third information to the proxy service module.
Correspondingly, the proxy service module receives third information sent by the first device, where the third information is used to indicate a processing result of the first device performing a target operation on the target referenced resource, and the processing result can indicate that the first device has succeeded in or failed in performing the target operation on the target referenced resource.
For example, if the target operation includes creation, the third information may be used to indicate a processing result of the first device performing the creation operation on the target referencing resource, where the third information specifically may include information that needs to be returned when the creation is successful, or information that indicates that the first device fails to create the target referencing resource.
If the target operation includes obtaining, the third information may be used to indicate a processing result of the first device performing the obtaining operation on the target referenced resource, where the third information may include, for example, an attribute value of the obtained target referenced resource, or information used to indicate that the first device fails to obtain the attribute value of the target referenced resource.
If the target operation includes an update, the third information may be a processing result indicating that the first device performs an update operation on the target referenced resource, where the third information specifically may be related information of the updated target referenced resource that needs to be returned when the update is successful, or the third information may include information indicating that the first device fails to update the target referenced resource.
If the target operation includes deletion, the third information may be used to indicate a processing result of the first device performing a deletion operation on the target referenced resource, where the third information specifically may include information used to indicate that the first device successfully deletes the target referenced resource, or the third information may include information used to indicate that the first device fails to delete the target referenced resource.
If the target operation includes a notification, the third information may include the latest attribute value corresponding to the target referenced resource. The attribute values referred to herein may be attribute values stored in the resource list that are related to the actual device function. For example, if the first device is a lighting device, the resource list may store the on-off state of the lighting device, and the third information sent by the first device to the proxy service module may include an attribute value of the on-off state of the lighting device; accordingly, the proxy service module may update the attribute value of the on-off state of the lighting device in the resource list according to the acquired attribute value of the on-off state of the lighting device.
Specifically, if the target referenced resource includes multiple referenced resources and the multiple referenced resources are stored in the same first device, the first device may send processing results corresponding to the multiple referenced resources through the same signaling, or may send processing results corresponding to the multiple referenced resources through different signaling; and if the target referenced resource comprises a plurality of referenced resources and the plurality of referenced resources are stored in a plurality of different first devices, each first device sends third information to the proxy service module, wherein each third information is used for indicating a processing result of the first device for performing target operation on the corresponding referenced resource.
Exemplarily, if the target referenced resources include 3 referenced resources and the 3 referenced resources are stored in the same first device, the first device sends third information to the proxy service module, where the third information is used to instruct the first device to respectively execute processing results of the target operations on the 3 referenced resources; if the target referenced resource includes 3 referenced resources and the 3 referenced resources are stored in 3 first devices, the first device 1 sends third information to the proxy service module, where the third information is used to indicate a processing result of the first device 1 performing a target operation on the corresponding referenced resource, the first device 2 sends the third information to the proxy service module, where the third information is used to indicate a processing result of the first device 2 performing the target operation on the corresponding referenced resource, and the first device 3 sends the third information to the proxy service module, where the third information is used to indicate a processing result of the first device 3 performing the target operation on the corresponding referenced resource.
In this embodiment, the proxy service module receives first information for executing a target operation on a target referenced resource, and according to the resource list and the first information, the proxy service module sends second information for requesting the first device to perform the target operation on the target referenced resource to the first device corresponding to the target referenced resource, and receives third information sent by the first device, where the third information is used to indicate a processing result of the first device performing the target operation on the target referenced resource. In the embodiment, by setting the proxy service module, the proxy service module performs management on the remote link in a unified manner, so that the dispersion degree of codes for creating, acquiring, updating, deleting, notifying and the like of the reference resource indicated by the remote link is simplified, and the redundancy of the codes is reduced. In addition, in the scheme, compared with the prior art, codes for creating, acquiring, updating, deleting, notifying and the like of the reference resources of the remote link are more centralized, and centralized maintenance of the codes is facilitated.
It should be noted that, on the basis of the embodiment shown in fig. 4, the embodiments shown in fig. 3 and fig. 4 may be combined with each other, for example, after the proxy service module acquires the first information S301, the proxy service module executes the scheme in the embodiment shown in fig. 3, or before the proxy service module acquires the first information S301, the proxy service module executes the scheme in the embodiment shown in fig. 3.
Optionally, on the basis of the embodiment shown in fig. 4, the method further includes:
s306, the proxy service module sends fourth information to the server.
And the fourth information is used for indicating the processing result of the target operation of the first equipment on the target reference resource. For example, the parameters included in the fourth information may be the same as the parameters included in the third information.
Fig. 5 is a flowchart of a resource management method according to another embodiment of the present application. In this embodiment, the target operation includes: and (6) querying. Referring to fig. 5, the method of the present embodiment includes:
s401, the client sends a remote link modification request to the server.
Accordingly, the server receives a remote link modification request sent by the client, which may be, for example, an add remote link request.
Optionally, the remote link modification request sent by the client may include the URI of the referenced resource indicated by the remote link and the identification of the target first device. The target first device is a device that stores the referenced resource indicated by the remote link.
Optionally, the identification of the target first device may comprise an identification code ID of the target first device and/or an IP address of the target first device.
S402, the server side sends first information to the agent service module.
Correspondingly, the proxy service module receives the first information sent by the server. In some possible implementation manners, the proxy service module and the server are integrated in the same device, and the server and the proxy service module can communicate by means of an internal calling Application Programming Interface (API).
S403, the proxy service module determines whether the resource list includes the target reference resource according to the resource list and the first information.
Specifically, the proxy service module queries the resource list according to the URI of the referenced resource indicated by the remote link and the identifier of the target first device, which are included in the first information, so as to determine whether the resource list includes the referenced resource indicated by the remote link.
Wherein, the referenced resource indicated in the remote link modification request is the target referenced resource in this step. S404, the proxy service module sends fifth information to the server.
Specifically, the proxy service module sends fifth information indicating whether the resource list includes the target referenced resource to the server by means of internal calling API.
Optionally, after S404, the method may further include: s405 and S406.
S405, the server executes a remote link modification request according to the fifth information.
S406, the server sends sixth information to the client, wherein the sixth information is used for indicating the server to execute a processing result of the remote link modification request.
Specifically, the server may determine whether the resource list includes the referenced resource indicated in the remote link modification request according to fifth information sent by the proxy service module; if the server determines that the resource list comprises the reference resource indicated in the remote link modification request according to the fifth information, the server can execute the operation of adding the remote link and send sixth information for indicating that the remote link is successfully added to the client after the remote link is successfully added; and if the server determines that the resource list does not include the reference resource indicated in the remote link modification request according to the fifth information, the server executes the sixth information for indicating that the remote link modification request fails to be processed remotely and sends the sixth information to the client.
In this embodiment, the proxy service module may query the resource list according to the remote link modification request sent by the client, determine whether the resource list includes the reference resource indicated in the remote link modification request, and return the query result to the server by the proxy service module, so that the server executes the remote link modification request according to the query result. In the embodiment, the proxy service module is arranged, and the proxy service module performs management on the remote link in a unified manner, so that the realization of an interface for increasing the remote link is simplified, and the redundancy of codes is reduced.
It should be noted that, on the basis of the embodiment shown in fig. 5, the embodiments shown in fig. 3 and fig. 5 may be combined with each other, for example, after the server sends the first information to the proxy service module S402, the proxy service module executes the scheme in the embodiment shown in fig. 3, or before the server sends the first information to the proxy service module S402, the proxy service module executes the scheme in the embodiment shown in fig. 3.
Fig. 6 is a flowchart of a resource management method according to an embodiment of the present application. In this embodiment, the proxy service module is integrated with the server B, and the proxy service module may be understood as a sub-module of the server B, and the target reference resource is stored in the server C. Referring to fig. 6, the method of this embodiment includes:
s501, the server B and the proxy service module are initialized.
S502, the proxy service module searches resources in a multicast mode.
S503, the proxy service module receives the resource search result sent by the server C in a unicast mode.
It should be noted that, in an actual communication system, the proxy service module may also receive resource search results sent by more other devices, for example, the proxy service module receives resource search results sent by the server D, the server E, and the like in a unicast manner.
The resource search result sent by the server C includes the attribute of the resource and the identifier of the server C. The attribute of the resource may include a URI, a resource type, an interface, and the like of the resource, and the identifier of the server C may include an ID of the server C and/or an IP address of the server C. Of course, the resource search result sent by the server C may also include other related information of the resource, which is not limited in this application.
S504, the proxy service module obtains the resource list according to the resource searching result.
The implementation manner of the proxy service module obtaining the resource list according to the resource search result may refer to the description in the embodiment shown in fig. 3, and details are not repeated here. In addition, in this embodiment, the proxy service module may acquire the resource list automatically after the initialization of the server B and the proxy service module is completed, and in an actual communication system, S502 to S504 may be executed after S505.
And S505, the server B receives the remote link adding request sent by the client A.
S506, the server B generates first information according to the remote link adding request.
S507, the server B sends the first information to the proxy service module.
The first information includes an identification of a referenced resource indicated by the remote link and an identification of a device storing the referenced resource indicated by the remote link.
S508, the agent service module determines whether the resource list comprises the target reference resource according to the first information and the resource list.
Wherein the query result is used to indicate whether the resource list includes a referenced resource indicated by the remote link.
And S509, the proxy service module sends fourth information to the server B.
The fourth information is for indicating whether the resource list includes the target referenced resource. If the proxy service module determines that the resource list includes the reference resource indicated by the remote link according to the fourth information, S510 is executed, and if the proxy service module determines that the resource list does not include the reference resource indicated by the remote link according to the query result, S511 is executed.
And S510, executing the operation of adding the remote link.
S511, the server B determines that the operation of adding the remote link fails.
S512, the server B sends the processing result of the remote link modification request to the client A.
The client a may determine that the operation is successful or failed according to the processing result of adding the remote link sent by the server B, and the client may determine the operation to be executed next according to the received processing result.
Optionally, in some cases, the following steps may also be included:
s513, the service terminal B determines that the CRUDN operation needs to be executed on the target reference resource.
In this embodiment, the CRUDN operation is the target operation described above. Where C denotes creation (create), R denotes acquisition (retrieve), U denotes update (update), D denotes deletion (delete), N denotes notification (notify), and the CRUDN operation is a basic operation in communication.
S514, the service terminal B sends CRUND operation request to the proxy service module.
Correspondingly, the proxy service module receives the CRUDN operation request sent by the server B. The CRUDN operation request comprises first information, and the first information comprises the attribute of the target reference resource and the identification of the device storing the target reference resource. For example, the first information in the CRUDN operation request includes the URI of the target referenced resource and the IP address of the server C, i.e., the device storing the target referenced resource.
And S515, the proxy service module determines the IP address and the port number of the service terminal C according to the CRUND operation request and the resource list.
S516, the proxy service module establishes a session with the server C according to the IP address and the port number of the server C.
S517, the proxy service module sends a CRUDN operation request to the service terminal C.
S518, the service terminal C executes CRUDN operation on the target reference resource according to the CRUDN operation request.
S519, the service end C sends the processing result of the CRUDN operation to the proxy service module.
The result is used for indicating that the CRUDN operation of the target reference resource by the service terminal C is successful or failed, and the result also comprises related parameters which need to be returned to the proxy service module when the CRUDN operation of the target reference resource by the service terminal C is successful.
S520, the proxy service module sends the processing result of the CRUDN operation to the service terminal B.
It should be noted that, in the present solution, the communication between the server B and the proxy service module can be implemented by calling an internal API.
In the embodiment, the proxy service module is arranged in the server B, and after initialization is completed, the proxy service module starts resource search to obtain a resource list, wherein the resource list provides a basis for the proxy service module to uniformly manage remote links; furthermore, the realization of 'adding remote link' interface is simplified through the proxy service module, and the realization of the function of CRUDN operation on the reference resource indicated by the remote link is simplified; in addition, the software codes corresponding to the interface of 'adding remote link' and the relevant codes of the function of performing CRUDN operation have higher concentration degree, thereby being beneficial to the centralized maintenance of the software codes.
It should be noted that, in the embodiment shown in fig. 6, the execution sequence between S505 to S512 and S513 to S620 is not sequential, for example, the SS505 to S512 and S513 to S620 may be executed in parallel, or the SS 513 to S620 may be executed first and then the SS505 to S512 are executed.
It should be noted that, in the above embodiments, the dashed box including the server and the proxy service module is used to indicate that the server and the proxy service module may be integrated together.
It is to be understood that the above embodiments may be implemented independently or in combination with each other.
Fig. 7 is a schematic structural diagram of a resource management device according to an embodiment of the present application. As shown in fig. 7, the present embodiment provides an apparatus 200 including: a transceiver module 201 and a processing module 202.
The receiving and sending module 201 is configured to obtain first information from a server, where the first information is used to indicate a target operation for a target reference resource;
a processing module 202, configured to execute an operation corresponding to the target operation according to the resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
The resource management apparatus provided in this embodiment may be configured to execute the technical solution executed by the proxy service module in any of the foregoing method embodiments, and the implementation principle and the technical solution are similar, and are not described here again.
In some possible designs, the transceiver module 201 is further configured to obtain a resource search result, where the resource search result includes information related to the searched at least one resource;
the processing module 202 is further configured to obtain the resource list according to the resource search result.
In some possible designs, the processing module 202 is specifically configured to query a pre-cached resource list according to the resource search result to obtain a query result; acquiring the resource list according to the query result and the pre-cached resource list;
the resource search result includes identifiers respectively corresponding to the at least one searched resource and identifiers respectively corresponding to second devices of the at least one searched resource, and the query result is used to indicate whether the pre-cached resource list includes the at least one resource.
In some possible designs, the processing module 202 is specifically configured to determine, according to the query result, whether the pre-cached resource list includes the searched at least one resource; and if the pre-cached resource list does not comprise one or more searched resources in the at least one resource, updating the pre-cached resource list according to the at least one searched resource and the query result, and acquiring the resource list.
In some possible designs, the transceiver module 201 is specifically configured to periodically acquire the resource search result.
In some possible designs, the searched identifiers corresponding to the at least one resource respectively comprise uniform resource identifiers URI corresponding to the at least one resource respectively; the identification of the second device comprises an identification code ID of the second device and/or an IP address and a port number of the second device.
In some possible designs, the resource list includes at least one referenced resource, the resource list including at least a URI, a resource type, an interface, and an identification of the first device for each of the referenced resources; wherein the first device is a device storing the referenced resource.
In some possible designs, if the target operation includes: one or a combination of creating, obtaining, updating, deleting, and notifying;
the processing module 202 is specifically configured to determine, according to the first information and the resource list, an identifier of a first device corresponding to the target reference resource;
the transceiver module 201 is further configured to send second information to the first device corresponding to the target-referenced resource, where the second information is used to request the first device corresponding to the target-referenced resource to perform a target operation on the target-referenced resource.
In some possible designs, the transceiver module 201 is further configured to receive third information from the first device corresponding to the target referenced resource, where the third information is used to indicate a processing result of the first device corresponding to the target referenced resource performing the target operation on the target referenced resource.
In some possible designs, the transceiver module 201 is further configured to send fourth information to the server, where the fourth information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device corresponding to the target referenced resource.
In some possible designs, if the target operation includes: inquiring;
the processing module 202 is specifically configured to determine, according to the first information and the resource list, whether the resource list includes the target referenced resource;
the transceiver module 201 is further configured to send fifth information to a server, where the fifth information is used to indicate whether the resource list includes the target reference resource.
In some possible designs, the first information is determined by the server according to a remote link modification request sent by a client.
In some possible designs, the remote link modification request sent by the client includes the URI of the referenced resource indicated by the remote link and the identification of the target first device, where the target first device is the device to which the referenced resource indicated by the remote link corresponds.
In some possible designs, the identification of the target first device includes an identification number, ID, of the target first device and/or an IP address and port number of the target first device.
In some possible designs, the remote link modification request is for requesting addition of a remote link.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present application. Referring to fig. 8, the server 300 provided in this embodiment includes: a processing module 301 and a transceiver module 302.
Wherein, the processing module 301 is configured to generate first information, where the first information is used to indicate a target operation for a target reference resource;
the transceiver module 302 is further configured to send the first information to an agent service module, so that the agent service module executes an operation corresponding to the target operation according to a resource list and the first information;
wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
The server provided in this embodiment may be configured to execute the technical solution executed by the server in any of the foregoing method embodiments, and the implementation principle and the technical solution are similar, which are not described herein again.
In some possible designs, if the target operation includes: one or a combination of creating, obtaining, updating, deleting, and notifying; the transceiver module 302 is further configured to receive fourth information from the proxy service, where the fourth information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device corresponding to the target referenced resource.
In some possible designs, if the target operation includes: inquiring; the transceiver module 302 is further configured to receive fifth information from the proxy service, where the fifth information is used to indicate whether the resource list includes the target referenced resource.
In some possible designs, the first information is determined by the processing module 301 based on a remote link modification request sent by the client.
In some possible designs, the remote link modification request sent by the client includes the URI of the referenced resource indicated by the remote link and the identification of the target first device, where the target first device is the device to which the referenced resource indicated by the remote link corresponds.
In some possible designs, the identification of the target first device includes an identification number, ID, of the target first device and/or an IP address and port number of the target first device.
In some possible designs, the remote link modification request is for requesting addition of a remote link.
In some possible designs, the processing module 301 is further configured to execute the remote link modification request according to the fifth information.
In some possible designs, the transceiver module 302 is further configured to send sixth information to the client, where the sixth information is used to instruct the server to execute a processing result of the remote link modification request.
Fig. 9 is a schematic structural diagram of a resource management device according to another embodiment of the present application. Referring to fig. 9, the resource management apparatus 400 according to this embodiment includes: a transceiver module 401 and a processing module 402.
The receiving and sending module 401 is configured to receive second information sent by the proxy service module according to the first information and the resource list, where the second information is used to request the first device to perform a target operation on a target reference resource; wherein the resource list comprises at least one piece of related information of the referenced resource, and the at least one referenced resource is stored in different first devices; the first information is used for indicating a target operation aiming at a target reference resource;
a processing module 402, configured to perform the target operation on the target referenced resource.
In some possible designs, the transceiver module 401 is further configured to send third information to the proxy service module, where the third information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device.
The target operation comprises: one or a combination of create, get, update, delete, and notify.
The resource management apparatus provided in this embodiment may be configured to execute the technical solution executed by the first device in any of the foregoing embodiments, and the implementation principle and the technical solution are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a resource management device according to another embodiment of the present application. Referring to fig. 10, the resource management device 500 includes: a processor 511, a memory 512, an interface 513 for communicating with other devices;
the memory 512 stores computer-executable instructions;
the processor 511 executes the computer execution instructions stored in the memory, so that the processor 511 executes the technical solution executed by the proxy service module in any of the foregoing method embodiments.
Fig. 10 is a simple design of the proxy service module, and the number of processors and memories in the proxy service module is not limited in the embodiments of the present application, and fig. 10 only illustrates the number as 1 as an example.
In one specific implementation of the resource management apparatus shown in fig. 10, the memory 512, the processor 511 and the interface 513 may be connected through a bus 514, and optionally, the memory 512 may be integrated inside the processor 511.
Fig. 11 is a schematic structural diagram of a server according to another embodiment of the present application. Referring to fig. 11, the resource management apparatus 600 includes: a processor 611, a memory 612, an interface 613 to communicate with other devices or modules;
the memory 612 stores computer-executable instructions;
the processor 611 executes the computer execution instructions stored in the memory, so that the processor 611 executes the technical solution executed by the proxy service module in any one of the foregoing method embodiments.
Fig. 11 is a simple design of a proxy service module, the number of processors and memories in a server is not limited in the embodiment of the present application, and fig. 11 only illustrates the number as 1 as an example.
In one specific implementation of the server shown in fig. 11, the memory 612, the processor 611 and the interface 613 may be connected through a bus 614, and optionally, the memory 612 may be integrated inside the processor 611.
Fig. 12 is a schematic structural diagram of a resource management device according to another embodiment of the present application. Referring to fig. 12, the resource management apparatus 700 includes: a processor 711, a memory 712, an interface 713 to communicate with other devices or modules;
the memory 712 stores computer-executable instructions;
the processor 711 executes the computer-executable instructions stored in the memory, so that the processor 711 executes the technical solution executed by the first device in any one of the foregoing method embodiments.
Fig. 12 is a simple design of a resource management device, and the number of processors and memories in the resource management device is not limited in the embodiments of the present application, and fig. 12 only illustrates the number as 1 as an example.
In one specific implementation of the resource management apparatus shown in fig. 12, the memory 712, the processor 711 and the interface 713 may be connected through a bus 714, and optionally, the memory 712 may be integrated within the processor 711.
The embodiment of the present application further provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is executed by a processor, the computer-readable storage medium is used to implement the technical solution executed by the proxy service module in any one of the foregoing method embodiments.
The embodiment of the present application further provides a program, and when the program is executed by a processor, the program is configured to execute the technical solution executed by the proxy service module in any of the foregoing method embodiments.
The embodiment of the present application further provides a computer program product, which includes program instructions, where the program instructions are used to implement the technical solution executed by the proxy service module in any of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: and the processing module can execute the technical scheme executed by the proxy service module in any one of the method embodiments.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored by the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the technical solution executed by the proxy service module in any of the foregoing method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is executed by a processor, the computer-readable storage medium is used to implement the technical solution executed by the server in any one of the foregoing method embodiments.
The embodiment of the present application further provides a program, and when the program is executed by a processor, the program is configured to execute the technical solution executed by the server in any of the foregoing method embodiments.
The embodiment of the present application further provides a computer program product, which includes program instructions, where the program instructions are used to implement the technical solution executed by the server in any of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: the processing module and the communication interface, the processing module can execute the technical scheme executed by the server side in any method embodiment.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store an instruction, and the processing module is configured to execute the instruction stored in the storage module, and execute the instruction stored in the storage module, so that the processing module executes the technical solution executed by the server in any of the foregoing method embodiments.
The embodiment of the present application further provides a computer-readable storage medium, where a computer-executable instruction is stored in the computer-readable storage medium, and when the computer-executable instruction is executed by a processor, the computer-readable storage medium is used to implement the technical solution executed by the first device in any one of the foregoing method embodiments.
The embodiment of the present application further provides a program, and when the program is executed by a processor, the program is configured to execute the technical solution executed by the first device in any of the foregoing method embodiments.
The embodiment of the present application further provides a computer program product, which includes program instructions, where the program instructions are used to implement the technical solution executed by the first device in any of the foregoing method embodiments.
An embodiment of the present application further provides a chip, including: a processing module and a communication interface, wherein the processing module is capable of executing the technical scheme executed by the first device in any one of the method embodiments.
Further, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored by the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute the technical solution executed by the first device in any one of the foregoing method embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, and the indirect coupling or communication connection of the modules may be in an electrical, mechanical or other form.
In the above Specific implementation of the resource management device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
All or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The aforementioned program may be stored in a readable memory. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.

Claims (56)

  1. A method for resource management, comprising:
    the proxy service module acquires first information from a server, wherein the first information is used for indicating target operation aiming at a target reference resource;
    the proxy service module executes an operation corresponding to the target operation according to a resource list and the first information;
    wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
  2. The method of claim 1, further comprising:
    the proxy service module acquires a resource search result, wherein the resource search result comprises the searched related information of at least one resource;
    and the proxy service module acquires the resource list according to the resource search result.
  3. The method of claim 2, wherein the obtaining of the resource list by the proxy service module according to the resource search result comprises:
    the proxy service module queries a pre-cached resource list according to the resource search result to obtain a query result; the resource search result comprises identifiers respectively corresponding to the at least one searched resource and identifiers respectively corresponding to second equipment of the at least one searched resource, and the query result is used for indicating whether the pre-cached resource list comprises the at least one resource;
    and the proxy service module acquires the resource list according to the query result and the pre-cached resource list.
  4. The method of claim 3, wherein the obtaining, by the proxy service module, the resource list according to the query result and the pre-cached resource list comprises:
    and if the proxy service module determines that the pre-cached resource list does not comprise one or more searched resources in the at least one resource according to the query result, updating the pre-cached resource list according to the at least one searched resource and the query result, and acquiring the resource list.
  5. The method of any of claims 2 to 4, wherein the proxy service module periodically obtains the resource search results.
  6. The method according to any one of claims 2 to 5, wherein the searched identifiers corresponding to the at least one resource respectively comprise uniform resource identifiers, URIs, corresponding to the at least one resource respectively; the identification of the second device comprises an identification code ID of the second device and/or an IP address and port number of the second device.
  7. The method according to any of claims 1 to 6, wherein the resource list comprises at least one referenced resource, the resource list comprising at least a URI, a resource type, an interface, and an identification of the first device for each of the referenced resources; wherein the first device is a device storing the referenced resource.
  8. The method according to any one of claims 1 to 7, wherein if the target operation comprises: one or a combination of creating, obtaining, updating, deleting, and notifying;
    the proxy service module executes an operation corresponding to the target operation according to the resource list and the first information, including:
    and the proxy service module sends second information to the first equipment corresponding to the target reference resource according to the first information and the resource list, wherein the second information is used for requesting the first equipment corresponding to the target reference resource to perform target operation on the target reference resource.
  9. The method of claim 8, further comprising:
    and the proxy service module receives third information from the first device corresponding to the target reference resource, wherein the third information is used for indicating a processing result of the first device corresponding to the target reference resource performing the target operation on the target reference resource.
  10. The method of claim 9, further comprising:
    and the proxy service sends fourth information to the server, wherein the fourth information is used for indicating a processing result of the target operation on the target reference resource by the first equipment corresponding to the target reference resource.
  11. The method according to any one of claims 1 to 7, wherein if the target operation comprises: inquiring;
    the proxy service module executes an operation corresponding to the target operation according to the resource list and the first information, including:
    the proxy service module determines whether the resource list comprises the target reference resource according to the first information and the resource list;
    and the proxy service module sends fifth information to the server, wherein the fifth information is used for indicating whether the resource list comprises the target reference resource.
  12. The method of claim 11, wherein the first information is determined by the server according to a remote link modification request sent by a client.
  13. The method according to claim 12, wherein the remote link modification request sent by the client includes the URI of the referenced resource indicated by the remote link and the identifier of the target first device, wherein the target first device is the device corresponding to the referenced resource indicated by the remote link.
  14. The method according to claim 13, wherein the identification of the target first device comprises an identification ID of the target first device and/or an IP address and port number of the target first device.
  15. A method according to any one of claims 12 to 14, wherein the remote link modification request is for requesting the addition of a remote link.
  16. A method for resource management, comprising:
    the server generates first information, wherein the first information is used for indicating target operation aiming at the target reference resource;
    the server side sends the first information to an agent service module so that the agent service module executes the operation corresponding to the target operation according to a resource list and the first information;
    wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
  17. The method of claim 16, wherein the target operation comprises: one or a combination of creating, obtaining, updating, deleting, and notifying;
    the method further comprises the following steps: and the server receives fourth information from the proxy service module, wherein the fourth information is used for indicating a processing result of the target operation on the target reference resource by the first device corresponding to the target reference resource.
  18. The method of claim 16, wherein the target operation comprises: inquiring;
    the method further comprises the following steps:
    the server receives fifth information from the proxy service module, where the fifth information is used to indicate whether the resource list includes the target referenced resource.
  19. The method of claim 18, wherein the first information is determined by the server based on a remote link modification request sent by a client.
  20. The method of claim 19, wherein the remote link modification request sent by the client includes a URI of a referenced resource indicated by the remote link and an identification of a target first device, and wherein the target first device is a device corresponding to the referenced resource indicated by the remote link.
  21. The method of claim 20, wherein the identification of the target first device comprises an identification number (ID) of the target first device and/or an IP address and port number of the target first device.
  22. A method according to any of claims 19 to 21, wherein the remote link modification request is for requesting the addition of a remote link.
  23. The method of claim 22, further comprising:
    and the server executes the remote link modification request according to the fifth information.
  24. The method of claim 23, further comprising:
    and the server side sends sixth information to the client side, wherein the sixth information is used for indicating the server side to execute the processing result of the remote link modification request.
  25. A method for resource management, comprising:
    the method comprises the steps that first equipment receives second information sent by an agent service module according to first information and a resource list, wherein the second information is used for requesting the first equipment to carry out target operation on target reference resources; wherein the resource list comprises at least one piece of related information of the referenced resource, and the at least one referenced resource is stored in different first devices; the first information is used for indicating a target operation aiming at a target reference resource;
    the first device performs the target operation on the target referenced resource.
  26. The method of claim 25, further comprising:
    and the first equipment sends third information to the proxy service module, wherein the third information is used for indicating a processing result of the target operation of the first equipment on the target reference resource.
  27. The method of claim 25 or 26, wherein the target operation comprises: one or a combination of create, get, update, delete, and notify.
  28. A resource management apparatus, comprising:
    the system comprises a receiving and sending module, a processing module and a processing module, wherein the receiving and sending module is used for acquiring first information from a server, and the first information is used for indicating target operation aiming at a target reference resource;
    the processing module is used for executing the operation corresponding to the target operation according to the resource list and the first information;
    wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
  29. The apparatus of claim 28, wherein the transceiver module is further configured to obtain a resource search result, where the resource search result includes information related to the searched at least one resource;
    the processing module is further configured to obtain the resource list according to the resource search result.
  30. The apparatus of claim 29,
    the processing module is specifically used for inquiring a pre-cached resource list according to the resource search result to obtain an inquiry result; acquiring the resource list according to the query result and the pre-cached resource list;
    the resource search result includes identifiers respectively corresponding to the at least one searched resource and identifiers respectively corresponding to second devices of the at least one searched resource, and the query result is used to indicate whether the pre-cached resource list includes the at least one resource.
  31. The apparatus according to claim 30, wherein the processing module is specifically configured to determine, according to the query result, whether a pre-cached resource list includes the at least one searched resource; and if the pre-cached resource list does not comprise one or more searched resources in the at least one resource, updating the pre-cached resource list according to the at least one searched resource and the query result, and acquiring the resource list.
  32. The apparatus according to any of the claims 29 to 31, wherein the transceiver module is specifically configured to periodically obtain the resource search result.
  33. The apparatus according to any of claims 29 to 32, wherein the searched identifiers corresponding to the at least one resource respectively comprise uniform resource identifiers, URIs, corresponding to the at least one resource respectively; the identification of the second device comprises an identification code ID of the second device and/or an IP address and a port number of the second device.
  34. The apparatus according to any of claims 28 to 33, wherein the resource list comprises at least one referenced resource, the resource list comprising at least a URI, a resource type, an interface, and an identification of the first device for each of the referenced resources; wherein the first device is a device storing the referenced resource.
  35. The apparatus according to any one of claims 28 to 29, wherein if the target operation comprises: one or a combination of creating, obtaining, updating, deleting, and notifying;
    the processing module is specifically configured to determine, according to the first information and the resource list, an identifier of a first device corresponding to the target reference resource;
    the transceiver module is further configured to send second information to the first device corresponding to the target-referenced resource, where the second information is used to request the first device corresponding to the target-referenced resource to perform a target operation on the target-referenced resource.
  36. The apparatus of claim 35, wherein the transceiver module is further configured to receive third information from the first device corresponding to the target referenced resource, and the third information is used to indicate a processing result of the first device corresponding to the target referenced resource performing the target operation on the target referenced resource.
  37. The apparatus of claim 36, wherein the transceiver module is further configured to send fourth information to the server, where the fourth information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device corresponding to the target referenced resource.
  38. The apparatus according to any one of claims 28 to 34, wherein if the target operation comprises: inquiring;
    the processing module is specifically configured to determine, according to the first information and the resource list, whether the resource list includes the target referenced resource;
    the transceiver module is further configured to send fourth information to a server, where the fourth information is used to indicate whether the resource list includes the target reference resource.
  39. The apparatus of claim 38, wherein the first information is determined by the server according to a remote link modification request sent by a client.
  40. The apparatus according to claim 39, wherein the remote link modification request sent by the client includes a URI of a referenced resource indicated by the remote link and an identification of a target first device, wherein the target first device is a device corresponding to the referenced resource indicated by the remote link.
  41. The apparatus of claim 40, wherein the identification of the target first device comprises an Identification (ID) of the target first device and/or an IP address and port number of the target first device.
  42. The apparatus according to any of claims 39 to 41, wherein the remote link modification request is for requesting addition of a remote link.
  43. A server, comprising:
    a processing module to generate first information indicating a target operation for a target referenced resource;
    the receiving and sending module is further used for sending the first information to an agent service module so that the agent service module executes an operation corresponding to the target operation according to a resource list and the first information;
    wherein the resource list includes related information of at least one referenced resource, and the at least one referenced resource is stored in a different first device.
  44. The server according to claim 43, wherein the target operation comprises: one or a combination of creating, obtaining, updating, deleting, and notifying;
    the transceiver module is further configured to receive fourth information from the proxy service, where the fourth information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device corresponding to the target referenced resource.
  45. The server according to claim 43, wherein the target operation comprises: inquiring;
    the transceiver module is further configured to receive fifth information from the proxy service, where the fifth information is used to indicate whether the resource list includes the target referenced resource.
  46. The server according to claim 45, wherein the first information is determined by the processing module based on a remote link modification request sent by a client.
  47. The server according to claim 46, wherein the remote link modification request sent by the client includes a URI of a referenced resource indicated by a remote link and an identification of a target first device, wherein the target first device is a device corresponding to the referenced resource indicated by the remote link.
  48. The server according to claim 47, wherein the identifier of the target first device comprises an ID of the target first device and/or an IP address and a port number of the target first device.
  49. The server according to any one of claims 46 to 48, wherein the remote link modification request is for requesting addition of a remote link.
  50. The server according to claim 49, wherein the processing module is further configured to execute the remote link modification request according to the fifth information.
  51. The server according to claim 50, wherein the transceiver module is further configured to send sixth information to the client, and the sixth information is used to instruct the server to execute a processing result of the remote link modification request.
  52. A resource management apparatus, comprising:
    the receiving and sending module is used for receiving second information sent by the proxy service module according to the first information and the resource list, and the second information is used for requesting the first equipment to perform target operation on the target reference resource; wherein the resource list comprises at least one piece of related information of the referenced resource, and the at least one referenced resource is stored in different first devices; the first information is used for indicating a target operation aiming at a target reference resource;
    and the processing module is used for carrying out the target operation on the target reference resource.
  53. The apparatus of claim 52, wherein the transceiver module is further configured to send third information to the proxy service module, and the third information is used to indicate a processing result of the target operation performed on the target referenced resource by the first device.
  54. The apparatus of claim 52 or 53, wherein the target operation comprises: one or a combination of create, get, update, delete, and notify.
  55. An electronic device, comprising:
    a processor, a memory, an interface to communicate with a network device;
    the memory stores computer execution instructions;
    the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of resource management of any of claims 1-15, or any of claims 16 to 24, or any of claims 25 to 27.
  56. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of resource management according to any of claims 1-15, or according to any of claims 16-24, or according to any of claims 25-27.
CN202080086691.5A 2020-03-10 2020-03-10 Resource management method, device and readable storage medium Active CN114830618B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/078633 WO2021179169A1 (en) 2020-03-10 2020-03-10 Resource management method and apparatus, and readable storage medium

Publications (2)

Publication Number Publication Date
CN114830618A true CN114830618A (en) 2022-07-29
CN114830618B CN114830618B (en) 2023-09-19

Family

ID=77671076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080086691.5A Active CN114830618B (en) 2020-03-10 2020-03-10 Resource management method, device and readable storage medium

Country Status (2)

Country Link
CN (1) CN114830618B (en)
WO (1) WO2021179169A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741877A (en) * 2008-11-27 2010-06-16 华为技术有限公司 Method, system and equipment for operating media resource
US20110066741A1 (en) * 2009-09-17 2011-03-17 Oracle International Corporation Client-side api framework for uniform resource identifier (uri) manipulations
US20170140009A1 (en) * 2015-11-13 2017-05-18 International Business Machines Corporation Caching linked queries for optimized compliance management
CN109302465A (en) * 2018-09-18 2019-02-01 天津字节跳动科技有限公司 The management method and system of multiterminal Service Source
CN110463163A (en) * 2017-03-28 2019-11-15 云端跳动公司 For providing the on-demand method and system for waking up access to conversation server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9160696B2 (en) * 2013-06-19 2015-10-13 Twilio, Inc. System for transforming media resource into destination device compatible messaging format
US9774709B2 (en) * 2013-11-18 2017-09-26 Cable Television Laboratories, Inc. Service discovery
CN109951529B (en) * 2019-02-27 2021-10-08 珠海天燕科技有限公司 Resource management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741877A (en) * 2008-11-27 2010-06-16 华为技术有限公司 Method, system and equipment for operating media resource
US20110066741A1 (en) * 2009-09-17 2011-03-17 Oracle International Corporation Client-side api framework for uniform resource identifier (uri) manipulations
US20170140009A1 (en) * 2015-11-13 2017-05-18 International Business Machines Corporation Caching linked queries for optimized compliance management
CN110463163A (en) * 2017-03-28 2019-11-15 云端跳动公司 For providing the on-demand method and system for waking up access to conversation server
CN109302465A (en) * 2018-09-18 2019-02-01 天津字节跳动科技有限公司 The management method and system of multiterminal Service Source

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王庆恒;马自卫;李高虎;: "统一检索服务关键技术的研究与实现", 现代图书情报技术, no. 04, pages 24 - 29 *

Also Published As

Publication number Publication date
WO2021179169A1 (en) 2021-09-16
CN114830618B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN111601353B (en) Routing method of application program and related device
WO2020014983A1 (en) Session management method, terminal device and network device
US11317450B2 (en) Wireless communication method and network device
EP3758404B1 (en) Configuration information acquisition method, apparatus and device, and storage medium and system
JP2022517649A (en) Policy determination / transmission method and equipment
WO2022089163A1 (en) Method and apparatus for managing network slice data
JP7080832B2 (en) Information transmission method and equipment
WO2021030965A1 (en) Method and apparatus for relay selection, and terminal device
CN112205015A (en) Method, apparatus and computer readable medium for policy distribution
WO2020206677A1 (en) Policy configuration method and apparatus, network device, and terminal
WO2021022460A1 (en) Session verification method, electronic device, and storage medium
CN110784912B (en) Management method of session correspondence and terminal equipment
WO2021174399A1 (en) Clock synchronization method and apparatus, device, and storage medium
WO2021088007A1 (en) Wireless communication method, terminal device, and network device
CN114126085B (en) Industrial field bus communication method and device, electronic equipment and storage medium
CN114830618B (en) Resource management method, device and readable storage medium
CN114258088B (en) Method, device and system for discovering intermediate session management function device, and storage medium
CN114980074A (en) Data communication method, device, equipment and medium based on virtual local area network
CN114340035B (en) Method and equipment for service transmission
CN114501612A (en) Resource allocation method, terminal, network device and storage medium
CN117596583A (en) Method for dynamically discovering service network node in core network, network node and medium
CN114363975A (en) Data communication method, device, electronic equipment and storage medium
EP3883290A1 (en) Data channel establishing method and apparatus, and network device
CN113993176B (en) Routing policy updating method, terminal and network side equipment
US12034821B2 (en) Computing aware-session management method and communication apparatus

Legal Events

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