CN106657227B - The method and device of resource is subscribed in a kind of change - Google Patents

The method and device of resource is subscribed in a kind of change Download PDF

Info

Publication number
CN106657227B
CN106657227B CN201610851455.3A CN201610851455A CN106657227B CN 106657227 B CN106657227 B CN 106657227B CN 201610851455 A CN201610851455 A CN 201610851455A CN 106657227 B CN106657227 B CN 106657227B
Authority
CN
China
Prior art keywords
resource
information
source material
entity
subscribes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610851455.3A
Other languages
Chinese (zh)
Other versions
CN106657227A (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.)
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Haier Uplus Intelligent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Haier Uplus Intelligent Technology Beijing Co Ltd
Priority to CN201610851455.3A priority Critical patent/CN106657227B/en
Publication of CN106657227A publication Critical patent/CN106657227A/en
Application granted granted Critical
Publication of CN106657227B publication Critical patent/CN106657227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and device of change subscription resource, after the method that resource is subscribed in the change includes: the instruction that first instance receives delete target resource, the target resource as described in detecting is wave file and is to subscribe to resource, the information that the source material of the target resource is then determined according to the file attribute value of the target resource obtains the connection attribute of the source material from the ownership entity of the source material;There are other wave files for source material as described in being judged according to the connection attribute, therefrom choose one as alternate resources and establish subscribing relationship;Delete the target resource.The method and device of resource is subscribed in change provided by according to the present invention, when resource is subscribed in deletion, can recommend suitable alternate resources as subscription resource for user, on the basis of not damaging user experience, the change for subscribing to resource is completed on backstage.Further, the program can also be applied in terms of the migration of server, load balancing.

Description

