WO2016008102A1 - 对群组资源中成员资源的操作请求的处理方法及装置 - Google Patents

对群组资源中成员资源的操作请求的处理方法及装置 Download PDF

Info

Publication number
WO2016008102A1
WO2016008102A1 PCT/CN2014/082259 CN2014082259W WO2016008102A1 WO 2016008102 A1 WO2016008102 A1 WO 2016008102A1 CN 2014082259 W CN2014082259 W CN 2014082259W WO 2016008102 A1 WO2016008102 A1 WO 2016008102A1
Authority
WO
WIPO (PCT)
Prior art keywords
response
resource
response message
group
operation request
Prior art date
Application number
PCT/CN2014/082259
Other languages
English (en)
French (fr)
Inventor
高莹
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/082259 priority Critical patent/WO2016008102A1/zh
Publication of WO2016008102A1 publication Critical patent/WO2016008102A1/zh

Links

Classifications

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and apparatus for processing an operation request for a member resource in a group resource. Background technique
  • Machine communication is a kind of networked application and service based on machine intelligent interaction, by embedding wireless inside the machine. Or wired communication module and application logic module, realize data communication without manual intervention, to meet the information needs of users in monitoring, command scheduling, data collection and measurement.
  • M2M applications In today's M2M systems, the ability to communicate in groups is especially important.
  • M2M applications, M2M service platforms, M2M terminals, M2M gateways, and all applications and data objects running on M2M terminals and M2M gateways are regarded as a Representational State Transfer (RESTful).
  • RESTful Representational State Transfer
  • Resources The representation state transition resource is identified by a Universal Resource Identifier (URI).
  • URI Universal Resource Identifier
  • the group resource By constructing the above various resources as member resources of the group resource, the group resource can be used to group the plurality of member resources of the group resource.
  • Group operation The grouping operation includes distribution of operation requests, aggregation of responses returned by member devices, processing of notifications, and the like.
  • the group server is responsible for processing group-related messages, including distributing operation requests or notifications for member resources to member devices to which the group members belong, and responses returned by each member device.
  • the convergence of the responses returned by the group members in the prior art is determined by the group server itself, for example, after receiving the response returned by all the member devices, the aggregated response is sent to the user who created the group resource or the requesting member.
  • the device that performs the operation request by the resource or sends the response of the received member device to the user who created the group resource or requests the operation of the member resource when the group server needs to delete the response.
  • the device such that the device corresponding to the user who created the group resource or the device that requests the operation of the member resource waits for the response of the group server to send the aggregation for too long or may not return the response in time because some of the member devices are offline. I can't receive a response. That is to say, since the group server returns a response message to the terminal, it needs to wait for a long time or cannot return a response message, thereby failing to meet the user's needs.
  • the embodiment of the present invention provides a method and a device for processing a response returned by a member device, so that the group server can process the operation request of the member resource in the group resource more flexibly, and does not need to wait for a long time to return all the member devices to the terminal.
  • the response message of the returned response is a method and a device for processing a response returned by a member device, so that the group server can process the operation request of the member resource in the group resource more flexibly, and does not need to wait for a long time to return all the member devices to the terminal.
  • a first aspect of the embodiments of the present invention provides a method for processing an operation request for a member resource in a group resource, including:
  • the return parameter of the response message includes a response mode parameter, the response mode parameter is a batch return, and receiving the group resource
  • the first part of the member device returns the response to the operation request of the member resource
  • the returning parameter of the response message for determining the operation request of the member resource in the group resource is specifically:
  • Determining, according to the operation request of the member resource in the group resource, a return parameter of the response message; or, according to the group resource identified by the group identifier in the operation request of the member resource in the group resource The attribute determines the return parameter of the response message.
  • the method further includes: obtaining a response message sending time from the operation request of the member resource in the group resource; or, from the pair of group resources Obtaining a response message sending time in an attribute of the group resource identified by the group identifier in the operation request of the member resource; and determining to send the response message sending time;
  • a second aspect of the embodiments of the present invention provides a method for processing an operation request for a member resource in a group resource, including:
  • Determining a return parameter of the response message to the operation request of the member resource in the group resource where the return parameter of the response message includes a response mode parameter, the response mode parameter is one time returning; receiving the group resource a response of the member device to the operation request for the member resource returned by the member device;
  • the returning parameter of the response message further includes a maximum quantity parameter, and the number of responses returned by the first part of the member devices included in the second response message is less than or equal to a maximum
  • the quantity parameter indicates the quantity; or, the return parameter of the response message further includes a minimum quantity parameter, and the number of responses returned by the first part member device included in the second response message is greater than or equal to the quantity indicated by the minimum quantity parameter.
  • the method further includes: obtaining a response message sending time from the operation request of the member resource in the group resource; or, from the pair of member resources Obtaining a response message sending time in an attribute of the group resource identified by the group identifier in the operation request, and determining to send the response message sending time;
  • the sending the second response message to the terminal is specifically: when the response message sending time is reached, returning according to the response mode parameter, and sending the second response message to the terminal.
  • a third aspect of the embodiments of the present invention provides a method for processing an operation request for a member resource in a group resource, including:
  • the returning parameter of the response message further includes a response mode parameter, where the response mode parameter is specifically a return or a batch return; or, the return of the response message
  • the parameters further include a response mode parameter and a maximum number of parameters, the response mode parameter being specifically a one-time return or a batch return.
  • the method further includes: storing a response returned by the first partial member device at a location indicated by the address; receiving a second partial member of the group resource The response of the device to the operation request of the member resource returned;
  • the response returned by the second partial member device is stored at the location indicated by the address.
  • a fourth aspect of the embodiments of the present invention provides a method for processing an operation request for a member resource in a group resource, including:
  • Receiving, by the group server, the response message of the operation request for the member resource in the group resource, and the response message of the operation request of the member resource in the group resource includes an address for obtaining the remaining response;
  • the response message for the acquisition request includes a response that the group server stores at the address indication location.
  • the operation request for the member resource in the group resource includes a return parameter of the response message and/or a response message sending time, where the response
  • the return parameter of the message includes a response mode parameter, or the return parameter of the response message includes a response mode parameter, and a maximum number parameter and/or a minimum number parameter.
  • a fifth aspect of the embodiments of the present invention provides a group server, including:
  • a receiving module configured to receive an operation request for a member resource in the group resource sent by the terminal, and a sending module, configured to send an operation request for the member resource to the member device to which the member resource belongs;
  • a determining module configured to determine a return parameter of the response message of the operation request for the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, and the response mode parameter is a batch return;
  • the receiving module is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource;
  • the sending module is further configured to send, according to the response mode parameter, a first response message to the terminal, where the first response message includes at least one response in the response returned by the first partial member device. And the address used to get the remaining responses.
  • the determining parameter of the response message that is determined by the determining module to determine the operation request of the member resource in the group resource is specifically:
  • Determining, according to the operation request of the member resource in the group resource, a return parameter of the response message; or, according to the group resource identified by the group identifier in the operation request of the member resource in the group resource The attribute determines the return parameter of the response message.
  • the group server further includes an obtaining module, where the acquiring module is configured to send a response message from an operation request of the member resource in the group resource. And obtaining, by the acquiring module, a response message sending time from an attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource; and determining to reach the response Message sending time;
  • the determining module is further configured to determine that the response message is sent to the time of arrival;
  • the sending, by the sending module, the first response message to the terminal is specifically: when the determining module determines that the response message sending time is reached, sending the first response message to the terminal.
  • a sixth aspect of the embodiments of the present invention provides a group server, including:
  • a receiving module configured to receive an operation request for a member resource in the group resource sent by the terminal, and a sending module, configured to send an operation request for the member resource to the member device to which the member resource belongs;
  • a determining module configured to determine a return parameter of the response message to the operation request of the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, and the response mode parameter is one time return;
  • the receiving module is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource;
  • the sending module is further configured to send, according to the response mode parameter, a second response message to the terminal that sends the operation request for the member resource, where the second response message includes the response returned by the first partial member device. At least one response in .
  • the group server further includes an obtaining module, where the acquiring module is configured to send a response message from an operation request of the member resource in the group resource. And obtaining, by the acquiring module, a response message sending time from an attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource; and determining to reach the response Message sending time;
  • the determining module is further configured to determine that the response message is sent to the terminal.
  • the sending, by the sending module, the second response message to the terminal is: when the determining module determines that the response message is sent, The terminal sends the second response message.
  • a seventh aspect of the embodiments of the present invention provides a group server, including:
  • a receiving module configured to receive an operation request for a member resource in the group resource sent by the terminal, and a sending module, configured to send an operation request for the member resource to the member device to which the member resource belongs;
  • a determining module configured to determine a return parameter of the response message of the operation request for the member resource in the group resource, where the return parameter of the response message includes a minimum quantity parameter
  • the receiving module is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource;
  • the determining module is further configured to determine that the number of responses returned by the first partial member device is less than the number indicated by the minimum number of parameters;
  • the sending module is further configured to send, to the terminal, a third response message that does not include a response returned by the first partial member device, where the third response message includes an address for acquiring a remaining response.
  • the return parameter of the response message further includes a response mode parameter, where the response mode parameter is specifically a return or a batch return; or the return parameter of the response message further includes a response mode parameter and a maximum number of parameters, the response mode
  • the parameters are specifically one-time return or batch return;
  • the group server further includes a storage module
  • the storage module is configured to store a response returned by the first partial member device at a location indicated by the address;
  • the receiving module is further configured to receive a response of the operation request for the member resource returned by the second part member device of the group resource;
  • the determining module is further configured to: determine that the operation request corresponding to the response returned by the second partial member device has sent a third response message to the terminal;
  • the storage module is further configured to store the response returned by the second partial member device at a location indicated by the address.
  • An eighth aspect of the present invention provides a terminal, including:
  • a sending module configured to send an operation request for a member resource in the group resource to the group server
  • a receiving module configured to receive a response message of the operation request of the member resource in the group resource sent by the group server
  • the response message of the operation request of the member resource in the group resource includes an address for obtaining the remaining response
  • the sending module is further configured to send an acquisition request of the remaining response to the group server according to the address;
  • the receiving module is further configured to receive a response message sent by the group server for the acquisition request, where the response message for the acquisition request includes a response that the group server stores at the address indication location.
  • the group server can send the response returned by the member device received by the group server to the terminal in batch according to the response mode parameter, thereby preventing the group server from receiving all members. It takes a long wait time to return a response message to the terminal after the response returned by the device.
  • FIG. 1 is a flowchart of a method for an operation request for a member resource in a group resource according to an embodiment of the present invention
  • FIG. 1B is another schematic diagram of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention
  • 1C is another schematic diagram of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention
  • FIG. 2 is another flowchart of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention. Another flowchart of a method for requesting;
  • FIG. 5 is a flowchart of a method for processing a response message after a group server receives a request message for obtaining a residual response sent by a client according to the process corresponding to FIG. 4A and FIG. 4B according to the embodiment of the present invention
  • FIG. 6 is a flowchart of a method for a group server to send an operation request to a member device after receiving an operation request for a member resource in a group resource according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of processing performed by the group server in response to FIG. 6 in response to FIG. 6 according to an embodiment of the present invention
  • Figure 8 is a view corresponding to Figure 3, when the return parameter of the response message does not include the number of responses, the group service Flowchart of a method for requesting an operation of a member resource in a group resource;
  • FIG. 9 is a flowchart of a method for an operation request of a group server for a member resource in a group resource when a return parameter of a response message includes a maximum number and/or a minimum number, and a response mode parameter is provided according to an embodiment of the present invention
  • FIG. 10 is a schematic structural diagram of a group server according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a group server according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another group server according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a terminal according to another embodiment of the present invention. detailed description
  • Embodiments of the present invention provide a method and related apparatus for requesting operation of member resources in a group resource, so as to improve flexibility of processing the group server into resource operation requests.
  • FIG. 1 is a flowchart of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention, including the following steps:
  • the group server receives an operation request sent by the terminal for the member resources in the group resource.
  • the operation request for the member resource in the group resource includes the identifier of the group resource to which the member resource belongs. Further, the operation request for the member resource may further include a request identifier request ID of the operation request.
  • a return parameter of the response message to the operation request in the group resource where the return parameter of the response message includes a response mode parameter, and the response mode parameter is a batch return; specifically, the group server according to the slave
  • the operation request for the member resource in the group resource determines a return parameter of the response message; or an attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource Determining the return parameters of the response message.
  • the first response message is sent to the terminal according to the response mode parameter, and the first response message includes at least one response in the response returned by the first partial member device and used to obtain the remaining The address of the response.
  • the group server further obtains a response message sending time from the operation request of the member resource in the group resource; or, the group in the operation request from the member resource in the group resource And sending the response message sending time to the attribute of the identified group resource; and determining to send the response message to send the time; the sending the first response message to the terminal is specifically: when the response message sending time is reached, Sending the first response message to the terminal.
  • the group server stores the response returned by the first partial member device that is not sent to the terminal at the location indicated by the address.
  • the group server further receives a response of the operation request for the member resource returned by the second part member device of the group resource; determining that the first response message has been sent to the terminal; The response returned by the two-part member device is stored at the location indicated by the address.
  • the return parameter of the response message further includes a maximum number of parameters, and the number of responses returned by the first partial member device included in the first response message is less than or equal to the number indicated by the maximum number parameter; and Or the return parameter of the response message further includes a minimum number of parameters, and the number of responses returned by the first partial member device included in the first response message is greater than or equal to the number indicated by the minimum number parameter.
  • the group server further receives an acquisition request of the remaining response sent by the terminal, where the acquisition request includes the address carried in the first response message; and according to the address, is stored in the address indication A response to the location is sent to the terminal.
  • the sending the response stored in the address indication location to the terminal is specifically: sending a fourth response message to the terminal.
  • the fourth response message includes: a response that is stored in the quantity indicated by the maximum number of parameters for the address indication location, and includes the address; or
  • the terminal is specifically configured to: send a fifth response message to the terminal, where the fifth response message includes: all responses stored in the address indication location; or
  • the terminal is specifically configured to: send a fourth response message to the terminal, where the fourth response message includes: all responses stored in the location for the address indication, and the address; or
  • the device Determining that the number of stored responses is greater than the number indicated by the minimum number of parameters and determining that the response to the operation request for the member resource is all received; the sending a response stored at the address indicating location to the terminal Specifically, the device sends a fifth response message to the terminal, where the fifth response message includes: all responses stored in the address indication location; or
  • the sending the response stored at the address indicating location to the The terminal is specifically: sending a fourth response message to the terminal, where the fourth The response message includes all responses stored at the address indication location, and the address; or determining that the number of stored responses is less than the number indicated by the minimum number of parameters; the storing is at the address indicating location
  • the sending of the response to the terminal is specifically: sending a sixth response message to the terminal, where the sixth response message includes the address and a response that does not include storage.
  • the operation request for the member resource in the group resource includes an identifier of the group resource to which the member resource belongs and an extended sub-group parameter; the group server further performs:
  • the value of the extended sub-group parameter is true, and the response mode parameter is set to be returned in batch to be carried in an operation request for a member resource sent to the sub-group member; or the extended sub-group The value of the parameter is false.
  • the operation request for sending the member resource to the sub-group member carries a minimum number of parameters, and the minimum number of parameter values are all carried.
  • the group server further performs:
  • Determining that the response does not carry the address of the remaining response for acquiring the sub-group resource and includes a response returned by the member device to which the member resource of the sub-group resource belongs; or determining the response of the response resource
  • the address and the operation request map store
  • the group server may send the response returned by the member device received by the group server to the terminal in batch according to the response mode parameter, thereby preventing the group server from receiving all member devices to return. It takes a long wait time to return a response message to the terminal after the response, or the group server cannot return to the terminal for the member in the pair of group resources because some member devices are not online and cannot return a response to the group server.
  • FIG. 1B is a flowchart of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention, including the following steps: The operation request of the member resource in the group resource sent by the terminal is received. For the description of this step, refer to step 201. The implementation is not described in detail herein.
  • the return parameter of the response message further includes a maximum quantity parameter, and the number of responses returned by the first part member device included in the second response message is less than or equal to the quantity indicated by the maximum quantity parameter; or, the response message
  • the return parameter further includes a minimum number parameter, and the number of responses returned by the first partial member device included in the second response message is greater than or equal to the number indicated by the minimum number parameter.
  • the response message sending time is obtained from the operation request of the member resource in the group resource; or, the attribute of the group resource identified by the group identifier in the operation request of the member resource is obtained. Responding to the message sending time, and determining the time when the response message is sent;
  • the sending the second response message to the terminal is specifically: when the response message sending time is reached, returning according to the response mode parameter, and sending the second response message to the terminal.
  • the group server may send the response returned by the member device received by the group server to the terminal at a time according to the response mode parameter, thereby preventing the group server from receiving the response returned by all the member devices. It takes a long wait time to return a response message to the terminal, or the group server cannot be returned because some member devices are not online and cannot return a response to the group server. A question of returning a response message to the operation request for the member resource in the group resource to the terminal.
  • FIG. 1C is a flowchart of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention, including the following steps:
  • step 31 The operation request of the member resource in the group resource sent by the terminal is received.
  • step 201 The implementation is not detailed here.
  • step 203 For the description of this step, refer to step 203. This embodiment is not described in detail here.
  • the return parameter of the response message further includes a response mode parameter, where the response mode parameter is specifically one-time return or batch return; or the return parameter of the response message further includes a response mode parameter and a maximum quantity parameter, The response mode parameter is specifically a return or a batch return.
  • group server also performs:
  • the response returned by the second partial member device is stored at the location indicated by the address.
  • the return parameter of the response message includes or the minimum number of parameters, so that the number of responses returned by the group server in the member device carried in the response message is not less than the value indicated by the minimum number parameter, so that the group The response message returned by the server is a valid response message. If the response received by the group server is less than the number indicated by the minimum number parameter, the group server can only return to the terminal a third response message that does not carry the response returned by the member device that has been received when the response message is sent. Further, the group server further receives an acquisition request of the remaining response, the acquisition request of the remaining response includes the address, and sends a response stored in the address indication location to the terminal according to the address.
  • the group server further determines that the response mode parameter is one time return, and the number of the stored responses is greater than the quantity indicated by the minimum quantity parameter; and the response that is stored in the address indication location is sent to the
  • the terminal is specifically configured to: send a fifth response message to the terminal, where the fifth response message includes all responses stored in the address indication location.
  • the group server further determines that the response mode parameter is one time return, and the number of the stored responses is greater than the quantity indicated by the maximum quantity parameter; and the response that is stored in the address indication location is sent to the
  • the terminal is specifically configured to: send the fifth response message to the terminal, where the fifth response message includes a response of the quantity indicated by the maximum quantity parameter stored in the address indication location.
  • the group server further determines that the response mode parameter is a batch return, and the number of the stored responses is greater than the quantity indicated by the maximum quantity parameter; and the sending the response stored in the address indication location to the
  • the terminal is specifically configured to: send the fourth response message to the terminal, where the fourth response message includes a response that is stored in the quantity indicated by the maximum quantity parameter of the address, and the address.
  • FIG. 2 is another schematic diagram of a method for requesting operation of member resources in a group resource according to an embodiment of the present invention, including the following steps: 101. Send an operation request for a member resource in the group resource to the group server.
  • 102 Receive a response message that is sent by the group server to an operation request of a member resource in a group resource, where a response message of an operation request of a member resource in the group resource includes an address used to obtain a remaining response. ;
  • the operation request for the member resource in the group resource includes a return parameter of the response message and/or a response message sending time
  • the return parameter of the response message includes a response mode parameter, or a return of the response message.
  • the parameters include response mode parameters, and maximum number of parameters and/or minimum number of parameters.
  • the terminal may request the group server to obtain the remaining response message after the group server returns a response message to the operation request of the member resource in the group resource. Therefore, the terminal does not need to obtain the response returned by all the member devices from the group server at one time. This increases the flexibility of the terminal to obtain response based on actual needs.
  • the method flow chart of the method includes the following steps:
  • the group server determines a return parameter of the response message corresponding to the operation request of the member resource in the group resource.
  • the return parameter of the response message includes at least the response mode parameter.
  • the response mode parameter may be a batch return batch or a once return once. Where batch indicates that the group server can
  • the response received by the member device is sent to the terminal multiple times. For example, after the group service server sends a response message to the operation request to the terminal, the response message of the response request containing the response returned by the remaining member device may be sent to the terminal according to the request of the terminal. Once indicates that the group server only sends the response returned by the received member device to the terminal once. In the operation request of the source or in the attribute of the group resource.
  • the group server may determine, according to the operation request for the member resource in the group resource, a return parameter of the response message, or according to the group identifier in the operation request of the member resource in the group resource.
  • the attributes of the group resource determine the return parameters of the response message.
  • the group server when the group server performs step 308, it also needs to buffer the response returned by the received member device. Specifically, the group server may directly cache the response returned by the member device, or construct a response message of the operation request to be sent to the terminal, and carry the response returned by the member device in the response message of the operation request that needs to be sent to the terminal. Re-cache.
  • the embodiments of the present invention are not limited herein.
  • the return parameter of the response message may be included in the operation request of the member resource as an example.
  • step 304 determining whether the response message transmission time is reached, if step 310 is performed, otherwise step 305 is performed;
  • the return time may refer to a specific time, or a waiting time of the group server from receiving the operation request for the member resource to sending a response message to the terminal.
  • the response message sending time may be configured by the group server according to a certain local policy, or may be included in a return parameter of the response message. Therefore, before performing step 304, the group server also needs to be from the pair of groups. Obtaining a response message sending time in the operation request of the member resource in the source; or obtaining a response message sending time from the attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource .
  • the group server After the group server obtains the response cancellation time, it starts monitoring the sending time of the response message. For example, start a timer and other programs.
  • the embodiments of the present invention are not limited herein.
  • the group server receives a response to the operation request of the member resource returned by the member device (hereinafter referred to as: the received response, or the response);
  • the response to the operation request of the member resource may also carry the request identifier of the operation request, such as the Request ID.
  • the response returned by the member device received before the group server returns the response message to the operation request of the member resource in the group resource to the terminal is called the first part member.
  • the response returned by the member device after receiving the response message to the operation request of the member resource in the group resource to the terminal is referred to as the response returned by the member device of the second part.
  • step 306. Determine whether an operation request for the member resource in the group resource corresponding to the response exists. If the step 308 is performed, go to step 307.
  • the group server may determine, according to whether the operation request is connected in the HTTP protocol, whether there is an operation request for the member resource in the group resource, or if the group server uses the Coap protocol to communicate with each member device, the group The server may determine, according to the identifier token carried in the response, whether an operation request containing the same token exists, or if the operation request identifier included in the response identifies the Request ID, the group server may identify the request ID according to the operation request. Determine if there is an operation request indicated by the Request ID.
  • this step belongs to the prior art, and the embodiments of the present invention are not described in detail herein.
  • the group server may save the operation request as a resource in the group server, or may perform the operation.
  • the request is stored in a list of operation requests inside the group server.
  • the solution of the present invention does not limit how the group server stores the operation request of the member resources in the group resource.
  • the subsequent embodiment uses the group server to create a resource description.
  • the group server determines in step 306 that the response to the operation request of the member resource returned by the member device does not have a corresponding operation request for the member resource in the group resource (such as the member in the group resource)
  • the operation request of the resource may be deleted due to expiration or a response has been returned.
  • the group server ignores the received response message returned by the member device or deletes the received response, and ends the process.
  • the group server determines whether to send a response message to the terminal that sends the operation request for the member resource in the group resource, if the step 309 is performed, otherwise step 304 is performed;
  • the operation request of the member resource of the group resource may be used to set whether to return a parameter of the response message, and send the target to the terminal.
  • the modified parameter After the response message of the operation request, the modified parameter returns the parameter value of the response message to indicate that the response message has been returned, for example, or other value indicating that the response message has been returned.
  • the group server determines whether to return a response to the terminal that requests the operation of the member resource in the group resource according to the parameter of whether to return the response message set by the operation request of the member resource in the group resource. Message. 309. Store the received response.
  • the group server stores the received response to the operation request of the member resource and the operation request of the member resource in the group resource.
  • the group server may store the received response as a sub-resource for the operation request of the member resource in the group resource, or store the received response as a resource separately, but the received response.
  • the resource contains an operation request association relationship with the member resource in the group resource (for example, the same token as the operation request, or the request ID, or other content to indicate the association relationship between the response and the operation request), or the group server directly
  • the received response is stored and the stored address is associated with an operation request for a member resource in the group resource.
  • the mapping storage of the group server is not limited in this embodiment of the present invention.
  • the response mode parameter herein may further include a specific number of times when the response mode parameter is batch to indicate the number of times the requester expects to receive the largest response message, or Any other way to mark the number of times a response message is sent.
  • step 311. Determine whether the response is all received. If all are received, perform step 313, otherwise step 312 is performed.
  • the group server determines that the number of responses returned by the first part of the member devices that have been received is equal to the number of group members, indicating that the responses are all received, and performs step 313; or the group server determines that the first part of the members have been received.
  • the number of responses returned by the device is less than the number of group members, indicating that the responses are not all received, and step 312 is performed.
  • Send a first response message to the terminal where the first response message includes at least one response in the response returned by the first partial member device and an address (referred to as an address; for obtaining the remaining response).
  • the group server sends the received response and the address to the terminal.
  • the address of the terminal is an address that the group server stores the response in step 307.
  • the return first response message includes at least one of a response returned by the first partial member device and the address.
  • the optional first response message may also include an identification that the responses are not all received.
  • the group server may store the number of responses, response senders, and the like returned by the first part of the member devices that have been sent to the terminal, and delete the information that has been sent to the terminal. The response of the terminal. As an alternative, the group server may continue to cache responses returned by member devices that have been sent to the terminal until the response returned by all member devices is sent to the terminal.
  • the embodiment of the present invention is not limited to the processing of the response of the group server to the response that has been sent to the terminal.
  • the second response message includes all the responses in the response returned by the first partial member device.
  • the second response message may further include an identifier that all responses are received.
  • the group server may process the response returned by the member device according to the return parameter of the response message, such as returning the received response at a time, or returning the received response in batches, thereby increasing the group.
  • the server handles the flexibility of the response received.
  • the return parameter of the response message may further include a maximum number and/or a maximum d quantity parameter, and the method includes the following steps: Steps 401-402 are the same as steps 301-302, and embodiments of the present invention are not described in detail herein. 403.
  • the group server determines a return parameter of the response message.
  • the return parameter of the response message determined in step 403 may further include a maximum quantity parameter and/or a minimum quantity, in addition to the response mode parameter included in step 303. Parameters, etc.
  • the maximum number parameter indicates the number of responses returned by the member device that is included in the response message sent to the terminal.
  • the minimum number parameter indicates the number of responses returned by the member devices that are at least included in the response message sent to the terminal.
  • Step 404 determining whether the response message transmission time is reached, if step 412 is performed, otherwise step 405 is performed;
  • step 404 reference may be made to the description of step 304, and the embodiments of the present invention are not described in detail herein.
  • the steps 405-409 are the same as the steps 305-309, and the embodiments of the present invention are not described in detail herein.
  • step 410 determining whether the response parameter of the response message contains the maximum number of parameters, if it is to perform step 411, otherwise step 404;
  • Step 411 Determine whether the number of responses returned by the received member device reaches a maximum number. If yes, go to step 413. Otherwise, go to step 404.
  • Step 412 Determine whether the return parameter of the response message includes a minimum number of parameters. 418. Otherwise, step 413 is performed.
  • Step 413 Determine that the response mode parameter is On, perform step 416; or determine that the response mode parameter is Batch, and perform step 414. For details of this step, refer to step 310. The embodiments of the present invention are not described in detail herein.
  • Step 414 Determine whether the response is all received. If the receiving is completely performed, step 416 is performed, otherwise step 415 is performed.
  • step 311 For details of this step, refer to step 311. The embodiments of the present invention are not described in detail herein.
  • Steps 415-417 are the same as steps 312-314, and embodiments of the present invention are described in detail herein.
  • Step 418 Determine whether the received response reaches a minimum number. If step 413 is performed, otherwise step 419 is performed.
  • the group server determines whether the number of received responses is greater than or equal to the number indicated by the minimum number of parameters, and if step 413 is performed, otherwise step 419 is performed.
  • the address used to obtain the remaining response is an address that the group server stores the response in step 309 or 409.
  • the group server before performing step 419, the group server further stores the response returned by the received member device (here, the first part member device) to the location indicated by the address. Further, after performing step 419, the group server receives the response returned by the member device again, and after determining in steps 406 and 408, executing step 409, returning the received member device (here, the second part member device) returns. The response is stored to the location indicated by the address.
  • the maximum number parameter and the minimum quantity parameter are not necessarily included in the return parameter of the response message, and the return parameter of the response message may not include the maximum number of parameters, and may not include the minimum. Quantity parameter.
  • the group server may not perform steps 410 and 411, and after execution 408, directly execute 412 to determine whether a response message is sent. Time, then perform the follow-up process.
  • steps 410 and 411 and after execution 408, directly execute 412 to determine whether a response message is sent. Time, then perform the follow-up process.
  • the group server When the return parameter of the response message does not include the small maximum number of parameters, the group server directly performs step 413 after determining the time of arrival of the response message in step 404. Then follow up the process.
  • the embodiments of the present invention will not be described in detail herein.
  • the return parameter of the response message may not include the maximum number parameter or the minimum number parameter, and the group server may also adjust the process according to the parameters included in the return parameter of the response message. .
  • the embodiments of the present invention are not described in detail herein.
  • the return parameter of the response message further includes a maximum number of parameters and/or a minimum number of parameters, so that the group server may further determine to send the member device to the terminal in batch or at a time before sending the response message to the terminal.
  • the number of responses returned increases the flexibility of processing.
  • the maximum number of parameters can be set to 20.
  • the number of responses returned by the member server sent to the terminal by the group server should not be less than or equal to the maximum number of parameters.
  • the terminal must receive at least three member device responses to obtain an analysis of the execution of the operation request, thereby processing the response returned by the member device, for example, instructing the group server to return a response message, or indicating the group.
  • the group server sends the response returned by the member device in batches to the terminal through a response message.
  • the number of responses returned by the group server in the member device carried in the response message is not less than the value indicated by the minimum number parameter, so that the response message returned by the group server is a valid response message. If the response received by the group server is less than the quantity indicated by the minimum number parameter, when the response message is sent, the group server can only return to the terminal a third response message that does not carry the response returned by the member device that has been received. If the response message returns a parameter that contains the maximum number of parameters and also contains the minimum number of parameters, the response message returned by the group server to the terminal should contain a response that is greater than or equal to the minimum number of parameters. The number, as well as the number indicated by less than or equal to the maximum number of parameters. FIG.
  • Step 501 Receive an acquisition request (abbreviated as an acquisition request) of a remaining response sent by a terminal, where the acquisition request includes an address (referred to as an address) for acquiring a remaining response;
  • step 502. Determine, according to the address, whether there is a response that the member device that is not sent to the terminal has returned, if yes, go to step 504, otherwise go to step 503; where, determine whether there is a response that the member device that has not sent to the sending end has returned To determine if the address is stored with a response.
  • the response that the member device that is not sent to the sending end has returned in the embodiment of the present invention is simply referred to as a stored response.
  • the response message may not be returned to the terminal.
  • the group server obtains a response stored in the address according to the address, and obtains the response according to the address.
  • the response determines the operation request for the member resource in the group resource corresponding to the response. And determining, according to the operation request for the member resource in the group resource, a return parameter of the response message; or, according to the group identifier identified by the group identifier in the operation request of the member resource in the group resource.
  • the attribute of the resource determines the return parameter of the response message.
  • the group server stores the response returned by the member device
  • the group server also stores the address.
  • step 505 determining whether the response parameter of the response message contains the maximum number of parameters, if the step 506 is performed, otherwise step 507;
  • step 506. Determine whether the stored number of responses is greater than a value indicated by the maximum quantity parameter. If step 510 is performed, otherwise step 507 is performed.
  • step 507. Determine whether the return parameter of the response message includes a minimum number of parameters. If the step 508 is performed, otherwise step 510' is performed;
  • step 508 determining whether the stored response (that is, the response that the member device that has not been sent to the terminal has returned) reaches the value indicated by the minimum quantity parameter, if step 510' is performed, otherwise step 509 is performed;
  • step 510 Determine that the response mode parameter of the operation request corresponding to the response is Once, perform step 513′; or determine that the response mode parameter of the operation request corresponding to the response is Batch, and perform step 513.
  • step 510 determining that the response mode parameter is Once, performing step 512; or determining that the response mode parameter is Batch, performing step 511.
  • step 511 Determine whether the response is all received. If all are received, perform step 512, otherwise step 515 is performed.
  • step 311 For details of this step, refer to step 311. The embodiments of the present invention are not described in detail herein.
  • the number of the stored responses included in the fifth response message is equal to a maximum quantity parameter value indication The number of responses.
  • step 514 is the same as step 314, and the embodiment of the present invention is not described in detail herein.
  • the fourth response message includes a response that the number of the stored responses is equal to the maximum number of parameter value indications, and further includes the address in the fourth response message.
  • step 515 is the same as step 313, and the embodiment of the present invention is not described in detail herein.
  • the group server may process the received response concurrency according to the return parameter of the response message after receiving the response request sent by the terminal for the response of the aggregation that is not sent to the terminal in FIG. 4A and FIG. 4B.
  • the response mode is Batch
  • the group server sends the received response to the terminal in batches, and when the response mode is on, in the flow of FIG. 4A and FIG. 4B, when the response message is sent,
  • the group server has not received the response returned by the member device that reaches the minimum number of parameter values, and sends a third response message that does not include the response returned by the member device to the terminal, and may be requested by the terminal to the group server in a subsequent process. response.
  • FIG. 6 is a flowchart of a method for a group server to send an operation request to a member device after receiving an operation request for a member resource in a group resource according to an embodiment of the present disclosure, and the method includes the following steps:
  • step 301 is the same as step 301, and the embodiments of the present invention are not described in detail.
  • step 603 Determine, according to the identifier of the group resource, whether the group resource to which the member resource belongs includes a subgroup member. If the step 603 is performed, go to step 609.
  • the group server determines whether the group resource to which the member resource belongs includes the sub-group member belongs to the prior art, and the embodiment of the present invention is not described in detail herein.
  • the group server may determine whether the group resource includes the sub-group member according to the group member resource URI in the member attribute of the group resource, or determine the group according to whether the group resource setting includes the identifier of the sub-group member. Whether the resource contains subgroup members, etc.
  • step 603 is the same as step 303, and the examples of the present invention are not described in detail herein. 604. Determine whether the operation request for the member resource carries the extended sub-group expSubgrp parameter. If the step 605 is performed, or step 610 is performed.
  • step 605 determining that the extended subgroup expSubgrp parameter value is true, performing step 607; or determining that the expSubgrp parameter value is false, performing step 606;
  • the response returned by the member device that is the sub-group resource of the member resource may be returned to the group server that is sent to the receiving terminal for the operation request of the member resource in batches; when expSubgroup is false, A group server that indicates that a subgroup resource that is a member resource must receive a response from all member devices before returning a response message to the receiving terminal for an operation request for the member resource.
  • this step is an optional step because the extended subgroup expSubgrp parameter is false, so all member devices in the subgroup as a whole.
  • group resource group 1 contains member resources M1, M2, and group2, where group 2 is a subgroup of group 1, and group 2 contains member resources M3, M4, and M5. Only when group2 aggregates the responses of M3, M4, and M5 and returns to groupl, groupl receives a response from a member device (the device where group2 is located).
  • the group server where the group1 is located may also modify the response mode resMode parameter to on, and the minimum number minNum parameter to all, in the operation request for the member resource sent to the member device (that is, the device where the group 2 is located).
  • a response mode resMode parameter carried in an operation request for a member resource sent to the member of the subgroup to a quantity batch return.
  • the extended sub-group expSubgrp parameter is true, indicating that the sub-group, such as the member resources in group2, can be regarded as a group member of the independent group1, so the device where the sub-group g roup2 is located can be returned multiple times in batches.
  • the response returned by the member device of the subgroup to the group server until The group server where groupl is located receives a group response that satisfies the number of conditions.
  • the group server may send the device to all the sub-group resources.
  • the operation request for the member resource carries the return parameter of the same response message; as an optional manner, the group server may also send the member resource to different sub-group according to the policy of the group resource and according to the expSubgrp parameter.
  • the operation request carries the return parameters of different response messages, which are not limited herein.
  • the group server can set different expSubgrp parameters according to the category of the sub-group resources, for example: If the creator of the sub-group resource is a group server, the group server can set the exp Subgr parameter to true. , otherwise set to fal se. It is worth noting that the group server does not need to perform this step.
  • the operation request for the member resource sent to the member device may be an operation request that carries the minimum number of parameters in step 606.
  • the operation request of the response mode parameter may be carried in step 607, or the operation request of the return parameter of the response message carried in the operation request may be deleted in step 609, or the operation of the extended subgroup is configured in step 608.
  • the request may also be an operation request that carries the return parameter of the same response message in the operation request received in step 601.
  • the embodiment of the present invention is directed to a member resource that is sent to different member devices.
  • the content of the operation request specifically is not limited.
  • the group resource corresponding to the operation request includes the sub-group resource as the member resource, and is sent to different members according to different situations.
  • the operation request of the device is configured and modified, and then sent to the member device to adapt to the flexible processing of the operation request for different group resources.
  • FIG. 7 is a flowchart of processing, in combination with FIG. 6, the group server receives a response returned by a member set according to an embodiment of the present invention, and includes the following steps:
  • step 701. Determine whether the response message sending time is reached. If step 712 is performed, otherwise step 702 is performed. Because FIG. 7 is a processing flow of the response returned to the group member in combination with FIG. 6, the method is determined according to step 603.
  • the response message's return parameter is used to determine the response message transmission time. Specifically, after determining the sending time of the response response message, the monitoring time of the response message is started. For example, start a timer, etc. For the determination of whether or not the response message is sent, the present invention is not limited herein.
  • the group server receives a response to the operation request of the member resource returned by the member device.
  • step 703. Determine whether an operation request corresponding to the response exists. If the step 705 is performed, go to step 704. Specifically, the operation request corresponding to the response may be referred to the description of step 306, and the embodiments of the present invention are not described in detail herein.
  • step 705 Determine whether the response is a response returned by the device where the sub-group resource is located. If step 706 is performed, go to step 710. Specifically, the group server determines, according to the sending address of the response, whether the device is a sub-group. The response returned.
  • the group resource group 1 contains member resources M1, M2 and group2 as an example.
  • Group 2 is a subgroup of group 1, and subgroup 2 contains member resources M3, M4 and M5.
  • the group server where group1 is located receives the response returned by the device where group2 is located, it determines the response returned by the device where the subgroup is located, and the group server where groupl is located receives the response returned by M1 and M2, and is not a child. The response returned by the device where the group is located.
  • step 706 Determine whether the response carries the address resURI of the response of the member device used to obtain the sub-group resource. If step 707 is performed, step 708 is performed.
  • the group server stores the received address resURI of the response of the member device for acquiring the sub-group resource and the operation request map.
  • the group server may store the address resURI of the response of the member device for acquiring the sub-group resource as the sub-resource of the operation request, or the group server directly stores the received sub-group for acquiring The address resURI of the group remaining response and associates the stored address with the operation request;
  • the manner in which the group server obtains the response of the member device of the sub-group resource may include at least the following two types: the group server sends a request for obtaining the response of the member device of the sub-group resource to the member of the sub-group resource.
  • the response address resURI of the device the response of the address resURI of the response of the member device of the sub-group resource is obtained; the address resURI of the response of the member device of the sub-group resource is sent.
  • step 710 check whether the response includes a response returned by the member device to which the member resource of the sub-group resource belongs, if the step 710 is performed, otherwise step 709 is performed;
  • 709-715 is the same as steps 308-314, and the embodiments of the present invention are not described in detail herein. 716.
  • 716 is an optional optimization step. When 716 is not executed, the resource corresponding to the resURI and all associated information or resources are deleted by the server where the resource resides after the expiration time.
  • the other related information includes a stored list of subsequent response message addresses resURI.
  • the group server after receiving the response returned by the member device, the group server further determines whether the response is returned by the device where the subgroup of the group is located, and performs different processing according to different judgment results.
  • the group resource includes the sub-group resource as the group member of the group resource
  • the response returned by the device where the sub-group resource is located is processed according to the return parameter of the response message.
  • FIG. 8 is a flow chart corresponding to FIG. 3, a method for the group server to request an operation of a member resource in a group resource when the return parameter of the response message does not include the number of responses. Including the following steps:
  • the group server receives the operation request 1 for the member resource in the group resource sent by the terminal.
  • the operation request 1 for the member resource in the group resource includes the response mode parameter: once, indicating that the terminal only receives the group once.
  • the member server to which the group server belongs to the member resource of the group resource respectively 1-3 sends an operation request for the member resource.
  • the group server determines that the response mode parameter is on, and obtains a response message sending time, and starts monitoring the response message sending time. Specifically, the group server performs this step by referring to the descriptions of steps 304 and 310, which are not described in detail in the embodiments of the present invention.
  • the group server receives the response returned by the member device 1;
  • the group server may refer to step 306 to determine an operation request for the member resource in the group resource corresponding to the response (referred to as an operation request corresponding to the response). And referring to step 308, it is determined that the operation request corresponding to the response does not send a response message to the terminal, buffers the received response, and performs step 304 to determine that the response message transmission time has not been reached.
  • the group server receives the response returned by the member device 2;
  • the group server After receiving the response returned by the member device 2, the group server performs the same processing as the response returned by the member device 1 to step 304. When step 304 is performed, the group server determines that the response message has been sent.
  • the group server sends a second response message to the terminal, and deletes the stored operation request 1 and the received response from the member device 1 and the member device 2.
  • the group server sends a response message 2 (ie, a second response message) to the terminal according to the response mode parameter determined in step 803, and deletes the stored operation request 1.
  • the response message sent by the group server to the terminal 2 carries the response returned by the member device 1 and the member device 2.
  • the group server receives the response returned by the member device 3;
  • the group server ignores the response returned by the member device 3. Specifically, the group server determines, according to the description of step 306, that there is no operation request corresponding to the response, and performs step 808.
  • the group server receives the operation request 2 sent by the terminal to the member resources in the group resource;
  • the operation request 2 for the member resource includes the response mode parameter being: batch, indicating that the terminal can receive the group response message in multiple times.
  • step 810 refers to step 802, and will not be described in detail herein.
  • the group server determines that the response mode parameter is batch, and obtains a response message sending time.
  • the group server receives the response returned by the member device 1 and the member device 2.
  • the group server After receiving the response returned by the member device 2, the group server performs the same processing after the group server described in step 804 receives the response returned by the member device 1 to step 304. Upon performing step 304, the group server determines that the response message transmission time has been reached.
  • the first response message includes the received response (the response returned by the member device 1 and the member device 2) and the address of the remaining response (ie, the address of the response returned by the member device 3;), further, the first response message It may also carry an identifier that the response is not all received, indicating that the response to the operation request is not all sent to the terminal.
  • the group server when the group server arrives at the time when the response message is sent, it is determined whether the response is all received according to the number of responses received. That is, when the group server determines that the number of responses returned by the received member device is less than the number of member resources, it indicates whether all responses have been received. When the group server determines that the number of responses returned by the received member device is equal to the number of member resources, it indicates that the response is all received.
  • the group server may also record the response information returned by the member device sent to the terminal, such as the number of responses sent to the terminal. , the sender of the response (member device), etc. So that After receiving the response message returned by the other member devices, the group server further determines whether the response is all received according to the recorded information.
  • the group server receives the response returned by the member device 3;
  • the group server refers to the determination result of steps 306 and 308, and stores the response returned by the member device 3 in the location indicated by the address of the remaining response included in the first response message in step 814.
  • the response returned by the group server storage member device 3 is the same as that of step 309, and details are not described herein.
  • the group server receives an acquisition request of a remaining response sent by the terminal.
  • the acquisition request of the remaining response includes the address of the remaining response included in the first response message in step 814, that is, the address of the response returned by the member device 3 is stored in step 816.
  • the group server sends the response stored in the address to the second response message according to the address used to obtain the remaining response, and sends the message to the terminal. Further, the second response message may also carry an identifier that all responses are received.
  • the group server determines whether the response is all received based on the recorded information of the response sent to the terminal (e.g., the number or the sender of the response) and the response stored in the address of the remaining response. In this step, the group server determines that the responses are all received.
  • the return parameter of the response message is carried in the operation request 1 and the operation request 2 for the member resource, and the group server responds differently to the received member device according to different response mode parameters (once, batch).
  • the processing makes the aggregation method more flexible and more suitable for different needs of users.
  • FIG. 9 is a schematic diagram of a return message of a response message containing a maximum number and/or according to an embodiment of the present invention. The minimum number, and a flowchart of a method for the group server to request an operation of a member resource in a group resource when the response mode parameter is included. The method comprises the following steps:
  • the group server receives an operation request for the member resource in the group resource sent by the terminal.
  • the operation request for the member resource in the group resource includes the response mode parameter: batch, indicating that the terminal can obtain the member device in batches.
  • Each response message returned contains no more than 2 responses received.
  • the group server separately sends the operation request for the member resource to the member device 1-4 to which the member resource of the group resource belongs, wherein the member device 4 is not shown in the figure.
  • the group server further needs to determine a return parameter of the response message, and obtain a response message sending time, and start monitoring the response message sending time.
  • the return parameters of the response message include the response mode parameter: Batch, the maximum number of parameters (which is 2), and the minimum number of parameters (which is 2).
  • the response message is sent 5 minutes after the operation request for the member resource is sent to the member device.
  • the group server monitors the sending time of the response message, such as starting the set time, and does not receive the response returned by the member device when the response message is sent.
  • the group server receives the response returned by the member device 1;
  • the group server stores the received response.
  • step 306 determines that there is an operation request corresponding to the response. Then, in step 308, it is determined that the operation request corresponding to the response has returned a response message (i.e., the third response message sent to the terminal in step 904). Then, step 906 is performed, and the response returned by the member device 1 is stored according to the address of the remaining response included in the third response message.
  • the acquisition request of the remaining response includes an address included in the third response message in step 903 for acquiring the remaining response.
  • the group server sends a sixth response message to the terminal, where the sixth response message does not include the received response.
  • the group server refers to step 502, determines, according to the address used to obtain the remaining response, that a response is stored at the address, and obtains a return parameter of the corresponding response message by referring to step 504 and response. And referring to steps 505-506, it is determined that the number of stored responses is 1 less than the value indicated by the maximum number parameter. Then referring to steps 507 and 508, it is determined that the number of responses 1 does not reach the value 2 indicated by the minimum number of parameters. Then step 908 is performed.
  • the group server refers to the specific implementation process of steps 502-508, and the description of the corresponding embodiment of FIG. 5 is not described in detail herein.
  • the group server receives the response returned by the member device 2-4;
  • the group server stores the responses returned by the received member devices 2-4, respectively.
  • the group server determines, according to step 306, that there is an operation request corresponding to the response, and referring to step 308, determining the location
  • the operation request corresponding to the response has returned a response message, and then the response returned by the member device 2 is stored according to the address included in the third response message for acquiring the remaining response.
  • the group server stores a similar action before the response returned by member device 3 and member device 4. I will not go into details here.
  • the group server refers to step 502, determining, according to the address used to obtain the remaining response, a presence response, and referring to step 504, obtaining a return parameter and a response of the corresponding response message. Referring to steps 505-506, it is determined that the number of responses stored by the address is 3 greater than the value 2 indicated by the maximum number parameter. Then referring to steps 507 and 508, it is determined that the number of remaining responses 3 reaches the value 2 indicated by the minimum number of parameters. Then step 914 is performed.
  • the group server sends a fourth response message to the terminal.
  • the number of responses returned by the member devices carried in the fourth response message is less than or equal to the number indicated by the maximum number of parameters, that is, less than or equal to 2, because the response message return parameter includes the maximum number of parameters 2.
  • the number of responses returned by the member devices carried in the fourth response message is greater than or equal to the number indicated by the maximum number of parameters, that is, greater than or equal to two, because the response message returns a minimum number of parameters. Therefore, in this step, the fourth response message carries the response returned by the two member devices.
  • the group server can select the response returned by the member device in the order of receiving time. For example, the response returned by the member device 1 and the member device 2 is earlier than the response returned by the member device 3 and the member device 4. Therefore, the fourth response message includes the response returned by the member device 1 and the member device 2. Further, the fourth response message may further include an address for acquiring the remaining response and an identifier that all responses are received. In addition, when the group server performs this step, it may also record information (such as the number of responses sent by the member device 1 and the member device 2) sent to the terminal, such as the number, in response to the sender. In addition, the group server may further delete the responses returned by the aggregated member device 1 and the member device 2.
  • the group server may not delete the response that has been sent to the terminal, but record the sent identity for the response sent to the terminal.
  • the terminal may immediately perform step 915 according to the identifier, and send a request 3 for obtaining the remaining response to the group server.
  • the terminal may set a request for sending the remaining response to the group server after waiting for a period of time, so that the group server further receives the member device return. the response to.
  • the embodiment of the present invention does not limit the time for the terminal to send the acquisition request of the remaining response.
  • the group server refers to step 502, determining, according to the address used to obtain the remaining response, that there is a response stored in the address, and referring to step 504, obtaining a return parameter of the response message and the stored response.
  • steps 505-506 it is determined that the number of stored responses is 2 equal to the value indicated by the maximum number of parameters 2 (here, the group server deletes the response sent to the terminal as an example).
  • steps 507 and 508 it is determined that the number 2 of stored responses is equal to the value 2 indicated by the minimum number of parameters.
  • step 510' is performed to determine that the response mode parameter is Batch.
  • step 511 is executed to determine that the responses are all received.
  • step 917 is performed, corresponding to step 512.
  • Step 917 The group server sends a seventh response message to the terminal, where the seventh response message does not include the response returned by the member device 3 and the response returned by the member device 4. Further, after performing step 917, the group server deletes the response returned by the member device 3 and the member device 4 sent to the terminal. Then it is determined that there is no remaining response at the address, and it can be determined that the responses returned by the member devices have all been sent to the terminal. Therefore, the group server may perform step 514 to delete the stored operation request for the member resources in the group resource, and related information.
  • the related information may be: information of a response returned by the member device transmitted to the terminal, address information stored in association with the operation request, and the like.
  • the group server requests the operation time of the member resource in the group resource according to the set storage time. Delete stored operation requests and related information.
  • the return parameter of the response message is carried in the operation request for the member resource, and the group server returns the parameter according to different response messages, such as the response mode parameter is Batch, the maximum number parameter and the minimum quantity parameter,
  • the response returned by the received member device is sent to the terminal according to the maximum number parameter and the response mode parameter.
  • the number of times that the terminal returns at one time is in accordance with the requirements of the terminal, and does not exceed 2, thereby making the return mode more flexible and more satisfying the requirements of the terminal.
  • FIG. 10 is a schematic structural diagram of a group server according to an embodiment of the present invention.
  • the group server includes a receiving module 1001, a sending module 1002, a determining module 1003, an obtaining module 1004, and a storage module 1005.
  • the receiving module 1001 is configured to receive an operation request for the member resource in the group resource that is sent by the terminal, and the sending module 1002 is configured to send an operation request for the member resource to the member device to which the member resource belongs, and the determining module 1003 And a return parameter of the response message for determining the operation request of the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, and the response mode parameter is a batch return;
  • the receiving module 1001 is further configured to receive a response to the operation request of the member resource returned by the first part member device of the group resource, where the sending module 1002 is further configured to return, according to the response mode parameter, to the The terminal sends a first response message, where the first response message includes at least one response in the response
  • the determining module 1003 determines that the return parameter of the response message of the operation request for the member resource in the group resource is specifically: determining the response message according to the operation request for the member resource in the group resource. Returning parameters; or determining a return parameter of the response message according to the attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource.
  • the group server further includes an obtaining module 1004.
  • the obtaining module 1004 is configured to obtain a response message sending time from the operation request of the member resource in the group resource; or, the acquiring module Obtaining a response message sending time from an attribute of the group resource identified by the group identifier in the operation request of the member resource in the group resource; and determining to send the response message sending time; the determining module 1004 is further configured to determine that the response message is sent to the terminal.
  • the sending, by the sending module, the sending, by the sending module, the first response message to the terminal is: when the determining module determines that the response message is sent, to the The terminal sends the first response message.
  • the group server further includes a storage module 1005, where the storage module 1005 is configured to store a response returned by the first partial member device that is not sent to the terminal, where the address is indicated by the address. .
  • the receiving module 1001 is further configured to receive a response of the operation request for the member resource returned by the second part member device of the group resource; the determining module 1002 Further for determining that the first response message has been sent to the terminal; the storage module 1003 is further configured to store the response returned by the second partial member device in a location indicated by the address.
  • the return parameter of the response message further includes a maximum quantity parameter, and the number of responses returned by the first partial member device included in the first response message is less than or equal to that indicated by the maximum quantity parameter.
  • the number of the response parameters of the response message further includes a minimum number of parameters, and the number of responses returned by the first partial member device included in the first response message is greater than or equal to the number indicated by the minimum number of parameters .
  • the receiving module 1001 is further configured to: receive an acquisition request of the remaining response sent by the terminal, where the obtaining request includes the address carried in the first response message; 1002 is further configured to: send, according to the address, a response stored in the address indication location to the terminal.
  • the determining module 1003 is further configured to: determine that the number of the stored responses is greater than the quantity indicated by the maximum number of parameters; the sending module 1002 sends a response that is stored in the address indicating location to The terminal is specifically configured to: send a fourth response message to the terminal, where the fourth response message includes a response that is stored in the quantity indicated by the maximum quantity parameter for the address indication location, and includes the address .
  • the determining module 1003 is further configured to: determine that the number of the stored responses is less than the quantity indicated by the maximum number of parameters, and determine that the response to the operation request of the member resource is all received;
  • the sending module 1002 sends the response stored in the address indication location to the terminal, specifically: sending a fifth response message to the terminal, where the fifth response message includes: all the information stored in the address indication location response.
  • the determining module 1003 is further configured to: determine that the number of the stored responses is less than the quantity indicated by the maximum number of parameters, and determine that the response to the operation request for the member resource is not all received;
  • the sending module 1002 sends the response stored in the address indication location to the terminal, specifically: sending a fourth response message to the terminal, where the fourth response message is included in the location for the address indication All responses, as well as the address.
  • the determining module 1003 is further configured to determine that the number of the stored responses is greater than the quantity indicated by the minimum number of parameters and determine the operation request for the member resources.
  • the response is all received; the sending module 1002 sends the response stored in the address indication location to the terminal, specifically: sending a fifth response message to the terminal, where the fifth response message includes: The address indicates all responses to the location.
  • the determining module 1003 is further configured to determine that the number of the stored responses is greater than the quantity indicated by the minimum number of parameters, and determine that the response to the operation request for the member resource is not all received;
  • the sending module 1002 sends a response that is stored in the address indication location to the terminal, specifically: sending a fourth response message to the terminal, where the fourth response message includes all the information stored in the address indication location. Response, and the address.
  • the determining module 1003 is further configured to determine that the number of the stored responses is less than the quantity indicated by the minimum number of parameters; the sending module 1002 sends a response that is stored in the address indicating location to the The terminal is specifically: sending a sixth response message to the terminal, where the sixth response message includes the address and a response that does not include storage.
  • the operation request for the member resource in the group resource includes the identifier of the group resource to which the member resource belongs and the extended sub-group parameter; the determining module 1003 is further configured to: according to the group The identifier of the resource determines that the group resource includes a sub-group member; the sending module 1002 sends an operation request for the member resource to the member device to which the member resource belongs, where the determining module determines the extended sub-group When the value of the group parameter is true, the response mode parameter is set to be returned in batch to be carried in the operation request for the member resource sent to the member of the subgroup; or, when the determining module determines the extension When the value of the sub-group parameter is false, the operation request for sending the member resource to the sub-group member carries a minimum number of parameters, and the minimum number of parameter values are all carried.
  • the receiving module 1001 receives the response of the operation request for the member resource returned by the first part of the member device of the group resource,
  • the determining module is further configured to: determine, by the member device that returns the response to the operation request of the member resource, the device where the sub-group resource of the group resource is located;
  • the storage module 1005 is further configured to: when the determining module determines that the response carries the address of the remaining response for acquiring the sub-group resource, the address of the response for acquiring the sub-group resource and The operation requests a map store.
  • the group server may return the batch response according to the return parameter of the response message, and send the response returned by the member device received by the group server to the terminal in batches, thereby avoiding that the group server must receive all the responses. It takes a long wait time to return a response message to the terminal after the response returned by the member device, or the group server cannot return to the terminal for the pair group because some member devices are not online and cannot return a response to the group server.
  • the group server 10b includes a memory 1010b, a processor 1020b, and a transceiver 1030b.
  • Memory 1010b may include random access memory, flash memory, read only memory, programmable read only memory, nonvolatile memory or registers, and the like.
  • the processor 1020b may be a central processing unit (CPU)
  • Memory 1010b is for storing executable instructions.
  • the processor 1020b can execute executable instructions stored in the memory 1010b.
  • the transceiver 1030b is configured to receive an operation request for a member resource in the group resource sent by the terminal, and send an operation request for the member resource to the member device to which the member resource belongs.
  • the processor 1020b executes executable instructions stored in the memory 1010b, configured to: determine a return parameter of the response message of the operation request for the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, The response mode parameter is returned in batches.
  • the transceiver 1030b is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource, and send the packet to the terminal according to the response mode parameter a response message, the first response message includes at least one of a response returned by the first partial member device and an address for acquiring a remaining response.
  • the transceiver 1030b is configured to receive an operation request for a member resource in the group resource sent by the terminal, and send an operation request for the member resource to the member device to which the member resource belongs.
  • the processor 1020b executes executable instructions stored in the memory 1010b for: determining And a return parameter of the response message to the operation request of the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, and the response mode parameter is returned once.
  • 1030b is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource, and send the request to the terminal that sends the operation request for the member resource according to the response mode parameter. And a second response message, where the second response message includes at least one response in the response returned by the first partial member device.
  • the transceiver 1030b is configured to receive an operation request for a member resource in the group resource sent by the terminal, and send an operation request for the member resource to the member device to which the member resource belongs.
  • the processor 1020b executes executable instructions stored in the memory 1010b, configured to: determine a return parameter of the response message to the operation request of the member resource in the group resource, where the return parameter of the response message includes a minimum number of parameters, and Determining that the number of responses returned by the first partial member device is less than the number indicated by the minimum number of parameters.
  • the transceiver 1030b is further configured to: receive a response of the operation request for the member resource returned by the first part member device of the group resource, and send a response that is not included in the first part member device to the terminal And a third response message, where the third response message includes an address for acquiring a remaining response.
  • FIG. 10c is another schematic structural diagram of a group server according to an embodiment of the present invention.
  • the group server includes a receiving module 1001, a transmitting module 1002, a determining module 1003, and an obtaining module 1004.
  • the receiving module 1001 is configured to receive an operation request for a member resource in the group resource sent by the terminal.
  • the sending module 1002 is configured to send an operation request for the member resource to the member device to which the member resource belongs.
  • the determining module 1003 is configured to determine a return parameter of the response message of the operation request for the member resource in the group resource, where the return parameter of the response message includes a response mode parameter, and the response mode parameter is a return.
  • the receiving module 1001 is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource.
  • the sending module is further configured to send, according to the response mode parameter, a second response message to the terminal that sends the operation request for the member resource, where the second response message includes the response returned by the first partial member device. At least one response in .
  • the obtaining module 1004 is configured to obtain a response message sending time from an operation request of the member resource in the group resource; or, the acquiring module is configured to use the The response message is sent in the attribute of the group resource identified by the group identifier in the operation request of the member resource.
  • the determining module 1003 is further configured to determine that the response message is sent to the time.
  • the sending, by the sending module 1002, the second response message to the terminal is specifically: when the determining module determines that the response message is sent, the second response message is sent to the terminal.
  • the group server according to FIG. 10a includes a receiving module 1001, a sending module 1002, a determining module 1003, an obtaining module 1004, and a storage module 1005.
  • the receiving module 1001 is configured to receive an operation request for a member resource in the group resource sent by the terminal.
  • the sending module 1002 is configured to send an operation request for the member resource to the member device to which the member resource belongs.
  • the determining module 1003 is configured to determine a return parameter of the response message of the operation request for the member resource in the group resource, where the return parameter of the response message includes a minimum number of parameters.
  • the receiving module 1001 is further configured to receive a response of the operation request for the member resource returned by the first part member device of the group resource.
  • the determining module 1003 is further configured to determine that the number of responses returned by the first partial member device is less than the number indicated by the minimum number of parameters.
  • the sending module is further configured to send, to the terminal, a third response message that does not include a response returned by the first partial member device, where the third response message includes an address for acquiring a remaining response.
  • the return parameter of the response message further includes a response mode parameter, where the response mode parameter is specifically a return or a batch return; or the return parameter of the response message further includes a response mode parameter and a maximum number of parameters.
  • the response mode parameter is specifically a return or a batch return.
  • the storage module 1005 is configured to store a response returned by the first partial member device at a location indicated by the address.
  • the receiving module 1001 is further configured to receive a response of the operation request for the member resource returned by the second part of the member device of the group resource.
  • the determining module 1003 is further configured to determine that the operation request corresponding to the response returned by the second partial member device has sent a third response message to the terminal.
  • the storage module 1005 is further configured to store a response returned by the second partial member device at a location indicated by the address.
  • the determining module 1003 is further configured to determine that the response mode parameter is one time return, and the number of the stored responses is greater than the quantity indicated by the minimum quantity parameter; the sending module 1002 is to be stored at the address And sending, by the terminal, a response to the terminal, where the fifth response message is sent to the terminal, where the fifth response message includes all the information stored in the address indication location. Respond; or
  • the determining module 1003 is further configured to determine that the response mode parameter is one time return, and the number of the stored responses is greater than the quantity indicated by the maximum quantity parameter; the sending module 1002 is to be stored in the address indicating location Transmitting the response to the terminal is specifically: sending, to the terminal, the fifth response message, where the fifth response message includes a response indicating the quantity indicated by the maximum quantity parameter of the address indication location; or
  • the determining module 1003 is further configured to determine that the response mode parameter is a batch return, and the number of the stored responses is greater than the number indicated by the maximum number parameter; the sending module 1002 is to be stored in the address indicating location And sending, by the terminal, the fourth response message to the terminal, where the fourth response message includes a response that is stored in the quantity indicated by the maximum quantity parameter of the address, and Address.
  • the group servers 10a-10c may perform the processes of the methods performed by the group servers of Figures 1-9. Therefore, the specific operations and functions of the group servers 10a-10c will not be described herein.
  • FIG. 11 is a terminal, which includes a receiving module 1101 and a sending module 1102 according to an embodiment of the present invention.
  • the sending module 1102 is configured to send, to the group server, an operation request for a member resource in the group resource;
  • the receiving module 1101 is configured to receive, by the group server, the response message of the operation request for the member resource in the group resource, where the response message of the operation request of the member resource in the group resource includes The address of the remaining response;
  • the sending module 1102 is further configured to send an acquisition request of the remaining response to the group server according to the address;
  • the receiving module 1101 is further configured to receive a response message sent by the group server for the acquiring request, where the response message for the obtaining request includes a response that the group server stores at the address indication location .
  • FIG. 1 is a schematic structural diagram of a terminal according to another embodiment of the present invention.
  • the group server 1 lb includes a memory 1110b, a processor 1120b, and a transceiver 1130b.
  • the memory 1110b may include random access memory, flash memory, read only memory, programmable read only memory , non-volatile memory or registers, etc.
  • the processor 1120b may be a central processing unit (CPU)
  • the memory 1110b is for storing executable instructions.
  • the processor 1120b can execute executable instructions stored in the memory 1110b.
  • the transceiver 1130b is configured to send, by the sending module, an operation request for a member resource in the group resource to the group server, and receive a response message of the operation request of the member resource in the group resource sent by the group server. And an acquisition request of a remaining response of the operation request of the member resource in the group resource; and receiving a response message sent by the group server for the acquisition request, where the response message for the acquisition request includes
  • the group server stores a response at the address indication location.
  • the terminal of Figures 11a-llb can perform the process of the method performed by the terminal of Figures 1-9. Therefore, the specific operations and functions of the terminals in FIG. 11a-llb are not described herein again.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes at least one processing of an operation request for a member resource in a group resource described in the foregoing method embodiment. Part or all of the steps of the method.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes at least one method for processing an operation request for a member resource in a group resource described in the foregoing method embodiment. Part or all of the steps.
  • the disclosed apparatus may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the above modules is only a logical function division.
  • multiple modules or components may be combined or integrated. Go to another system, or some features can be ignored, Or not.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical or otherwise.
  • the modules described above as separate components may or may not be physically separate.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the above integrated modules if implemented in the form of software functional modules and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • the instructions include a plurality of instructions for causing a computer device (which may be a personal computer, server or network device, etc., and in particular a processor in a computer device) to perform all or part of the steps of the above-described methods of various embodiments of the present invention.
  • the foregoing storage medium may include: a USB flash drive, a removable hard disk, a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM), and the like. The medium of the code.

