CN106657227A - Method and device for changing subscription resources - Google Patents
Method and device for changing subscription resources Download PDFInfo
- Publication number
- CN106657227A CN106657227A CN201610851455.3A CN201610851455A CN106657227A CN 106657227 A CN106657227 A CN 106657227A CN 201610851455 A CN201610851455 A CN 201610851455A CN 106657227 A CN106657227 A CN 106657227A
- Authority
- CN
- China
- Prior art keywords
- resource
- information
- source material
- subscription
- entity
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Abstract
The invention provides a method and device for changing subscription resources. The method comprises steps that after an instruction for deleting a target resource is received by a first entity, if the target resource is detected to be a duplicate file and is a subscription resource, the information of an original resource of the target resource is determined according to a file attribute value of the target resource, and a connection attribute of the original resource is acquired from an attribution entity of the original resource; whether the original resource has other duplicate files can be determined according to the connection attribute, and one other duplicate file is selected as a replacement resource to establish a subscription relationship; the target resource is deleted. The method is advantaged in that the proper replacement resource can be recommended to the user as the subscription resource when the subscription resource is deleted, change of the subscription resource is accomplished at the background on the condition that user experience is not damaged, moreover, the method can be applied to server migration and load balancing.
Description
Technical field
The present invention relates to network resource management technical field, more particularly to the change technical field for subscribing to resource.
Background technology
With the development of Internet of Things, the Internet of Things standard (technology) based on the restful styles of resource (Resource)
In formulation and evolution, 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), a kind of solution that Resource Replica is set up in another equipment is proposed, i.e., a certain resource on node A on nodeb
Copy is set up, the copy is the subset (should typically include important resource and attribute) of the resource on node A, if node B is
Audient can the network equipment (or platform) asked of Jing frequentations, then can undoubtedly allow more people to find Resource Replicas, and then complete
The discovery and popularization of the resource on node A.
As shown in figure 1, having resource resource1 in node A, in order to allow more people to find and use resource1, save
Point A establishes the wave file (annc-resource1) of resource1, annc- on node B (visitor is numerous)
Resource1 is the subset of resource1, the Main Resources comprising resource1 and attribute;When resource1 changes
When, its change will be synchronized to annc-resource1.Because node B has a large amount of audients, when it carries out resource discovering
When, it is relatively easy to find resource backup, and then by the resource1 of its link Attribute Discovery node A.
This mode for setting up backup file based on resource carries out the solution of resource discovering, when resource discovering completes it
Afterwards, node C (resource backup being found that on node B) is if it is intended to subscribe to the resource, or subscribing on node A
Resource1, or subscribing to the annc-resource1 on node B.Wherein, subscription refers to and a mark is done in resource, is somebody's turn to do
The information comprising subscriber, when resource changes, notifies subscriber, so that subscriber carries out real time operation on mark.
If subscribing to the resource1 on node A, node A is possible to that substantial amounts of notification message can be sent, if node A is
Constrained devices or disposal ability 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 can not visit again the resource.
The content of the invention
Present invention seek to address that problem as described above.It is an object of the present invention to provide a kind of solve in problem above
Any one change subscribe to resource method and device.Specifically, the present invention is provided can be when deleting and subscribing to resource
User recommends the suitable change for substituting objective of subscription to subscribe to the method and device of resource.
According to the first aspect of the invention, the invention provides a kind of method of change subscription resource, the change subscription
The method of resource includes:
First instance is received after the instruction of delete target resource, such as detect the target resource for wave file and
To subscribe to 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;
Such as judge that the source material has other wave files according to the connection attribute, then perform in following manner
Any one:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of the target resource
Resource address change message is subscribed to, this subscribes to the identification information that the alternate resources are carried in resource address change message, root
Send to the ownership entity of the alternate resources according to the identification information of the alternate resources and subscribe to request, this subscribes in request and carries
There is the information of the target resource and subscribe to child resource content;
Mode two:Send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to resource ground
The information of part or all of other wave files in addition to target resource is carried in location change message, according to the subscription entity
Selection result, to it is described subscription entity selection wave file ownership entity send subscribe to request, this subscribe to request in take
Information with the target resource and subscription child resource content;
Delete the target resource.
Wherein, methods described also includes:When the first instance judges that the source material does not have other wave files,
Send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to and is carried in resource address change message
There is the information of the source material, send to the ownership entity of the source material and subscribe to request, this subscribes to and is carried in request
The information and subscription child resource content of the target resource.
Wherein, methods described also includes:The first instance is received after subscription request from other entities, is ordered according to described
Read request in carry the target resource information determine the target resource source material information, according to this original money
The information in source determines the wave file of this source material in the first instance;From the subscription son money subscribed to and carried in request
Source contents obtain the information of subscriber, are the wave file and the institute in the first instance according to the information of the subscriber
State and set up between subscriber subscribing relationship.
Wherein, methods described also includes:The first instance receives subscription resource address change message from other entities
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 presents simultaneously returns the result of selection.
Wherein, methods described also includes:The first instance receives the connection attribute for obtaining the source material
Solicited message after, return the connection attribute of the source material.
According to a further aspect in the invention, present invention also offers the device of resource is subscribed in a kind of change, the change is ordered
Readding the device of resource includes:Communication module, judge 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 mark letter of all wave files of the connection attribute of the source material comprising the source material
Breath;When being additionally operable to the judge module and judging that the source material has other wave files, appointing in following manner is performed
Meaning one:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of the target resource
Resource address change message is subscribed to, this subscribes to the identification information that the alternate resources are carried in resource address change message, root
Send to the ownership entity of the alternate resources according to the identification information of the alternate resources and subscribe to request, this subscribes in request and carries
There is the information of the target resource and subscribe to child resource content;
Mode two:Send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to resource ground
The information of part or all of other wave files in addition to target resource is carried in location change message, according to the subscription entity
Selection result, to it is described subscription entity selection wave file ownership entity send subscribe to request, this subscribe to request in take
Information with the target resource and subscription child resource content;
The judge module, for detecting whether the target resource is wave file, whether is to subscribe to resource, Yi Jigen
Judge that the source material whether there is other wave files according to the connection attribute;
The control module, for deleting the target resource.
Wherein, the communication module, is additionally operable to judge that the source material does not have other copies in the judge module
During file, send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to resource address change and disappears
The information of the source material is carried in breath, is sent to the ownership entity of the source material and is subscribed to request, this subscribes to request
In carry the target resource information and subscribe to child resource content.
Wherein, the communication module, is additionally operable to from other entities receive subscribe to request, is carried according to described subscription in 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 the change subscription resource;From the subscription child resource subscribed to and carried in request
The information of content obtaining subscriber;
The control module, the pair being additionally operable in the device that the information of subscriber is the change subscription resource
Subscribing relationship is set up between presents and the subscriber.
Wherein, the communication module, is additionally operable to from other entities receive after subscription resource address change message, judges this
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
Cease and return selection result.
Wherein, the communication module, after being additionally operable to the solicited message for receiving the connection attribute for obtaining source material,
Return the connection attribute of the source material.
The method and device of resource is subscribed to according to change provided by the present invention, can be use when subscription resource is deleted
Suitable alternate resources are recommended as resource is subscribed in family, on the basis of Consumer's Experience is not damaged, complete to subscribe to resource on backstage
Change.Further, the program can also be applied in terms of the migration of server, load balancing.
The following description for exemplary embodiment is read with reference to the drawings, other property features and advantage of the present invention will
It is apparent from.
Description of the drawings
The accompanying drawing for being incorporated in specification and constituting a part for specification shows embodiments of the invention, and with
Description is used to explain the principle of the present invention together.In the drawings, similar reference is used to represent similar key element.Under
Accompanying drawing in the description of face is some embodiments of the present invention, rather than whole embodiments.For those of ordinary skill in the art come
Say, on the premise of not paying creative work, other accompanying drawings can be obtained according to these accompanying drawings.
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 the change of the present invention;
Fig. 3 schematically illustrates the modular structure schematic diagram that the device of resource is subscribed in the change of the present invention;
Fig. 4 schematically illustrates the implementing procedure figure of the embodiment one of the method for the change subscription resource of the present invention;
Fig. 5 schematically illustrates the implementing procedure figure of the embodiment two of the method for the change subscription resource of the present invention;
Fig. 6 schematically illustrates the implementing procedure figure of the embodiment three of the method for the change subscription resource of the present invention.
Specific embodiment
To make purpose, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than the embodiment of whole.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.Need
Illustrate, in the case where not conflicting, the feature in embodiment and embodiment in the application can mutually be combined.
The present invention basic thought be receive delete resource order when, if judge the resource for wave file,
And to subscribe to resource, then search other wave files, and choose one as alternate resources and recommend user, set up subscribing relationship;If
Without other wave files, then source material is recommended to be subscribed to.Such that it is able to not damage Consumer's Experience, and can guaranteed equipment and
The normal operation of system.
Below in conjunction with the accompanying drawings, the method and device to subscribing to resource according to change provided by the present invention is carried out specifically
It is bright.
Fig. 2 shows that a kind of flow chart of the method for resource, with reference to shown in Fig. 2, the change are subscribed in change of the invention
More subscribing to the method for resource includes:
First instance is received after the instruction of delete target resource, detects the target resource for wave file and 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, it is all comprising the source material in the connection attribute of the source material
The identification information of wave file;
When judging that source material has other wave files according to the connection attribute of source material, in performing following manner
Any one:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of target resource and is subscribed to
Resource address changes message, and 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
The content of information and subscription child resource;
Mode two:Send to the subscription entity of target resource and subscribe to resource address change message, this subscribes to resource address and becomes
The information of part or all of other wave files 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 of the wave file for subscribing to entity selection and subscribes to request, and this subscribes to and is taken in request
Information with target resource and subscription child resource content;
First instance delete target resource.
When first instance determines the source material there are no other wave files, then directly using source material as replacing
For resource recommendation to target resource subscription entity, i.e.,:Send to subscribe to resource address and 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 ownership entity transmission of source material
Request is read, this subscribes to the information that target resource is carried in request and the content for subscribing to child resource.
Herein, first instance both can be the ownership entity, or other copies of the target resource to be deleted
The ownership entity of file, for example, it may be the ownership entity of the wave file of selected resource as an alternative, or original
The ownership entity of resource, further, can also be subscription entity.
Specifically, first instance as the wave file for being selected as alternate resources ownership entity when, it is of the invention
The method of resource is subscribed in change also to be included:
First instance is received after subscription request from other entities, according to the letter of the target resource carried in the subscription request
Breath determines the information of the source material of this target resource, determines that this is original in the first instance according to the information of this source material
The wave file of resource;And the information of the subscription child resource content obtaining subscriber carried from the subscription request, the subscriber
Information include subscribing to the information such as mark of the mark of entity and subscriber, be in first instance according to the information of the subscriber
In above-mentioned source material wave file set up and subscriber between subscribing relationship.
Specifically, when first instance is used as entity is subscribed to, the method for the change subscription resource of the present invention can also include:
First instance is received after subscription resource address change message from other entities, judges that this subscribes to resource address change
When the information of more than one wave file is carried in message, therefrom select the information of a wave file and return the knot of selection
Really.
Further, when ownership entity of the first instance as source material, the side of resource is subscribed in the change of the present 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.
The method for subscribing to resource in above-mentioned change is adapted, present invention also offers the device of resource is subscribed in a kind of change,
Fig. 3 shows that a kind of modular structure schematic diagram of the device of resource is subscribed in the change.It is above-mentioned that the device of resource is subscribed in the change
First instance in method, you can be the ownership entity of source material, or the ownership entity of wave file, can be with
It is to subscribe to entity.With reference to shown in Fig. 3, the device includes communication module, judge 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 of 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 of the source material is included in the connection attribute of the source material;It is additionally operable to work as and sentences
When disconnected module judges that the source material has other wave files, any one in following manner is performed:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of the target resource and is ordered
Resource address change message is read, this subscribes to and the identification information of the alternate resources is carried 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, and this subscribes in request and carries target
The information and subscription child resource content of resource;
Mode two:Send to the subscription entity of target resource and subscribe to resource address change message, this subscribes to resource address and becomes
The information of part or all of other wave files 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 of the wave file for subscribing to entity selection and subscribes to request, and this subscribes to and is taken in request
Information with target resource and subscription child resource content.
Wherein, judge module is used for whether the target resource to be deleted of judgement to be wave file, whether is to subscribe to resource, with
And judge that source material whether there is other wave files according to the connection attribute of its source material.
Wherein, control module is mainly used in delete target resource.
Specifically, when judge module judges that source material does not have other wave files, communication module can be also used for
Send to the subscription entity of target resource and subscribe to resource address change message, this subscribes in resource address change message and carries original
The information of beginning resource, and subscription request is sent to the ownership entity of source material, 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 are received subscribes to request, and according to the information for subscribing to the target resource carried in request the original money of this target resource is determined
The information in source, according to the information of this source material the wave file of this source material in this device is determined;And please from the subscription
Seek the information of the subscription child resource content obtaining subscriber of middle carrying, the information of this subscriber include subscribing to the mark of entity with
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, is to set up subscribing relationship between the wave file of this source material in this device and the subscriber.
When the change of the present invention subscribes to the device of resource as entity is subscribed to, communication module can be also used for from other realities
Body is received after subscription resource address change message, and judge module judges that this is subscribed in resource address change message and carries one
During the information of wave file above, therefrom select the information of a wave file and return 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 the connection attribute of the source material.Further, source material except will
When outside the wave file of deletion without other wave files, communication module can be also used for receiving the subscription of other entities transmissions please
Ask, 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 order from this
Read the information of the subscription child resource content obtaining 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 to set up to subscribe between this source material in this device and the subscriber to close
System.
Specific embodiment one
Fig. 4 shows that a kind of embodiment of the method that resource is subscribed in change of the invention is embodied as flow chart,
With reference to shown in Fig. 4, primary entities set up the esource impact relation with regard to resource Resource1 with declaration entity 1, that is, announcing real
The wave file annc-resource1 (annc-resource1-id1) of Resource1 is set up on body 1, and in the wave file
Attribute in increase the ID of Resource1 or address in primary entities, so as to clear and definite both relations;Meanwhile, primary entities are needed
To increase on the connection attribute of Resource1 wave file annc-resource1 ID (annc-resource1-id1) or
Person address, so as to associate Resource1 and all wave files.After setting up mapping relations, if Resource1 changes,
Can reflect simultaneously on wave file.
In the same manner, primary entities and declaration entity 2 also set up the esource impact relation with regard to resource Resource1, are announcing
The wave file annc-resource1-id2 of Resource1 is set up on entity 2, and is increased in the attribute of the wave file former
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 resources on declaration entity 2, and so-called subscription is exactly
One is set up in the case where resource is subscribed to and subscribes to child resource for recording:The information such as the ID of subscriber or address, the content subscribed to.
When announcing that entity 2 receives the instruction for deleting annc-resource1-id2:
The attribute for announcing the detection annc-resource1-id2 of entity 2 knows annc-resource1-id2 for copy text
Part, and to subscribe to resource, announce entity 2 according to the property value of annc-resource1-id2 (resource1 mark (ID or
Address)) to primary entities send request Resource1 connection attribute solicited message, it is therefore an objective to whether obtain Resource1
Physically there is wave file at other.
Primary entities are received after above-mentioned solicited message, and the connection attribute of Resource1 is sent to declaration entity 2.
Announce that entity 2 is received after the connection attribute of Resource1, judge that Resource1 physically has pair at other
Presents, the address of the wave file of Resource1 of the acquisition in addition to annc-resource1-id2, and select one of work
Subscription entity is recommended for alternate resources, for example, recommends to announce the annc-resource1-id1 on entity 1;Also, announce real
Body 2 sends the subscription request with regard to annc-resource1-id1 to declaration entity 1, and this subscribes in request and carries annc-
The information of resource1-id2 and the content of subscription child resource.
Announce that entity 1 is received after 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 obtains from the content for subscribing to child resource
The information of subscriber, including the information such as the mark of entity and the mark of subscriber is subscribed to, and be accordingly annc-resource1-
Id1 is created and the subscribing relationship between subscriber, is then sent to declaration entity 2 and is confirmed message.
Announce that entity 2 is received after the confirmation message for announcing entity 1, be altered to entity transmission subscription resource address is subscribed to
The notification message of work(, 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 that another kind of embodiment of the method that resource is subscribed in change of the invention is embodied as flow process
Figure, with reference to shown in Fig. 5, primary entities set up the esource impact relation with regard to resource Resource1 with declaration entity 1, are announcing
The wave file annc-resource1 (annc-resource1-id1) of Resource1 is set up on entity 1, and in the copy text
Increase the ID of Resource1 or address in primary entities in the attribute of part, so as to both relations clear and definite;Meanwhile, primary entities
Need the ID (annc-resource1-id1) for increasing wave file annc-resource1 on the connection attribute of Resource1
Or address, so as to associate Resource1 and all wave files.
In the same manner, primary entities and declaration entity 2 also set up the esource impact relation with regard to resource Resource1, are announcing
The wave file annc-resource1-id2 of Resource1 is set up on entity 2, and is increased in the attribute of the wave file former
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.
Subscribe to entity and find and subscribe to the annc-resource1-id2 resources on declaration entity 2.
When announcing that entity 2 receives the instruction for deleting annc-resource1-id2:
The attribute for announcing the detection annc-resource1-id2 of entity 2 knows annc-resource1-id2 for copy text
Part, and to subscribe to resource, announce entity 2 according to the property value of annc-resource1-id2 (resource1 mark (ID or
Address)) to primary entities send request Resource1 connection attribute solicited message, it is therefore an objective to whether obtain Resource1
Physically there is wave file at other.
Primary entities are received after above-mentioned solicited message, and the connection attribute of Resource1 is sent to declaration entity 2.
Announce that entity 2 is received after the connection attribute of Resource1, judge that Resource1 physically has pair at other
Presents, 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 entity is subscribed to, according to the selection result for subscribing to entity, example as recommendation list
Such as subscribe to the annc-resource1-id1 resources as an alternative that entity selection is announced on entity 1, to announce entity 1 send with regard to
The subscription request of annc-resource1-id1, this subscribes to and the information of annc-resource1-id2 is carried in request and son is subscribed to
The content of resource.
Announce that entity 1 is received after 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 obtains from the content for subscribing to child resource
The information of subscriber, including the information such as the mark of entity and the mark of subscriber is subscribed to, and be accordingly annc-resource1-
Id1 is created and the subscribing relationship between the subscriber, is then sent to declaration entity 2 and is confirmed message.
Announce that entity 2 is received after the confirmation message for announcing entity 1, be altered to entity transmission subscription resource address is subscribed to
The notification message of work(, 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 that the third embodiment of the method that resource is subscribed in change of the invention is embodied as flow process
Figure, with reference to shown in Fig. 6, primary entities set up the esource impact relation with regard to resource Resource1 with declaration entity 1, are announcing
The wave file annc-resource1 (annc-resource1-id1) of Resource1 is set up on entity 1, and in the copy text
Increase the ID of Resource1 or address in primary entities in the attribute of part, so as to both relations clear and definite;Meanwhile, primary entities
Need the ID (annc-resource1-id1) for increasing wave file annc-resource1 on the connection attribute of Resource1
Or address, so as to associate Resource1.
Subscribe to entity and find and subscribe to the annc-resource1-id1 resources on declaration entity 1.
When announcing that entity 1 receives the instruction for deleting annc-resource1-id1:
The attribute for announcing the detection annc-resource1-id1 of entity 1 knows annc-resource1-id1 for copy text
Part, and to subscribe to resource, announce entity 1 according to the property value of annc-resource1-id1 (resource1 mark (ID or
Address)) to primary entities send request Resource1 connection attribute solicited message, it is therefore an objective to whether obtain Resource1
Physically there is wave file at other.
Primary entities are received after above-mentioned solicited message, and the connection attribute of Resource1 is sent to declaration entity 1.
Announce that entity 1 is received after the connection attribute of Resource1, judge that Resource1 does not have other wave files,
Resource change message is subscribed to entity transmission is subscribed to, the address of Resource1 is carried in this message, and pass is sent to primary entities
Ask in the subscription of Resource1, this subscribes to and the information of annc-resource1-id1 is carried in request and child resource is subscribed to
Content.
Primary entities are received after 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 information such as the marks of mark and subscriber for subscribing to entity, and accordingly between Resource1 establishments and the subscriber
Subscribing relationship, then sends to declaration entity 1 and confirms message.
Announce that entity 1 is received after the confirmation message of primary entities, be altered to entity transmission subscription resource address is subscribed to
The notification message of work(, carries ID or the address of primary entities in this notification message;Announce that entity 1 deletes annc-resource1-
id1。
Descriptions above can combine individually or in a variety of ways enforcement, and these variants all exist
Within protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step in said method can be instructed by program
Related hardware is completed, and described program can be stored in computer-readable recording medium, such as read-only storage, disk or CD
Deng.Alternatively, all or part of step of above-described embodiment can also be realized using one or more integrated circuits, accordingly
Ground, each module/unit in above-described embodiment can be realized in the form of hardware, it would however also be possible to employ the shape of software function module
Formula is realized.The present invention is not restricted to the combination of the hardware and software of any particular form.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that a series of process comprising key elements, method, article or equipment not only will including those
Element, but also including other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence " including ... ", it is not excluded that in bag
Also there is other identical element in the process, method, article or the equipment that include the key element.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation.Although
The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
1. a kind of method that resource is subscribed in change, it is characterised in that the method for resource is subscribed in the change to be included:
First instance is received after the instruction of delete target resource, such as detects the target resource for wave file and to order
Resource is read, then the information of the source material of the target resource is determined 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 is included
The identification information of all wave files of the source material;
Such as judge that the source material has other wave files according to the connection attribute, then perform appointing in following manner
Meaning one:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of the target resource and is subscribed to
Resource address changes message, and 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 sends subscription request to the ownership entity of the alternate resources, and this subscribes to and is carried in request
State the information of target resource and subscribe to child resource content;
Mode two:Send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to resource address and becomes
The information of part or all of other wave files in addition to target resource is carried in more message, according to the choosing of the subscription entity
Result is selected, is sent to the ownership entity of the wave file of the subscription entity selection and is subscribed to request, this subscribes to and is carried 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 claimed in claim 1, it is characterised in that methods described also includes:
When the first instance judges that the source material does not have other wave files, to the subscription entity of the target resource
Send and subscribe 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 sends subscribes to request, and this subscribes to information and the subscription that the target resource is carried in request
Child resource content.
3. the method that resource is subscribed in change as claimed in claim 1, it is characterised in that methods described also includes:
The first instance is received after subscription request from other entities, according to the target money subscribed to and carried in request
The information in source determines the information of the source material of the target resource, and according to the information of this source material the first instance is determined
In this source material wave file;From the information of the subscription child resource content obtaining subscriber for subscribing to and being carried in request,
It is to set up to subscribe between the wave file in the first instance and the subscriber to close according to the information of the subscriber
System.
4. the method that resource is subscribed in change as claimed in claim 1, it is characterised in that methods described also includes:
The first instance is received after subscription resource address change message from other entities, judges that this subscribes to resource address change
When the information of more than one wave file is carried in message, therefrom select the information of a wave file and return the knot of selection
Really.
5. the method that resource is subscribed in change as claimed in claim 1, it is characterised in that methods described also includes:
The first instance is received after the solicited message of the connection attribute for obtaining the source material, is returned described original
The connection attribute of resource.
6. the device of resource is subscribed in a kind of change, it is characterised in that the device of resource is subscribed in the change to be included:Communication module,
Judge module and control module, wherein,
The communication module is for receiving the instruction of delete target resource and true according to the file attribute value of the target resource
The information of the source material of the fixed target resource, and obtain the company of the source material from the ownership entity of the source material
Attribute is connect, wherein, the identification information of all wave files of the connection attribute comprising the source material of the source material;Also
When judging that the source material has other wave files for the judge module, perform any one in following manner
It is individual:
Mode one:One of wave file resource as an alternative is selected, is sent to the subscription entity of the target resource and is subscribed to
Resource address changes message, and 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 sends subscription request to the ownership entity of the alternate resources, and this subscribes to and is carried in request
State the information of target resource and subscribe to child resource content;
Mode two:Send to the subscription entity of the target resource and subscribe to resource address change message, this subscribes to resource address and becomes
The information of part or all of other wave files in addition to target resource is carried in more message, according to the choosing of the subscription entity
Result is selected, is sent to the ownership entity of the wave file of the subscription entity selection and is subscribed to request, this subscribes to and is carried in request
The information and subscription child resource content of the target resource;
The judge module, for detecting whether the target resource is wave file, whether is to subscribe to resource, and according to institute
State connection attribute and judge that the source material whether there is other wave files;
The control module, for deleting the target resource.
7. the device of resource is subscribed in change as claimed in claim 6, it is characterised in that
The communication module, is additionally operable to when the judge module judges that the source material does not have other wave files, to
The subscription entity of the target resource sends subscribes to resource address change message, and this subscribes to and is carried in resource address change message
The information of the source material, sends to the ownership entity of the source material and subscribes to request, and this subscribes to and is carried in request
State the information of target resource and subscribe to child resource content.
8. the device of resource is subscribed in change as claimed in claim 6, it is characterised in that
The communication module, is additionally operable to from other entities receive subscribe 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, and according to the information of this source material the change is determined
Subscribe to the wave file of this source material in the device of resource;From the subscription child resource content obtaining subscribed to and carried in request
The information of subscriber;
The control module, it is that the copy that the change is subscribed in the device of resource is literary to be additionally operable to according to the information of subscriber
Subscribing relationship is set up between part and the subscriber.
9. the device of resource is subscribed in change as claimed in claim 6, it is characterised in that
The communication module, is additionally operable to from other entities receive after subscription resource address change message, judges that this subscribes to resource
When the information of more than one wave file is carried in address change message, therefrom select the information of a wave file and return
Selection result.
10. the device of resource is subscribed in change as claimed in claim 6, it is characterised in that
The communication module, after being additionally operable to the solicited message for receiving the connection attribute for obtaining source material, returns described
The connection attribute of source material.
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 true CN106657227A (en) | 2017-05-10 |
CN106657227B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022087795A1 (en) * | 2020-10-26 | 2022-05-05 | Oppo广东移动通信有限公司 | Resource mapping method and apparatus, device, and storage medium |
WO2022087796A1 (en) * | 2020-10-26 | 2022-05-05 | Oppo广东移动通信有限公司 | Zigbee device attribute subscription method and apparatus, and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103248684A (en) * | 2013-04-28 | 2013-08-14 | 北京奇虎科技有限公司 | Resource acquiring method and device on Internet |
US20140233473A1 (en) * | 2013-02-15 | 2014-08-21 | Convida Wireless LLC | Service layer resource propagation across domains |
CN105282728A (en) * | 2014-07-25 | 2016-01-27 | 中兴通讯股份有限公司 | Method for deleting notification resource and common service entity |
US20160156722A1 (en) * | 2013-07-11 | 2016-06-02 | Huawei Device Co., Ltd | Resource migration method and apparatus |
CN105745867A (en) * | 2013-12-01 | 2016-07-06 | Lg电子株式会社 | Method and apparatus for managing specific resource in wireless communication system |
-
2016
- 2016-09-26 CN CN201610851455.3A patent/CN106657227B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140233473A1 (en) * | 2013-02-15 | 2014-08-21 | Convida Wireless LLC | Service layer resource propagation across domains |
CN103248684A (en) * | 2013-04-28 | 2013-08-14 | 北京奇虎科技有限公司 | Resource acquiring method and device on Internet |
US20160156722A1 (en) * | 2013-07-11 | 2016-06-02 | Huawei Device Co., Ltd | Resource migration method and apparatus |
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 |
Non-Patent Citations (1)
Title |
---|
ONEM2M: "《ONEM2M TECHNICAL SPECIFICATION》", 6 August 2014 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022087795A1 (en) * | 2020-10-26 | 2022-05-05 | Oppo广东移动通信有限公司 | Resource mapping method and apparatus, device, and storage medium |
WO2022087796A1 (en) * | 2020-10-26 | 2022-05-05 | Oppo广东移动通信有限公司 | Zigbee device attribute subscription method and apparatus, and device |
Also Published As
Publication number | Publication date |
---|---|
CN106657227B (en) | 2019-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110192198B (en) | Security for accessing stored resources | |
CN101689166B (en) | Processing write requests with server having global knowledge | |
US20220283993A1 (en) | File system warnings for moves of shared content items | |
CN101751466A (en) | Information processing apparatus, divided management server, information processing method, divided management method and information processing system | |
CN106878388B (en) | Detection to node slow in distributed memory system | |
CN108710681A (en) | File acquisition method, device, equipment and storage medium | |
CN107315825A (en) | A kind of index upgrade system, method and device | |
KR101482073B1 (en) | Apparatus and method for spam comment filtering connected with social network service | |
CN104169902A (en) | Synchronizing local and remote data | |
US10685055B2 (en) | Hashtag-playlist content sequence management | |
CN106254528A (en) | A kind of resource downloading method and buffer memory device | |
CN106657227A (en) | Method and device for changing subscription resources | |
CN106156265A (en) | For the method and apparatus merging tree structure | |
US8281365B2 (en) | Information management method, information management system, computer-readable medium and computer data signal | |
WO2018223589A1 (en) | Document editing method, device, readable storage medium and terminal apparatus | |
CN108459927A (en) | A kind of data back up method, device and server | |
EP3571605A1 (en) | Including metadata in data resources | |
CN107911443A (en) | A kind of session information processing method, device, server and readable storage medium storing program for executing | |
CN107193754A (en) | Carry out the method and apparatus that data storage is used to search for | |
CN106776055A (en) | A kind of distributed lock method and system | |
WO2014054173A1 (en) | Distributed data management system and program | |
CN110035121A (en) | A kind of information processing method and electronic equipment | |
CN109118339A (en) | The contact person's configuration method and its device and computer readable storage medium of supplier | |
JP4672055B2 (en) | Information processing apparatus, information processing method, and computer program | |
JP6547509B2 (en) | INFORMATION PROCESSING APPARATUS AND INFORMATION PROCESSING PROGRAM |
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 |