The method and device of resource is subscribed in a kind of change
Technical field
The present invention relates to network resource management technical fields, more particularly to subscribe to the change technical field of resource.
Background technique
With the development of Internet of Things, the Internet of Things standard (technology) of the restful style based on resource (Resource) In formulation and development process, such as OCF, OneM2M, ETSIM2M.
In resource-based system architecture, in order to resource popularization or allow more people to find resources (business row For), propose a kind of solution that Resource Replica is established in another equipment, i.e., on nodeb a certain resource on node A Copy is established, which is the subset (generally should include important resource and attribute) of the resource on node A, if node B is The network equipment (or platform) that audient can often access then can undoubtedly allow more people to find Resource Replica, and then complete The discovery and popularization of resource on node A.
As shown in Figure 1, having resource resource1 in node A, in order to allow more people to find and using resource1, section Point A establishes the wave file (annc-resource1) of resource1, annc- on node B (visitor is numerous) Resource1 is the subset of resource1, main resource and attribute comprising resource1;When resource1 changes When, variation will be synchronized to annc-resource1.Since there are a large amount of audients by node B, when it carries out resource discovering When, it is relatively easy to discovery resource backup, and then pass through the resource1 of its link Attribute Discovery node A.
This mode for establishing backup file based on resource carries out the solution of resource discovering, when resource discovering completes it Afterwards, node C (having found the resource backup on node B) is if it is intended to subscribing to the resource or subscribing on node A Annc-resource1 on resource1 or subscription node B.Wherein, subscription refers to does a label in resource, should Information on label comprising subscriber notifies subscriber when resource changes, so that subscriber carries out real time operation.
If subscribing to the resource1 on node A, node A is possible to that a large amount of notification message can be sent, if node A is Constrained devices or processing capacity be not strong, is likely to result in the systemic breakdown of node A;If subscribing to the annc- on node B Resource1, if annc-resource1 is deleted, subscriber cannot visit again the resource.
Summary of the invention
Present invention seek to address that problem as described above.It is an object of the present invention to provide in a kind of solution problem above Any one change subscribe to resource method and device.Specifically, the present invention, which provides, to be when deleting and subscribing to resource User recommends the method and device of the change subscription resource of suitable substitution objective of subscription.
According to the first aspect of the invention, the present invention provides a kind of method that resource is subscribed in change, the change is subscribed to The method of resource includes:
After first instance receives the instruction of delete target resource, as described in detecting target resource be wave file and For subscription resource, then the information of the source material of the target resource is determined according to the file attribute value of the target resource, from The ownership entity of the source material obtains the connection attribute of the source material, wherein the connection attribute of the source material The identification information of all wave files comprising the source material;
Source material then executes in following manner there are other wave files as described in being judged according to the connection attribute Any one:
Mode one: selecting one of wave file as alternate resources, and the subscription entity of Xiang Suoshu target resource is sent It subscribes to resource address and changes message, this subscribes to the identification information for carrying the alternate resources in resource address change message, root It is sent according to the identification information of the alternate resources to the ownership entity of the alternate resources and subscribes to request, this is subscribed to carries in request There is the information of the target resource and subscribes to child resource content;
The subscription entity of two: Xiang Suoshu target resource of mode, which is sent, subscribes to resource address change message, this is with subscribing to resource The information that other wave files some or all of are carried in addition to target resource in location change message, according to the subscription entity Selection result, to it is described subscribe to entity selection wave file ownership entity send subscribe to request, this subscribe to request in takes Information and subscription child resource content with the target resource;
Delete the target resource.
Wherein, the method also includes: the first instance judge the source material there is no when other wave files, It is sent to the subscription entity of the target resource and subscribes to resource address change message, this is subscribed to carries in resource address change message There is the information of the source material, the ownership entity of Xiang Suoshu source material, which is sent, subscribes to request, this is subscribed to carries in request The information and subscription child resource content of the target resource.
Wherein, the method also includes: the first instances receive subscription request from other entities after, ordered according to described The information that the information of the target resource carried in request determines the source material of the target resource is read, according to this original money The information in source determines the wave file of this source material in the first instance;From the subscription money subscribed to and carried in request Source contents obtain subscriber information, according to the information of the subscriber in the first instance the wave file and institute It states and establishes subscribing relationship between subscriber.
Wherein, the method also includes: the first instances receives from other entities and subscribes to resource address change message Afterwards, when judging to carry the information of more than one wave file in this subscription resource address change message, a pair is therefrom selected The information of this document and the result for returning to selection.
Wherein, the method also includes: the first instance receives the connection attribute for obtaining the source material Solicited message after, return to the connection attribute of the source material.
According to another aspect of the present invention, the present invention also provides the device that resource is subscribed in a kind of change, the change is ordered The device for readding resource includes: communication module, judgment module and control module, wherein
The communication module, for receiving the instruction of delete target resource, and according to the file attribute of the target resource Value determines the information of the source material of the target resource, and obtains the source material from the ownership entity of the source material Connection attribute, wherein the connection attribute of the source material include the source material all wave files mark letter Breath;It is also used to the judgment module and judges the source material there are when other wave files, execute appointing in following manner Meaning one:
Mode one: selecting one of wave file as alternate resources, and the subscription entity of Xiang Suoshu target resource is sent It subscribes to resource address and changes message, this subscribes to the identification information for carrying the alternate resources in resource address change message, root It is sent according to the identification information of the alternate resources to the ownership entity of the alternate resources and subscribes to request, this is subscribed to carries in request There is the information of the target resource and subscribes to child resource content;
The subscription entity of two: Xiang Suoshu target resource of mode, which is sent, subscribes to resource address change message, this is with subscribing to resource The information that other wave files some or all of are carried in addition to target resource in location change message, according to the subscription entity Selection result, to it is described subscribe to entity selection wave file ownership entity send subscribe to request, this subscribe to request in takes Information and subscription child resource content with the target resource;
The judgment module, for detect the target resource whether be wave file, whether be subscribe to resource, Yi Jigen Judge the source material with the presence or absence of other wave files according to the connection attribute;
The control module, for deleting the target resource.
Wherein, the communication module is also used to judge the source material in the judgment module that there is no other copies When file, the subscription entity of Xiang Suoshu target resource, which is sent, subscribes to resource address change message, this subscribes to resource address change and disappears The information of the source material is carried in breath, the ownership entity of Xiang Suoshu source material, which is sent, subscribes to request, this subscribes to request In carry the target resource information and subscribe to child resource content.
Wherein, the communication module is also used to receive from other entities and subscribes to request, carries according in subscription request The target resource information determine the target resource source material information, according to the information of this source material determine The wave file of this source material in the device of resource is subscribed in the change;From the subscription child resource subscribed to and carried in request The information of content acquisition subscriber;
The control module is also used to be the pair in the device of the change subscription resource according to the information of subscriber Subscribing relationship is established between this document and the subscriber.
Wherein, the communication module judges this after being also used to receive subscription resource address change message from other entities When carrying the information of more than one wave file in subscription resource address change message, the letter of a wave file is therefrom selected It ceases and returns to selection result.
Wherein, the communication module, after the solicited message for being also used to receive the connection attribute for obtaining source material, Return to the connection attribute of the source material.
The method and device for subscribing to resource is changed provided by according to the present invention, can be use when deleting subscription resource Family recommends suitable alternate resources as resource is subscribed to, and on the basis of not damaging user experience, completes to subscribe to resource on backstage Change.Further, the program can also be applied in terms of the migration of server, load balancing.
Being described below for exemplary embodiment is read with reference to the drawings, other property features of the invention and advantage will It is apparent from.
Detailed description of the invention
It is incorporated into specification and the attached drawing for constituting part of specification shows the embodiment of the present invention, and with Principle for explaining the present invention together is described.In the drawings, similar appended drawing reference is for indicating similar element.Under Attached drawing in the description of face is some embodiments of the present invention, rather than whole embodiments.Those of ordinary skill in the art are come It says, without creative efforts, other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 shows the relation structure diagram between node A, node B and node C;
Fig. 2 schematically illustrates the flow chart that the method for resource is subscribed in change of the invention;
Fig. 3 schematically illustrates the modular structure schematic diagram that the device of resource is subscribed in change of the invention;
Fig. 4 schematically illustrates the implementation flow chart of the embodiment one of the method for change subscription resource of the invention;
Fig. 5 schematically illustrates the implementation flow chart of the embodiment two of the method for change subscription resource of the invention;
Fig. 6 schematically illustrates the implementation flow chart of the embodiment three of the method for change subscription resource of the invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.It needs Illustrate, in the absence of conflict, the features in the embodiments and the embodiments of the present application can mutual any combination.
The basic idea of the invention is that receive delete resource order when, if judge the resource be wave file, And to subscribe to resource, then other wave files is searched, and choose one as alternate resources and recommend user, establish subscribing relationship;If Without other wave files, then source material is recommended to be subscribed to.So as to not damage user experience, and can guaranteed equipment and The normal operation of system.
With reference to the accompanying drawing, the method and device that resource is subscribed in provided change according to the present invention is carried out specifically It is bright.
Fig. 2 shows a kind of flow charts that the method for resource is subscribed in change according to the present invention, referring to shown in Fig. 2, the change More subscribe to resource method include:
After first instance receives the instruction of delete target resource, detect that the target resource is wave file and is to order Resource is read, the information of the source material of target resource, and returning from source material are determined according to the file attribute value of target resource True body obtains the connection attribute of source material, wherein all comprising the source material in the connection attribute of the source material The identification information of wave file;
Judge that source material there are when other wave files, executes in following manner according to the connection attribute of source material Any one:
Mode one: it selects one of wave file as alternate resources, sends and subscribe to the subscription entity of target resource Resource address changes message, this subscribes in resource address change message and carries the identification information of alternate resources, and is replaced according to this Subscription request is sent to the ownership entity of alternate resources for the identification information of resource, this subscribes in request and carries target resource Information and the content for subscribing to child resource;
Mode two: sending to the subscription entity of target resource and subscribe to resource address change message, this subscribes to resource address and becomes The information of the other wave files of some or all of source material in addition to target resource is carried in more message, and according to subscription The selection result of entity sends to the ownership entity for the wave file for subscribing to entity selection and subscribes to request, this is subscribed to takes in request Information and subscription child resource content with target resource;
First instance delete target resource.
When first instance determines the source material there is no other wave files, then directly using source material as replacing For resource recommendation to the subscription entity of target resource, it may be assumed that send subscription resource address change to the subscription entity of target resource and disappear Breath, this subscribes to the information that source material is carried in resource address change message, and orders to the transmission of the ownership entity of source material Request is read, this subscribes to the information for carrying target resource in request and subscribes to the content of child resource.
Herein, first instance either the target resource to be deleted ownership entity, be also possible to other copies The ownership entity of file, for example, it may be the ownership entity of the selected wave file as alternate resources, is also possible to original The ownership entity of resource further can also be subscription entity.
Specifically, according to the present invention when ownership entity of the first instance as the wave file for being selected as alternate resources The method that resource is subscribed in change further include:
After first instance receives subscription request from other entities, according to the letter of target resource carried in subscription request The information for determining the source material of this target resource is ceased, determines that this in the first instance is original according to the information of this source material The wave file of resource;And the information subscribed to child resource content and obtain subscriber carried from subscription request, the subscriber Information in include the mark for subscribing to entity and the information such as mark of subscriber, be in first instance according to the information of the subscriber In above-mentioned source material wave file establish and subscriber between subscribing relationship.
Specifically, when first instance is as entity is subscribed to, the method that resource is subscribed in change of the invention can also include:
First instance from other entities receive subscribe to resource address change message after, judge this subscribe to resource address change When carrying the information of more than one wave file in message, therefrom selects the information of a wave file and return to the knot of selection Fruit.
Further, when ownership entity when first instance as source material, the side of resource is subscribed in change of the invention Method can also include:
After first instance receives the solicited message of the connection attribute for obtaining source material, the source material is returned Connection attribute.
Be adapted in above-mentioned change subscribe to resource method, the present invention also provides it is a kind of change subscribe to resource device, Fig. 3 shows a kind of modular structure schematic diagram that the device of resource is subscribed in the change.The device of change subscription resource, that is, above-mentioned First instance in method, it can it is the ownership entity of source material, is also possible to the ownership entity of wave file, it can be with It is to subscribe to entity.Referring to shown in Fig. 3, which includes communication module, judgment module and control module.
Wherein, communication module is used to receive the instruction of delete target resource, and true according to the file attribute value of target resource The information of the source material for the resource that sets the goal, and the connection attribute of the source material is obtained from the ownership entity of source material, Wherein, the identification information of all wave files in the connection attribute of the source material comprising the source material;It is also used to work as and sentence Disconnected module judges that the source material there are when other wave files, executes any one in following manner:
Mode one: it selects one of wave file as alternate resources, is ordered to the transmission of the subscription entity of the target resource Resource address change message is read, this subscribes to and carries the identification informations of the alternate resources in resource address change message, and according to The identification information of the alternate resources sends to the ownership entity of the alternate resources and subscribes to request, this subscribes in request and carries target The information and subscription child resource content of resource;
Mode two: sending to the subscription entity of target resource and subscribe to resource address change message, this subscribes to resource address and becomes The information of other wave files some or all of in addition to target resource of source material is carried in more message, and according to subscription The selection result of entity sends to the ownership entity for the wave file for subscribing to entity selection and subscribes to request, this is subscribed to takes in request Information and subscription child resource content with target resource.
Wherein, judgment module is used to judge whether the target resource to be deleted to be wave file, whether is to subscribe to resource, with And judge source material with the presence or absence of other wave files according to the connection attribute of its source material.
Wherein, control module is mainly used for delete target resource.
Specifically, source material is judged there is no when other wave files in judgment module, communication module can be also used for It is sent to the subscription entity of target resource and subscribes to resource address change message, this subscribes in resource address change message and carries original The information of beginning resource, and sent to the ownership entity of source material and subscribe to request, this subscribes in request and carries target resource Information and subscription child resource content.
When ownership entity of the device as the wave file for being selected as alternate resources, communication module can be also used for from Other entities, which receive, subscribes to request, and the original money of this target resource is determined according to the information for subscribing to the target resource carried in request The information in source determines the wave file of this source material in the present apparatus according to the information of this source material;And it is asked from the subscription The information subscribed to child resource content and obtain subscriber for asking middle carrying, include in the information of this subscriber subscribe to entity mark and The information such as the mark of subscriber.And control module can be also used for according to the subscriber's got from subscription child resource content Information establishes subscribing relationship between the wave file and the subscriber for this source material in the present apparatus.
When change of the invention subscribes to the device of resource as entity is subscribed to, communication module be can be also used for from other realities After body receives subscription resource address change message, judgment module judges that this is subscribed in resource address change message and carries one When the information of above wave file, therefrom selects the information of a wave file and return to selection result.
And when ownership entity of the device as source material, communication module then can be used for receiving for obtaining original The solicited message of the connection attribute of beginning resource, and return to the connection attribute of the source material.Further, source material is except wanting When outside the wave file of deletion without other wave files, the subscription that communication module can be also used for receiving other entities transmissions is asked It asks, the information of the source material of this wave file is determined according to the information for subscribing to the wave file carried in request, and ordered from this Read the information subscribed to child resource content and obtain subscriber carried in request;And control module can be also used for according to sub from subscribing to The information of the subscriber got in resource content is this source material in the present apparatus and establishes to subscribe between the subscriber to close System.
Specific embodiment one
Fig. 4 shows a kind of specific implementation flow chart of embodiment of the method for change subscription resource according to the present invention, Referring to shown in Fig. 4, primary entities and declaration entity 1 establish the resource impact relationship about resource Resource1, that is, are announcing real The wave file annc-resource1 (annc-resource1-id1) of Resource1 is established on body 1, and in the wave file Attribute in increase the ID of Resource1 or address in primary entities, thus both clear relationship;Meanwhile primary entities need To increase on the connection attribute of Resource1 wave file annc-resource1 ID (annc-resource1-id1) or Person address, to be associated with Resource1 and all wave files.After establishing mapping relations, if Resource1 changes, It can reflect on wave file simultaneously.
Similarly, primary entities and declaration entity 2 also establish the resource impact relationship about resource Resource1, are announcing The wave file annc-resource1-id2 of Resource1 is established on entity 2, and increases original in the attribute of the wave file The ID of Resource1 or address in beginning entity;Meanwhile primary entities increase annc- on the connection attribute of Resource1 The ID of resource1-id2 or address.
Subscription entity finds and subscribes to the annc-resource1-id2 resource announced on entity 2, and so-called subscription is exactly Establish one in the case where subscribing to resource and subscribe to child resource and be used to record: the ID of subscriber or address, subscription the information such as content.
When announcing that entity 2 receives the instruction for deleting annc-resource1-id2:
Announce that the attribute of the detection of entity 2 annc-resource1-id2 knows that annc-resource1-id2 is copy text Part, and to subscribe to resource, announce entity 2 according to the attribute value of annc-resource1-id2 (resource1 mark (ID or Address)) solicited message for requesting the connection attribute of Resource1 is sent to primary entities, it is therefore an objective to whether obtain Resource1 Physically there is wave file at other.
After primary entities receive above-mentioned solicited message, the connection attribute of Resource1 is sent to and announces entity 2.
After announcing the connection attribute that entity 2 receives Resource1, judge that Resource1 physically has pair other This document obtains the address of the wave file of the Resource1 in addition to annc-resource1-id2, and selects one of make Subscription entity is recommended for alternate resources, for example, recommending to announce the annc-resource1-id1 on entity 1;Also, announce real To subscription request of the transmission of entity 1 about annc-resource1-id1 is announced, this subscribes in request and carries annc- body 2 The information of resource1-id2 and the content for subscribing to child resource.
After announcing that entity 1 receives subscription request, determine Resource1's according to the information of annc-resource1-id2 Information, so that it is determined that the wave file to be subscribed to is annc-resource1-id1, and is obtained from the content for subscribing to child resource The information of subscriber including subscribing to the information such as the mark of entity and the mark of subscriber, and is annc-resource1- accordingly Then subscribing relationship between id1 creation and subscriber sends confirmation message to declaration entity 2.
After announcing that entity 2 receives the confirmation message for announcing entity 1, it is altered to entity transmission subscription resource address is subscribed to The notification message of function carries ID or the address for announcing entity 1 in this notification message;Announce that entity 2 deletes annc-resource1- id2。
Specific embodiment two
Fig. 5 shows the specific implementation process of another embodiment of the method for change subscription resource according to the present invention Figure, referring to Figure 5, primary entities and declaration entity 1 establish the resource impact relationship about resource Resource1, are announcing The wave file annc-resource1 (annc-resource1-id1) of Resource1 is established on entity 1, and in copy text Increase the ID of Resource1 or address in primary entities in the attribute of part, thus both clear relationship;Meanwhile primary entities Need to increase on the connection attribute of Resource1 the ID (annc-resource1-id1) of wave file annc-resource1 Or address, to be associated with Resource1 and all wave files.
Similarly, primary entities and declaration entity 2 also establish the resource impact relationship about resource Resource1, are announcing The wave file annc-resource1-id2 of Resource1 is established on entity 2, and increases original in the attribute of the wave file The ID of Resource1 or address in beginning entity;Meanwhile primary entities increase annc- on the connection attribute of Resource1 The ID of resource1-id2 or address.
Entity is subscribed to find and subscribe to the annc-resource1-id2 resource announced on entity 2.
When announcing that entity 2 receives the instruction for deleting annc-resource1-id2:
Announce that the attribute of the detection of entity 2 annc-resource1-id2 knows that annc-resource1-id2 is copy text Part, and to subscribe to resource, announce entity 2 according to the attribute value of annc-resource1-id2 (resource1 mark (ID or Address)) solicited message for requesting the connection attribute of Resource1 is sent to primary entities, it is therefore an objective to whether obtain Resource1 Physically there is wave file at other.
After primary entities receive above-mentioned solicited message, the connection attribute of Resource1 is sent to and announces entity 2.
After announcing the connection attribute that entity 2 receives Resource1, judge that Resource1 physically has pair other This document, obtains the address of the wave file of Resource1 in addition to annc-resource1-id2, and by part therein or The address list of person's whole wave file is sent to subscription entity as recommendation list, according to the selection result for subscribing to entity, example Such as subscribe to entity selection announce annc-resource1-id1 on entity 1 as alternate resources, the transmission of Xiang Xuanbu entity 1 about The subscription of annc-resource1-id1 is requested, this subscribes to the information for carrying annc-resource1-id2 in request and subscribes to son The content of resource.
After announcing that entity 1 receives subscription request, determine Resource1's according to the information of annc-resource1-id2 Information, so that it is determined that the wave file to be subscribed to is annc-resource1-id1, and is obtained from the content for subscribing to child resource The information of subscriber including subscribing to the information such as the mark of entity and the mark of subscriber, and is annc-resource1- accordingly Then subscribing relationship between id1 creation and the subscriber sends confirmation message to declaration entity 2.
After announcing that entity 2 receives the confirmation message for announcing entity 1, it is altered to entity transmission subscription resource address is subscribed to The notification message of function carries ID or the address for announcing entity 1 in this notification message;Announce that entity 2 deletes annc-resource1- id2。
Specific embodiment three
Fig. 6 shows the specific implementation process of the third embodiment of the method for change subscription resource according to the present invention Figure, referring to shown in Fig. 6, primary entities and declaration entity 1 establish the resource impact relationship about resource Resource1, are announcing The wave file annc-resource1 (annc-resource1-id1) of Resource1 is established on entity 1, and in copy text Increase the ID of Resource1 or address in primary entities in the attribute of part, thus both clear relationship;Meanwhile primary entities Need to increase on the connection attribute of Resource1 the ID (annc-resource1-id1) of wave file annc-resource1 Or address, to be associated with Resource1.
Entity is subscribed to find and subscribe to the annc-resource1-id1 resource announced on entity 1.
When announcing that entity 1 receives the instruction for deleting annc-resource1-id1:
Announce that the attribute of the detection of entity 1 annc-resource1-id1 knows that annc-resource1-id1 is copy text Part, and to subscribe to resource, announce entity 1 according to the attribute value of annc-resource1-id1 (resource1 mark (ID or Address)) solicited message for requesting the connection attribute of Resource1 is sent to primary entities, it is therefore an objective to whether obtain Resource1 Physically there is wave file at other.
After primary entities receive above-mentioned solicited message, the connection attribute of Resource1 is sent to and announces entity 1.
After announcing the connection attribute that entity 1 receives Resource1, judge that other wave files are not present in Resource1, Subscription resource change message is sent to entity is subscribed to, carries the address of Resource1 in this message, and send and close to primary entities It is requested in the subscription of Resource1, this subscribes to the information for carrying annc-resource1-id1 in request and subscribes to child resource Content.
After primary entities receive subscription request, determine Resource1's according to the information of annc-resource1-id1 Information, so that it is determined that the resource to be subscribed to is Resource1, and obtains the information of subscriber from the content for subscribing to child resource, Including subscribing to the information such as the mark of entity and the mark of subscriber, and accordingly between Resource1 creation and the subscriber Then subscribing relationship sends confirmation message to declaration entity 1.
After announcing the confirmation message that entity 1 receives primary entities, it is altered to entity transmission subscription resource address is subscribed to The notification message of function carries ID or the address of primary entities in this notification message;Announce that entity 1 deletes annc-resource1- id1。
Descriptions above can combine implementation individually or in various ways, and these variants all exist Within protection scope of the present invention.
Those of ordinary skill in the art will appreciate that all or part of the steps in the above method can be instructed by program Related hardware is completed, and described program can store in computer readable storage medium, such as read-only memory, disk or CD Deng.Optionally, one or more integrated circuits also can be used to realize, accordingly in all or part of the steps of above-described embodiment Ground, each module/unit in above-described embodiment can take the form of hardware realization, can also use the shape of software function module Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including one ... ", it is not excluded that wrapping Include in the process, method, article or equipment of the element that there is also other identical elements.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations.Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. it is a kind of change subscribe to resource method, which is characterized in that it is described change subscribe to resource method include:
After first instance receives the instruction of delete target resource, the target resource as described in detecting is wave file and is to order Resource is read, then determines the information of the source material of the target resource according to the file attribute value of the target resource, from described The ownership entity of source material obtains the connection attribute of the source material, wherein the connection attribute of the source material includes The identification information of all wave files of the source material;
There are other wave files for source material as described in being judged according to the connection attribute, then execute appointing in following manner Meaning one:
Mode one: selecting one of wave file as alternate resources, and the subscription entity of Xiang Suoshu target resource, which is sent, to be subscribed to Resource address changes message, this subscribes to the identification information that the alternate resources are carried in resource address change message, according to institute The identification information for stating alternate resources is sent to the ownership entity of the alternate resources subscribes to request, this is subscribed to carries in request It states the information of target resource and subscribes to child resource content;
The subscription entity of two: Xiang Suoshu target resource of mode, which is sent, subscribes to resource address change message, this subscribes to resource address and becomes The information that other wave files some or all of are carried in addition to target resource in more message, according to the choosing for subscribing to entity It selects as a result, being sent to the ownership entity of the wave file for subscribing to entity selection and subscribes to request, this is subscribed to carries in request The information and subscription child resource content of the target resource;
Delete the target resource.
2. the method that resource is subscribed in change as described in claim 1, which is characterized in that the method also includes:
When the first instance judges that other wave files are not present in the source material, the subscription entity of Xiang Suoshu target resource It sending and subscribes to resource address change message, this subscribes to the information that the source material is carried in resource address change message, to The ownership entity of the source material, which is sent, subscribes to request, this subscribes to the information and subscription that the target resource is carried in request Child resource content.
3. the method that resource is subscribed in change as described in claim 1, which is characterized in that the method also includes:
After the first instance receives subscription request from other entities, subscribes to the target that carries in request according to described and provide The information in source determines the information of the source material of the target resource, determines the first instance according to the information of this source material In this source material wave file;The information subscribed to child resource content and obtain subscriber carried from the subscription request, It is the wave file in the first instance according to the information of the subscriber and establishes to subscribe between the subscriber to close System.
4. the method that resource is subscribed in change as described in claim 1, which is characterized in that the method also includes:
The first instance from other entities receive subscribe to resource address change message after, judge this subscribe to resource address change When carrying the information of more than one wave file in message, therefrom selects the information of a wave file and return to the knot of selection Fruit.
5. the method that resource is subscribed in change as described in claim 1, which is characterized in that the method also includes:
After the first instance receives the solicited message of the connection attribute for obtaining the source material, return described original The connection attribute of resource.
6. it is a kind of change subscribe to resource device, which is characterized in that it is described change subscribe to resource device include: communication module, Judgment module and control module, wherein
The communication module, for receiving the instruction of delete target resource, and it is true according to the file attribute value of the target resource Determine the information of the source material of the target resource, and obtains the company of the source material from the ownership entity of the source material Connect attribute, wherein the connection attribute of the source material includes the identification information of all wave files of the source material;Also Judge that the source material is any one in following manner there are executing when other wave files for the judgment module It is a:
Mode one: selecting one of wave file as alternate resources, and the subscription entity of Xiang Suoshu target resource, which is sent, to be subscribed to Resource address changes message, this subscribes to the identification information that the alternate resources are carried in resource address change message, according to institute The identification information for stating alternate resources is sent to the ownership entity of the alternate resources subscribes to request, this is subscribed to carries in request It states the information of target resource and subscribes to child resource content;
The subscription entity of two: Xiang Suoshu target resource of mode, which is sent, subscribes to resource address change message, this subscribes to resource address and becomes The information that other wave files some or all of are carried in addition to target resource in more message, according to the choosing for subscribing to entity It selects as a result, being sent to the ownership entity of the wave file for subscribing to entity selection and subscribes to request, this is subscribed to carries in request The information and subscription child resource content of the target resource;
Whether whether the judgment module for detecting the target resource is wave file, be to subscribe to resource, and according to institute Stating connection attribute judges the source material with the presence or absence of other wave files;
The control module, for deleting the target resource.
7. the device that resource is subscribed in change as claimed in claim 6, which is characterized in that
The communication module is also used to when the judgment module judges that other wave files are not present in the source material, to The subscription entity of the target resource, which is sent, subscribes to resource address change message, this is subscribed to carries in resource address change message The information of the source material, the ownership entity of Xiang Suoshu source material, which is sent, subscribes to request, this is subscribed to carries in request It states the information of target resource and subscribes to child resource content.
8. the device that resource is subscribed in change as claimed in claim 6, which is characterized in that
The communication module is also used to receive from other entities and subscribes to request, according to the mesh subscribed to and carried in request The information of mark resource determines the information of the source material of the target resource, determines the change according to the information of this source material Subscribe to the wave file of this source material in the device of resource;It is obtained from the subscription child resource content carried in request of subscribing to The information of subscriber;
The control module is also used to be that the copy that the change is subscribed in the device of resource is literary according to the information of subscriber Subscribing relationship is established between part and the subscriber.
9. the device that resource is subscribed in change as claimed in claim 6, which is characterized in that
The communication module judges that this subscribes to resource after being also used to receive subscription resource address change message from other entities When carrying the information of more than one wave file in address change message, the information of a wave file and return are therefrom selected Selection result.
10. the device that resource is subscribed in change as claimed in claim 6, which is characterized in that
The communication module, after the solicited message for being also used to receive the connection attribute for obtaining source material, described in return The connection attribute of source material.
CN201610851455.3A 2016-09-26 2016-09-26 The method and device of resource is subscribed in a kind of change Active CN106657227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610851455.3A CN106657227B (en) 2016-09-26 2016-09-26 The method and device of resource is subscribed in a kind of change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610851455.3A CN106657227B (en) 2016-09-26 2016-09-26 The method and device of resource is subscribed in a kind of change