Landscapes

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

Abstract

一种对群组资源中成员资源的操作请求的方法和相关。其方法包括,接收终端发送的对群组资源中的成员资源的操作请求;向所述成员资源所属的成员设备发送对成员资源的操作请求;确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所述响应消息的返回参数包括响应模式参数,所述响应模式参数为分批返回;接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请求的响应;根据所述响应模式参数为分批返回,向所述终端发送第一响应消息,所述第一响应消息中包含所述第一部分成员设备返回的响应中的至少一条响应以及用于获取剩余响应的地址。通本发明实施例的方法,避免了群组服务器向终端返回响应消息需要较长的等待时间。

Description

对群组资源中成员资源的操作请求的处理方法及装置 技术领域
本发明涉及通信技术领域,具体一种对群组资源中成员资源的操作请求的 的处理方法和装置。 背景技术
随 着 通 信 技 术 的 发 展 , 机 器 通 信 ( Machine-to-Machine Communications,M2M )得到了广泛的应用,机器通信是一种以机器智能交互为 核心、 网络化的应用与服务,通过在机器内部嵌入无线或有线通信模块和应用 逻辑模块, 实现无需人工干预的数据通信, 以满足用户对监控、 指挥调度、 数 据釆集和测量等方面的信息化需求。
在现在的 M2M系统中, 群组通信的能力尤为重要。 现有技术中, M2M 应用 , M2M业务平台 , M2M终端 , M2M网关, 以及 M2M终端和 M2M网 关上运行的所有应用、 数据对象等均被看做一种表述性状态转移 ( Representational State Transfer, RESTful ) 资源。 该表述性状态转移资源由通 用资源标识符(Universal Resource Identifier, URI )标识,通过构建上述各种资 源作为群组资源的成员资源,能够通过群组资源对群组资源的多个成员资源进 行群组化操作。 所述群组化操作包括对操作请求的分发、成员设备返回的响应 的汇聚, 以及通知的处理等。
M2M系统中, 群组服务器负责处理和群组相关的消息, 包括向群组成员 所属的成员设备分发针对成员资源的操作请求或通知,并且各成员设备返回的 响应。然而,现有技术中对群组成员返回的响应的汇聚由群组服务器自行确定, 比如接收完所有的成员设备返回的响应后再将汇聚的响应发送给创建群组资 源的用户或请求对成员资源进行操作请求的设备,或在群组服务器需要删求操 作请时将接收到的成员设备返回的响应后再将汇聚的响应发送给创建群组资 源的用户或请求对成员资源进行操作请求的设备,从而使得创建群组资源的用 户对应的设备或或对成员资源进行操作请求的设备等待接收群组服务器发送 汇聚的响应的时间过长或有可能因为部分成员设备不在线没有及时返回响应 时接收不了响应。也就是说由于群组服务器向终端返回响应消息需要等待较长 的时间或不能返回响应消息, 从而不能满足用户需求。 发明内容
本发明实施例提供对成员设备返回的响应的处理方法和装置,使得群组服 务器对群组资源中成员资源的操作请求的处理更为灵活,无需等待较长时间再 向终端返回包含所有成员设备返回的响应的响应消息。
本发明实施例第一方面提供了一种对群组资源中成员资源的操作请求的 处理方法, 包括:
接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括响应模式参数, 所述响应模式参数为分批返回; 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
根据所述响应模式参数为分批返回, 向所述终端发送第一响应消息, 所述 第一响应消息中包含所述第一部分成员设备返回的响应中的至少一条响应以 及用于获取剩余响应的地址。
结合第一方面,在第一种可能的实现方式中, 所述确定所述对群组资源中 的成员资源的操作请求的响应消息的返回参数具体为:
根据所述对群组资源中的成员资源的操作请求确定所述响应消息的返回 参数;或, 根据所述对群组资源中的成员资源的操作请求中的群组标识所标识 的群组资源的属性确定所述响应消息的返回参数。
结合第一方面, 在第二种可能的实现方式中, 该方法进一步包括: 从所述对群组资源中的成员资源的操作请求中获取响应消息发送时间;或 , 从所述对群组资源中的成员资源的操作请求中的群组标识所标识的群组资源 的属性中获取响应消息发送时间; 以及确定到达所述响应消息发送时间;
所述向所述终端发送第一响应消息具体为:当到达所述响应消息发送时间 时, 向所述终端发送所述第一响应消息。 本发明实施例第二方面提供了一种对群组资源中成员资源的操作请求的 处理方法, 包括:
接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括响应模式参数, 所述响应模式参数为一次返回; 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
根据所述响应模式参数为一次返回,向发送对成员资源的操作请求的终端 发送第二响应消息,所述第二响应消息中包含所述第一部分成员设备返回的响 应中的至少一条响应。
结合第二方面,在第一种可能的实现方式中, 所述响应消息的返回参数进 一步包括最大数量参数,所述第二响应消息中包含的第一部分成员设备返回的 响应的数量小于或等于最大数量参数指示的数量;或, 所述响应消息的返回参 数进一步包括最小数量参数,所述第二响应消息中包含的第一部分成员设备返 回的响应的数量大于或等于最小数量参数指示的数量。
结合第二方面, 在第二种可能的实现方式中, 该方法进一步包括: 从所述对群组资源中的成员资源的操作请求中获取响应消息发送时间;或 , 从所述对成员资源的操作请求中的群组标识所标识的群组资源的属性中获取 响应消息发送时间, 并确定到达所述响应消息发送时间;
所述向所述终端发送第二响应消息具体为:当到达所述响应消息发送时间 时, 根据所述响应模式参数为一次返回, 向所述终端发送所述第二响应消息。
本发明实施例第三方面提供了一种对群组资源中成员资源的操作请求的 处理方法, 包括:
接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括最小数量参数; 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
确定所述第一部分成员设备返回的响应的数量小于所述最小数量参数指 示的数量;
向所述终端发送不包含所述第一部分成员设备返回的响应的第三响应消 息, 所述第三响应消息中包括用于获取剩余响应的地址。
结合第三方面,在第一种可能的实现方式中, 所述响应消息的返回参数进 一步包括响应模式参数, 所述响应模式参数具体为一次返回或分批返回;或, 所述响应消息的返回参数进一步包括响应模式参数和最大数量参数,所述响应 模式参数具体为一次返回或分批返回。
结合第三方面, 在第二种可能的实现方式中, 该方法进一步包括: 将所述第一部分成员设备返回的响应存储在所述地址指示的位置; 接收所述群组资源的第二部分成员设备返回的所述对成员资源的操作请 求的响应;
确定所述第二部分成员设备返回的响应所对应的操作请求已向所述终端 发送过第三响应消息;
将所述第二部分成员设备返回的响应存储在所述地址指示的位置。
本发明实施例第四方面提供了一种对群组资源中成员资源的操作请求的 处理方法, 包括:
向群组服务器发送对群组资源中成员资源的操作请求;
接收所述群组服务器发送的所述对群组资源中的成员资源的操作请求的 响应消息,所述群组资源中的成员资源的操作请求的响应消息包含用于获取剩 余响应的地址;
根据所述地址向所述群组服务器发送剩余响应的获取请求;
接收所述群组服务器发送的针对所述获取请求的响应消息,所述针对所述 获取请求的响应消息包含所述群组服务器存储在所述地址指示位置的响应。
结合第四方面,在第一种可能的实现方式中, 所述对群组资源中的成员资 源的操作请求中包括响应消息的返回参数和 /或响应消息发送时间, 所述响应 消息的返回参数包括响应模式参数,或所述响应消息的返回参数包括响应模式 参数, 和最大数量参数和 /或最小数量参数。
本发明实施例第五方面提供了一种群组服务器, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述响应模式参数 为分批返回;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应;
所述发送模块进一步用于根据所述响应模式参数为分批返回,向所述终端 发送第一响应消息,所述第一响应消息中包含所述第一部分成员设备返回的响 应中的至少一条响应以及用于获取剩余响应的地址。
结合第五方面, 在第一种可能的实现方式中,
所述确定模块确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数具体为:
根据所述对群组资源中的成员资源的操作请求确定所述响应消息的返回 参数;或, 根据所述对群组资源中的成员资源的操作请求中的群组标识所标识 的群组资源的属性确定所述响应消息的返回参数。
结合第五方面,在第二种可能的实现方式中, 所述群组服务器进一步包括 获取模块,所述获取模块用于从所述对群组资源中的成员资源的操作请求中获 取响应消息发送时间;或, 所述获取模块用于从所述对群组资源中的成员资源 的操作请求中的群组标识所标识的群组资源的属性中获取响应消息发送时间; 以及确定到达所述响应消息发送时间;
所述确定模块进一步用于确定到达所述所述响应消息发送时间;
所述发送模块向所述终端发送第一响应消息具体为: 当所述确定模块确定 到达所述响应消息发送时间时, 向所述终端发送所述第一响应消息。 本发明实施例第六方面提供了一种群组服务器, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述响应模式参数 为一次返回;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应;
所述发送模块进一步用于根据所述响应模式参数为一次返回,向发送对成 员资源的操作请求的终端发送第二响应消息,所述第二响应消息中包含所述第 一部分成员设备返回的响应中的至少一条响应。
结合第六方面,在第一种可能的实现方式中, 所述群组服务器还包括获取 模块,所述获取模块用于从所述对群组资源中的成员资源的操作请求中获取响 应消息发送时间;或, 所述获取模块用于从所述对群组资源中的成员资源的操 作请求中的群组标识所标识的群组资源的属性中获取响应消息发送时间; 以 及确定到达所述响应消息发送时间;
所述确定模块进一步用于确定到达所述所述响应消息发送时间; 所述发送模块向所述终端发送第二响应消息具体为: 当所述确定模块确定 到达所述响应消息发送时间时, 向所述终端发送所述第二响应消息。
本发明实施例第七方面提供了一种群组服务器, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括最小数量参数;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应; 所述确定模块进一步用于确定所述第一部分成员设备返回的响应的数量 小于所述最小数量参数指示的数量;
所述发送模块进一步用于向所述终端发送不包含所述第一部分成员设备 返回的响应的第三响应消息,所述第三响应消息中包括用于获取剩余响应的地 址。
结合第七方面, 在第一种可能的实现方式中,
所述响应消息的返回参数进一步包括响应模式参数, 所述响应模式参数 具体为一次返回或分批返回;或,所述响应消息的返回参数进一步包括响应模式 参数和最大数量参数, 所述响应模式参数具体为一次返回或分批返回;
所述群组服务器进一步包括存储模块;
所述存储模块用于将所述第一部分成员设备返回的响应存储在所述地址 指示的位置;
所述接收模块进一步用于接收所述群组资源的第二部分成员设备返回的 所述对成员资源的操作请求的响应;
所述确定模块进一步用于确定所述第二部分成员设备返回的响应所对应 的操作请求已向所述终端发送过第三响应消息;
所述存储模块进一步用于将所述第二部分成员设备返回的响应存储在所 述地址指示的位置。
本发明第八方面提供了一种终端, 包括:
发送模块, 用于向群组服务器发送对群组资源中成员资源的操作请求; 接收模块,用于接收所述群组服务器发送的所述对群组资源中的成员资源 的操作请求的响应消息,所述群组资源中的成员资源的操作请求的响应消息包 含用于获取剩余响应的地址;
所述发送模块进一步用于根据所述地址向所述群组服务器发送剩余响应 的获取请求;
所述接收模块进一步用于接收所述群组服务器发送的针对所述获取请求 的响应消息,所述针对所述获取请求的响应消息包含所述群组服务器存储在所 述地址指示位置的响应。 可以看出, 本发明实施例的方案中群组服务器可以根据响应模式参数, 分 批向终端发送群组服务器接收到的成员设备返回的响应,从而避免了群组服务 器一定要收到所有的成员设备返回的响应后才向终端返回响应消息需要较长 的等待时间。 附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述所需要 使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一 些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还 可以根据这些附图获得其他的附图。
图 1A为本发明实施例提供的对群组资源中成员资源的操作请求的方法的 流程图;
图 1B为本发明实施例提供的对群组资源中成员资源的操作请求的方法的 另一程图;
图 1C为本发明实施例提供的对群组资源中成员资源的操作请求的方法的 另一程图;
图 2为本发明实施例提供的对群组资源中成员资源的操作请求的方法的另 一程图; 的方法的另一流程图; 作请求的方法的另一流程图;
图 5为本发实施例提供的针对图 4A和图 4B对应的流程中,群组服务器收到 客户端发来的获取剩余响应的请求消息后处理响应的方法流程图;
图 6为本发明实施例提供的群组服务器收到针对群组资源中的成员资源的 操作请求后, 并把所述操作请求发送给成员设备的方法流程图;
图 7为本发明实施例提供的与图 6结合的,群组服务器收到成员设返回的响 应的处理流程图;
图 8为与图 3对应的, 当响应消息的返回参数不包含响应数量时,群组服务 器对群组资源中成员资源的操作请求的方法的流程图;
图 9为本发明实施例提供的当响应消息的返回参数包含最大数量和 /或最 小数量, 以及包括响应模式参数时,群组服务器对群组资源中成员资源的操作 请求的方法的流程图;
图 10a为本发明实施例提供的一种群组服务器的结构示意图;
图 1 Ob是根据本发明另一实施例的群组服务器的结构示意图;
图 10c为本发明实施例提供的一种群组服务器的另一结构示意图; 图 11a为本发明实施例提供的一种终端的结构示意图;
图 1 lb是根据本发明另一实施例提供的终端的结构示意图。 具体实施方式
本发明实施例提供一种群组资源中成员资源的操作请求的方法及相关装 置, 以提高群组服务器处理成资源操作请求的灵活性。
下面通过具体实施例, 分别进行详细的说明。
为使得本发明的发明目的、 特征、 优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 下面所描述的实施例仅仅是本发明一部分实施例, 而非全部的实施 例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前提 下所获得的所有其它实施例, 都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语 "第一"、 "第二"、 "第 三" "第四" 等是用于区别不同的对象, 而不是用于描述特定顺序。 此外, 术 语 "包括" 和 "具有" 以及它们任何变形, 意图在于覆盖不排他的包含。 例如 包含了一系列步骤或模块的过程、 方法、 系统、 产品或设备没有限定于已列出 的步骤或模块, 而是可选地还包括没有列出的步骤或模块, 或可选地还包括对 于这些过程、 方法、 产品或设备固有的其它步骤或模块。
图 1A为本发明实施例提供的对群组资源中成员资源的操作请求的方法流 程图, 包括如下步骤:
101、 接收终端发送的对群组资源中的成员资源的操作请求; 具体的,群组服务器接收终端发送的针对群组资源中的成员资源的操作请 求。其中, 所述对群组资源中的成员资源的操作请求中包含成员资源所属群组 资源的标识。进一步的, 所述对成员资源的操作请求还可以包含操作请求的请 求标识 request ID.
102、 向所述成员资源所属的成员设备发送对成员资源的操作请求;
103、 确定所述对群组资源中的操作请求的响应消息的返回参数, 所述响 应消息的返回参数包括响应模式参数, 所述响应模式参数为分批返回; 具体的,群组服务器根据从所述对群组资源中的成员资源的操作请求确定 所述响应消息的返回参数;或根据所述对群组资源中的成员资源的操作请求中 的群组标识所标识的群组资源的属性确定所述响应消息的返回参数。
104、 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操 作请求的响应;
105、根据所述响应模式参数为分批返回,向所述终端发送第一响应消息, 所述第一响应消息中包含所述第一部分成员设备返回的响应中的至少一条响 应以及用于获取剩余响应的地址。 进一步的,所述群组服务器进一步从所述对群组资源中的成员资源的操作 请求中获取响应消息发送时间;或, 从所述对群组资源中的成员资源的操作请 求中的群组标识所标识的群组资源的属性中获取响应消息发送时间; 以及确 定到达所述响应消息发送时间; 所述向所述终端发送第一响应消息具体为: 当 到达所述响应消息发送时间时, 向所述终端发送所述第一响应消息。
进一步的,群组服务器还将没有发送给所述终端的所述第一部分成员设备 返回的响应存储在所述地址指示的位置。
进一步的 ,群组服务器还接收所述群组资源的第二部分成员设备返回的所 述对成员资源的操作请求的响应; 确定已向所述终端发送过第一响应消息;以 及将所述第二部分成员设备返回的响应存储在所述地址指示的位置。 进一步的, 所述响应消息的返回参数进一步包括最大数量参数, 所述第一 响应消息中包含的所述第一部分成员设备返回的响应的数量小于或等于所述 最大数量参数指示的数量; 和 /或,所述响应消息的返回参数进一步包括最小数 量参数,所述第一响应消息中包含的所述第一部分成员设备返回的响应的数量 大于或等于所述最小数量参数指示的数量。
进一步的,群组服务器还接收所述终端发送的剩余响应的获取请求, 所述 获取请求包含所述第一响应消息中携带的所述地址;以及根据所述地址, 将存 储在所述地址指示位置的响应发送给所述终端。
进一步的,确定所述存储的响应的数量大于所述最大数量参数指示的数量, 所述将存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发 送第四响应消息, 所述第四响应消息中包括: 存储在所述用于地址指示位置的 所述最大数量参数指示的数量的响应, 以及包括所述地址;或
确定所述存储的响应的数量小于所述最大数量参数指示的数量,以及确定 所述对成员资源的操作请求的响应全部被接收;所述将存储在所述地址指示位 置的响应发送给所述终端具体为: 向所述终端发送第五响应消息, 所述第五响 应消息中包括: 存储在所述地址指示位置的所有响应;或
确定所述存储的响应的数量小于所述最大数量参数指示的数量,以及确定 所述对成员资源的操作请求的响应没有全部被接收;所述将存储在所述地址指 示位置的响应发送给所述终端具体为: 向所述终端发送第四响应消息, 所述第 四响应消息中包括:存储在所述用于地址指示位置的所有响应,以及所述地址; 或
确定所述存储的响应的数量大于所述最小数量参数指示的数量且确定所 述对成员资源的操作请求的响应全部被接收;所述将存储在所述地址指示位置 的响应发送给所述终端具体为: 向所述终端发送第五响应消息, 所述第五响应 消息中包括: 存储在所述地址指示位置的所有响应;或
确定所述存储的响应的数量大于所述最小数量参数指示的数量,且确定所 述对成员资源的操作请求的响应没有全部被接收;所述将存储在所述地址指示 位置的响应发送给所述终端具体为: 向所述终端发送第四响应消息, 所述第四 响应消息中包括存储在所述地址指示位置的所有响应, 以及所述地址;或 确定所述存储的响应的数量小于所述最小数量参数指示的数量;所述将存 储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送第六响 应消息, 所述第六响应消息中包括所述地址以及不包括存储的响应。
进一步的,所述对群组资源中的成员资源的操作请求包含成员资源所属群 组资源的标识和扩展子群组参数;所述群组服务器进一步执行:
根据所述群组资源的标识确定所述群组资源包含子群组成员;
所述扩展子群组参数的取值为真,将所述响应模式参数设置为分批返回携 带在发给所述子群组成员的对成员资源的操作请求中;或所述扩展子群组参数 的取值为假,在发送在发给所述子群组成员的对成员资源的操作请求中携带最 小数量参数, 所述最小数量参数值为全部携带。
进一步的,所述接收所述群组资源的第一部分成员设备返回的所述对成员 资源的操作请求的响应之后, 所述群组服务器还执行:
确定返回所述对成员资源的操作请求的响应的成员设备为所述群组资源 的子群组资源所在的设备;
确定所述响应没有携带所述用于获取子群组资源的剩余响应的地址,并包 含所述子群组资源的成员资源所属的成员设备返回的响应;或, 确定所述响应 资源的响应的地址和所述操作请求映射存储。
在本发明的实施例中,群组服务器可以根据响应模式参数, 分批向终端发 送群组服务器接收到的成员设备返回的响应,从而避免了群组服务器一定要收 到所有的成员设备返回的响应后才向终端返回响应消息需要较长的等待时间, 或由于某些成员设备不在线,而不能向群组服务器返回响应时群组服务器无法 向终端返回对于所述对群组资源中的成员资源的操作请求的响应消息的问题。 图 1B为本发明实施例提供的对群组资源中成员资源的操作请求的方法流 程图, 包括如下步骤: 21、 接收终端发送的对群组资源中的成员资源的操作请求; 本步骤的描述参见步骤 201 , 本实施在此不再详述。
22、 向所述成员资源所属的成员设备发送对成员资源的操作请求;
23、确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述响应模式参数为一次返回; 本步骤的描述参见步骤 203 , 本实施在此不再详述。
24、接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作 请求的响应;
25、根据所述响应模式参数为一次返回, 向发送对成员资源的操作请求的 终端发送第二响应消息 ,所述第二响应消息中包含所述第一部分成员设备返回 的响应中的至少一条响应。 进一步的, 所述响应消息的返回参数进一步包括最大数量参数, 所述第二 响应消息中包含的第一部分成员设备返回的响应的数量小于或等于最大数量 参数指示的数量;或, 所述响应消息的返回参数进一步包括最小数量参数, 所 述第二响应消息中包含的第一部分成员设备返回的响应的数量大于或等于最 小数量参数指示的数量。
进一步的,从所述对群组资源中的成员资源的操作请求中获取响应消息发 送时间;或, 从所述对成员资源的操作请求中的群组标识所标识的群组资源的 属性中获取响应消息发送时间, 并确定到达所述响应消息发送时间;
所述向所述终端发送第二响应消息具体为:当到达所述响应消息发送时间 时, 根据所述响应模式参数为一次返回, 向所述终端发送所述第二响应消息。
在本发明的实施例中,群组服务器可以根据响应模式参数, 一次向终端发 送群组服务器接收到的成员设备返回的响应,从而避免了群组服务器一定要收 到所有的成员设备返回的响应后才向终端返回响应消息需要较长的等待时间, 或由于某些成员设备不在线,而不能向群组服务器返回响应时群组服务器无法 向终端返回对于所述对群组资源中的成员资源的操作请求的响应消息的问题。 图 1C为本发明实施例提供的对群组资源中成员资源的操作请求的方法流 程图, 包括如下步骤:
31、 接收终端发送的对群组资源中的成员资源的操作请求; 本步骤的描述参见步骤 201 , 本实施在此不再详述。
32、 向所述成员资源所属的成员设备发送对成员资源的操作请求;
33、确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数, 所述响应消息的返回参数包括最小数量参数;;
本步骤的描述参见步骤 203 , 本实施在此不再详述。
34、接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作 请求的响应;
35、确定所述第一部分成员设备返回的响应的数量小于所述最小数量参数 指示的数量;
36、向所述终端发送不包含所述第一部分成员设备返回的响应的第三响应 消息, 所述第三响应消息中包括用于获取剩余响应的地址。 进一步的, 所述响应消息的返回参数进一步包括响应模式参数, 所述响 应模式参数具体为一次返回或分批返回;或, 所述响应消息的返回参数进一步 包括响应模式参数和最大数量参数,所述响应模式参数具体为一次返回或分批 返回。
进一步的, 群组服务器还执行:
将所述第一部分成员设备返回的响应存储在所述地址指示的位置; 接收所述群组资源的第二部分成员设备返回的所述对成员资源的操作请 求的响应;
确定所述第二部分成员设备返回的响应所对应的操作请求已向所述终端 发送过第三响应消息; 将所述第二部分成员设备返回的响应存储在所述地址指示的位置。
在本发明的实施例中, 响应消息的返回参数包含或最小数量参数,使得群 组服务器在携带于响应消息中的成员设备返回的响应的数量不会小于最小数 量参数指示的值,使得群组服务器返回的响应消息为有效的响应消息。如果群 组服务器接收到的响应小于最小数量参数指示的数量,在到达响应消息发送时 间时 ,群组服务器只能向终端返回不携带已收到的成员设备返回的响应的第三 响应消息。 进一步的,群组服务器还接收剩余响应的获取请求, 所述剩余响应的获取 请求包含所述地址;以及根据所述地址, 将存储在所述地址指示位置的响应发 送给所述终端。
进一步的,群组服务器还确定所述响应模式参数为一次返回,且所述存储 的响应的数量大于所述最小数量参数指示的数量;所述将存储在所述地址指示 位置的响应发送给所述终端具体为: 向所述终端发送第五响应消息, 所述第五 响应消息中包括存储在所述地址指示位置的所有响应。
进一步的,群组服务器还确定所述响应模式参数为一次返回,且所述存储 的响应的数量大于所述最大数量参数指示的数量; 所述将存储在所述地址指 示位置的响应发送给所述终端具体为: 向所述终端发送所述第五响应消息, 所 述第五响应消息中包括存储在所述地址指示位置的所述最大数量参数指示的 数量的响应。
进一步的,群组服务器还确定所述响应模式参数为分批返回,且所述存储 的响应的数量大于所述最大数量参数指示的数量; 所述将存储在所述地址指 示位置的响应发送给所述终端具体为: 向所述终端发送所述第四响应消息, 所 述第四响应消息中包括存储在所述地址的所述最大数量参数指示的数量的的 响应, 以及所述地址。
图 2 为本发明实施例提供的对群组资源中成员资源的操作请求的方法的 另一程图, 包括如下步骤: 101、 向群组服务器发送对群组资源中成员资源的操作请求;
102、 接收所述群组服务器发送的所述对群组资源中的成员资源的操作请 求的响应消息,所述群组资源中的成员资源的操作请求的响应消息包含用于获 取剩余响应的地址;
103、 根据所述地址向所述群组服务器发送剩余响应的获取请求;
104、接收所述群组服务器发送的针对所述获取请求的响应消息,所述针对 所述获取请求的响应消息包含所述群组服务器存储在所述地址指示位置的响 应。
进一步的,所述对群组资源中的成员资源的操作请求中包括响应消息的返 回参数和 /或响应消息发送时间, 所述响应消息的返回参数包括响应模式参数, 或所述响应消息的返回参数包括响应模式参数, 和最大数量参数和 /或最小数 量参数。 在本发明的实施例中,终端可以在群组服务器返回述对群组资源中的成员 资源的操作请求的响应消息后, 再次向群组服务器请求获取剩余的响应消息。 从而使得终端不用一次从群组服务器处获取所有的成员设备返回的响应。从而 增加了终端根据实际需求获取响应的灵活性。
求的方法流程图, 包括如下步骤:
301-302与步骤 201-202描述相同, 本发明实施例在些不再详述。
303、 群组服务器确定对群组资源中的成员资源的操作请求对应的响应消 息的返回参数; 具体的, 响应消息的返回参数至少包括响应模式参数。 所述这响应模式参 数可以为分批返回 batch或一次返回 once。 其中 batch指示群组服务器可以将 接收到成员设备返回的响应分为多次发送给终端。比如群组服服务器在向终端 发送过针对操作请求的响应消息后,还可以根据终端的请求将包含剩余成员设 备返回的响应的对获取请求的响应消息发送给终端。 once指示群组服务器仅 向终端发送一次接收到的成员设备返回的响应。 源的操作请求中或群组资源的属性中。群组服务器可以根据所述对群组资源中 的成员资源的操作请求确定所述响应消息的返回参数,或根据所述对群组资源 中的成员资源的操作请求中的群组标识所标识的群组资源的属性确定所述响 应消息的返回参数。
此外, 值得说明的说, 群组服务器在执行步骤 308之时, 还需要緩存接收 的成员设备返回的响应。具体的,群组服务器可以直接緩存成员设备返回的响 应,也可以先构造将要发送给终端的操作请求的响应消息, 并将成员设备返回 的响应携带在需要发送给终端的操作请求的响应消息中再緩存。本发明实施例 在此不做限定。
本发明实施例以所述响应消息的返回参数可以包含在所述对成员资源的 操作请求为例进行说明。
304、 确定是否到达响应消息发送时间, 若是执行步骤 310 , 否则执行步 骤 305 ;
所述返回时间可以是指某个具体的时间 ,或群组服务器从收到所述对成员 资源的操作请求到向终端发送响应消息的等待时间。所述响应消息发送时间可 以为是群组服务器根据一定的本地策略来配置的,也可能是包含在响应消息的 返回参数中。 因此, 在执行步骤 304之前, 群组服务器还需要从所述对群组资 源中的成员资源的操作请求中获取响应消息发送时间;或, 从所述对群组资源 中的成员资源的操作请求中的群组标识所标识的群组资源的属性中获取响应 消息发送时间。
群组服务器在获取到响应消发送时间后,就开始监控响应消息的发送时间。 比如, 启动定时器等方案。 本发明实施例在此不做限定。
305、 群组服务器接收成员设备返回的对成员资源的操作请求的响应 (后 续简称: 接收到的响应, 或响应);
进一步的, 当所述对成员资源的操作请求包含操作请求的请求标识, 所述 对成员资源的操作请求的响应中也可以携带操作请求的请求标识, 如 Request ID。
值得说明的是, 本发明实施例为了描述上的方便,将群组服务器向终端返 回对群组资源中的成员资源的操作请求的响应消息之前接收到的成员设备返 回的响应称为第一部分成员设备返回的响应。而将群组服务器向终端返回对群 组资源中的成员资源的操作请求的响应消息之后接收到的成员设备返回的响 应称为第二部分成员设备返回的响应。
306、 确定是否存在该响应对应的对群组资源中的成员资源的操作请求, 若是执行步骤 308, 否则执行步骤 307。
具体的,群组服务器可以根据 HTTP协议中是否存在操作请求的连接确 定是否存在对群组资源中的成员资源的操作请求, 或如果群组服务器釆用 Coap协议与各成员设备进行通信, 群组服务器可以根据所述响应中携带的标 识 token确定是否存在包含同一 token的操作请求, 或如果所述响应中携带的 操作请求标识 Request ID,群组服务器可以根据所述操作请求的标识 request ID 确定是否存在该 Request ID指示的操作请求。
具体的, 此步骤属于现有技术, 本发明实施例在此不做详述。
作为一种可选方式,群组服务器在步骤 301中接收到所述对群组资源中的 成员资源的操作请求后, 可以将该操作请求作为资源保存在群组服务器中,也 可以将该操作请求存储在群组服务器内部的操作请求列表中。本发明方案对于 群组服务器如何存储所述对群组资源中的成员资源的操作请求不作限定,后续 实施例以群组服务器创建资源方式说明。
307、 忽略接收到的响应;
当群组服务器在步骤 306 中确定所述成员设备返回的对成员资源的操作 请求的响应不存在对应的对群组资源中的成员资源的操作请求时(如所述对群 组资源中的成员资源的操作请求可能因为过期或已返回过响应被删除 ), 群组 服务器忽略收到的所述成员设备返回的响应消息或删除接收到的响应,并结束 流程。
308、 群组服务器确定是否向发送所述对群组资源中的成员资源的操作请 求的终端发送过响应消息, 若是执行步骤 309, 否则执行步骤 304;
具体的,群组服务器在保存接收到的对群组资源的成员资源的操作请求时, 可对所述群组资源的成员资源的操作请求设置是否返回响应消息的参数,并在 向终端发送针对该操作请求的响应消息后,修改设置的是否返回响应消息的参 数值以指示已返回过响应消息, 比如是, 或其它表示已返回过响应消息的值。
因此, 本步骤中, 群组服务器根据对群组资源中的成员资源的操作请求 设置的是否返回响应消息的参数确定是否向发送所述群组资源中的成员资源 的操作请求的终端返回过响应消息。 309、 存储所述接收到的响应;
具体的,群组服务器将所述接收到的对成员资源的操作请求的响应和所 述对群组资源中的成员资源的操作请求映射存储。作为一种可选方式,群组服 务器可以将接收到的响应作为对群组资源中的成员资源的操作请求的子资源 存储, 或将接收到的响应单独作为一个资源存储,但接收到的响应的资源中包 含对群组资源中的成员资源的操作请求关联关系 (比如, 与操作请求相同的 token,或 request ID,或其它内容以表示响应与操作请求的关联关系), 或群组服 务器直接存储接收到的响应并将存储的地址和对群组资源中的成员资源的操 作请求关联。 具体的, 群组服务器釆用何种方式的映射存储, 本发明实施例在 此不做限定。
310、 确定所述响应模式参数为 Once, 执行步骤 313;或确定所述响应模式 参数为 Batch, 执行步骤 311。
需要说明的是, 这里的响应模式参数除了可以用 once或 batch来标记外, 还可以在响应模式参数为 batch时进一步包括具体的次数来表示请求者期望接 收到的最大的响应消息的次数,或者其他任何可以标记响应消息发送的次数的 方式。
311、 确定响应是否全部被接收, 若全部被接收执行步骤 313 , 否则执行 步骤 312。
具体的,群组服务器确定已收到的第一部分成员设备返回的响应的数量等 于群组成员的数量,表示响应全部被接收, 并执行步骤 313;或群组服务器确定 已收到的第一部分成员设备返回的响应的数量小于群组成员的数量,表示响应 没有全部被接收, 并执行步骤 312。 312、 发送第一响应消息给终端, 所述第一响应消息中包括第一部分成员 设备返回的响应中的至少一条响应以及用于获取剩余响应的地址(简称地址;)。
具体的, 群组服务器将已接收的响应以及所述地址发送给终端。 具体的, 终端所述地址为群组服务器在步骤 307中存储响应的地址。所述返第一响应消 息中包含第一部分成员设备返回的响应中的至少一条响应以及所述地址。可选 的所述第一响应消息还可以包含响应没有全部被接收的标识。
此外, 当包含成员设备返回的响应的第一响应消息发送给终端后,群组服 务器可以存储已发送给终端的第一部分成员设备返回的响应的数量、响应发送 者等信息, 并删除已发送给终端的响应。 作为一种可选方式, 群组服务器还可 以继续緩存已发送给终端的成员设备返回的响应直到所有成员设备返回的响 应发送给终端为止。群组服务器对于已发送给终端的响应的处理, 本发明实施 例在此不做限定。
313、 返回第二响应消息。 此步骤中, 所述第二响应消息中包含所述第一 部分成员设备返回的响应中的所有响应。
进一步的, 所述第二响应消息还可以包含响应全部被接收的标识。
314、 删除存储的操作请求及响应, 结束本流程。
在本发明的实施例中,群组服务器可以根据响应消息的返回参数对接收到 成员设备返回的响应进行处理, 比如一次性返回接收的响应, 或分批返回接收 的响应, 从而增加了群组服务器处理接收到的响应的灵活性。 操作请求的方法的另一流程图。在本实施例中, 响应消息的返回参数可以进一 步包含最大数量和 /或最 d、数量参数, 该方法包括如下步骤: 步骤 401-402与步骤 301-302相同 , 本发明实施例在此不再详述。 403、 群组服务器确定响应消息的返回参数; 进一步的,步骤 403中确定的响应消息的返回参数除包含步骤 303中包含 的包括响应模式参数外, 还可以进一步包括最大数量参数和 /或最小数量参数 等。所述最大数量参数表示发送给终端的响应消息最多包含的成员设备返回的 响应的数量; 所述最小数量参数表示发送给终端的响应消息中最少包含的成 员设备返回的响应的数量。 具体的,群组服务器获取响应消息的返回参数的方法可参见步骤 303的描 述, 此处不再详述。 步骤 404、 确定是否到达响应消息发送时间, 若是执行步骤 412, 否则执 行步骤 405;
具体的,对于步骤 404的描述可参考步骤 304的描述, 本发明实施例在此 不再详述。
步骤 405-409与步骤 305-309相同, 本发明实施例在此不再详述。
410、 确定所述响应消息的返回参数中是否包含最大数量参数, 若是执行 步骤 411 , 否则执行步骤 404;
411、 确定接收到的成员设备返回的响应的数量是否达到最大数量, 若是 执行步骤 413 , 否则执行步骤 404; 歩骤 412、 判断所述响应消息的返回参数中是否包含最小数量参数, 若是 执行步骤 418 , 否则执行步骤 413; 歩骤 413、 确定所述响应模式参数为 Once, 执行步骤 416;或确定所述响应 模式参数为 Batch, 执行步骤 414。 本步骤的详细说明请参见步骤 310 , 本发明实施例在此不做详述。 歩骤 414、确定响应是否全部被接收, 若接收完全执行步骤 416, 否则执行 步骤 415。
本步骤的详细说明请参见步骤 311 , 本发明实施例在此不做详述。
步骤 415-417同步骤 312-314, 本发明实施例在此再详述。
步骤 418、 确定接收的响应是否达到最小数量, 若是执行步骤 413 , 否则执 行步骤 419。
具体的, 群组服务器确定接收的响应的数量是否大于或等于所述最小数量 参数指示的数量, 若是执行步骤 413 , 否则执行步骤 419。
419、 返回不包含成员设备 (即第一部分成员设备)返回的响应的第三响应 消息给终端,所述第三响应消息中包括用于获取剩余响应的地址(简称地址;)。
具体的, 所述用于获取剩余响应的地址为群组服务器在步骤 309或 409中 存储响应的地址。
此外,在执行步骤 419之前,群组服务器还进一步将接收到的成员设备(这 里指第一部分成员设备)返回的响应存储到所述地址指示的位置。 进一步的, 在执行步骤 419之后,群组服务器再次接收到成员设备返回的响应, 经过步骤 406和 408的确定, 执行步骤 409 , 即将接收到的成员设备返回 (这里指第二 部分成员设备)返回的响应存储到所述地址指示的位置。
值得说明的是, 本发明的实施例中, 最大数量参数和最少数量参数并不一 定都包含在响应消息的返回参数中,且响应消息的返回参数可以不包含最大数 量参数, 也可以不包含最小数量参数。
当响应消息的返回参数不包含最大数量参数时, 群组服务器可以不用执行 步骤 410和 411 , 在执行 408之后直接执行 412 , 确定是否到达响应消息发送 时间, 然后执行后续流程。 本发明实施例在此不再详述。
当响应消息的返回参数不包含小最数量参数时, 群组服务器在步骤 404确 定到达响应消息发送时间后直接执行步骤 413。 然后执行后续流程。 本发明实 施例在此不再详述。
在后续的流程图中, 比如图 5 , 响应消息的返回参数也可以不包含最大数 量参数或最小数量参数,而群组服务器也会根据响应消息的返回参数包括的参 数在流程上做相应的调整。 本发明实施例在此不再详述。
在本发明的实施例中, 响应消息的返回参数进一步包含最大数量参数和 / 或最小数量参数,使得群组服务器在向终端发送响应消息之前, 可以进一步确 定在分批或一次向终端发送成员设备返回的的响应的数量,提高处理的灵活性。
比如, 终端由于自身能力要求一次只能处理 20条汇聚的响应, 则最大数量 参数可设置为 20, 群组服务器一次发送给终端的成员设备返回的响应的数量 不会应该小于或等于最大数量参数指示的值。 又比如, 终端至少要收到 3条成 员设备返回的响应, 才能获取针对操作请求的执行情况的分析,从而对成员设 备返回的响应进行处理, 比如指示群组服务器返回一次响应消息, 或指示群组 服务器分批将成员设备返回的响应通过响应消息发送给终端。群组服务器在携 带于响应消息中的成员设备返回的响应的数量不会小于最小数量参数指示的 值,使得群组服务器返回的响应消息为有效的响应消息。如果群组服务器接收 到的响应小于最小数量参数指示的数量,在到达响应消息发送时间时,群组服 务器只能向终端返回不携带已收到的成员设备返回的响应的第三响应消息。如 果响应消息返回参数即包含最大数量参数也包含最小数量参数,则群组服务器 向终端返回的响应消息包含的响应的数量应该大于或等于最小数量参数指示 的数量, 以及小于或等于最大数量参数指示的数量。 图 5为本发实施例提供的针对图 4A和图 4B对应的流程中,群组服务器收 到客户端发来的获取剩余响应的请求消息后处理响应的方法流程图。该方法包 括如下步骤: 步骤 501、 接收终端发送的剩余响应的获取请求(简称获取请求), 所述获 取请求包含用于获取剩余响应的地址(简称地址);
502、 根据所述地址, 确定是否存在未发送给终端的成员设备已返回的响 应, 若存在, 执行步骤 504 , 否则执行步骤 503; 其中,确定是否存在未发送给送端的成员设备已返回的响应为确定所述地 址是否存储有响应。本发明实施例中未发送给送端的成员设备已返回的响应简 称为存储的响应。
503、 返回针对所述获取请求的错误响应, 指示所请求的响应不存在。 作为一种可选方式, 当群组服务器收到所述获取请求,且在步骤 502中确 定不存在所述存储的响应后, 可以不返回任何响应消息给终端。
504、 获取所述地址指示位置存储的响应, 以及与该存储的响应对应的操 作请求的响应消息的返回参数; 具体的,群组服务器根据所述地址获取存储在该地址的响应, 并根据获取 的响应确定该响应对应的对群组资源中的成员资源的操作请求。然后根据所述 对群组资源中的成员资源的操作请求确定所述响应消息的返回参数;或, 根据 所述对群组资源中的成员资源的操作请求中的群组标识所标识的群组资源的 属性确定所述响应消息的返回参数。
具体获取方式可参考步骤 303的描述, 本发明实施例在此不再详述。 进一步的,群组服务器在存储成员设备返回的响应后,还在该地址存储响 应的数量, 已发送给终端的响应的数量和 /或发送给终端的响应的成员设备的 信息等。
505、确定所述响应消息的返回参数中是否包含最大数量参数, 若是执行步 骤 506 , 否则执行步骤 507;
506、确定所述存储的响应的数量是否大于最大数量参数指示的值, 若是执 行步骤 510, 否则执行步骤 507。
507、判断所述响应消息的返回参数中是否包含最小数量参数, 若是执行步 骤 508 , 否则执行步骤 510' ;
508、 判断所述存储的响应 (即所述未发送给终端的成员设备已返回的响 应) 的数量是否达到最小数量参数指示的值, 若是执行步骤 510' , 否则执行 步骤 509;
509、 向终端发送不包含所述存储的响应的第六响应消息, 所述第六响应 消息中还包含所述地址。
510、确定与响应对应的操作请求的响应模式参数为 Once,执行步骤 513'; 或确定与响应对应的操作请求的所述响应模式参数为 Batch, 执行步骤 513。
510'、 确定所述响应模式参数为 Once, 执行步骤 512;或确定所述响应模 式参数为 Batch, 执行步骤 511。
511、 确定响应是否全部被接收, 若全部被接收执行步骤 512 , 否则执行 步骤 515。
本步骤的详细说明请参见步骤 311 , 本发明实施例在此不做详述。
512和 513, 同步骤 313 , 本发明实施例在此不做详述。 此外在 513, 中, 所述第五响应消息中包含的所述存储的响应的数量等于最大数量参数值指示 数量的响应。
514同步骤 314, 本发明实施例在此不做详述。
513、 向终端返回第四响应消息。 所述第四响应消息中包含所述存储的响 应的数量等于最大数量参数值指示数量的响应, 此外, 第四响应消息中还包含 所述地址。
515同步骤 313的描述, 本发明实施例在此不做详述。
本发明实施例中, 群组服务器可以将针对图 4A和图 4B中没有发给终端 的汇聚的响应在收到终端发来的响应的获取请求后,根据响应消息的返回参数 处理接收的响应并发给终端。 从而可以实现在响应模式为 Batch的情景下, 群 组服务器分批将接收的响应发送给终端, 而在响应模式为 once 时, 在图 4A 和图 4B的流程中, 到达响应消息发送时间时由于群组服务器还没有接收到达 到最小数量参数值的成员设备返回的响应,从而向终端发送不包含成员设备返 回的响应的第三响应消息 ,可以在后续的流程中由终端向群组服务器请求获取 响应。通过后期将剩余响应发送给终端的流程, 可以使得终端不必一直在线等 待达到数量要求的成员设备返回响应,比如要求所有的成员设备返回的响应等, 可以使终端对于操作请求的处理结果分析更为灵活。
图 6 为本发明实施例提供的群组服务器收到针对群组资源中的成员资源 的操作请求后, 并把所述操作请求发送给成员设备的方法流程图, 包括如下步 骤:
601同步骤 301 , 本发明实施例在些不做详述。
602、 根据群组资源的标识确定成员资源所属群组资源是否包含子群组成 员, 若是执行步骤 603 , 否则执行步骤 609。
具体地,群组服务器确定成员资源所属群组资源是否包含子群组成员属于 现有技术, 本发明实施例在此不做详述。 比如, 群组服务器可以根据群组资源 的成员属性中的群组成员资源 URI确定群组资源是否包含子群组成员, 也可 以根据群组资源设置的是否包含子群组成员的标识确定群组资源是否包含子 群组成员等。
603同步骤 303 , 本发明实例在此不再详述。 604、 确定对成员资源的操作请求是否携带扩展子群组 expSubgrp参数, 若是执行步骤 605 , 或者执行步骤 610。
605、 确定所述扩展子群组 expSubgrp参数值为 true, 执行步骤 607;或确 定 expSubgrp参数值为 false, 执行步骤 606;
具体地, 当 expSubgroup为 true时, 表示作为成员资源的子群组资源的成 员设备返回的响应可以分批返回给接收终端发送的对成员资源的操作请求的 群组服务器; 当 expSubgroup为 false时, 表示作为成员资源的子群组资源必 须收到所有的成员设备返回的响应后才能返回响应消息给接收终端发送的对 成员资源的操作请求的群组服务器。
步骤 606、 将发给子群组成员的对成员资源的操作请求中携带的最小数量 参数设置为全部 (即 minNum=all );
需要说明的是, 本步骤属于可选步骤, 因为扩展子群组 expSubgrp参数为 false, 所以子群组中的所有成员设备作为一个整体。 比如, 群组资源 group 1 包含成员资源 M1,M2和 group2,其中 group 2作为 group 1的子群组,而子群组 group 2含成员资源 M3,M4和 M5。 只有 group2汇聚了 M3,M4,M5 的响应后 返回给 groupl时, groupl才算是收到了一个成员设备( group2所在的设备) 的响应。 可选地, groupl所在群组服务器还可以在发给成员设备 (即 group 2 所在的设备) 的对成员资源的操作请求中, 将响应模式 resMode 参数修改为 once, 最小数量 minNum参数修改为 all, 以指示 group2所在设备汇聚所有子 群组的成员设备(如 M3,M4,M5 所在的成员设备)返回的响应消息后, 一次 性将 M3,M4,M5所在的成员设备返回的响应发送给给 groupl所在的群组服务 器。 需要说明的是, minNum=all 只是为了说明起来简单明了, 在实际系统部 署中, 可以 minNum=l等方式来表示最小数量为全部的方式。
607、 将发给子群组成员的对成员资源的操作请求中携带的响应模式 resMode参数设置为 匕量 batch返回。 具体的, 扩展子群组 expSubgrp参数为 true, 表示子群组比如 group2中 的成员资源都可看成是独立的 groupl的群组成员, 所以子群组 group2所在的 设备可以分批多次返回子群组的成员设备返回的响应给群组服务器, 直到 groupl所在的群组服务器接收到满足数量条件的群组响应为止。 在本实施例中, 如果终端发送的对成员资源的操作请求中包含 expSubgrp参数, 且如果群组资源包含至少两个子群组资源, 群组服务器可以 对发给所有的子群组资源所在的设备的对成员资源的操作请求中携带相同的 响应消息的返回参数; 作为一种可选方式,群组服务器还可以根据群组资源的 策略以及根据 expSubgrp参数为发给不同的子群组的成员资源的操作请求携带 不同的响应消息的返回参数, 本发明实施例在此不做限定。
608、 在发送给子群组资源所属的设备的对成员资源的操作请求中携带 扩展子群组 expSubgr 参数。 具体的, 在对成员资源的操作请求中携带扩展子群组 expSubgrp参数以 便子群组资源所属的设备在确定该子群组进一步包含子群组时,根据扩展子群 组 expSubgrp参数配置需要发送给其成员设备的对成员资源的操作请求。作为 一种可选方式, 群组服务器可以根据子群组资源的类别设置不同的 expSubgrp 参数, 例如: 若子群组资源的创建者为群组服务器时, 群组服务器可以将 exp Subgr 参数设置为 true , 否则设置为 fal se。 值得说明的是, 群组服务器还可以不用执行此步骤。
609、 删除对成员资源的操作请求中携带的响应消息的返回参数。
610、 向所述成员资源所属的成员设备发送对成员资源的操作请求; 具体的, 向所述成员设备发送的对成员资源的操作请求, 可以是步骤 606 中携带了最小数量参数的操作请求,也可以是步骤 607携带了响应模式参数的 操作请求,也可以是步骤 609中删除了操作请求中携带的响应消息的返回参数 的操作请求, 或是在步骤 608中配置了扩展子群组的操作请求,还可以是和步 骤 601接收到的操作请求中携带相同响应消息的返回参数的操作请求。
本发明实施例根据不同的情况,针对发送给不同的成员设备的对成员资源 的操作请求具体包含的内容不做限定。
611、 接收成员设备返回的响应。
本发明实施例中,群组服务器在接收到对成员资源的操作请求后, 进一步 所述操作请求对应的群组资源是否包含子群组资源作为成员资源,从而根据不 同情况对发送给不同的成员设备的操作请求进行参数配置和修改,然后发送给 成员设备, 以适应对不同的群组资源进行灵活的对操作请求的处理。
图 7为本发明实施例提供的与图 6结合的,群组服务器收到成员设返回的 响应的处理流程, 包括如下步骤:
701、 确定是否到达响应消息发送时间, 若是执行步骤 712 , 否则执行步 骤 702; 因为图 7是与图 6相结合的对群组成员返回的响应的处理流程,所以这里 是根据步骤 603中确定的响应消息的返回参数来确定响应消息发送时间。 具体的,在确定响应响应消息的发送时间后, 就开始监控响应消息的发送 时间。 比如, 启动定时器等方式。 对于确定是否到达响应消息发送时间属于现 有技术, 本发明实施例在此不做限定。
702、 群组服务器接收成员设备返回的对成员资源的操作请求的响应;
703、 确定是否存在该响应对应的操作请求, 若是执行步骤 705 , 否则执 行步骤 704。 · 具体的,确定是否存在该响应对应的操作请求可参照步骤 306的描述, 本 发明实施例在此不再详述。
704、 同步骤 307 , 本发明实施例在此不再详述。
705、 确定所述响应是否为子群组资源所在的设备返回的响应, 若是执 行步骤 706, 否则执行步骤 710。 具体的,群组服务器根据响应的发送地址确定是否为子群组所在的设备 返回的响应。 以群组资源 group 1包含成员资源 M1,M2和 group2作为一个例 子。 group 2作为 group 1的子群组, 而子群组 group 2包含成员资源 M3,M4 和 M5。 当 groupl所在的群组服务器收到 group2所在的设备返回的响应, 则 确定为子群组所在的设备返回的响应, 而 groupl 所在的群组服务器收到 M1,M2返回的响应时, 则不是子群组所在的设备返回的响应。
706、 确定所述响应中是否携带用于获取子群组资源的的成员设备的响 应的地址 resURI , 若是执行步骤 707 , 否则执行步骤 708。
707、 存储用于获取子群组资源的成员设备的响应的地址 resURI。
具体地,群组服务器将所述接收到的用于获取子群组资源的成员设备的 响应的地址 resURI和所述操作请求映射存储。 作为一种可选方式群组服务器 可以将接收到用于获取子群组资源的成员设备的响应的地址 resURI作为操作 请求的子资源存储,或群组服务器直接存储接收到的用于获取子群组剩余响应 的地址 resURI并将存储的地址和操作请求关联;
进一步的,群组服务器获取子群组资源的成员设备的响应的方式至少可 以包括以下两种:群组服务器发送获取子群组资源的成员设备的响应的请求到 所述子群组资源的成员设备的响应的地址 resURI, 获取存储在所述子群组资 源的成员设备的响应的地址 resURI的响应; 发送订阅请求到所述子群组资源 的成员设备的响应的地址 resURI。
708、 检查所述响应中是否包含子群组资源的成员资源所属的成员设备 返回的响应,若是执行步骤 710 , 否则执行步骤 709;
709、 同步骤 704, 此处不再详述;
709-715同步骤 308-314,本发明实施例在此不再详述。 716、 向群组服务器存储的获取后续响应消息地址 resURI列表中的地址 发送删除请求。
716是一个可选的优化步骤, 当不执行 716时, resURI对应的资源以及 相关联的所有信息或资源会在过期时间后被资源所在服务器删除。
717、 删除存储的操作请求请求、 响应及其他相关的信息。
删除存储的操作请求以及其对应的响应消息的返回参数以及后续存储 的响应、 以及其他相关的信息。 所述其他相关信息包括存储的获取后续响应消 息地址 resURI列表。
在图 7对应的实施例中, 群组服务器在收到成员设备返回的响应后, 进 一步判断该响应是不是群组的子群组所在的设备返回的 ,并根据不同的判断结 果进行不同的处理,可以实现当群组资源包含子群组资源作为该群组资源的群 组成员时,根据响应消息的返回参数对子群组资源所在的设备返回的响应进行 处理。
图 8为与图 3对应的, 当响应消息的返回参数不包含响应数量时,群组 服务器对群组资源中成员资源的操作请求的方法的流程图。 包括如下步骤:
801、群组服务器接收终端发送的对群组资源中的成员资源的操作请求 1 ; 所述针对群组资源中的成员资源的操作请求 1包括响应模式参数为: once,表示终端只接收一次群组服务器返回的响应消息;
802、 802' 和 802", 群组服务器分别发送到群组资源的成员资源所属的 成员设备 1-3发送对成员资源的操作请求 1.
803、 群组服务器确定响应模式参数为 once, 以及获取响应消息发送时 间, 并开始监控响应消息发送时间。 具体的, 群组服务器执行此步骤可以参考步骤 304和 310的描述, 本发 明实施例不在详述。
804、 群组服务器收到成员设备 1返回的响应;
在收到成员设备 1返回的响应后, 群组服务器可以参考步骤 306确定存 在该响应对应的针对群组资源中的成员资源的操作请求(简称该响应对应的操 作请求)。 并且参考步骤 308 , 确定与所述响应对应的操作请求没有向终端发 送过响应消息,緩存所述接收到的响应, 以及执行步骤 304即确定没有到达响 应消息发送时间。
805、 群组服务器收到成员设备 2返回的响应;
具体的, 群组服务器收到成员设备 2返回的响应后, 执行与收到成员设 备 1返回的响应后的相同的处理至步骤 304。 在执行步骤 304时, 群组服务器 确定已到达响应消息发送时间。
806、 群组服务器向终端发送第二响应消息以及删除存储的操作请求 1 和接收到的成员设备 1和成员设备 2返回的响应。
具体的, 群组服务器根据步骤 803中确定的响应模式参数为 once, 向终 端发送响应消息 2 (即第二响应消息) 以及删除存储的操作请求 1。 群组服务 器向终端发送的响应消息 2中携带已成员设备 1和成员设备 2返回的响应。
807、 群组服务器收到成员设备 3返回的响应;
808参考步骤 307的描述, 群组服务器忽略成员设备 3返回的响应; 具体的, 群组服务器根据步骤 306的描述, 确定不存在该响应对应的操 作请求 1.并执行步骤 808。
809、群组服务器接收终端发送的对群组资源中的成员资源的操作请求 2; 所述对成员资源的操作请求 2包括响应模式参数为: batch,表示终端可 以分多次收到群组响应消息。
810参考步骤 802, 此处不再详述。
811、群组服务器并确定响应模式参数为 batch,以及获取响应消息发送时 间。
812-813、 群组服务器接收成员设备 1和成员设备 2返回的响应。
进一步的,群组服务器接收到成员设备 2返回的响应后,执行在步骤 804 中描述的群组服务器在收到成员设备 1返回的响应后的相同的处理至步骤 304。 在执行步骤 304时, 群组服务器确定已到达响应消息发送时间。
814、 根据确定的响应模式参数为 batch, 向终端发送第一响应消息。 所 述第一响应消息中包括接收的响应 (成员设备 1和成员设备 2返回的响应) 以及获取剩余响应的地址(即获取成员设备 3返回的响应的地址;),进一步的, 第一响应消息中还可以携带响应没有全部被接收的标识, 指示对于操作请求 的响应没有全部发送给终端。
具体的, 群组服务器在在确定响应消息发送时间到达时, 根据接收到的 响应的数量确定响应有没有全部被接收。 即群组服务器确定接收到的成员设 备返回的响应的数量小于成员资源的数量时, 表示响应有没有全部被接收。 而群组服务器确定接收到的成员设备返回的响应的数量等于成员资源的数量 时, 表示响应全部被接收。
进一步的, 群组服务器将成员设备 1和成员设备 2返回的响应通过第一 响应消息发送给终端后, 还可以记录发送给终端的成员设备返回的响应的信 息, 比如发送给终端的响应的数量, 响应的发送者(成员设备)等。 以使得 群组服务器在接收到其它的成员设备返回的响应消息后, 进一步根据记录的 信息确定响应有没有全部被接收。
815、 群组服务器收到成员设备 3返回的响应;
816、 群组服务器参考步骤 306和 308的确定结果, 将成员设备 3返回 的响应存储在步骤 814中第一响应消息中包含的获取剩余响应的地址指示的 位置。
具体的, 群组服务器存储成员设备 3返回的响应与步骤 309相同, 此处 不再详述。
817、 群组服务器接收终端发送的剩余响应的获取请求。
所述剩余响应的获取请求中包含步骤 814中第一响应消息中包含的获取 剩余响应的地址, 也就是步骤 816中存储成员设备 3返回的响应的地址。
818、 群组服务器根据所述用于获取剩余响应的地址, 将存储在该地址 的响应后携带在第二响应消息中发送给终端。进一步的, 第二响应消息还可以 携带响应全部被接收的标识。
进一步的, 群组服务器根据记录的发送给终端的响应的信息(如数量或 响应的发送者), 以及存储在所述剩余响应的地址的响应, 确定响应有没有全 部被接收。 在本步骤中, 群组服务器确定响应全部被接收。
此实施例中, 响应消息的返回参数携带在对成员资源的操作请求 1和操 作请求 2中, 群组服务器根据不同的响应模式参数(once,batch )对收到的成 员设备返回的响应进行不同的处理,使得汇聚方式更为灵活, 更加满足用户的 不同需求。
图 9为本发明实施例提供的当响应消息的返回参数包含最大数量和 /或 最小数量, 以及包括响应模式参数时,群组服务器对群组资源中成员资源的操 作请求的方法的流程图。 该方法包括如下步骤:
901、 群组服务器接收终端发送的对群组资源中的成员资源的操作请求; 所述对群组资源中的成员资源的操作请求包括响应模式参数为: batch,表 示终端可以分批获得成员设备返回的响应; 最小数量参数设置为 2, 表示群组 服务器在接收不少于 2 个成员设备返回的响应后才向端发送包含接收的响应 的响应消息;最大数量参数设置为 2表示群组服务器每一次返回的响应消息包 含接收的响应的数量不能超过 2个。
902、 902' 和 902", 群组服务器将对成员资源的操作请求分别发送到群 组资源的成员资源所属的成员设备 1-4, 其中成员设备 4未在图中示出.
903、 群组服务器确定到达响应消息发送时间时, 没有收到成员设备返回 的响应;
具体的, 在执行步骤 903之前, 群组服务器还需要确定响应消息的返回 参数, 以及获取响应消息发送时间, 并开始监控响应消息发送时间。 其中, 响 应消息的返回参数包括响应模式参数为 Batch,最大数量参数(取值为 2 )和最 小数量参数(取值为 2 )。 响应消息发送时间为对成员资源的操作请求发送给 成员设备后的 5分钟。
进一步的, 群组服务器监控响应消息的发送时间, 比如启动定时间, 并在 确定到时响应消息发送时间时, 没有收到成员设备返回的响应。
904、 向终端发送不包含成员设备返回的响应的第三响应消息, 所述第三 响应消息中包括用于获取剩余响应的地址, 进一步的, 第三响应消息中还可以 包括响应没有全部被接收的标识。 905、 群组服务器收到成员设备 1返回的响应;
906、 群组服务器存储接收的响应;
进一步的, 群组服务器在收到成员设备 1返回的响应之后,参考步骤 306 , 确定存在该响应对应的操作请求。 然后考步骤 308 , 确定与所述响应对应的操 作请求已经返回过响应消息(即步骤 904中向终端发送的第三响应消息)。 然后 执行步骤 906 , 并根据所述第三响应消息中包括的获取剩余响应的地址存储接 收到的成员设备 1返回的响应。
907、 接收剩余响应的获取请求。 所述剩余响应的获取请求中包含步骤 903 中第三响应消息中包括的用于获取剩余响应的地址。
908、 参考步骤 509, 群组服务器向终端发送第六响应消息, 所述第六响应 消息不包含接收的的响应。
进一步的, 在执行本步骤之前, 群组服务器参考步骤 502 , 根据所述用于 获取剩余的的响应的地址确定在所述地址存储有响应,并参考步骤 504获取相 应的响应消息的返回参数以及响应。 并参考步骤 505-506 , 确定存储的响应的 数量为 1小于最大数量参数指示的值 2。 然后参考步骤 507和 508 , 确定响应 的数量 1没有达到最小数量参数指示的值 2。 然后执行步骤 908。
具体的, 群组服务器参考步骤 502-508的具体执行过程, 参考图 5对应的 描述, 本发明实施例在此不做详述。
909-910、 群组服务器收到成员设备 2-4返回的响应;
911、 群组服务器分别存储收到的成员设备 2-4返回的响应。
进一步的, 群组服务器在群组服务器在存储成员设备 2返回的响应之前, 参考步骤 306 , 确定存在该响应对应的操作请求, 并参考步骤 308 , 确定与所 述响应对应的操作请求已经返回过响应消息,然后根据所述第三响应消息中包 括用于获取剩余响应的地址存储成员设备 2返回的响应。
此外 ,群组服务器存储成员设备 3和成员设备 4返回的响应之前也要执行 类似的操作。 在此不做详述。
912、 同步骤 907 , 此处不 #丈详述;
913、 群组服务器参考步骤 502 , 根据所述用于获取剩余响应的地址确定 存在响应, 并参考步骤 504获取相应的响应消息的返回参数以及响应。 并参考 步骤 505-506, 确定该地址存储的的响应的数量为 3大于最大数量参数指示的 值 2。 然后参考步骤 507和 508 , 确定剩余响应的数量 3达到最小数量参数指 示的值 2。 然后执行步骤 914。
914、 群组服务器向终端发送第四响应消息。
具体的, 由于响应消息返回参数中包含最大数量参数 2, 所述第四响应消 息中携带的成员设备返回的响应的数量小于或等于最大数量参数指示的数量, 即小于或等于 2。 又由于响应消息返回参数中包含最小数量参数 2, 因此, 所 述第四响应消息中携带的成员设备返回的响应的数量磊于或等于最大数量参 数指示的数量, 即大于或等于 2。 因此, 本步骤中, 第四响应消息携带 2个成 员设备返回的响应。
进一步的, 由于存储的响应超过了 2条,群组服务器可以按接收时间顺序 选择成员设备返回的响应。如由于成员设备 1和成员设备 2返回的响应的时间 早于成员设备 3和成员设备 4返回的响应。 因此, 所述第四响消息中包含成员 设备 1和成员设备 2返回的响应。进一步的, 所述第四响应消息还可以包含获 取剩余响应的地址以及响应全部被接收的标识。 此外, 群组服务器还执行本步骤时, 还可以记录向终端发送过的响应(成 员设备 1和成员设备 2返回的响应)的信息, 如数量, 响应发送者。 此外, 群 组服务器可以进一步删除汇聚的成员设备 1和成员设备 2返回的响应。
做为一种可选方式,群组服务器可以不删除已经发送给终端的响应, 而对 于发送给终端的响应记录已发送的标识。
具体釆用何种方式, 本发明实施例在此不做详述。
915、 同步骤 907 , 此处不 #丈详述;
值得说明的是, 由于步骤 914中进一步携带响应全部被接收的标识,终端 可以根据该标识立即执行步骤 915 ,向群组服务器发送获取剩余响应的请求 3。 可选的,如果步骤 914中携带的是响应未全部被接收的标识, 终端可以自行设 定等待一段时间后再向群组服务器发送剩余响应的获取请求,以便于群组服务 器进一步接收成员设备返回的响应。
具体的,本发明实施例对于终端发送剩余响应的获取请求的时间不做限定。
916、 群组服务器参考步骤 502 , 根据所述用于获取剩作的响应的地址确 定存在储在该地址的响应,并参考步骤 504获取响应消息的返回参数以及存储 的响应。 并参考步骤 505-506 , 确定存储的响应的数量为 2等于于最大数量参 数指示的值 2 (此处以群组服务器删掉已发送给终端的响应为例进行说明)。 然后参考步骤 507和 508, 确定存储的响应的数量 2等于最小数量参数指示的 值 2。 然后执行步骤 510' 确定响应模式参数为 Batch。 然后执行步骤 511即确 定响应全部被接收。 然后执行步骤 917 , 对应于步骤 512.
步骤 917、 群组服务器向终端发送第七响应消息, 所述第七响应消息中不 包含成员设备 3和成员设备 4返回的响应返回的响应。 进一步的,群组服务器在执行步骤 917之后,删除发送给终端的成员设备 3和成员设备 4返回的响应。 然后确定该地址不存在剩余响应了, 即可确定成 员设备返回的响应已全部被发送给终端。因此,群组服务器可以执行步骤 514 , 删除存储的对群组资源中的成员资源的操作请求, 以及相关的信息。 所述相关 的信息可以为: 向终端发送的成员设备返回的响应的信息, 与操作请求关联存 储的地址信息等。
作为一种可先方式, 如果终端一直没有执行步骤 915 , 即没有向群组服务 器发送剩余响应的获取请求 3 , 群组服务器根据设定的存储对群组资源中的成 员资源的操作请求的时间删除存储的操作请求和相关信息。
群组服务器对于删除存储的请求和相关信息属于现有技术,本发明实施例 在此不做详述。
值得说明的是, 本发明实施例例中, 当步骤 901中对成员资源的操作请求 响应汇聚处理需要参考图 6和图 7描述的内容。 本发明实施例在此不再详述。
在本发明实施例中,响应消息的返回参数携带在对成员资源的操作请求中, 群组服务器根据不同的响应消息的返回参数,如响应模式参数为 Batch,最大数 量参数和最小数量参数,对收到的成员设备返回的响应根据最大数量参数和响 应模式参数, 分批发送给终端。 使得终端一次返回的数量按照了终端的需求, 不超过 2, 从而使得返回方式更为灵活, 更加满足终端的需求。
图 10a为本发明实施例提供的一种群组服务器的结构示意图。该群组服务 器包括接收模块 1001 , 发送模块 1002, 确定模块 1003 , 获取模块 1004以及 存储模块 1005。 其中, 接收模块 1001 , 用于接收终端发送的对群组资源中的成员资源的 操作请求;发送模块 1002, 用于向所述成员资源所属的成员设备发送对成员资 源的操作请求;确定模块 1003 , 用于确定所述对群组资源中的成员资源的操作 请求的响应消息的返回参数, 所述响应消息的返回参数包括响应模式参数, 所 述响应模式参数为分批返回;所述接收模块 1001进一步用于接收所述群组资源 的第一部分成员设备返回的所述对成员资源的操作请求的响应;所述发送模块 1002 进一步用于根据所述响应模式参数为分批返回, 向所述终端发送第一响 应消息,所述第一响应消息中包含所述第一部分成员设备返回的响应中的至少 一条响应以及用于获取剩余响应的地址。 进一步的,所述确定模块 1003确定所述对群组资源中的成员资源的操作请 求的响应消息的返回参数具体为:根据所述对群组资源中的成员资源的操作请 求确定所述响应消息的返回参数;或, 根据所述对群组资源中的成员资源的操 作请求中的群组标识所标识的群组资源的属性确定所述响应消息的返回参数。
作为一种可选方式, 群组服务器进一步包括获取模块 1004.所述获取模块 1004用于从所述对群组资源中的成员资源的操作请求中获取响应消息发送时 间;或, 所述获取模块用于从所述对群组资源中的成员资源的操作请求中的群 组标识所标识的群组资源的属性中获取响应消息发送时间; 以及确定到达所 述响应消息发送时间;所述确定模块 1004进一步用于确定到达所述所述响应消 息发送时间;所述发送模块 1002向所述终端发送第一响应消息具体为: 当所述 确定模块确定到达所述响应消息发送时间时,向所述终端发送所述第一响应消 息。
作为一种可选方式, 所述群组服务器进一步包括存储模块 1005, 所述存储 模块 1005用于将没有发送给所述终端的所述第一部分成员设备返回的响应存 储在所述地址指示的位置。
作为一种可选方式,所述接收模块 1001进一步用于接收所述群组资源的第 二部分成员设备返回的所述对成员资源的操作请求的响应;所述确定模块 1002 进一步用于确定已向所述终端发送过第一响应消息;所述存储模块 1003进一步 用于将所述第二部分成员设备返回的响应存储在所述地址指示的位置。
作为一种可选方式, 所述响应消息的返回参数进一步包括最大数量参数, 所述第一响应消息中包含的所述第一部分成员设备返回的响应的数量小于或 等于所述最大数量参数指示的数量; 和 /或,所述响应消息的返回参数进一步包 括最小数量参数,所述第一响应消息中包含的所述第一部分成员设备返回的响 应的数量大于或等于所述最小数量参数指示的数量。
作为一种可选方式, 所述接收模块 1001进一步用于: 接收所述终端发送的 剩余响应的获取请求,所述获取请求包含所述第一响应消息中携带的所述地址; 所述发送模块 1002进一步用于: 根据所述地址,将存储在所述地址指示位置的 响应发送给所述终端。
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量大于所述最大数量参数指示的数量;所述发送模块 1002将存储在所述地址 指示位置的响应发送给所述终端具体为: 向所述终端发送第四响应消息, 所述 第四响应消息中包括存储在所述用于地址指示位置的所述最大数量参数指示 的数量的响应, 以及包括所述地址。
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量小于所述最大数量参数指示的数量,以及确定所述对成员资源的操作请求 的响应全部被接收;所述发送模块 1002将存储在所述地址指示位置的响应发送 给所述终端具体为:向所述终端发送第五响应消息 ,所述第五响应消息中包括: 存储在所述地址指示位置的所有响应。
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量小于所述最大数量参数指示的数量,以及确定所述对成员资源的操作请求 的响应没有全部被接收; 所述发送模块 1002将存储在所述地址指示位置的响 应发送给所述终端具体为: 向所述终端发送第四响应消息, 所述第四响应消息 中包括存储在所述用于地址指示位置的所有响应, 以及所述地址.
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量大于所述最小数量参数指示的数量且确定所述对成员资源的操作请求的 响应全部被接收; 所述发送模块 1002将存储在所述地址指示位置的响应发送 给所述终端具体为:向所述终端发送第五响应消息 ,所述第五响应消息中包括: 存储在所述地址指示位置的所有响应。
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量大于所述最小数量参数指示的数量,且确定所述对成员资源的操作请求的 响应没有全部被接收; 所述发送模块 1002将存储在所述地址指示位置的响应 发送给所述终端具体为: 向所述终端发送第四响应消息, 所述第四响应消息中 包括存储在所述地址指示位置的所有响应, 以及所述地址。
作为一种可选方式,所述确定模块 1003进一步用于确定所述存储的响应的 数量小于所述最小数量参数指示的数量; 所述发送模块 1002将存储在所述地 址指示位置的响应发送给所述终端具体为: 向所述终端发送第六响应消息, 所 述第六响应消息中包括所述地址以及不包括存储的响应。
作为一种可选方式,所述对群组资源中的成员资源的操作请求包含成员资 源所属群组资源的标识和扩展子群组参数;所述确定模块 1003进一步用于, 根 据所述群组资源的标识确定所述群组资源包含子群组成员;所述发送模块 1002 向所述成员资源所属的成员设备发送对成员资源的操作请求具体为:当所述确 定模块确定所述扩展子群组参数的取值为真时 ,将所述响应模式参数设置为分 批返回携带在发给所述子群组成员的对成员资源的操作请求中;或, 当所述确 定模块确定所述扩展子群组参数的取值为假时,在发送在发给所述子群组成员 的对成员资源的操作请求中携带最小数量参数,所述最小数量参数值为全部携 带。
作为一种可选方式,在所述接收模块 1001接收所述群组资源的第一部分成 员设备返回的所述对成员资源的操作请求的响应之后,
所述确定模块进一步用于:确定返回所述对成员资源的操作请求的响应的 成员设备为所述群组资源的子群组资源所在的设备; 以及
确定所述响应没有携带所述用于获取子群组资源的剩余响应的地址,并包 含所述子群组资源的成员资源所属的成员设备返回的响应;或, 确定所述响应 所述存储模块 1005进一步用于当所述确定模块确定所述响应携带了所述 用于获取子群组资源的剩余响应的地址时,将所述用于获取子群组资源的响应 的地址和所述操作请求映射存储。
本实施例中, 群组服务器可以根据响应消息的返回参数为分批返回,, 分 批向终端发送群组服务器接收到的成员设备返回的响应,从而避免了群组服务 器一定要收到所有的成员设备返回的响应后才向终端返回响应消息需要较长 的等待时间, 或由于某些成员设备不在线, 而不能向群组服务器返回响应时群 组服务器无法向终端返回对于所述对群组资源中的成员资源的操作请求的响 应消息的问题。
图 1 Ob是根据本发明另一实施例的群组服务器的结构示意图。 群组服务器 10b包括存储器 1010b、 处理器 1020b和收发器 1030b。
存储器 1010b可以包括随机存储器、 闪存、 只读存储器、 可编程只读存储 器、 非易失性存储器或寄存器等。 处理器 1020b可以是中央处理器 (Central Processing Unit, CPU )„
存储器 1010b用于存储可执行指令。 处理器 1020b可以执行存储器 1010b中 存储的可执行指令。
收发器 1030b用于接收终端发送的对群组资源中的成员资源的操作请求, 以及向所述成员资源所属的成员设备发送对成员资源的操作请求。 处理器 1020b执行存储器 1010b中存储的可执行指令, 用于: 确定所述对群组资源中的 成员资源的操作请求的响应消息的返回参数,所述响应消息的返回参数包括响 应模式参数, 所述响应模式参数为分批返回。 所述收发器 1030b进一步用于接 收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请求的响 应, 以及根据所述响应模式参数为分批返回, 向所述终端发送第一响应消息, 所述第一响应消息中包含所述第一部分成员设备返回的响应中的至少一条响 应以及用于获取剩余响应的地址。
作为一种可替换方式, 收发器 1030b用于接收终端发送的对群组资源中的 成员资源的操作请求,以及向所述成员资源所属的成员设备发送对成员资源的 操作请求。 处理器 1020b执行存储器 1010b中存储的可执行指令, 用于: 确定所 述对群组资源中的成员资源的操作请求的响应消息的返回参数,所述响应消息 的返回参数包括响应模式参数, 所述响应模式参数为一次返回。 所述收发器
1030b进一步用于接收所述群组资源的第一部分成员设备返回的所述对成员资 源的操作请求的响应;以及根据所述响应模式参数为一次返回, 向发送对成员 资源的操作请求的终端发送第二响应消息,所述第二响应消息中包含所述第一 部分成员设备返回的响应中的至少一条响应。
作为另一种可替换方式, 收发器 1030b用于接收终端发送的对群组资源中 的成员资源的操作请求,以及向所述成员资源所属的成员设备发送对成员资源 的操作请求。 处理器 1020b执行存储器 1010b中存储的可执行指令, 用于: 确定 所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所述响应消 息的返回参数包括最小数量参数,以及确定所述第一部分成员设备返回的响应 的数量小于所述最小数量参数指示的数量。 所述收发器 1030b进一步用于, 接 收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请求的响 应,以及向所述终端发送不包含所述第一部分成员设备返回的响应的第三响应 消息, 所述第三响应消息中包括用于获取剩余响应的地址。
图 10c为本发明实施例提供的一种群组服务器的另一结构示意图。该群组 服务器包括接收模块 1001 ,发送模块 1002,确定模块 1003以及获取模块 1004。 其中,接收模块 1001 , 用于接收终端发送的对群组资源中的成员资源的操 作请求。发送模块 1002, 用于向所述成员资源所属的成员设备发送对成员资源 的操作请求。确定模块 1003 , 用于确定所述对群组资源中的成员资源的操作请 求的响应消息的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述 响应模式参数为一次返回。 所述接收模块 1001 , 进一步用于接收所述群组资源 的第一部分成员设备返回的所述对成员资源的操作请求的响应。所述发送模块 进一步用于根据所述响应模式参数为一次返回,向发送对成员资源的操作请求 的终端发送第二响应消息 ,所述第二响应消息中包含所述第一部分成员设备返 回的响应中的至少一条响应。
进一步的,所述获取模块 1004用于从所述对群组资源中的成员资源的操作 请求中获取响应消息发送时间;或, 所述获取模块用于从所述对群组资源中的 成员资源的操作请求中的群组标识所标识的群组资源的属性中获取响应消息 发送时间。所述确定模块 1003进一步用于确定到达所述所述响应消息发送时间。
所述发送模块 1002向所述终端发送第二响应消息具体为:当所述确定模块 确定到达所述响应消息发送时间时, 向所述终端发送所述第二响应消息。
作为一种可选方式,根据图 10a所述的群组服务器,包括接收模块 1001 , 发送模块 1002, 确定模块 1003 , 获取模块 1004以及存储模块 1005。 其中,接收模块 1001 , 用于接收终端发送的对群组资源中的成员资源的操 作请求。发送模块 1002, 用于向所述成员资源所属的成员设备发送对成员资源 的操作请求。确定模块 1003用于确定所述对群组资源中的成员资源的操作请求 的响应消息的返回参数, 所述响应消息的返回参数包括最小数量参数。 所述接 收模块 1001进一步用于接收所述群组资源的第一部分成员设备返回的所述对 成员资源的操作请求的响应。所述确定模块 1003进一步用于确定所述第一部分 成员设备返回的响应的数量小于所述最小数量参数指示的数量。所述发送模块 进一步用于向所述终端发送不包含所述第一部分成员设备返回的响应的第三 响应消息, 所述第三响应消息中包括用于获取剩余响应的地址。
进一步的, 所述响应消息的返回参数进一步包括响应模式参数, 所述响 应模式参数具体为一次返回或分批返回;或,所述响应消息的返回参数进一步包 括响应模式参数和最大数量参数,所述响应模式参数具体为一次返回或分批返 回。所述存储模块 1005用于将所述第一部分成员设备返回的响应存储在所述地 址指示的位置。所述接收模块 1001进一步用于接收所述群组资源的第二部分成 员设备返回的所述对成员资源的操作请求的响应。所述确定模块 1003进一步用 于确定所述第二部分成员设备返回的响应所对应的操作请求已向所述终端发 送过第三响应消息。所述存储模块 1005进一步用于将所述第二部分成员设备返 回的响应存储在所述地址指示的位置。
进一步的,所述确定模块 1003进一步用于确定所述响应模式参数为一次返 回, 且所述存储的响应的数量大于所述最小数量参数指示的数量;所述发送模 块 1002将存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端 发送第五响应消息,所述第五响应消息中包括存储在所述地址指示位置的所有 响应; 或
所述确定模块 1003进一步用于确定所述响应模式参数为一次返回,且所述 存储的响应的数量大于所述最大数量参数指示的数量; 所述发送模块 1002将 存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送所述 第五响应消息,所述第五响应消息中包括存储在所述地址指示位置的所述最大 数量参数指示的数量的响应;或
所述确定模块 1003进一步用于确定所述响应模式参数为分批返回,且所述 存储的响应的数量大于所述最大数量参数指示的数量; 所述发送模块 1002将 存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送所述 第四响应消息,所述第四响应消息中包括存储在所述地址的所述最大数量参数 指示的数量的的响应, 以及所述地址。
群组服务器 10a- 10c可以执行图 1 -9中群组服务器所执行的方法的过程。 因 此, 群组服务器 10a- 10c的具体操作和功能此处不再赘述。
图 11a为本发明实施例提供的一种终端, 包括接收模块 1101和发送模块 1102。
发送模块 1102 , 用于向群组服务器发送对群组资源中成员资源的操作请 求;
接收模块 1101,用于接收所述群组服务器发送的所述对群组资源中的成员 资源的操作请求的响应消息,所述群组资源中的成员资源的操作请求的响应消 息包含用于获取剩余响应的地址;
所述发送模块 1102进一步用于根据所述地址向所述群组服务器发送剩余 响应的获取请求;
所述接收模块 1101进一步用于接收所述群组服务器发送的针对所述获取 请求的响应消息,所述针对所述获取请求的响应消息包含所述群组服务器存储 在所述地址指示位置的响应。
图 1 lb是根据本发明另一实施例提供的终端的结构示意图。群组服务器 1 lb 包括存储器 1110b、 处理器 1120b和收发器 1130b。
存储器 1110b可以包括随机存储器、 闪存、 只读存储器、 可编程只读存储 器、 非易失性存储器或寄存器等。 处理器 1120b可以是中央处理器 (Central Processing Unit, CPU )„
存储器 1110b用于存储可执行指令。 处理器 1120b可以执行存储器 1110b中 存储的可执行指令。 收发器 1130b用于发送模块, 用于向群组服务器发送对群 组资源中成员资源的操作请求;接收所述群组服务器发送的所述对群组资源中 的成员资源的操作请求的响应消息,所述群组资源中的成员资源的操作请求的 剩余响应的获取请求;以及接收所述群组服务器发送的针对所述获取请求的响 应消息,所述针对所述获取请求的响应消息包含所述群组服务器存储在所述地 址指示位置的响应。
图 lla-llb的终端可以执行图 1-9中终端所执行的方法的过程。 因此, 图 lla-llb的终端的具体操作和功能此处不再赘述。
本发明实施例还提供一种计算机存储介质, 其中, 该计算机存储介质可存 储有程序,该程序执行时包括上述方法实施例中记载的至少一种对群组资源中 成员资源的操作请求的处理方法的部分或全部步骤。
本发明实施例还提供一种计算机存储介质, 其中, 该计算机存储介质可存 储有程序,该程序执行时包括上述方法实施例中记载的至少一种对群组资源中 成员资源的操作请求的方法的部分或全部步骤。
在上述实施例中,对各个实施例的描述都各有侧重, 某个实施例中没有详 述的部分, 可以参见其他实施例的相关描述。
需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表述 为一系列的动作组合,但是本领域技术人员应该知悉, 本发明并不受所描述的 动作顺序的限制,因为依据本发明,某些步骤可以釆用其他顺序或者同时进行。 其次, 本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施 例, 所涉及的动作和模块并不一定是本发明所必须的。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的装置, 可通过其 它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性的, 例如上述模 块的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例 如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可 以是通过一些接口, 装置或模块的间接耦合或通信连接, 可以是电性或其它的 形式。
上述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为 模块显示的部件可以是或者也可以不是物理模块, 即可以位于一个地方, 或者 也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部 模块来实现本实施例方案的目的。
另夕卜,在本发明各实施例中的各功能模块可以集成在一个处理模块中,也 可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。 上述集成的模块既可以釆用硬件的形式实现,也可以釆用软件功能模块的形式 实现。
上述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以为个人计算机、 服务器 或者网络设备等, 具体可以是计算机设备中的处理器)执行本发明各个实施例 上述方法的全部或部分步骤。 其中, 而前述的存储介质可包括: U盘、 移动硬 盘、 磁碟、 光盘、 只读存储器(ROM, Read-Only Memory )或者随机存取存 储器(RAM, Random Access Memory )等各种可以存储程序代码的介质。
以上上述, 以上实施例仅用以说明本发明的技术方案, 而非对其限制; 尽 管参照前述实施例对本发明进行了详细的说明 ,本领域的普通技术人员应当理 解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分 技术特征进行等同替换; 而这些修改或者替换, 并不使相应技术方案的本质脱 离本发明各实施例技术方案的精神和范围。

