[go: up one dir, main page]

WO2019109923A1 - 消息处理方法及系统、存储介质、电子设备 - Google Patents

消息处理方法及系统、存储介质、电子设备 Download PDF

Info

Publication number
WO2019109923A1
WO2019109923A1 PCT/CN2018/119242 CN2018119242W WO2019109923A1 WO 2019109923 A1 WO2019109923 A1 WO 2019109923A1 CN 2018119242 W CN2018119242 W CN 2018119242W WO 2019109923 A1 WO2019109923 A1 WO 2019109923A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
group
request
processing method
message processing
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.)
Ceased
Application number
PCT/CN2018/119242
Other languages
English (en)
French (fr)
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to US16/769,683 priority Critical patent/US11237888B2/en
Publication of WO2019109923A1 publication Critical patent/WO2019109923A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5077Logical partitioning of resources; Management or configuration of virtualized resources
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/547Messaging middleware

Definitions

  • the present disclosure relates to the field of information processing technologies, and in particular, to a message processing method, a message processing system, a computer readable storage medium, and an electronic device.
  • the server creates corresponding resources for the terminal.
  • the resources can not only indicate the status of the terminal, but also represent the function of the terminal.
  • the control of the terminal by the application device can be implemented by operating the corresponding resource of the terminal.
  • Common operations may include creating, updating, obtaining, deleting, and notifying.
  • Embodiments of the present disclosure relate to a message processing method, a message processing system, a computer readable storage medium, and an electronic device.
  • a message processing method including:
  • the first request is sent to another group member of the group resource other than the group member corresponding to the first resource identifier.
  • the message processing method further includes:
  • the first request is sent to all group members in the group resource.
  • the message processing method further include:
  • the message processing method further include:
  • Each of the second resource identification information in the group resource is stored in a group member set in the group resource.
  • the message processing method further includes:
  • the message processing method further includes:
  • the second request is sent to a group member other than the group member corresponding to each resource identifier in the subscribed resource list.
  • the first request includes one or more of a create request, an update request, a delete request, an acquire request, a subscription request, and a notification request.
  • a message processing system comprising:
  • a request receiving module configured to receive a first request, where the first request includes a first resource identifier
  • a resource identifier judging module configured to determine whether the first resource identifier exists in a group resource that includes a plurality of second resource identifiers and a group member corresponding to each of the second resource identifiers;
  • a request sending module configured to send the first request to the group resource other than the group member corresponding to the first resource identifier when determining that the first resource identifier exists in the group resource Group member.
  • a computer readable storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the message processing method of any of the above.
  • an electronic device including:
  • a memory for storing executable instructions of the processor
  • the processor is configured to perform the message processing method according to any one of the above items by executing the executable instruction.
  • FIG. 1 schematically shows a schematic diagram of transmission and response of a message subscription.
  • Figure 2 schematically shows a schematic diagram of the transmission and response of another message subscription.
  • Fig. 3 schematically shows a flow chart of another message processing method.
  • Fig. 4 schematically shows an example diagram of a group resource structure.
  • FIG. 5 schematically shows a transmission and response diagram of a subscription resource creation request.
  • Fig. 6 schematically shows another schematic diagram of a message processing method.
  • Figure 7 schematically shows a block diagram of a message processing system.
  • Fig. 8 schematically shows an electronic device for implementing the above message processing method.
  • Fig. 9 schematically shows a computer readable storage medium for implementing the above message processing method.
  • the Internet of Things system is a bridge between the producer of information and the consumer of information.
  • the specific communication process may include: First, the producer can continuously send information to the Internet of Things system; secondly, the Internet of Things system can receive The information generated by the producer is stored; finally, the consumer can continuously obtain information from the Internet of Things system for consumption.
  • the Internet of Things system includes two types of entities: an Application Entity (AE) and a Common Service Entity (CSE); wherein one entity can register with another entity; for example, an AE can register with the CSE.
  • the CSE can also register with the CSE.
  • a resource AE or CSE
  • the AE can operate on the resources on the CSE through operations such as CRUDN (create, update, get, delete, and notify), such as updating the contents of the container under the AE resource through an UPDATE operation request.
  • All entities in the system are represented by resources.
  • the resource can be uniquely identified, including attributes and sub-resources, where the attribute is used to store resource-related information, the sub-resource is the next-level resource of the resource, and the resource includes an index pointing to the sub-resource.
  • the ⁇ AE> resource can be used to identify the application logic in the physical device
  • the ⁇ node> can be used to identify the related information of the physical device
  • the ⁇ container> can be used to serve as the container and store the specific content information.
  • the ⁇ group> resource can be used. Combine resources for management.
  • management is usually performed in groups, and ⁇ group> resources are created to point to multiple entity resources.
  • the IoT system includes a variety of operations for group resources, including creating, obtaining, updating, deleting, and subscribing. The following is an example of subscribing to a group resource to implement the effect of subscribing to multiple group members at a time.
  • the group subscription notification included in the Internet of Things system may be as follows: first, by sending a subscription resource creation request to the group's child resource ⁇ fanOutPoint>; secondly, when the CSE receives the request, sending a subscription resource creation request to each member of the group, Each member of the group creates a ⁇ subscription> resource based on the received subscription resource request, thereby achieving the purpose of the requester subscribing to the change of each member information in the group. For example, AE1 subscribes to the resource changes of AE2..AEn through the group, and when the resources of AE2..AEn change, AE1 will be notified.
  • the message processing method may include the following steps:
  • Step S310 Receive a first request, where the first request includes a first resource identifier.
  • Step S320 Determine whether the first resource identifier exists in a group resource that includes a plurality of second resource identifiers and group members that are in one-to-one correspondence with each of the second resource identifiers.
  • Step S330 When it is determined that the first resource identifier exists in the group resource, send the first request to another group member of the group resource other than the group member corresponding to the first resource identifier.
  • the first request is sent to the other group member, thereby reducing the member sending the subscription resource creation request and responding to the subscription resource creation request.
  • the number of the number improves the efficiency of message processing; on the other hand, the number of members in the group is reduced and the number of responses to the first request is reduced, thereby speeding up the sending speed of the first request and the response speed of the first request, and improving
  • the quality of the system's service quality also enhances the user experience.
  • step S310 a first request is received; wherein the first request includes a first resource identifier.
  • any M2M device, M2M gateway or M2M service platform and applications registered on them can be abstracted into resources and have a unique resource identifier, ie URI (Uniform Resource Identifier), according to the resource identifier. You can uniquely locate resources.
  • the operations requested on the accessed resource include obtaining Retrieve, creating Create, updating Update, deleting Delete, and notifying Notify. It should be noted that a plurality of resources may exist on the device to which the accessed resource belongs, and the device to which the accessed resource belongs may determine the resource that the requester resource wishes to access according to the identifier of the accessed resource.
  • step S310 is explained and explained based on the above resources.
  • a first request including a first resource identifier sent by any group member (which may be other members, which is not particularly limited in this example) may be accepted; wherein the group member may be, for example, ⁇ AE1>, or ⁇ Any one of AE2, AE3, ..., AEn>, etc.; this example does not specifically limit this; further, the above first request may include, for example, obtaining Retrieve, creating Create, updating Update, deleting Delete, and notifying Notify, etc. Wait.
  • the first request may be first sent to the CSE; then, when the CSE receives the first request, respond to the first request and create a group. Resources. It should be added here that it can also be AE2, AE3, ..., AEn sends the first request to the CSE, which is not specifically limited in this example.
  • step S320 it is determined whether the first resource identifier exists in a group resource that includes a plurality of second resource identifiers and group members that are in one-to-one correspondence with each of the second resource identifiers.
  • the first resource identifier included in the first request may be included in the group resource.
  • the group resource may include multiple first resource identifiers and one identifier of each first resource.
  • a corresponding group member For example, group members that can be included in a group resource can be ⁇ AE1>, or ⁇ AE2, AE3, ..., AEn>, and so on.
  • the parameters that may be included in the foregoing group of resources may include: a device type (memberType), a current device number (currentNrOfMembers), a maximum device number (MaxNrOfMembers), a device identity (memberIDs), and a group resource.
  • the number of subscriptions (currentNrOfSubscriptions), effective start time (effectiveStartTime), effective end time (effectiveEndTime), fanout point (fanOutPoint), and fanout other device points (fanOutOtherMembersPoint) and so on.
  • the above creation group resource request may point to ⁇ CSEBase>/ ⁇ group>/ ⁇ fanOutOtherMembersPoint>.
  • the group resource may further include a group member group, and the group member group may include one or more of the second resource identifiers, where the group member set may be a group member list; wherein, determining whether the first resource identifier exists
  • the group resource of the group member that includes the plurality of second resource identifiers and the one-to-one correspondence with each of the second resource identifiers includes: determining whether the first resource identifier exists in the group member set. For example:
  • the first resource identifier included in the first request it may be determined whether the first resource identifier included in the first request exists in the group membership group that includes one or more second resource identifiers.
  • the query of the first resource identifier can be facilitated, and the query speed is improved.
  • the foregoing group resource may further include a requested resource set, where the requested resource set includes one or more of the second resource identifiers; wherein, determining whether the first resource identifier exists in a plurality of second The resource identifier and the group resource of the group member corresponding to each of the second resource identifiers include: determining whether the first resource identifier exists in the requested resource set. For example:
  • the requested resource set may include a created resource list, an updated resource list, a deleted resource list, a obtained resource list, a subscribed resource list, and a notified resource list, and the like; further, the requested resource set may be Is a list of requested resources.
  • step S330 when it is determined that the first resource identifier exists in the group resource, sending the first request to another group of the group resource other than the group member corresponding to the first resource identifier. member.
  • the first request may be sent to another group of the group resource other than the group member corresponding to the first resource identifier (for example, may be AE1).
  • Members for example, can be AE2, AE3, ..., AEn).
  • the number of times the subscription resource creation request is sent and responded is greatly reduced; for example, in the prior art, the total number of transmissions and responses required is n2 times; however, the number of times the scheme needs to be sent and responded is (n-1) 2 times; therefore, it can be reduced by 2n times.
  • AE2, AE3, ..., AEn needs to subscribe to the messages of other group members, the same manner can be implemented in the above manner, and the disclosure will not be repeated here.
  • the group member may also receive the feedback information of the first request, which may include: Receiving the response message sent by the other group member in response to the first request, and concentrating each of the response messages to be sent to the group member corresponding to the first resource identifier.
  • the feedback information of the first request may include: Receiving the response message sent by the other group member in response to the first request, and concentrating each of the response messages to be sent to the group member corresponding to the first resource identifier.
  • the other group members After receiving the first request, the other group members (for example, may be AE2, AE3, ..., AEn), in response to the first request and sending a response message in response to the first request to the CSE, when the CSE receives each response After the message, each response message is aggregated and sent to AE1, so that AE1 can subscribe to various messages of AE2, AE3, ..., AEn (for example, can be create, update, get, delete, notify, etc.). In this way, the number of AE1 reception confirmation messages can be greatly reduced, and the speed at which AE1 subscribes to other group member messages is increased.
  • the other group members for example, may be AE2, AE3, ..., AEn
  • the message processing method may further include: when determining that the first resource identifier information does not exist in the group resource, the first request Send to all group members in the group resource.
  • the first request is sent to all group members in the group resource.
  • the total number of transmissions and responses required is (n+1) 2 times; however, the number of times the transmission and response are required to be used in this scheme is n 2 times; therefore, 2n+1 times can be reduced. It can be seen that with this solution, the number of transmissions and responses can be greatly reduced, the subscription speed can be increased, and the system pressure can be reduced.
  • the message processing method may further include: storing each of the second resource identification information in the group resource to the group A group member group in a resource.
  • each second resource identifier in the group resource may be identified (for example, may be ⁇ AE1>, ⁇ AE2, AE3, ..., AEn> is stored in the group memberships (subscribedMemberIDs).
  • the message processing method further includes: adding the first resource identification information to the requested resource set.
  • the message processing method may further include step S610 and step S620. among them:
  • step S610 a second request including the third resource identifier is received, and it is determined whether the third resource identifier exists in the subscribed resource list.
  • step S620 when it is determined that the third resource identifier exists in the subscribed resource list, send the second request to a group member corresponding to each resource identifier in the subscribed device identifier information group. Other group members.
  • Receiving a second request including the third resource identifier (for example, the second request sent by the F), and then determining whether the third resource identifier corresponding to the F exists in the subscribed device identification information group (subscribedMemberIDs);
  • the second request is directly sent to other group members except the group members corresponding to the resource identifiers in the subscribed device identification information group (subscribedMemberIDs).
  • the foregoing second request may also include, for example, acquiring Retrieve, creating Create, updating Update, deleting Delete, notifying Notify, and the like.
  • the message processing method may further include: receiving, by the group members, And the registration request including the second resource identifier, in response to the registration request, registering each group member according to each of the first resource identifiers.
  • the group registration is performed according to each first resource identifier in response to the registration request; It may include ⁇ AE1>, ⁇ AE2, AE3, ..., AEn> and the like.
  • the message processing system may include a group resource creation module 710, a first resource identifier determination module 720, and a first sending module 730. among them:
  • the request receiving module 710 can be configured to receive the first request, where the first request includes the first resource identifier.
  • the resource identifier judging module 720 is configured to determine whether the first resource identifier exists in a group resource that includes a plurality of second resource identifiers and group members that are in one-to-one correspondence with each of the second resource identifiers.
  • the request sending module 730 may be configured to, when determining that the first resource identifier exists in the group resource, send the first request to a group member other than the group member corresponding to the first resource identifier. Other group members.
  • the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
  • a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
  • a number of instructions are included to cause a computing device (which may be a personal computer, server, mobile terminal, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
  • an electronic device capable of implementing the above method is also provided.
  • FIG. 8 An electronic device 800 in accordance with such an embodiment of the present invention is described below with reference to FIG. 8 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
  • electronic device 800 is embodied in the form of a general purpose computing device.
  • the components of the electronic device 800 may include, but are not limited to, the at least one processing unit 810, the at least one storage unit 820, and a bus 830 that connects different system components (including the storage unit 820 and the processing unit 810).
  • the storage unit stores program code, which can be executed by the processing unit 810, such that the processing unit 810 performs various exemplary embodiments according to the present invention described in the "Exemplary Method" section of the present specification.
  • the processing unit 810 may perform step S110 as shown in FIG.
  • step S130 when determining that the first resource identifiers are present in the group resources, A request is sent to other group members of the group resource other than the group member corresponding to the first resource identifier.
  • the storage unit 820 can include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and/or a cache storage unit 8202, and can further include a read only storage unit (ROM) 8203.
  • RAM random access storage unit
  • ROM read only storage unit
  • the storage unit 820 can also include a program/utility 8204 having a set (at least one) of the program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
  • Bus 830 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
  • the electronic device 800 can also communicate with one or more external devices 700 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 800, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 850. Also, electronic device 800 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830.
  • network adapter 860 communicates with other modules of electronic device 800 via bus 830.
  • the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
  • a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
  • a number of instructions are included to cause a computing device (which may be a personal computer, server, terminal device, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
  • a computer readable storage medium having stored thereon a program product capable of implementing the above method of the present specification.
  • aspects of the present invention may also be embodied in the form of a program product comprising program code for causing said program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present invention described in the "Exemplary Method" section of the present specification.
  • a program product 900 for implementing the above method which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be in a terminal device, is illustrated in accordance with an embodiment of the present invention.
  • CD-ROM portable compact disk read only memory
  • the program product of the present invention is not limited thereto, and in the present document, the readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus or device.
  • the program product can employ any combination of one or more readable media.
  • the readable medium can be a readable signal medium or a readable storage medium.
  • the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., including conventional procedural Programming language—such as the "C" language or a similar programming language.
  • the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
  • the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Businesses are connected via the Internet.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本公开是关于一种消息处理方法及系统,属于信息处理技术领域,该消息处理方法包括:接收第一请求;其中,所述第一请求包括第一资源标识;判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。

Description

消息处理方法及系统、存储介质、电子设备
交叉引用
本申请要求于2017年12月08日提交的申请号为201711296312.1、发明名称为“消息处理方法及系统、存储介质、电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及信息处理技术领域,具体而言,涉及一种消息处理方法、消息处理系统、计算机可读存储介质以及电子设备。
背景技术
随着物联网技术的发展,越来越多的终端设备接入了网络并向服务器进行注册,服务器为终端创建相应的资源,资源不仅可以表示终端的状态,也可以表示终端的功能。
应用设备对终端的控制可以通过对终端对应资源进行操作来实现,常用的操作可以包括创建、更新、获取、删除和通知等等。
当海量终端接入网络并向服务器进行注册,需要提供一种高效的消息处理方法及系统,较少请求发送的数量,提升系统的效率。
发明内容
本公开的实施例涉及一种消息处理方法、消息处理系统、计算机可读存储介质以及电子设备。
根据本公开的一个方面,提供一种消息处理方法,包括:
接收第一请求;其中,所述第一请求包括第一资源标识;
判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;
在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
在本公开的一种示例性实施例中,在判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中之后,所述消息处理方法还包括:
在判断所述第一资源标识信息不存在于所述组资源中时,将所述第一请求发送至所述组资源中的所有组成员。
在本公开的一种示例性实施例中,在将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员之后,所述消息处理方法还包括:
接收所述其他组成员响应所述第一请求发送的响应消息,并将各所述响应消息汇聚后发送至所述第一资源标识对应的组成员。
在本公开的一种示例性实施例中,在将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员之后,所述消息处理方法还包括:
将所述组资源中的各所述第二资源标识信息存储至所述组资源中的组成员集中。
在本公开的一种示例性实施例中,在将所述第一请求发送至所述组资源中的所有组成员之后,所述消息处理方法还包括:
将所述第一资源标识信息添加至所述被请求资源集中。
在本公开的一种示例性实施例中,所述消息处理方法还包括:
接收包括第三资源标识的第二请求,并判断所述第三资源标识是否存在于所述已订阅资源列表中;
在判断所述第三资源标识存在于所述已订阅资源列表中时,将所述第二请求发送至除所述已订阅资源列表中各资源标识对应的组成员以外的其他组成员。
在本公开的一种示例性实施例中,所述第一请求包括创建请求、更新请求、删除请求、获取请求、订阅请求以及通知请求中的一种或多种。
根据本公开的一个方面,提供一种消息处理系统,包括:
请求接收模块,用于接收第一请求;其中,所述第一请求包括第一资源标识;
资源标识判断模块,用于判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;
请求发送模块,用于在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
根据本公开的一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的消息处理方法。
根据本公开的一个方面,提供一种电子设备,包括:
处理器;以及
存储器,用于存储所述处理器的可执行指令;
其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的消息处理方法。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施 例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示意性示出一种消息订阅的发送以及响应示意图。
图2示意性示出另一种消息订阅的发送以及响应示意图。
图3示意性示出另一种消息处理方法的流程图。
图4示意性示出一种组资源结构示例图。
图5示意性示出一种订阅资源创建请求的发送以及响应示意图。
图6示意性示出另一种消息处理方法示意图。
图7示意性示出一种消息处理系统的框图。
图8示意性示出一种用于实现上述消息处理方法的电子设备。
图9示意性示出一种用于实现上述消息处理方法的计算机可读存储介质。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
物联网系统是信息的产生方和信息的消费方之间的桥梁,其具体的通信过程可以包括:首先,产生方可以不断的将信息发送给物联网系统;其次,物联网系统可以对接收到的产生方产生的信息进行存储;最后,消费方可以不断从物联网系统获取信息进行消费。
进一步的,物联网系统包括两类实体:应用实体(AE,Application Entity)和通用服务实体(CSE,Common Service Entity);其中,一个实体可以向另外一个实体进行注册;例如,AE可以向CSE注册,CSE也可以向CSE注册,注册成功后在CSE上创建资源(AE或CSE)。AE可以通过CRUDN(创建、更新、获取、删除和通知) 等操作对CSE上的资源进行操作,如通过UPDATE操作请求更新AE资源下的容器内容。
系统中的所有实体(包括应用实体AE,通用服务实体CSE、数据等)都通过资源进行表示。资源可以唯一标识,包括属性和子资源,其中属性用来存储资源相关的信息,子资源是资源的下一级资源,资源包括指向子资源的索引。
物联网系统架构下,设备和平台相关的功能通过资源进行标识。其中,<AE>资源可以用来标识物理设备内的应用逻辑,<node>可以用来标识物理设备的相关信息,<container>可以用来充当容器并存放具体的内容信息,<group>资源可以将资源组合起来进行管理。
为了方便管理多个实体资源,通常采用组的方式进行管理,创建<group>资源指向多个实体资源。物联网系统包括多种针对组资源的操作方式,包括创建、获取、更新、删除、订阅等操作,以下以组资源的订阅为例,可以实现一次订阅多个组成员的效果。物联网系统包括的组订阅通知可以如下步骤:首先通过向组的子资源<fanOutPoint>发送订阅资源创建请求;其次,当CSE收到请求后,向组中的每个成员发送订阅资源创建请求,组内每个成员根据收到的订阅资源请求创建<subscription>资源,从而实现请求方订阅组中每个成员信息变化的目的。例如,AE1通过组订阅AE2..AEn的资源变化,当AE2..AEn的资源发生改变时,将会通知AE1。
本示例实施方式首先提供了一种消息处理方法。参考图3所示,该消息处理方法可以包括以下步骤:
步骤S310.接收第一请求;其中,所述第一请求包括第一资源标识。
步骤S320.判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中。
步骤S330.在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
上述消息处理方法中,一方面,通过在判断第一资源标识存在于组资源中时,将第一请求发送至其他组成员中,减少了组内成员发送订阅资源创建请求以及响应订阅资源创建请求的数量,提升了消息处理的效率;另一方面,由于减少了组内成员发送第一请求以及响应第一请求的数量,因此加快了第一请求的发送速度以及第一请求的响应速度,提高了系统的服务质量同时提升了用户体验。
下面,将对本示例实施方式中上述消息处理方法中的各步骤进行详细的解释以及说明。
在步骤S310中,接收第一请求;其中,所述第一请求包括第一资源标识。详细而言:
首先,对资源进行解释以及说明。在现有的物联网系统中,任何M2M设备、M2M网关或M2M业务平台以及注册在它们上面的应用,都可以被抽象为资源并且 具有唯一的资源标识,即URI(UniformResource Identifier),根据资源标识可以唯一定位资源。对被访问资源请求的操作包括获取Retrieve、创建Create、更新Update、删除Delete以及通知Notify等。需要说明的是,被访问资源所属的设备上可能同时存在多个资源,所述被访问资源所属的设备可以根据被访问资源的标识确定请求者资源希望访问的资源。
其次,基于上述资源对步骤S310进行解释以及说明。首先,可以接受任一组成员(也可以是其他成员,本示例对此不做特殊限制)发送的包括第一资源标识的第一请求;其中,组成员例如可以是<AE1>,也可以<AE2,AE3,……,AEn>中的任一个等等;本示例对此不做特殊限制;进一步的,上述第一请求例如可以包括获取Retrieve、创建Create、更新Update、删除Delete以及通知Notify等等。例如,可以是当任一成员(例如可以是AE1)想要创建组资源时,可以首先向CSE发送第一请求;然后,当CSE接收到该第一请求后,响应该第一请求并创建组资源。此处需要补充说明的是,也可以是AE2,AE3,……,AEn向CSE发送第一请求,本示例对此不做特殊限制。
在步骤S320中,判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中。详细而言:
当接收到上述第一请求后,可以判断该第一请求中包括的第一资源标识是否存在于组资源中;其中,组资源中可以包括多个第一资源标识以及与各第一资源标识一一对应的组成员。例如,组资源中可以包括的组成员可以为<AE1>,也可以<AE2,AE3,……,AEn>等等。
进一步的,参考图4所示,上述组资源中可以包括的参数可以包括:设备类别(memberType)、当前设备数量(currentNrOfMembers)、设备最大数量(MaxNrOfMembers)、设备身份标识(memberIDs)、组资源被订阅次数(currentNrOfSubscriptions)、有效开始时间(effectiveStartTime)、有效结束时间(effectiveEndTime)、扇出点(fanOutPoint)以及扇出其他设备点(fanOutOtherMembersPoint)等等。进一步的,上述创建组资源请求可以指向<CSEBase>/<group>/<fanOutOtherMembersPoint>。
进一步的,上述组资源还可以包括组成员集,组成员集中可以包括一个或多个所述第二资源标识,该组成员集可以是组成员列表;其中,判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中包括:判断所述第一资源标识是否存在于所述组成员集中。举例而言:
当接收到上述第一请求后,可以判断该第一请求中包括的第一资源标识是否存在于上述包括一个或多个第二资源标识的组成员集中。通过在组资源中配置组成员集,可以便于对第一资源标识的查询,提高了查询速度。
更进一步的,上述组资源还可以包括被请求资源集,所述被请求资源集包括一个 或多个所述第二资源标识;其中,判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中包括:判断所述第一资源标识是否存在于所述被请求资源集中。举例而言:
当接收到上述第一请求后,可以判断该第一请求中包括的第一资源标识是否存在于上述包括一个或多个第二资源标识的被请求资源集中。其中,该被请求资源集可以包括已创建资源列表、已更新资源列表、已删除资源列表,已获取资源列表、已订阅资源列表以及已通知资源列表中等等;进一步的,该被请求资源集可以为被请求资源列表。
在步骤S330中,在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。详细而言:
在判断上述第一资源标识存在于组资源中时,参考图5所示,可以将第一请求发送至上述组资源中除第一资源标识对应的组成员(例如可以是AE1)以外的其他组成员(例如可以是AE2,AE3,……,AEn)。通过使用该方法,大大的减少了订阅资源创建请求发送和响应的次数;例如,在现有技术中,总共需要发送和响应的次数为n2次;但是,采用本方案需要发送和响应的次数为(n-1) 2次;因此,可以减少2n次。此处需要进一步补充说明的是,当AE2,AE3,……,AEn需要订阅其他组成员的消息时,也可以通过上述相同的方式进行实现,本公开对此不再赘述。
进一步的,当将上述第一请求发送至组资源中除第一资源标识对应的组成员以外的其他组成员以后,还需要接收组成员的对该第一请求的反馈信息,具体的可以包括:接收所述其他组成员响应所述第一请求发送的响应消息,并将各所述响应消息汇聚后发送至所述第一资源标识对应的组成员。详细而言:
当其他组成员(例如可以是AE2,AE3,……,AEn)接收到上述第一请求后,响应该第一请求并将响应该第一请求的响应消息发送至CSE,当CSE接收到各响应消息后,将各响应消息进行汇聚后发送至AE1,以使AE1可以订阅AE2,AE3,……,AEn的各种消息(例如可以是创建、更新、获取、删除以及通知等等)。通过该方式,可以大大的减少AE1接收确认消息的数量,增加了AE1订阅其他组成员消息的速度。
进一步的,在判断第一资源标识不存在于组资源中时,该消息处理方法还可以包括:在判断所述第一资源标识信息不存在于所述组资源中时,将所述第一请求发送至所述组资源中的所有组成员。详细而言:
在判断第一资源标识信息不存在于组资源中时(有新成员加入到组资源中),将第一请求发送至组资源中的所有组成员。例如,在现有技术中,总共需要发送和响应的次数为(n+1) 2次;但是,采用本方案需要发送和响应的次数为n 2次;因此,可以减少2n+1次。由此可见,采用该方案,可以大大的减少发送和响应的次数,提升订阅的速度并减少系统的压力。
进一步的,为了使得CSE可以根据已订阅设备标识信息组判断各设备是否已经被订阅,该消息处理方法还可以包括:将所述组资源中的各所述第二资源标识信息存储至所述组资源中的组成员集中。详细而言:
当将第一请求发送至组资源中除第一资源标识对应的组成员以外的其他组成员后,可以将组资源中的各第二资源标识(例如可以是<AE1>,<AE2,AE3,……,AEn>存储至组成员集(subscribedMemberIDs)中。
更进一步的,为了使得新加入的组成员在下一次消息订阅时,可以直接订阅消息,该消息处理方法还包括:将所述第一资源标识信息添加至所述被请求资源集中。详细而言:
在判断上述第一资源标识新不存在于组资源中时,可以将该第一资源标识添加至被请求资源集(subscribedMemberIDs)中;其中,subscribedMemberIDs中的数据结构可以包括:AE1=AE2,AE3,……,AEn等等,也可以包括其他数据结构,本示例对此不做特殊限制。
为了可以进一步的减少第一请求的发送和响应的数量,当将资源标识添加至已订阅设备标识信息组中后,参考图6所示,该消息处理方法还可以包括步骤S610以及步骤S620。其中:
在步骤S610中,接收包括第三资源标识的第二请求,并判断所述第三资源标识是否存在于所述已订阅资源列表中。
在步骤S620中,在判断所述第三资源标识存在于所述已订阅资源列表中时,将所述第二请求发送至除所述已订阅设备标识信息组中各资源标识对应的组成员以外的其他组成员。
进一步的,对上述步骤S610以及步骤S620进行解释以及说明。接收包括第三资源标识的第二请求(例如可以是F发送的第二请求),然后判断F对应的第三资源标识是否存在于已订阅设备标识信息组(subscribedMemberIDs)中;并在判断F对应的第三资源标识存在于已订阅设备标识信息组(subscribedMemberIDs)中时,直接将该第二请求发送至除已订阅设备标识信息组(subscribedMemberIDs)中各资源标识对应的组成员以外的其他组成员。此处需要补充说明的是,上述第二请求例如也可以包括获取Retrieve、创建Create、更新Update、删除Delete以及通知Notify等等。
再进一步的,为了便于当接收到组成员发送的创建请求时,可以根据资源标识判断请求的合法性,提升整个系统的安全性,该消息处理方法还可以包括:接收各所述组成员发送的包括所述第二资源标识的注册请求,响应所述注册请求根据各所述第一资源标识对各所述组成员进行注册。详细而言:
当CSE接收到组成员AE1,AE2,AE3,……,AEn发送的包括第一资源标识的注册请求时,响应该注册请求根据各第一资源标识对各组成员进行注册;注册得到的 设备组可以包括<AE1>,<AE2,AE3,……,AEn>等等。
本公开还提供可一种消息处理系统。参考图7所示,该消息处理系统可以包括组资源创建模块710、第一资源标识判断模块720以及第一发送模块730。其中:
请求接收模块710可以用于接收第一请求;其中,所述第一请求包括第一资源标识。
资源标识判断模块720可以用于判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中。
请求发送模块730可以用于在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
上述消息处理中各模块的具体细节已经在对应的消息处理方法中进行了详细的描述,因此此处不再赘述
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。
在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。
所属技术领域的技术人员能够理解,本发明的各个方面可以实现为系统、方法或程序产品。因此,本发明的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
下面参照图8来描述根据本发明的这种实施方式的电子设备800。图8显示的电子设备800仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。
如图8所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830。
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元810执行,使得所述处理单元810执行本说明书上述“示例性方法”部分中描述的根据本发明各种示例性实施方式的步骤。例如,所述处理单元810可以执行如图1中所示的 步骤S110:接收第一请求;其中,所述第一请求包括第一资源标识;120:判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;步骤S130:在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)8201和/或高速缓存存储单元8202,还可以进一步包括只读存储单元(ROM)8203。
存储单元820还可以包括具有一组(至少一个)程序模块8205的程序/实用工具8204,这样的程序模块8205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线830可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备800也可以与一个或多个外部设备700(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备800交互的设备通信,和/或与使得该电子设备800能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口850进行。并且,电子设备800还可以通过网络适配器860与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器860通过总线830与电子设备800的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备800使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本发明的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中 描述的根据本发明各种示例性实施方式的步骤。
参考图9所示,描述了根据本发明的实施方式的用于实现上述方法的程序产品900,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本发明的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本发明操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。
此外,上述附图仅是根据本发明示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和 精神由权利要求指出。

Claims (13)

  1. 一种消息处理方法,包括:
    接收第一请求;其中,所述第一请求包括第一资源标识;
    判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;
    在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
  2. 根据权利要求1所述的消息处理方法,其中,在判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中之后,所述消息处理方法还包括:
    在判断所述第一资源标识信息不存在于所述组资源中时,将所述第一请求发送至所述组资源中的所有组成员。
  3. 根据权利要求1所述的消息处理方法,其中,所述组资源包括组成员集,所述组成员集包括一个或多个所述第二资源标识;
    其中,判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中包括:
    判断所述第一资源标识是否存在于所述组成员集中。
  4. 根据权利要求1所述的消息处理方法,其中,所述组资源包括被请求资源集,所述被请求资源集包括一个或多个所述第二资源标识;
    其中,判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中包括:
    判断所述第一资源标识是否存在于所述被请求资源集中。
  5. 根据权利要求4所述的消息处理方法,其中,所述被请求资源集包括已创建资源列表、已更新资源列表、已删除资源列表,已获取资源列表、已订阅资源列表以及已通知资源列表中的一种或多种。
  6. 根据权利要求3或5所述的消息处理方法,其中,在将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员之后,所述消息处理方法还包括:
    接收所述其他组成员响应所述第一请求发送的响应消息,并将各所述响应消息汇聚后发送至所述第一资源标识对应的组成员。
  7. 根据权利要求3所述的消息处理方法,其中,在将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员之后,所述消息处理方法还包括:
    将所述组资源中的各所述第二资源标识信息存储至所述组资源中的组成员集中。
  8. 根据权利要求4所述的消息处理方法,其中,在将所述第一请求发送至所述组资源 中的所有组成员之后,所述消息处理方法还包括:
    将所述第一资源标识信息添加至所述被请求资源集中。
  9. 根据权利要求5所述的消息处理方法,其中,所述消息处理方法还包括:
    接收包括第三资源标识的第二请求,并判断所述第三资源标识是否存在于所述已订阅资源列表中;
    在判断所述第三资源标识存在于所述已订阅资源列表中时,将所述第二请求发送至除所述已订阅资源列表中各资源标识对应的组成员以外的其他组成员。
  10. 根据权利要求1至9中任意一项所述的消息处理方法,其中,所述第一请求包括创建请求、更新请求、删除请求、获取请求、订阅请求以及通知请求中的一种或多种。
  11. 一种消息处理系统,包括:
    请求接收模块,用于接收第一请求;其中,所述第一请求包括第一资源标识;
    资源标识判断模块,用于判断所述第一资源标识是否存在于包括多个第二资源标识以及与各所述第二资源标识一一对应的组成员的组资源中;
    请求发送模块,用于在判断所述第一资源标识存在于所述组资源中时,将所述第一请求发送至所述组资源中除所述第一资源标识对应的组成员以外的其他组成员。
  12. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1-10任一项所述的消息处理方法。
  13. 一种电子设备,包括:
    处理器;以及
    存储器,用于存储所述处理器的可执行指令;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-10任一项所述的消息处理方法。
PCT/CN2018/119242 2017-12-08 2018-12-04 消息处理方法及系统、存储介质、电子设备 Ceased WO2019109923A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/769,683 US11237888B2 (en) 2017-12-08 2018-12-04 Message processing method and system, storage medium and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711296312.1A CN109905431B (zh) 2017-12-08 2017-12-08 消息处理方法及系统、存储介质、电子设备
CN201711296312.1 2017-12-08

Publications (1)

Publication Number Publication Date
WO2019109923A1 true WO2019109923A1 (zh) 2019-06-13

Family

ID=66750379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/119242 Ceased WO2019109923A1 (zh) 2017-12-08 2018-12-04 消息处理方法及系统、存储介质、电子设备

Country Status (3)

Country Link
US (1) US11237888B2 (zh)
CN (1) CN109905431B (zh)
WO (1) WO2019109923A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113994643A (zh) * 2019-11-25 2022-01-28 Oppo广东移动通信有限公司 集合资源成员更新的通知方法和装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113169965B (zh) * 2019-06-28 2023-06-13 Oppo广东移动通信有限公司 一种资源配置方法、设备及存储介质
CN113014618B (zh) * 2021-01-12 2022-04-29 腾讯科技(深圳)有限公司 消息处理方法、系统和电子设备
CN113364877B (zh) * 2021-06-11 2022-10-11 北京百度网讯科技有限公司 数据处理方法、装置、电子设备和介质
CN114979087B (zh) * 2022-06-27 2024-02-06 北京达佳互联信息技术有限公司 消息处理方法、装置、设备和存储介质
CN115098283B (zh) * 2022-07-31 2024-10-15 苏州浪潮智能科技有限公司 一种ipc消息处理方法、系统、存储介质及设备
CN116662016B (zh) * 2023-07-25 2023-10-20 太平金融科技服务(上海)有限公司 端口切换方法、装置、计算机设备、存储介质和程序产品

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200209A (zh) * 2012-01-06 2013-07-10 华为技术有限公司 成员资源的访问方法、群组服务器和成员设备
CN103297468A (zh) * 2012-02-29 2013-09-11 华为技术有限公司 针对群组资源的操作方法、群组服务器
WO2016074455A1 (zh) * 2014-11-14 2016-05-19 中兴通讯股份有限公司 组资源更新处理方法、装置、系统及cse
CN105635930A (zh) * 2014-10-31 2016-06-01 北京海尔广科数字技术有限公司 对组成员资源的删除操作的执行方法、装置及发起者装置
CN105634989A (zh) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 M2m群组及其通告资源创建和信息交互方法
CN106332177A (zh) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 一种实现成员资源处理的方法及装置

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110201365A1 (en) * 2010-02-15 2011-08-18 Telefonaktiebolaget L M Ericsson (Publ) M2m group based addressing using cell broadcast service
US8903930B2 (en) * 2010-04-07 2014-12-02 Lg Electronics Inc. Group-based M2M communication method
EP2662993A2 (en) * 2011-01-03 2013-11-13 LG Electronics Inc. Method for receiving multicast data in m2m device included in wireless communication system and m2m device therefor
EP2673965B1 (en) * 2011-02-11 2014-12-10 Interdigital Patent Holdings, Inc. Systems, methods and apparatus for managing machine-to-machine (m2m) entities
CN102130773B (zh) * 2011-02-25 2012-12-19 华为技术有限公司 群组通信的方法和用于群组通信的装置
CN102769892B (zh) * 2011-05-05 2017-05-31 北京三星通信技术研究有限公司 网络接入方法
CN102769867B (zh) * 2011-05-05 2017-08-11 北京三星通信技术研究有限公司 网络接入方法
WO2013066384A1 (en) * 2011-11-04 2013-05-10 Intel Corporation Techniques for traffic delivery to a group of devices
US9137281B2 (en) * 2012-06-22 2015-09-15 Guest Tek Interactive Entertainment Ltd. Dynamically enabling guest device supporting network-based media sharing protocol to share media content over local area computer network of lodging establishment with subset of in-room media devices connected thereto
US9230373B2 (en) * 2013-02-07 2016-01-05 Honeywell International Inc. System and method to aggregate control of multiple devices via multicast messages and automatic set up of connections
AU2014340742B2 (en) * 2013-11-01 2018-07-05 Samsung Electronics Co., Ltd. Apparatus and method for allocating resource and transmitting/receiving resource allocation information in communication system supporting device to device scheme
CN103888344B (zh) * 2014-03-20 2017-07-14 小米科技有限责任公司 群组创建方法、群组退出方法和装置
KR20170023178A (ko) * 2014-07-07 2017-03-02 콘비다 와이어리스, 엘엘씨 머신 타입 통신 그룹 기반 서비스를 위한 조정된 그룹화
CN105681210A (zh) * 2014-11-14 2016-06-15 中兴通讯股份有限公司 组资源更新处理方法、装置、系统及cse
US20160226865A1 (en) * 2015-01-29 2016-08-04 AirSig Technology Co. Ltd. Motion based authentication systems and methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200209A (zh) * 2012-01-06 2013-07-10 华为技术有限公司 成员资源的访问方法、群组服务器和成员设备
CN103297468A (zh) * 2012-02-29 2013-09-11 华为技术有限公司 针对群组资源的操作方法、群组服务器
CN105634989A (zh) * 2014-10-28 2016-06-01 中兴通讯股份有限公司 M2m群组及其通告资源创建和信息交互方法
CN105635930A (zh) * 2014-10-31 2016-06-01 北京海尔广科数字技术有限公司 对组成员资源的删除操作的执行方法、装置及发起者装置
WO2016074455A1 (zh) * 2014-11-14 2016-05-19 中兴通讯股份有限公司 组资源更新处理方法、装置、系统及cse
CN106332177A (zh) * 2015-06-30 2017-01-11 中兴通讯股份有限公司 一种实现成员资源处理的方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113994643A (zh) * 2019-11-25 2022-01-28 Oppo广东移动通信有限公司 集合资源成员更新的通知方法和装置
CN113994643B (zh) * 2019-11-25 2023-05-09 Oppo广东移动通信有限公司 集合资源成员更新的通知方法和装置

Also Published As

Publication number Publication date
CN109905431A (zh) 2019-06-18
US11237888B2 (en) 2022-02-01
US20200327001A1 (en) 2020-10-15
CN109905431B (zh) 2021-01-26

Similar Documents

Publication Publication Date Title
WO2019109923A1 (zh) 消息处理方法及系统、存储介质、电子设备
US10484190B2 (en) Managing channels in an open data ecosystem
CN105765944B (zh) 第三方批处理授权重复访问资源的请求的方法及系统
CN110830374B (zh) 一种基于sdk的灰度发布的方法和装置
KR102631288B1 (ko) 가입 서버, 가입 단말기, 정보 가입 방법, 및 시스템
CN112805981A (zh) 用于服务层的主题和数据的动态代理和管理的框架
CN113760638B (zh) 一种基于kubernetes集群的日志服务方法和装置
CN114817409B (zh) 一种标签生成方法、装置、设备及介质
CN110609755A (zh) 跨区块链节点的消息处理方法及装置、设备、介质
CN111062682B (zh) 一种工单处理方法和装置
JP6621075B2 (ja) リソース取得方法および装置
WO2018129956A1 (zh) 操作实例资源的方法和装置
WO2019109922A1 (zh) 资源处理方法及系统、存储介质、电子设备
CN114860721A (zh) 一种索引数据的构建方法和装置
CN109213815B (zh) 控制执行次数的方法、装置、服务器终端以及可读介质
WO2020220272A1 (zh) 更改资源状态的方法、系统、终端及存储介质
US10114864B1 (en) List element query support and processing
WO2024041081A9 (zh) 数据处理方法、装置、设备及可读存储介质
CN115269645A (zh) 信息查询方法、装置、电子设备和计算机可读介质
CN109558433B (zh) 一种请求访问hdfs的方法和装置
WO2017084584A1 (zh) 一种资源发现的方法及装置
CN116360710B (zh) 应用于服务器集群的数据存储方法、电子设备和可读介质
CN118819788B (zh) 集群调度方法、装置及设备
KR102874556B1 (ko) 대기표 관리 방법 및 시스템
US12210882B2 (en) System and method for managing management controller embedded devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18886458

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 30/09/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18886458

Country of ref document: EP

Kind code of ref document: A1