Publications (2)

Publication Number Publication Date
CN106657227A CN106657227A (en) 2017-05-10
CN106657227B true CN106657227B (en) 2019-10-25

Family

ID=58853725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610851455.3A Active CN106657227B (en) 2016-09-26 2016-09-26 The method and device of resource is subscribed in a kind of change

Country Status (1)

Country Link
CN (1) CN106657227B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115968543A (en) * 2020-10-26 2023-04-14 Oppo广东移动通信有限公司 Resource mapping method, device, equipment and storage medium
WO2022087796A1 (en) * 2020-10-26 2022-05-05 Oppo广东移动通信有限公司 Zigbee device attribute subscription method and apparatus, and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248684A (en) * 2013-04-28 2013-08-14 北京奇虎科技有限公司 Resource acquiring method and device on Internet
CN105282728A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Method for deleting notification resource and common service entity
CN105745867A (en) * 2013-12-01 2016-07-06 Lg电子株式会社 Method and apparatus for managing specific resource in wireless communication system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105229986B (en) * 2013-02-15 2019-02-12 康维达无线有限责任公司 Cross-domain services layer resource is propagated
CN104284297B (en) * 2013-07-11 2018-12-25 华为终端有限公司 A kind of method, apparatus of resource migration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248684A (en) * 2013-04-28 2013-08-14 北京奇虎科技有限公司 Resource acquiring method and device on Internet
CN105745867A (en) * 2013-12-01 2016-07-06 Lg电子株式会社 Method and apparatus for managing specific resource in wireless communication system
CN105282728A (en) * 2014-07-25 2016-01-27 中兴通讯股份有限公司 Method for deleting notification resource and common service entity