Claims

权 利 要 求
1、 一种对群组资源中成员资源的操作请求的处理方法, 其特征在于, 包 括:
接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括响应模式参数, 所述响应模式参数为分批返回; 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
根据所述响应模式参数为分批返回, 向所述终端发送第一响应消息, 所述 第一响应消息中包含所述第一部分成员设备返回的响应中的至少一条响应以 及用于获取剩余响应的地址。
2、 如权利要求 1所述的方法, 其特征在于, 所述确定所述对群组资源中的 成员资源的操作请求的响应消息的返回参数具体为:
根据所述对群组资源中的成员资源的操作请求确定所述响应消息的返回 参数;或
根据所述对群组资源中的成员资源的操作请求中的群组标识所标识的群 组资源的属性确定所述响应消息的返回参数。
3、 如权利要求 1或 2所述的方法, 其特征在于, 该方法进一步包括: 从所述对群组资源中的成员资源的操作请求中获取响应消息发送时间;或 , 从所述对群组资源中的成员资源的操作请求中的群组标识所标识的群组资源 的属性中获取响应消息发送时间; 以及确定到达所述响应消息发送时间;
所述向所述终端发送第一响应消息具体为:当到达所述响应消息发送时间 时, 向所述终端发送所述第一响应消息。
4、 如权利要求 1-3任一所述的方法, 其特征在于, 该方法进一步包括: 将没有发送给所述终端的所述第一部分成员设备返回的响应存储在所述 地址指示的位置。
5、 如权利要求 1-4任一所述的方法, 其特征在于, 该方法进一步包括: 接收所述群组资源的第二部分成员设备返回的所述对成员资源的操作请 求的响应;
确定已向所述终端发送过第一响应消息;
将所述第二部分成员设备返回的响应存储在所述地址指示的位置。
6、 如权利要求 1-5任一所述的方法, 其特征在于, 所述响应消息的返回参 数进一步包括最大数量参数,所述第一响应消息中包含的所述第一部分成员设 备返回的响应的数量小于或等于所述最大数量参数指示的数量; 和 /或
所述响应消息的返回参数进一步包括最小数量参数,所述第一响应消息中 包含的所述第一部分成员设备返回的响应的数量大于或等于所述最小数量参 数指示的数量。
7、 如权利要求 6所述的方法, 其特征在于, 该方法进一步包括: 接收所述终端发送的剩余响应的获取请求,所述获取请求包含所述第一响 应消息中携带的所述地址;
根据所述地址, 将存储在所述地址指示位置的响应发送给所述终端。
8、 如权利要求 7所述的方法, 其特征在于,
该方法进一步包括确定所述存储的响应的数量大于所述最大数量参数指 示的数量; 所述将存储在所述地址指示位置的响应发送给所述终端具体为: 向 所述终端发送第四响应消息, 所述第四响应消息中包括: 存储在所述用于地址 指示位置的所述最大数量参数指示的数量的响应, 以及包括所述地址;或
该方法进一步包括确定所述存储的响应的数量小于所述最大数量参数指 示的数量, 以及确定所述对成员资源的操作请求的响应全部被接收;所述将存 储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送第五响 应消息, 所述第五响应消息中包括: 存储在所述地址指示位置的所有响应;或 该方法进一步包括确定所述存储的响应的数量小于所述最大数量参数指 示的数量, 以及确定所述对成员资源的操作请求的响应没有全部被接收;所述 将存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送第 四响应消息, 所述第四响应消息中包括: 存储在所述用于地址指示位置的所有 响应, 以及所述地址; 或 该方法进一步包括确定所述存储的响应的数量大于所述最小数量参数指 示的数量且确定所述对成员资源的操作请求的响应全部被接收;所述将存储在 所述地址指示位置的响应发送给所述终端具体为:向所述终端发送第五响应消 息, 所述第五响应消息中包括: 存储在所述地址指示位置的所有响应;或
该方法进一步包括确定所述存储的响应的数量大于所述最小数量参数指 示的数量, 且确定所述对成员资源的操作请求的响应没有全部被接收;所述将 存储在所述地址指示位置的响应发送给所述终端具体为:向所述终端发送第四 响应消息, 所述第四响应消息中包括存储在所述地址指示位置的所有响应, 以 及所述地址;或
该方法进一步包括确定所述存储的响应的数量小于所述最小数量参数指 示的数量;所述将存储在所述地址指示位置的响应发送给所述终端具体为: 向 所述终端发送第六响应消息,所述第六响应消息中包括所述地址以及不包括存 储的响应。
9、 如权利要求 1-8所述的方法, 其特征在于, 所述对群组资源中的成员资 源的操作请求包含成员资源所属群组资源的标识和扩展子群组参数;该方法进 一步包括:
根据所述群组资源的标识确定所述群组资源包含子群组成员;
所述扩展子群组参数的取值为真,将所述响应模式参数设置为分批返回携 带在发给所述子群组成员的对成员资源的操作请求中;或所述扩展子群组参数 的取值为假,在发送在发给所述子群组成员的对成员资源的操作请求中携带最 小数量参数, 所述最小数量参数值为全部携带。
10、 如权利要求 9所述的方法, 其特征在于, 所述接收所述群组资源的第 一部分成员设备返回的所述对成员资源的操作请求的响应之后,该方法进一步 包括:
确定返回所述对成员资源的操作请求的响应的成员设备为所述群组资源 的子群组资源所在的设备;
确定所述响应没有携带所述用于获取子群组资源的剩余响应的地址,并包 含所述子群组资源的成员资源所属的成员设备返回的响应;或, 确定所述响应 资源的响应的地址和所述操作请求映射存储。
11、 一种对群组资源中成员资源的操作请求的处理方法, 其特征在于, 包 括:
接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括响应模式参数, 所述响应模式参数为一次返回; 接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
根据所述响应模式参数为一次返回,向发送对成员资源的操作请求的终端 发送第二响应消息,所述第二响应消息中包含所述第一部分成员设备返回的响 应中的至少一条响应。
12、 如权利要求 11所述的方法, 其特征在于,
所述响应消息的返回参数进一步包括最大数量参数,所述第二响应消息中 包含的第一部分成员设备返回的响应的数量小于或等于最大数量参数指示的 数量;或
所述响应消息的返回参数进一步包括最小数量参数,所述第二响应消息中 包含的第一部分成员设备返回的响应的数量大于或等于最小数量参数指示的 数量。
13、 如权利要求 11或 12所述的方法, 其特征在于, 该方法进一步包括: 从所述对群组资源中的成员资源的操作请求中获取响应消息发送时间;或 , 从所述对成员资源的操作请求中的群组标识所标识的群组资源的属性中获取 响应消息发送时间, 并确定到达所述响应消息发送时间;
所述向所述终端发送第二响应消息具体为:当到达所述响应消息发送时间 时, 根据所述响应模式参数为一次返回, 向所述终端发送所述第二响应消息。
14、 一种对群组资源中成员资源的操作请求的处理方法, 其特征在于, 包 括: 接收终端发送的对群组资源中的成员资源的操作请求;
向所述成员资源所属的成员设备发送对成员资源的操作请求;
确定所述对群组资源中的成员资源的操作请求的响应消息的返回参数,所 述响应消息的返回参数包括最小数量参数;
接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请 求的响应;
确定所述第一部分成员设备返回的响应的数量小于所述最小数量参数指 示的数量;
向所述终端发送不包含所述第一部分成员设备返回的响应的第三响应消 息, 所述第三响应消息中包括用于获取剩余响应的地址。
15、 如权利要求 14所述的方法, 其特征在于, 所述响应消息的返回参数进 一步包括响应模式参数, 所述响应模式参数具体为一次返回或分批返回;或 所述响应消息的返回参数进一步包括响应模式参数和最大数量参数,所述 响应模式参数具体为一次返回或分批返回。
16、 如权利要求 15所述的方法, 其特征在于, 该方法进一步包括: 将所述第一部分成员设备返回的响应存储在所述地址指示的位置; 接收所述群组资源的第二部分成员设备返回的所述对成员资源的操作请 求的响应;
确定所述第二部分成员设备返回的响应所对应的操作请求已向所述终端 发送过第三响应消息;
将所述第二部分成员设备返回的响应存储在所述地址指示的位置。
17、 如权利要求 16所述的方法, 其特征在于, 该方法进一步包括: 接收剩余响应的获取请求, 所述剩余响应的获取请求包含所述地址; 根据所述地址, 将存储在所述地址指示位置的响应发送给所述终端。
18、 如权利要求 17所述的方法, 其特征在于,
该方法进一步包括确定所述响应模式参数为一次返回,且所述存储的响应 的数量大于所述最小数量参数指示的数量;所述将存储在所述地址指示位置的 响应发送给所述终端具体为: 向所述终端发送第五响应消息, 所述第五响应消 息中包括存储在所述地址指示位置的所有响应;或
该方法进一步包括确定所述响应模式参数为一次返回,且所述存储的响应 的数量大于所述最大数量参数指示的数量; 所述将存储在所述地址指示位置 的响应发送给所述终端具体为: 向所述终端发送所述第五响应消息, 所述第五 响应消息中包括存储在所述地址指示位置的所述最大数量参数指示的数量的 口向应;或
该方法进一步包括确定所述响应模式参数为分批返回,且所述存储的响应 的数量大于所述最大数量参数指示的数量; 所述将存储在所述地址指示位置 的响应发送给所述终端具体为: 向所述终端发送所述第四响应消息, 所述第四 响应消息中包括存储在所述地址的所述最大数量参数指示的数量的的响应,以 及所述地址。
19、一种对群组资源中成员资源的操作请求的处理方法, 其特征在于: 向群组服务器发送对群组资源中成员资源的操作请求;
接收所述群组服务器发送的所述对群组资源中的成员资源的操作请求的 响应消息,所述群组资源中的成员资源的操作请求的响应消息包含用于获取剩 余响应的地址;
根据所述地址向所述群组服务器发送剩余响应的获取请求;
接收所述群组服务器发送的针对所述获取请求的响应消息,所述针对所述 获取请求的响应消息包含所述群组服务器存储在所述地址指示位置的响应。
20、 如权利要求 19所述的处理方法, 其特征在于, 所述对群组资源中的成 员资源的操作请求中包括响应消息的返回参数和 /或响应消息发送时间, 所述 响应消息的返回参数包括响应模式参数,或所述响应消息的返回参数包括响应 模式参数, 和最大数量参数和 /或最小数量参数。
21、 一种群组服务器, 其特征在于, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述响应模式参数 为分批返回;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应;
所述发送模块进一步用于根据所述响应模式参数为分批返回,向所述终端 发送第一响应消息,所述第一响应消息中包含所述第一部分成员设备返回的响 应中的至少一条响应以及用于获取剩余响应的地址。
22、 如权利要求 21所述群组服务器, 其特征在于, 所述确定模块确定所述 对群组资源中的成员资源的操作请求的响应消息的返回参数具体为:
根据所述对群组资源中的成员资源的操作请求确定所述响应消息的返回 参数;或
根据所述对群组资源中的成员资源的操作请求中的群组标识所标识的群 组资源的属性确定所述响应消息的返回参数。
23、 如权利要求 21或 22所述群组服务器, 其特征在于, 所述群组服务器进 一步包括获取模块,所述获取模块用于从所述对群组资源中的成员资源的操作 请求中获取响应消息发送时间;或, 所述获取模块用于从所述对群组资源中的 成员资源的操作请求中的群组标识所标识的群组资源的属性中获取响应消息 发送时间; 以及确定到达所述响应消息发送时间;
所述确定模块进一步用于确定到达所述所述响应消息发送时间; 所述发送模块向所述终端发送第一响应消息具体为:当所述确定模块确定 到达所述响应消息发送时间时, 向所述终端发送所述第一响应消息。
24、 如权利要求 21-23任一所述群组服务器, 其特征在于, 所述群组服务 器进一步包括存储模块,所述存储模块用于将没有发送给所述终端的所述第一 部分成员设备返回的响应存储在所述地址指示的位置。
25、 如权利要求 21-24任一所述群组服务器, 其特征在于,
所述接收模块进一步用于接收所述群组资源的第二部分成员设备返回的 所述对成员资源的操作请求的响应;
所述确定模块进一步用于确定已向所述终端发送过第一响应消息; 所述存储模块进一步用于将所述第二部分成员设备返回的响应存储在所 述地址指示的位置。
26、 如权利要求 21-25任一所述群组服务器, 其特征在于, 所述响应消息 的返回参数进一步包括最大数量参数,所述第一响应消息中包含的所述第一部 分成员设备返回的响应的数量小于或等于所述最大数量参数指示的数量; 和 / 或
所述响应消息的返回参数进一步包括最小数量参数,所述第一响应消息中 包含的所述第一部分成员设备返回的响应的数量大于或等于所述最小数量参 数指示的数量。
27、 如权利要求 26所述群组服务器, 其特征在于,
所述接收模块进一步用于: 接收所述终端发送的剩余响应的获取请求, 所 述获取请求包含所述第一响应消息中携带的所述地址;
所述发送模块进一步用于: 根据所述地址,将存储在所述地址指示位置的 响应发送给所述终端。
28、 如权利要求 27所述群组服务器, 其特征在于,
所述确定模块进一步用于确定所述存储的响应的数量大于所述最大数量 参数指示的数量;所述发送模块将存储在所述地址指示位置的响应发送给所述 终端具体为: 向所述终端发送第四响应消息, 所述第四响应消息中包括存储在 所述用于地址指示位置的所述最大数量参数指示的数量的响应,以及包括所述 地址;或
所述确定模块进一步用于确定所述存储的响应的数量小于所述最大数量 参数指示的数量, 以及确定所述对成员资源的操作请求的响应全部被接收;所 述发送模块将存储在所述地址指示位置的响应发送给所述终端具体为:向所述 终端发送第五响应消息, 所述第五响应消息中包括: 存储在所述地址指示位置 的所有口向应;或
所述确定模块进一步用于确定所述存储的响应的数量小于所述最大数量 参数指示的数量,以及确定所述对成员资源的操作请求的响应没有全部被接收; 所述发送模块将存储在所述地址指示位置的响应发送给所述终端具体为:向所 述终端发送第四响应消息,所述第四响应消息中包括存储在所述用于地址指示 位置的所有响应, 以及所述地址;或
所述确定模块进一步用于确定所述存储的响应的数量大于所述最小数量 参数指示的数量且确定所述对成员资源的操作请求的响应全部被接收; 所述 发送模块将存储在所述地址指示位置的响应发送给所述终端具体为:向所述终 端发送第五响应消息, 所述第五响应消息中包括: 存储在所述地址指示位置的 所有口向应;或
所述确定模块进一步用于确定所述存储的响应的数量大于所述最小数量 参数指示的数量, 且确定所述对成员资源的操作请求的响应没有全部被接收; 所述发送模块将存储在所述地址指示位置的响应发送给所述终端具体为:向所 述终端发送第四响应消息,所述第四响应消息中包括存储在所述地址指示位置 的所有响应, 以及所述地址;或
所述确定模块进一步用于确定所述存储的响应的数量小于所述最小数量 参数指示的数量; 所述发送模块将存储在所述地址指示位置的响应发送给所 述终端具体为: 向所述终端发送第六响应消息, 所述第六响应消息中包括所述 地址以及不包括存储的响应。
29、 如权利要求 21-28任一所述群组服务器, 其特征在于, 所述对群组资 源中的成员资源的操作请求包含成员资源所属群组资源的标识和扩展子群组 参数;
所述确定模块进一步用于,根据所述群组资源的标识确定所述群组资源包 含子群组成员;
所述发送模块向所述成员资源所属的成员设备发送对成员资源的操作请 求具体为: 当所述确定模块确定所述扩展子群组参数的取值为真时,将所述响 应模式参数设置为分批返回携带在发给所述子群组成员的对成员资源的操作 请求中;或, 当所述确定模块确定所述扩展子群组参数的取值为假时, 在发送 在发给所述子群组成员的对成员资源的操作请求中携带最小数量参数,所述最 小数量参数值为全部携带。
30、 如权利要求 21-28任一所述群组服务器, 其特征在于, 在所述接收模 块接收所述群组资源的第一部分成员设备返回的所述对成员资源的操作请求 的响应之后,
所述确定模块进一步用于:
确定返回所述对成员资源的操作请求的响应的成员设备为所述群组资源 的子群组资源所在的设备; 以及
确定所述响应没有携带所述用于获取子群组资源的剩余响应的地址,并包 含所述子群组资源的成员资源所属的成员设备返回的响应;或, 确定所述响应 所述存储模块进一步用于当所述确定模块确定所述响应携带了所述用于 获取子群组资源的剩余响应的地址时,将所述用于获取子群组资源的响应的地 址和所述操作请求映射存储。
31、 一种群组服务器, 其特征在于, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括响应模式参数, 所述响应模式参数 为一次返回;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应;
所述发送模块进一步用于根据所述响应模式参数为一次返回,向发送对成 员资源的操作请求的终端发送第二响应消息,所述第二响应消息中包含所述第 一部分成员设备返回的响应中的至少一条响应。
32、 如权利要求 31所述群组服务器, 其特征在于, 所述群组服务器还包括 获取模块,所述获取模块用于从所述对群组资源中的成员资源的操作请求中获 取响应消息发送时间;或, 所述获取模块用于从所述对群组资源中的成员资源 的操作请求中的群组标识所标识的群组资源的属性中获取响应消息发送时间; 以及确定到达所述响应消息发送时间; 所述确定模块进一步用于确定到达所述所述响应消息发送时间; 所述发送模块向所述终端发送第二响应消息具体为:当所述确定模块确定 到达所述响应消息发送时间时, 向所述终端发送所述第二响应消息。
33、 一种群组服务器, 其特征在于, 包括:
接收模块, 用于接收终端发送的对群组资源中的成员资源的操作请求; 发送模块,用于向所述成员资源所属的成员设备发送对成员资源的操作请 求;
确定模块,用于确定所述对群组资源中的成员资源的操作请求的响应消息 的返回参数, 所述响应消息的返回参数包括最小数量参数;
所述接收模块进一步用于接收所述群组资源的第一部分成员设备返回的 所述对成员资源的操作请求的响应;
所述确定模块进一步用于确定所述第一部分成员设备返回的响应的数量 小于所述最小数量参数指示的数量;
所述发送模块进一步用于向所述终端发送不包含所述第一部分成员设备 返回的响应的第三响应消息,所述第三响应消息中包括用于获取剩余响应的地 址。
34、 如权利要求 33所述群组服务器, 其特征在于, 所述响应消息的返回参 数进一步包括响应模式参数, 所述响应模式参数具体为一次返回或分批返回; 或,所述响应消息的返回参数进一步包括响应模式参数和最大数量参数, 所述 响应模式参数具体为一次返回或分批返回;
所述群组服务器进一步包括存储模块;
所述存储模块用于将所述第一部分成员设备返回的响应存储在所述地址 指示的位置;
所述接收模块进一步用于接收所述群组资源的第二部分成员设备返回的 所述对成员资源的操作请求的响应;
所述确定模块进一步用于确定所述第二部分成员设备返回的响应所对应 的操作请求已向所述终端发送过第三响应消息;
所述存储模块进一步用于将所述第二部分成员设备返回的响应存储在所 述地址指示的位置。
35、 如权利要求 34所述群组服务器, 其特征在于,
所述接收模块进一步用于接收剩余响应的获取请求,所述剩余响应的获取 请求包含所述地址;
所述发送模块进一步用于根据所述地址,将存储在所述地址指示位置的响 应发送给所述终端。
36、 如权利要求 35所述群组服务器, 其特征在于,
所述确定模块进一步用于确定所述响应模式参数为一次返回,且所述存储 的响应的数量大于所述最小数量参数指示的数量;所述发送模块将存储在所述 地址指示位置的响应发送给所述终端具体为: 向所述终端发送第五响应消息, 所述第五响应消息中包括存储在所述地址指示位置的所有响应; 或
所述确定模块进一步用于确定所述响应模式参数为一次返回,且所述存储 的响应的数量大于所述最大数量参数指示的数量; 所述发送模块将存储在所 述地址指示位置的响应发送给所述终端具体为:向所述终端发送所述第五响应 消息,所述第五响应消息中包括存储在所述地址指示位置的所述最大数量参数 指示的数量的响应;或
所述确定模块进一步用于确定所述响应模式参数为分批返回,且所述存储 的响应的数量大于所述最大数量参数指示的数量; 所述发送模块将存储在所 述地址指示位置的响应发送给所述终端具体为:向所述终端发送所述第四响应 消息,所述第四响应消息中包括存储在所述地址的所述最大数量参数指示的数 量的的响应, 以及所述地址。
37、 一种终端, 其特征在于, 包括
发送模块, 用于向群组服务器发送对群组资源中成员资源的操作请求; 接收模块,用于接收所述群组服务器发送的所述对群组资源中的成员资源 的操作请求的响应消息,所述群组资源中的成员资源的操作请求的响应消息包 含用于获取剩余响应的地址;
所述发送模块进一步用于根据所述地址向所述群组服务器发送剩余响应 的获取请求; 所述接收模块进一步用于接收所述群组服务器发送的针对所述获取请求 的响应消息,所述针对所述获取请求的响应消息包含所述群组服务器存储在所 述地址指示位置的响应。
PCT/CN2014/082259 2014-07-15 2014-07-15 对群组资源中成员资源的操作请求的处理方法及装置 WO2016008102A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/082259 WO2016008102A1 (zh) 2014-07-15 2014-07-15 对群组资源中成员资源的操作请求的处理方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/082259 WO2016008102A1 (zh) 2014-07-15 2014-07-15 对群组资源中成员资源的操作请求的处理方法及装置