Also Published As

Publication number Publication date
CN106657227A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN105279278B (en) The searching method and device of file
CN1656480B (en) Method and apparatus for enabling synchronizing data in different devices having different capabilities
US9019123B2 (en) Health check services for web-based collaboration environments
US20070150498A1 (en) Social network for distributed content management
CN107872534B (en) Information pushing method and device, server and readable storage medium
US20100268776A1 (en) System and Method for Determining Information Reliability
US20130227085A1 (en) Terminal and method for using cloud services
CN106131113A (en) A kind of resource downloading method, device, system and Resource Server
CN110046036A (en) A kind of operation requests distribution method, device and equipment
CN110546633A (en) Named entity based category tag addition for documents
CN106657227B (en) The method and device of resource is subscribed in a kind of change
KR101616914B1 (en) Method of organizing user-customizable content resource, user-customizable resource server and storage media storing the same
CN101483668A (en) Network storage and access method, device and system for hot spot data
CN104978372A (en) Multimedia information processing method, multimedia device and multimedia network system
CN111383044B (en) System and method for determining compatible modules
CA2932438A1 (en) Information processing system
CN108197323A (en) Applied to distributed system map data processing method
CN107911443A (en) A kind of session information processing method, device, server and readable storage medium storing program for executing
CN111813346A (en) Method, system, device and medium for establishing Ceph distributed storage based on cloud platform
CN108960378A (en) A kind of data download method, system, device and storage medium
CN106776055A (en) A kind of distributed lock method and system
CN112152902B (en) Media resource pushing method and device
CN105187555B (en) A kind of message treatment method, apparatus and system
CN102959528B (en) Client device, server unit, content acquisition and integrated circuit
US10318207B1 (en) Apparatus and methods for inter-version replication checking

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