Publications (1)

Publication Number Publication Date
WO2016008102A1 true WO2016008102A1 (zh) 2016-01-21

Family

ID=55077804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082259 WO2016008102A1 (zh) 2014-07-15 2014-07-15 对群组资源中成员资源的操作请求的处理方法及装置

Country Status (1)

Country Link
WO (1) WO2016008102A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049679A (zh) * 2019-12-02 2020-04-21 深圳市智微智能软件开发有限公司 服务器的告警方法及系统

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469136A (zh) * 2010-11-17 2012-05-23 中兴通讯股份有限公司 一种聊天会话增加参与者和获取参与者列表的方法及系统
CN103200209A (zh) * 2012-01-06 2013-07-10 华为技术有限公司 成员资源的访问方法、群组服务器和成员设备
CN103297468A (zh) * 2012-02-29 2013-09-11 华为技术有限公司 针对群组资源的操作方法、群组服务器
CN103503358A (zh) * 2013-02-26 2014-01-08 华为终端有限公司 一种群组资源交互消息的方法及其装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469136A (zh) * 2010-11-17 2012-05-23 中兴通讯股份有限公司 一种聊天会话增加参与者和获取参与者列表的方法及系统
CN103200209A (zh) * 2012-01-06 2013-07-10 华为技术有限公司 成员资源的访问方法、群组服务器和成员设备
CN103297468A (zh) * 2012-02-29 2013-09-11 华为技术有限公司 针对群组资源的操作方法、群组服务器
CN103503358A (zh) * 2013-02-26 2014-01-08 华为终端有限公司 一种群组资源交互消息的方法及其装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111049679A (zh) * 2019-12-02 2020-04-21 深圳市智微智能软件开发有限公司 服务器的告警方法及系统

Similar Documents

Publication Publication Date Title
JP6514315B2 (ja) マシン対マシンネットワークにおけるリソースおよび属性管理
JP2017529793A5 (zh)
US8069251B2 (en) System and/or method for client-driven server load distribution
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
JP2019537768A5 (zh)
US20150134727A1 (en) Cloud-based data server providing home appliance management service and method thereof
JP2016541158A5 (zh)
JP2017538179A5 (zh)
KR102208935B1 (ko) 데이터 교환을 위한 컨텍스트를 설정하는 http 프로토콜을 통한 메시징 api
JP2016103829A5 (zh)
US20160285820A1 (en) Method for processing address resolution protocol message, switch, and controller
JP2018504817A5 (zh)
WO2014067311A1 (zh) 资源订阅方法及装置
KR101711462B1 (ko) 기기 간 통신 중 그룹 관리를 위한 방법 및 장치
CN115004673B (zh) 消息推送方法、装置、电子设备及计算机可读介质
WO2019218479A1 (zh) 一种信息的发送方法及设备
WO2014179950A1 (zh) 一种文件上传方法、客户端和服务端
WO2015192466A1 (zh) 一种通知消息发送方法及装置、计算机存储介质
US11736557B1 (en) Copying and pasting between devices
US8055782B2 (en) System and method for generating exception delay messages when messages are delayed
WO2015117362A1 (zh) 终端上个人信息的共享方法及装置
WO2017005118A1 (zh) 维持通信连接的方法、装置、终端及服务器
KR20120138546A (ko) 분산 네트워크에서 우선순위에 기반한 디스커버리를 수행하는 장치 및 방법과, 디스커버리 백오프 타임 결정 방법
WO2016008102A1 (zh) 对群组资源中成员资源的操作请求的处理方法及装置
WO2017136979A1 (zh) 一种远程访问的实现方法、装置和系统

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: 14897791

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14897791

Country of ref document: EP

Kind code of ref document: A1