CN103532932B - A capability opening system, business processing method and device - Google Patents
A capability opening system, business processing method and device Download PDFInfo
- Publication number
- CN103532932B CN103532932B CN201310443328.6A CN201310443328A CN103532932B CN 103532932 B CN103532932 B CN 103532932B CN 201310443328 A CN201310443328 A CN 201310443328A CN 103532932 B CN103532932 B CN 103532932B
- Authority
- CN
- China
- Prior art keywords
- service
- usage
- specified
- business
- usage information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种能力开放系统、业务处理方法及设备。The present invention relates to the field of information technology, in particular to a capability opening system, a service processing method and equipment.
背景技术Background technique
能力开放平台是一个将业务能力接口化出来,对外提供开放性的应用程序编程接口(Application Programming Interface,API)的平台。通过能力开放平台,能力使能端无需关注公共处理逻辑的开发,只需关注业务本身。公共处理逻辑可以由能力开放平台来统一完成。The capability exposure platform is a platform that interfaces business capabilities and provides an open application programming interface (Application Programming Interface, API). Through the capability open platform, the capability enabler does not need to pay attention to the development of public processing logic, but only needs to pay attention to the business itself. The public processing logic can be unified by the capability exposure platform.
以高考查分系统为例,考生信息和高考分数所在的服务器为能力使能端,在开发高考查分系统时,能力使能端通过API接口将考生信息与对应分数返回给能力开放平台,能力开放平台完成用户接入认证鉴权、接入流量控制、数据格式校验、接口协议转换、计费结算等处理。Taking the college entrance examination scoring system as an example, the server where the examinee information and college entrance examination scores are located is the capability enabler. When developing the college entrance examination score system, the capability enabler returns the examinee information and corresponding scores to the capability open platform through the API interface. The capability open platform Complete user access authentication, access flow control, data format verification, interface protocol conversion, billing and settlement, etc.
图1为通常的用户、能力开放平台和能力使能端的关系示意图。如图1所示,用户可以通过个人电脑、平板电脑、手机应用等多种形式,调用能力开放平台的开放API,能力开放平台进行用户校验、流量控制、数据格式校验、接口协议转换、计费结算等,能力开放平台将消息发给能力使能端,由能力使能端提供具体的能力供用户使用。FIG. 1 is a schematic diagram of the relationship between a common user, a capability opening platform, and a capability enabler. As shown in Figure 1, users can call the open API of the capability openness platform through various forms such as personal computers, tablet computers, and mobile phone applications. The capability openness platform performs user verification, flow control, data format verification, interface protocol conversion, For billing and settlement, etc., the capability opening platform sends messages to the capability enabler, and the capability enabler provides specific capabilities for users to use.
能力开放平台不仅可以开放互联网能力,还可以开放电信运营商的电信能力。图2为一种典型的能力开放平台在电信网络中的位置示意图。如图2所示,能力开放平台可建设在电信运营商内部,与结算设备、网管设备、电信能力使能端、互联网能力使能端存在接口,用户通过互联网或电信网络访问能力开放平台。图2中,虚线内为电信运营商的网络设备。能力开放平台作为电信网络中的网元,与其他网元直接的接口及接口协议如表1所示。The capability opening platform can not only open Internet capabilities, but also open telecom operators' telecom capabilities. Fig. 2 is a schematic diagram of the position of a typical capability opening platform in a telecommunication network. As shown in Figure 2, the capability openness platform can be built inside the telecom operator, and has interfaces with the settlement equipment, network management equipment, telecom capability enabler, and Internet capability enabler, and users access the capability openness platform through the Internet or telecommunication network. In FIG. 2 , the network equipment of the telecom operator is inside the dotted line. As a network element in the telecommunication network, the capability exposure platform has direct interfaces and interface protocols with other network elements as shown in Table 1.
表1Table 1
在图3所示的处理流程中,能力开放平台在收到用户终端发出的建立会议的请求后,向电话会议处理系统发送建立会议的请求,在电话会议建立后,周期性地对业务进行扣费。在收到用户终端发送的关闭会议的请求后,向电话会议处理系统发送关闭业务的请求,并结束逻辑会话。在上述业务处理流程中,需要能力开放平台理解业务的具体含义(比如:费率、计费方式等),才能实现对电话会议的正确扣费等操作。增加了能力开放平台的处理负荷,对能力开放平台的业务处理能力要求较高。In the processing flow shown in Figure 3, after receiving the conference establishment request from the user terminal, the capability exposure platform sends the conference establishment request to the teleconference processing system, and periodically deducts the service after the teleconference is established. fee. After receiving the request for closing the conference sent by the user terminal, send the request for closing the service to the teleconference processing system, and end the logical session. In the above-mentioned business processing process, it is necessary for the capability exposure platform to understand the specific meaning of the business (such as: rate, billing method, etc.), in order to realize the correct deduction of fees for conference calls and other operations. The processing load of the capability opening platform is increased, and the service processing capability of the capability opening platform is required to be relatively high.
当能力开放平台作为一个通用的开放平台时,会开放成千上万的业务能力,此时,对能力开放平台的业务处理能力提出了更高的要求,会导致能力开放平台的业务处理负荷较大。When the capability opening platform is used as a general open platform, thousands of business capabilities will be opened. At this time, higher requirements are put forward for the business processing capability of the capability opening platform, which will lead to a heavier business processing load on the capability opening platform. big.
发明内容Contents of the invention
本发明实施例提供一种能力开放系统、业务处理方法及设备,用以解决现有技术中能力开放平台的业务处理负荷较大的问题。Embodiments of the present invention provide a capability opening system, a service processing method, and equipment to solve the problem in the prior art that the service processing load of a capability opening platform is relatively large.
第一方面,提供一种业务处理的方法,包括:In the first aspect, a method for business processing is provided, including:
能力开放平台针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备;The capability opening platform determines a service processing device capable of providing service usage information of the specified service for a specified service;
所述能力开放平台向所述确定的业务处理设备发送用于获取所述规定业务的使用情况信息的业务使用情况信息请求;The capability opening platform sends a service usage information request for obtaining usage information of the specified service to the determined service processing device;
所述能力开放平台接收所述业务处理设备响应所述业务使用情况信息请求提供的所述规定业务的业务使用情况信息;The capability opening platform receives the service usage information of the specified service provided by the service processing device in response to the service usage information request;
所述能力开放平台根据接收的所述业务使用情况信息,在确定所述规定业务的使用量达到针对所述规定业务设定的使用量后,对所述规定业务进行处理。The capability opening platform processes the prescribed service after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the received service usage information.
结合第一方面,在第一种可能的实现方式中,所述能力开放平台对所述规定业务进行处理包括:With reference to the first aspect, in a first possible implementation manner, the processing of the specified service by the capability opening platform includes:
所述能力开放平台根据接收的所述业务使用情况信息更新所述规定业务的业务使用情况。The capability opening platform updates the service usage of the specified service according to the received service usage information.
结合第一方面,在第二种可能的实现方式中,所述能力开放平台对所述规定业务进行处理包括:With reference to the first aspect, in a second possible implementation manner, the processing of the specified service by the capability opening platform includes:
所述能力开放平台向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;The capability opening platform sends a notification message to the service processing device for notifying that the usage of the specified service has reached the usage set for the specified service;
所述能力开放平台接收所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息;The capability opening platform receives a confirmation message fed back by the service processing device according to the notification message for confirming to close the specified service;
所述能力开放平台向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。The capability opening platform sends a closing request for requesting to close the specified service to the capability enabling terminal running the specified service, and instructs the capability enabling terminal to close the specified service.
结合第一方面,在第三种可能的实现方式中,所述能力开放平台针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备,包括:In combination with the first aspect, in a third possible implementation manner, the capability opening platform determines a service processing device capable of providing service usage information of the specified service for a specified service, including:
所述能力开放平台针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, the capability opening platform determines a service processing device capable of providing service usage information of the specified service according to address information in an application programming interface API used to establish the specified service.
结合第一方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the first aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面、第一方面的第一种可能的实现方式,在第五种可能的实现方式中,所述能力开放平台对所述规定业务进行处理包括:In combination with the first aspect and the first possible implementation of the first aspect, in a fifth possible implementation, the processing of the specified service by the capability opening platform includes:
所述能力开放平台向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;The capability opening platform sends a notification message to the service processing device for notifying that the usage of the specified service has reached the usage set for the specified service;
所述能力开放平台接收所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息;The capability opening platform receives a confirmation message fed back by the service processing device according to the notification message for confirming to close the specified service;
所述能力开放平台向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。The capability opening platform sends a closing request for requesting to close the specified service to the capability enabling terminal running the specified service, and instructs the capability enabling terminal to close the specified service.
结合第一方面,第一方面的第一种可能的实现方式,在第六种可能的实现方式中,所述能力开放平台针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备,包括:With reference to the first aspect, and the first possible implementation of the first aspect, in a sixth possible implementation, the capability exposure platform, for a specified service, determines the Business processing equipment, including:
所述能力开放平台针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, the capability opening platform determines a service processing device capable of providing service usage information of the specified service according to address information in an application programming interface API used to establish the specified service.
结合第一方面,第一方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the first aspect and the first possible implementation manner of the first aspect, in a seventh possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面,第一方面的第二种可能的实现方式,在第八种可能的实现方式中,所述能力开放平台针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备,包括:With reference to the first aspect and the second possible implementation of the first aspect, in an eighth possible implementation, the capability exposure platform determines, for a specified service, that it can provide the service usage information of the specified service Business processing equipment, including:
所述能力开放平台针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, the capability opening platform determines a service processing device capable of providing service usage information of the specified service according to address information in an application programming interface API used to establish the specified service.
结合第一方面,第一方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the first aspect and the second possible implementation manner of the first aspect, in a ninth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面,第一方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the first aspect, and the third possible implementation manner of the first aspect, in a tenth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述能力开放平台针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备,包括:In combination with the first aspect, the first possible implementation of the first aspect, and the second possible implementation of the first aspect, in an eleventh possible implementation, the capability exposure platform targets a specified service, Determine the service processing equipment that can provide the service usage information of the specified service, including:
所述能力开放平台针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, the capability opening platform determines a service processing device capable of providing service usage information of the specified service according to address information in an application programming interface API used to establish the specified service.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the first aspect, the first possible implementation of the first aspect, and the second possible implementation of the first aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面、第一方面的第一种可能的实现方式、第一方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the first aspect, the first possible implementation of the first aspect, and the third possible implementation of the first aspect, in a thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第一方面、第一方面的第二种可能的实现方式、第一方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the first aspect, the second possible implementation of the first aspect, and the third possible implementation of the first aspect, in a fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
第二方面,本发明实施例提供另一种业务处理的方法,包括:In the second aspect, the embodiment of the present invention provides another business processing method, including:
业务处理设备接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;The business processing equipment receives the service usage information request sent by the capability opening platform for obtaining the usage information of the specified business;
所述业务处理设备根据预设的业务与业务规则的对应关系,确定所述规定业务对应的业务规则;The service processing device determines the business rules corresponding to the specified services according to the preset correspondence between services and business rules;
所述业务处理设备根据确定的业务规则,确定所述规定业务的业务使用情况信息;The service processing device determines the service usage information of the specified service according to the determined service rule;
所述业务处理设备将确定的所述业务使用情况信息发送给所述能力开放平台。The service processing device sends the determined service usage information to the capability opening platform.
结合第二方面,在第一种可能的实现方式中,所述业务处理设备根据预设的业务与业务规则的对应关系,确定所述规定业务对应的业务规则,包括:With reference to the second aspect, in a first possible implementation manner, the service processing device determines the service rule corresponding to the specified service according to the preset correspondence between the service and the service rule, including:
所述业务处理设备根据预设的业务、用户标识与业务规则的对应关系,基于所述业务使用情况信息请求中包括的所述规定业务对应的用户的用户标识确定所述规定业务的业务规则。The service processing device determines the business rule of the specified service based on the user ID of the user corresponding to the specified service included in the service usage information request according to the preset correspondence between the service, the user ID and the business rule.
结合第二方面,在第二种可能的实现方式中,所述业务处理设备根据确定的业务规则,确定所述规定业务的业务使用情况信息,包括:With reference to the second aspect, in a second possible implementation manner, the service processing device determines the service usage information of the specified service according to the determined service rule, including:
所述业务处理设备向用于监控所述规定业务的业务使用情况的监控设备发送查询请求;The service processing device sends a query request to a monitoring device for monitoring the service usage of the specified service;
所述业务处理设备根据所述监控设备返回的所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The service processing device determines the service usage information of the prescribed service according to the service usage status of the prescribed service returned by the monitoring device and the determined service rules.
结合第二方面,在第三种可能的实现方式中,所述业务处理设备将确定的所述业务使用情况信息发送给所述能力开放平台之后,所述方法还包括:With reference to the second aspect, in a third possible implementation manner, after the service processing device sends the determined service usage information to the capability opening platform, the method further includes:
所述业务处理设备接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;receiving, by the service processing device, the information for notifying the prescribed service sent by the capability opening platform after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information; A notification message that the usage amount reaches the usage amount set for the specified service;
所述业务处理设备根据所述通知消息确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。After the service processing device determines that the specified service needs to be closed according to the notification message, it sends a confirmation message for confirming to close the specified service to the capability opening platform.
结合第二方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the second aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面、第二方面的第一种可能的实现方式,在第五种可能的实现方式中,所述业务处理设备根据确定的业务规则,确定所述规定业务的业务使用情况信息,包括:With reference to the second aspect and the first possible implementation manner of the second aspect, in a fifth possible implementation manner, the service processing device determines the service usage information of the specified service according to the determined service rules, including :
所述业务处理设备向用于监控所述规定业务的业务使用情况的监控设备发送查询请求;The service processing device sends a query request to a monitoring device for monitoring the service usage of the specified service;
所述业务处理设备根据所述监控设备返回的所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The service processing device determines the service usage information of the prescribed service according to the service usage status of the prescribed service returned by the monitoring device and the determined service rules.
结合第二方面,第二方面的第一种可能的实现方式,在第六种可能的实现方式中,所述业务处理设备将确定的所述业务使用情况信息发送给所述能力开放平台之后,所述方法还包括:With reference to the second aspect and the first possible implementation manner of the second aspect, in a sixth possible implementation manner, after the service processing device sends the determined service usage information to the capability opening platform, The method also includes:
所述业务处理设备接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;receiving, by the service processing device, the information for notifying the prescribed service sent by the capability opening platform after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information; A notification message that the usage amount reaches the usage amount set for the specified service;
所述业务处理设备根据所述通知消息确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。After the service processing device determines that the specified service needs to be closed according to the notification message, it sends a confirmation message for confirming to close the specified service to the capability opening platform.
结合第二方面,第二方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the second aspect and the first possible implementation manner of the second aspect, in a seventh possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面,第二方面的第二种可能的实现方式,在第八种可能的实现方式中,所述业务处理设备将确定的所述业务使用情况信息发送给所述能力开放平台之后,所述方法还包括:With reference to the second aspect and the second possible implementation of the second aspect, in an eighth possible implementation, after the service processing device sends the determined service usage information to the capability opening platform, The method also includes:
所述业务处理设备接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;receiving, by the service processing device, the information for notifying the prescribed service sent by the capability opening platform after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information; A notification message that the usage amount reaches the usage amount set for the specified service;
所述业务处理设备根据所述通知消息确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。After the service processing device determines that the specified service needs to be closed according to the notification message, it sends a confirmation message for confirming to close the specified service to the capability opening platform.
结合第二方面,第二方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the second aspect and the second possible implementation manner of the second aspect, in a ninth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面,第二方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the second aspect and the third possible implementation manner of the second aspect, in a tenth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述业务处理设备将确定的所述业务使用情况信息发送给所述能力开放平台之后,所述方法还包括:With reference to the second aspect, the first possible implementation of the second aspect, and the second possible implementation of the second aspect, in an eleventh possible implementation, the service processing device will determine the After the service usage information is sent to the capability opening platform, the method further includes:
所述业务处理设备接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;receiving, by the service processing device, the information for notifying the prescribed service sent by the capability opening platform after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information; A notification message that the usage amount reaches the usage amount set for the specified service;
所述业务处理设备根据所述通知消息确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。After the service processing device determines that the specified service needs to be closed according to the notification message, it sends a confirmation message for confirming to close the specified service to the capability opening platform.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the second aspect, the first possible implementation of the second aspect, and the second possible implementation of the second aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面、第二方面的第一种可能的实现方式、第二方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the second aspect, the first possible implementation of the second aspect, and the third possible implementation of the second aspect, in a thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第二方面、第二方面的第二种可能的实现方式、第二方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the second aspect, the second possible implementation of the second aspect, and the third possible implementation of the second aspect, in a fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
第三方面,本发明实施例提供一种能力开放平台,包括:In a third aspect, an embodiment of the present invention provides a capability opening platform, including:
第一处理模块,用于针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备;The first processing module is configured to, for a specified service, determine a service processing device capable of providing service usage information of the specified service;
发送模块,用于向所述第一处理模块确定的所述业务处理设备发送用于获取所述规定业务的使用情况信息的业务使用情况信息请求;A sending module, configured to send a service usage information request for acquiring usage information of the prescribed service to the service processing device determined by the first processing module;
接收模块,用于接收所述业务处理设备响应所述业务使用情况信息请求提供的所述规定业务的业务使用情况信息;A receiving module, configured to receive the service usage information of the specified service provided by the service processing device in response to the service usage information request;
第二处理模块,用于根据所述接收模块接收的所述业务使用情况信息,在确定所述规定业务的使用量达到针对所述规定业务设定的使用量后,对所述规定业务进行处理。The second processing module is configured to process the prescribed service after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information received by the receiving module .
结合第三方面,在第一种可能的实现方式中,所述第二处理模块具体用于:With reference to the third aspect, in a first possible implementation manner, the second processing module is specifically configured to:
在根据所述接收模块接收的所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,根据所述接收模块接收的业务使用情况信息更新所述规定业务的业务使用情况。After determining according to the service usage information received by the receiving module that the usage amount of the specified service has reached the usage amount set for the specified service, update the regulation according to the service usage information received by the receiving module The business usage of the business.
结合第三方面,在第二种可能的实现方式中,所述第二处理模块具体用于:With reference to the third aspect, in a second possible implementation manner, the second processing module is specifically configured to:
在确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;接收所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息;向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。After determining that the usage amount of the prescribed service reaches the usage amount set for the prescribed service, send a notification to the service processing device that the usage amount of the prescribed service reaches the usage amount set for the prescribed service. receiving a notification message from the service processing device according to the notification message for confirming to close the specified service; sending a request to close the specified service to the capability enabling terminal running the specified service A close request, instructing the capability enabler to close the specified service.
结合第三方面,在第三种可能的实现方式中,所述第一处理模块具体用于:With reference to the third aspect, in a third possible implementation manner, the first processing module is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第三方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the third aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面、第三方面的第一种可能的实现方式,在第五种可能的实现方式中,所述第二处理模块具体用于:In combination with the third aspect and the first possible implementation manner of the third aspect, in a fifth possible implementation manner, the second processing module is specifically configured to:
在确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;接收所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息;向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。After determining that the usage amount of the prescribed service reaches the usage amount set for the prescribed service, send a notification to the service processing device that the usage amount of the prescribed service reaches the usage amount set for the prescribed service. receiving a notification message from the service processing device according to the notification message for confirming to close the specified service; sending a request to close the specified service to the capability enabling terminal running the specified service A close request, instructing the capability enabler to close the specified service.
结合第三方面,第三方面的第一种可能的实现方式,在第六种可能的实现方式中,所述第一处理模块具体用于:With reference to the third aspect and the first possible implementation manner of the third aspect, in a sixth possible implementation manner, the first processing module is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第三方面,第三方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the third aspect, and the first possible implementation manner of the third aspect, in a seventh possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面,第三方面的第二种可能的实现方式,在第八种可能的实现方式中,所述第一处理模块具体用于:With reference to the third aspect and the second possible implementation of the third aspect, in an eighth possible implementation, the first processing module is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第三方面,第三方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the third aspect, the second possible implementation manner of the third aspect, in a ninth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面,第三方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the third aspect, the third possible implementation manner of the third aspect, in the tenth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面、第三方面的第一种可能的实现方式、第三方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述第一处理模块具体用于:In combination with the third aspect, the first possible implementation of the third aspect, and the second possible implementation of the third aspect, in an eleventh possible implementation, the first processing module is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第三方面、第三方面的第一种可能的实现方式、第三方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the third aspect, the first possible implementation of the third aspect, and the second possible implementation of the third aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面、第三方面的第一种可能的实现方式、第三方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the third aspect, the first possible implementation of the third aspect, and the third possible implementation of the third aspect, in a thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第三方面、第三方面的第二种可能的实现方式、第三方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the third aspect, the second possible implementation of the third aspect, and the third possible implementation of the third aspect, in a fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
第四方面,本发明实施例提供一种业务处理设备,包括:In a fourth aspect, an embodiment of the present invention provides a service processing device, including:
接收模块,用于接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;A receiving module, configured to receive a service usage information request sent by the capability opening platform for obtaining usage information of specified services;
第一确定模块,用于根据预设的业务与业务规则的对应关系,确定所述规定业务对应的业务规则;The first determining module is configured to determine the business rule corresponding to the specified business according to the preset correspondence between the business and the business rule;
第二确定模块,用于根据所述第一确定模块确定的业务规则,确定所述规定业务的业务使用情况信息;A second determining module, configured to determine the service usage information of the prescribed service according to the business rules determined by the first determining module;
发送模块,用于将所述业务使用情况信息确定模块确定的所述业务使用情况信息发送给所述能力开放平台。A sending module, configured to send the service usage information determined by the service usage information determining module to the capability opening platform.
结合第四方面,在第一种可能的实现方式中,所述第一确定模块具体用于:With reference to the fourth aspect, in a first possible implementation manner, the first determination module is specifically configured to:
根据预设的业务、用户标识与业务规则的对应关系,基于所述接收模块接收的所述业务使用情况信息请求中包括的所述规定业务对应的用户的用户标识确定所述规定业务的业务规则。According to the preset corresponding relationship between services, user identifiers and business rules, determine the business rules of the prescribed services based on the user identifiers of the users corresponding to the prescribed services included in the service usage information request received by the receiving module .
结合第四方面,在第二种可能的实现方式中,所述发送模块还用于:With reference to the fourth aspect, in a second possible implementation manner, the sending module is further configured to:
向用于监控所述规定业务的业务使用情况的监控设备发送查询请求;sending a query request to a monitoring device for monitoring the service usage of the prescribed service;
所述接收模块还用于:接收所述监控设备返回的所述规定业务的业务使用情况;The receiving module is further configured to: receive the service usage status of the specified service returned by the monitoring device;
所述第二确定模块具体用于:根据所述接收模块接收的所述监控设备返回的所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The second determining module is specifically configured to: determine the service usage information of the prescribed service according to the service usage status of the prescribed service returned by the monitoring device received by the receiving module and the determined business rules.
结合第四方面,在第三种可能的实现方式中,所述接收模块还用于:With reference to the fourth aspect, in a third possible implementation manner, the receiving module is further configured to:
在所述发送模块将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,发送的用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;After the sending module sends the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the specified service setting according to the service usage information. After the specified amount of usage, the notification message sent for notifying that the usage amount of the specified service has reached the usage amount set for the specified service;
所述设备还包括第三确定模块,用于根据所述接收模块接收的所述通知消息确定需要关闭所述规定业务;The device also includes a third determining module, configured to determine that the specified service needs to be closed according to the notification message received by the receiving module;
所述发送模块还用于,在所述第三确定模块确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。The sending module is further configured to, after the third determining module determines that the prescribed service needs to be closed, send a confirmation message for confirming closing the prescribed service to the capability opening platform.
结合第四方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fourth aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面、第四方面的第一种可能的实现方式,在第五种可能的实现方式中,所述发送模块还用于:In combination with the fourth aspect and the first possible implementation manner of the fourth aspect, in a fifth possible implementation manner, the sending module is further configured to:
向用于监控所述规定业务的业务使用情况的监控设备发送查询请求;sending a query request to a monitoring device for monitoring the service usage of the prescribed service;
所述接收模块还用于:接收所述监控设备返回的所述规定业务的业务使用情况;The receiving module is further configured to: receive the service usage status of the specified service returned by the monitoring device;
所述第二确定模块具体用于:根据所述接收模块接收的所述监控设备返回的所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The second determining module is specifically configured to: determine the service usage information of the prescribed service according to the service usage status of the prescribed service returned by the monitoring device received by the receiving module and the determined business rules.
结合第四方面,第四方面的第一种可能的实现方式,在第六种可能的实现方式中,所述接收模块还用于:With reference to the fourth aspect and the first possible implementation manner of the fourth aspect, in a sixth possible implementation manner, the receiving module is further configured to:
在所述发送模块将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,发送的用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;After the sending module sends the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the specified service setting according to the service usage information. After the specified amount of usage, the notification message sent for notifying that the usage amount of the specified service has reached the usage amount set for the specified service;
所述设备还包括第三确定模块,用于根据所述接收模块接收的所述通知消息确定需要关闭所述规定业务;The device also includes a third determining module, configured to determine that the specified service needs to be closed according to the notification message received by the receiving module;
所述发送模块还用于,在所述第三确定模块确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。The sending module is further configured to, after the third determining module determines that the prescribed service needs to be closed, send a confirmation message for confirming closing the prescribed service to the capability opening platform.
结合第四方面,第四方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fourth aspect and the first possible implementation manner of the fourth aspect, in a seventh possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面,第四方面的第二种可能的实现方式,在第八种可能的实现方式中,所述接收模块还用于:With reference to the fourth aspect and the second possible implementation of the fourth aspect, in an eighth possible implementation, the receiving module is further configured to:
在所述发送模块将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,发送的用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;After the sending module sends the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the specified service setting according to the service usage information. After the specified amount of usage, the notification message sent for notifying that the usage amount of the specified service has reached the usage amount set for the specified service;
所述设备还包括第三确定模块,用于根据所述接收模块接收的所述通知消息确定需要关闭所述规定业务;The device also includes a third determining module, configured to determine that the specified service needs to be closed according to the notification message received by the receiving module;
所述发送模块还用于,在所述第三确定模块确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。The sending module is further configured to, after the third determining module determines that the prescribed service needs to be closed, send a confirmation message for confirming closing the prescribed service to the capability opening platform.
结合第四方面,第四方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fourth aspect and the second possible implementation manner of the fourth aspect, in a ninth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面,第四方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fourth aspect and the third possible implementation manner of the fourth aspect, in a tenth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面、第四方面的第一种可能的实现方式、第四方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述接收模块还用于:With reference to the fourth aspect, the first possible implementation of the fourth aspect, and the second possible implementation of the fourth aspect, in an eleventh possible implementation, the receiving module is further configured to:
在所述发送模块将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,发送的用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息;After the sending module sends the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the specified service setting according to the service usage information. After the specified amount of usage, the notification message sent for notifying that the usage amount of the specified service has reached the usage amount set for the specified service;
所述设备还包括第三确定模块,用于根据所述接收模块接收的所述通知消息确定需要关闭所述规定业务;The device also includes a third determining module, configured to determine that the specified service needs to be closed according to the notification message received by the receiving module;
所述发送模块还用于,在所述第三确定模块确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息。The sending module is further configured to, after the third determining module determines that the prescribed service needs to be closed, send a confirmation message for confirming closing the prescribed service to the capability opening platform.
结合第四方面、第四方面的第一种可能的实现方式、第四方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fourth aspect, the first possible implementation of the fourth aspect, and the second possible implementation of the fourth aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面、第四方面的第一种可能的实现方式、第四方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the fourth aspect, the first possible implementation of the fourth aspect, and the third possible implementation of the fourth aspect, in the thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第四方面、第四方面的第二种可能的实现方式、第四方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the fourth aspect, the second possible implementation of the fourth aspect, and the third possible implementation of the fourth aspect, in a fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
第五方面,本发明实施例提供又一种能力开放平台,包括:In the fifth aspect, the embodiment of the present invention provides another capability opening platform, including:
处理器,用于针对一个规定业务,确定能够提供所述规定业务的业务使用情况信息的业务处理设备,以及根据I/O装置接收的业务使用情况信息,在确定所述规定业务的使用量达到针对所述规定业务设定的使用量后,对所述规定业务进行处理;The processor is configured to, for a specified service, determine a service processing device capable of providing service usage information of the specified service, and according to the service usage information received by the I/O device, determine that the usage amount of the specified service reaches After setting the usage amount for the prescribed business, process the prescribed business;
I/O装置,用于向所述处理器确定的业务处理设备发送用于获取所述规定业务的使用情况信息的业务使用情况信息请求,以及接收所述业务处理设备响应所述业务使用情况信息请求提供的所述规定业务的业务使用情况信息。An I/O device, configured to send a service usage information request for obtaining usage information of the prescribed service to a service processing device determined by the processor, and receive a response from the service processing device to the service usage information Service usage information of the specified service requested.
结合第五方面,在第一种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, in a first possible implementation manner, the processor is specifically configured to:
在确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,根据所述I/O装置接收的所述业务使用情况信息更新所述规定业务的业务使用情况。After determining that the usage amount of the prescribed service reaches the usage amount set for the prescribed service, updating the service usage situation of the prescribed service according to the service usage information received by the I/O device.
结合第五方面,在第二种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, in a second possible implementation manner, the processor is specifically configured to:
在确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,通过所述I/O装置向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述I/O装置收到所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息后,通过所述I/O装置向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。After it is determined that the usage amount of the specified service reaches the usage amount set for the specified service, the I/O device sends a notification to the service processing device that the usage amount of the specified service reaches the usage amount set for the specified service. A notification message specifying the usage amount set by the service, and after the I/O device receives a confirmation message fed back by the service processing device according to the notification message for confirming that the specified service is closed, through the I/O device The /O device sends a close request for requesting to close the specified service to the capability enabling terminal running the specified service, and instructs the capability enabling terminal to close the specified service.
结合第五方面,在第三种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, in a third possible implementation manner, the processor is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第五方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fifth aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面、第五方面的第一种可能的实现方式,在第五种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect and the first possible implementation manner of the fifth aspect, in a fifth possible implementation manner, the processor is specifically configured to:
在确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后,通过所述I/O装置向所述业务处理设备发送用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述I/O装置收到所述业务处理设备根据所述通知消息反馈的用于确认关闭所述规定业务的确认消息后,通过所述I/O装置向运行所述规定业务的能力使能端发送用于请求关闭所述规定业务的关闭请求,指示所述能力使能端关闭所述规定业务。After it is determined that the usage amount of the specified service reaches the usage amount set for the specified service, the I/O device sends a notification to the service processing device that the usage amount of the specified service reaches the usage amount set for the specified service. A notification message specifying the usage amount set by the service, and after the I/O device receives a confirmation message fed back by the service processing device according to the notification message for confirming that the specified service is closed, through the I/O device The /O device sends a close request for requesting to close the specified service to the capability enabling terminal running the specified service, and instructs the capability enabling terminal to close the specified service.
结合第五方面,第五方面的第一种可能的实现方式,在第六种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, in a sixth possible implementation manner, the processor is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第五方面,第五方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fifth aspect, and the first possible implementation manner of the fifth aspect, in a seventh possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面,第五方面的第二种可能的实现方式,在第八种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, the second possible implementation manner of the fifth aspect, in an eighth possible implementation manner, the processor is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第五方面,第五方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fifth aspect, and the second possible implementation of the fifth aspect, in a ninth possible implementation, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面,第五方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fifth aspect and the third possible implementation manner of the fifth aspect, in a tenth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面、第五方面的第一种可能的实现方式、第五方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, and the second possible implementation manner of the fifth aspect, in an eleventh possible implementation manner, the processor is specifically configured to:
针对所述规定业务,根据用于建立所述规定业务的应用程序编程接口API中的地址信息,确定能够提供所述规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
结合第五方面、第五方面的第一种可能的实现方式、第五方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the fifth aspect, the first possible implementation of the fifth aspect, and the second possible implementation of the fifth aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面、第五方面的第一种可能的实现方式、第五方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the fifth aspect, the first possible implementation of the fifth aspect, and the third possible implementation of the fifth aspect, in a thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
结合第五方面、第五方面的第二种可能的实现方式、第五方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the fifth aspect, the second possible implementation of the fifth aspect, and the third possible implementation of the fifth aspect, in a fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
第六方面,本发明实施例提供又一种业务处理设备,包括:In a sixth aspect, the embodiment of the present invention provides yet another service processing device, including:
I/O装置,用于接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求,以及将所述处理器确定的所述规定业务的业务使用情况信息发送给所述能力开放平台;The I/O device is configured to receive a service usage information request sent by the capability opening platform for obtaining usage information of a specified service, and send the service usage information of the specified service determined by the processor to the specified service. open platform for the above-mentioned capabilities;
处理器,用于根据预设的业务与业务规则的对应关系,确定所述规定业务对应的业务规则,以及根据确定的业务规则,确定所述规定业务的业务使用情况信息。The processor is configured to determine the business rule corresponding to the specified service according to the preset correspondence between the service and the business rule, and determine the service usage information of the specified service according to the determined business rule.
结合第六方面,在第一种可能的实现方式中,所述处理器具体用于:With reference to the sixth aspect, in a first possible implementation manner, the processor is specifically configured to:
根据预设的业务、用户标识与业务规则的对应关系,基于所述I/O装置接收的所述业务使用情况信息请求中包括的所述规定业务对应的用户的用户标识确定所述规定业务的业务规则。According to the preset corresponding relationship between the service, the user identifier and the service rule, based on the user identifier of the user corresponding to the specified service included in the service usage information request received by the I/O device, determine the value of the specified service Business Rules.
结合第六方面,在第二种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect, in a second possible implementation manner, the I/O device is also used for:
向用于监控所述规定业务的业务使用情况的监控设备发送查询请求,以及接收所述监控设备返回的所述规定业务的业务使用情况;sending a query request to a monitoring device for monitoring the service usage of the specified service, and receiving the service usage of the specified service returned by the monitoring device;
所述处理器具体用于:根据所述I/O装置接收的、所述监控设备返回的、所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The processor is specifically configured to: determine the service usage information of the prescribed service according to the service usage status of the prescribed service received by the I/O device, returned by the monitoring device, and determined business rules.
结合第六方面,在第三种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect, in a third possible implementation manner, the I/O device is also used for:
在将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述处理器确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息;After sending the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information. The notification message sent later for notifying that the usage of the specified service has reached the usage set for the specified service, and after the processor determines that the specified service needs to be closed, send the notification message to the capability opening platform sending a confirmation message for confirming closing the specified service;
所述处理器还用于:根据所述I/O装置接收的所述通知消息确定需要关闭所述规定业务。The processor is further configured to: determine that the specified service needs to be closed according to the notification message received by the I/O device.
结合第六方面,在第四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the sixth aspect, in a fourth possible implementation manner, the service situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面、第六方面的第一种可能的实现方式,在第五种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect and the first possible implementation manner of the sixth aspect, in a fifth possible implementation manner, the I/O device is further used for:
向用于监控所述规定业务的业务使用情况的监控设备发送查询请求,以及接收所述监控设备返回的所述规定业务的业务使用情况;sending a query request to a monitoring device for monitoring the service usage of the specified service, and receiving the service usage of the specified service returned by the monitoring device;
所述处理器具体用于:根据所述I/O装置接收的、所述监控设备返回的、所述规定业务的业务使用情况以及确定的业务规则,确定所述规定业务的业务使用情况信息。The processor is specifically configured to: determine the service usage information of the prescribed service according to the service usage status of the prescribed service received by the I/O device, returned by the monitoring device, and determined business rules.
结合第六方面,第六方面的第一种可能的实现方式,在第六种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, in the sixth possible implementation manner, the I/O device is further used for:
在将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述处理器确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息;After sending the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information. The notification message sent later for notifying that the usage of the specified service has reached the usage set for the specified service, and after the processor determines that the specified service needs to be closed, send the notification message to the capability opening platform sending a confirmation message for confirming closing the specified service;
所述处理器还用于:根据所述I/O装置接收的所述通知消息确定需要关闭所述规定业务。The processor is further configured to: determine that the specified service needs to be closed according to the notification message received by the I/O device.
结合第六方面,第六方面的第一种可能的实现方式,在第七种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, in a seventh possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面,第六方面的第二种可能的实现方式,在第八种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect and the second possible implementation manner of the sixth aspect, in an eighth possible implementation manner, the I/O device is further used for:
在将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述处理器确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息;After sending the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information. The notification message sent later for notifying that the usage of the specified service has reached the usage set for the specified service, and after the processor determines that the specified service needs to be closed, send the notification message to the capability opening platform sending a confirmation message for confirming closing the specified service;
所述处理器还用于:根据所述I/O装置接收的所述通知消息确定需要关闭所述规定业务。The processor is further configured to: determine that the specified service needs to be closed according to the notification message received by the I/O device.
结合第六方面,第六方面的第二种可能的实现方式,在第九种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the sixth aspect and the second possible implementation of the sixth aspect, in a ninth possible implementation, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面,第六方面的第三种可能的实现方式,在第十种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the sixth aspect and the third possible implementation manner of the sixth aspect, in a tenth possible implementation manner, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面、第六方面的第一种可能的实现方式、第六方面的第二种可能的实现方式,在第十一种可能的实现方式中,所述I/O装置还用于:With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, and the second possible implementation manner of the sixth aspect, in an eleventh possible implementation manner, the I/O device is further used for:
在将确定的业务使用情况信息发送给所述能力开放平台之后,接收所述能力开放平台在根据所述业务使用情况信息确定所述规定业务的使用量达到针对所述规定业务设定的使用量之后发送的、用于通知所述规定业务的使用量达到针对所述规定业务设定的使用量的通知消息,以及在所述处理器确定需要关闭所述规定业务后,向所述能力开放平台发送用于确认关闭所述规定业务的确认消息;After sending the determined service usage information to the capability opening platform, the capability opening platform determines that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information. The notification message sent later for notifying that the usage of the specified service has reached the usage set for the specified service, and after the processor determines that the specified service needs to be closed, send the notification message to the capability opening platform sending a confirmation message for confirming closing the specified service;
所述处理器还用于:根据所述I/O装置接收的所述通知消息确定需要关闭所述规定业务。The processor is further configured to: determine that the specified service needs to be closed according to the notification message received by the I/O device.
结合第六方面、第六方面的第一种可能的实现方式、第六方面的第二种可能的实现方式,在第十二种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:With reference to the sixth aspect, the first possible implementation of the sixth aspect, and the second possible implementation of the sixth aspect, in a twelfth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面、第六方面的第一种可能的实现方式、第六方面的第三种可能的实现方式,在第十三种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the sixth aspect, the first possible implementation of the sixth aspect, and the third possible implementation of the sixth aspect, in a thirteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
结合第六方面、第六方面的第二种可能的实现方式、第六方面的第三种可能的实现方式,在第十四种可能的实现方式中,所述业务情况使用信息包括下列信息中的至少一种:In combination with the sixth aspect, the second possible implementation of the sixth aspect, and the third possible implementation of the sixth aspect, in the fourteenth possible implementation, the business situation use information includes the following information At least one of:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
第七方面,本发明实施例提供一种能力开放系统,包括:In the seventh aspect, the embodiment of the present invention provides a capability opening system, including:
能力开放平台,用于向业务处理设备发送用于获取所述规定业务的使用情况信息的业务使用情况信息请求;接收所述业务处理设备响应所述业务使用情况信息请求提供的所述规定业务的业务使用情况信息;根据接收的所述业务使用情况信息,在确定所述规定业务的使用量达到针对所述规定业务设定的使用量后,对所述规定业务进行处理;The capability opening platform is configured to send a service usage information request for obtaining usage information of the specified service to the service processing device; receive the specified service information provided by the service processing device in response to the service usage information request business usage information; according to the received business usage information, after determining that the usage of the prescribed business reaches the usage amount set for the prescribed business, process the prescribed business;
业务处理设备,用于接收所述能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;根据预设的业务与业务规则的对应关系,确定所述规定业务对应的业务规则;根据确定的业务规则,确定所述规定业务的业务使用情况信息;将确定的所述业务使用情况信息发送给所述能力开放平台。A service processing device, configured to receive a service usage information request sent by the capability exposure platform for obtaining usage information of a specified service; business rules; according to the determined business rules, determine the service usage information of the specified service; and send the determined service usage information to the capability opening platform.
采用本发明实施例提供的业务处理方法及设备、能力开放系统,由业务处理设备向能力开放平台上报规定业务的业务使用情况信息,以使能力开放平台确定规定业务的使用量是否达到针对所述规定业务设定的使用量,能力开放平台无需关注业务的逻辑关系,也无需理解业务语义,降低了对能力开放平台的业务处理能力的要求,减轻了能力开放平台的业务处理负荷。Using the service processing method, equipment, and capability openness system provided by the embodiments of the present invention, the service processing equipment reports the service usage information of the specified service to the capability openness platform, so that the capability openness platform determines whether the usage of the specified service has reached the target for the specified service. By specifying the amount of usage set by the business, the capability exposure platform does not need to pay attention to the logical relationship of the business, nor does it need to understand the business semantics, which reduces the requirements for the business processing capability of the capability exposure platform and reduces the business processing load of the capability exposure platform.
附图说明Description of drawings
图1为通常的用户、能力开放平台和能力使能端的逻辑关系示意图;Figure 1 is a schematic diagram of the logical relationship between a common user, a capability exposure platform, and a capability enabler;
图2为一种典型的能力开放平台在电信网络中的位置示意图;Fig. 2 is a schematic diagram of the position of a typical capability opening platform in a telecommunication network;
图3是通常情况下能力开放平台在处理有逻辑关系的电话会议业务时的处理流程;Figure 3 is the processing flow of the capability opening platform when processing logically related conference call services under normal circumstances;
图4所示,为本发明实施例提供的能力开放系统;As shown in FIG. 4, it is a capability opening system provided by an embodiment of the present invention;
图5所示,为本发明实施例提供的能力开放平台;As shown in FIG. 5, it is a capability opening platform provided by an embodiment of the present invention;
图6所示,为本发明实施例提供的业务处理设备;As shown in FIG. 6, it is a service processing device provided by an embodiment of the present invention;
图7所示,为本发明实施例提供的能力开放平台;As shown in FIG. 7, it is a capability opening platform provided by an embodiment of the present invention;
图8所示,为本发明实施例提供的业务处理设备;As shown in FIG. 8, it is a service processing device provided by an embodiment of the present invention;
图9是本发明实施例提供的第一种业务处理方法的流程示意图;Fig. 9 is a schematic flowchart of a first business processing method provided by an embodiment of the present invention;
图10是本发明实施例提供的第二种业务处理方法的流程示意图;Fig. 10 is a schematic flowchart of a second business processing method provided by an embodiment of the present invention;
图11是本发明实施例提供的第三种业务处理方法的流程示意图;Fig. 11 is a schematic flowchart of a third business processing method provided by an embodiment of the present invention;
图12是本发明实施例一的业务处理方法的流程示意图;FIG. 12 is a schematic flowchart of a business processing method according to Embodiment 1 of the present invention;
图13是本发明实施例二的业务处理方法的流程示意图;FIG. 13 is a schematic flowchart of a business processing method in Embodiment 2 of the present invention;
图14是本发明实施例三的业务处理方法的流程示意图;FIG. 14 is a schematic flowchart of a business processing method in Embodiment 3 of the present invention;
图15是本发明实施例四的业务处理方法的流程示意图。Fig. 15 is a schematic flowchart of a service processing method according to Embodiment 4 of the present invention.
具体实施方式detailed description
本发明实施例提供一种能力开放系统、业务处理方法及设备。在本发明实施例提供的业务处理方法中,能力开放平台针对一个规定业务,向业务处理设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求,该业务处理设备在收到能力开放平台发送的上述请求后,根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,并在根据确定的业务规则,确定规定业务的业务使用情况信息后将确定的业务使用情况信息发给能力开放平台;能力开放平台根据接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理。Embodiments of the present invention provide a capability opening system, a service processing method, and equipment. In the service processing method provided by the embodiment of the present invention, the capability opening platform sends a service usage information request for obtaining usage information of the specified service to the service processing device for a specified service, and the service processing device receives the capability opening After the above request is sent by the platform, according to the preset correspondence relationship between business and business rules, determine the business rules corresponding to the specified business, and determine the business usage information of the specified business according to the determined business rules. The information is sent to the capability openness platform; the capability openness platform processes the specified service after determining that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information received.
在本发明实施例提供的业务处理方法中,由业务处理设备向能力开放平台上报规定业务的业务使用情况信息,以使能力开放平台在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理,能力开放平台无需关注业务的逻辑关系,也无需理解业务语义,降低了对能力开放平台的业务处理能力的要求。In the service processing method provided by the embodiment of the present invention, the service processing device reports the service usage information of the specified service to the capability opening platform, so that the capability opening platform can reach the usage amount set for the specified service after determining that the usage of the specified service Finally, to process the specified business, the capability openness platform does not need to pay attention to the logical relationship of the business, nor does it need to understand the business semantics, which reduces the requirements for the service processing capability of the capability openness platform.
下面结合说明书附图对本发明实施例作进一步详细描述。The embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.
图4是本发明实施例提供的能力开放系统的结构示意图。如图4所示,能力开放系统包括:Fig. 4 is a schematic structural diagram of a capability opening system provided by an embodiment of the present invention. As shown in Figure 4, the capability opening system includes:
能力开放平台401,用于向业务处理设备402发送用于获取规定业务的使用情况信息的业务使用情况信息请求;接收业务处理设备402响应业务使用情况信息请求提供的规定业务的业务使用情况信息;根据接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理;The capability opening platform 401 is configured to send to the service processing device 402 a service usage information request for obtaining usage information of a specified service; receive the service usage information of the specified service provided by the service processing device 402 in response to the service usage information request; According to the received business usage information, after determining that the usage of the prescribed business has reached the usage amount set for the prescribed business, process the prescribed business;
业务处理设备402,用于接收能力开放平台401发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则;根据确定的业务规则,确定规定业务的业务使用情况信息;将确定的业务使用情况信息发送给能力开放平台401。The service processing device 402 is configured to receive the service usage information request sent by the capability opening platform 401 for obtaining the usage information of the specified service; determine the corresponding business rule of the specified service according to the preset correspondence relationship between the service and the business rule ; According to the determined business rules, determine the service usage information of the specified service; send the determined service usage information to the capability opening platform 401 .
本发明实施例提供的能力开放系统中,能力开放平台401与运行业务的能力使能端、用户终端存在信息交互的接口,能力开放平台401接收用户终端发送的建立业务的请求和关闭业务的请求,以及向运行业务的能力使能端发送建立业务请求和关闭业务的请求。In the capability openness system provided by the embodiment of the present invention, the capability openness platform 401 has an interface for information interaction with the capability enabler and user terminal running the service, and the capability openness platform 401 receives the request for establishing a service and the request for closing a service sent by the user terminal , and send a request to establish a service and a request to close a service to the capability enabler running the service.
本发明实施例提供的业务处理设备402可作为一个网络实体单独存在,也可为能力开放平台401的一部分,或运行业务的能力使能端的一部分。具体的实现方式依实际情况而定。如果业务处理设备402是能力开放平台401的一部分,则由能力开放平台401提供相对通用业务处理机制,由第三方来编辑或开发业务处理设备402的具体的逻辑管控流程;如果业务处理设备402作为一个网络实体单独存在,则通常是单独为特定的某个或某些业务使用,这样定制性更强;如果业务处理设备402是运行业务的能力使能端的一部分,则通常可由运行业务的能力使能端的开发者开发业务处理设备402的具体业务处理流程。The service processing device 402 provided by the embodiment of the present invention may exist independently as a network entity, or may be a part of the capability opening platform 401, or a part of the capability enabling terminal for running services. The specific implementation method depends on the actual situation. If the service processing device 402 is a part of the capability opening platform 401, then the capability opening platform 401 provides a relatively general service processing mechanism, and a third party edits or develops the specific logic control process of the service processing device 402; if the service processing device 402 serves as If a network entity exists alone, it is usually used solely for a certain or certain services, which is more customizable; if the service processing device 402 is a part of the capability enabling end for running services, it can usually be enabled by the capability for running services. A capable developer develops a specific service processing flow of the service processing device 402 .
具体实现时,业务处理设备402可为运行容器(诸如tomcat、weblogic、nginx等),当业务处理设备402运行时,能够接收并处理能力开放平台401发送的消息。通过在运行容器上进行业务处理逻辑的开发,使其可以接收能力开放平台401发送的消息,解析消息内容,并根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,根据规定业务对应的业务规则确定规定业务的业务使用情况信息,上报给能力开放平台401。能力开放平台401根据接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理。In specific implementation, the service processing device 402 can be a running container (such as tomcat, weblogic, nginx, etc.), and when the service processing device 402 is running, it can receive and process messages sent by the capability opening platform 401 . By developing the business processing logic on the running container, it can receive the message sent by the capability opening platform 401, analyze the content of the message, and determine the business rule corresponding to the prescribed business according to the preset correspondence between the business and the business rule. The business rules corresponding to the specified services determine the service usage information of the specified services, and report to the capability opening platform 401 . The capability opening platform 401 processes the prescribed service after determining that the usage amount of the prescribed service has reached the usage amount set for the prescribed service according to the received service usage information.
不管业务处理设备402是能力开放平台401的一部分、运行业务的能力使能端的一部分,还是单独的网络实体,能力开放平台401和业务处理设备402的信息交互方式都是一样的,下面描述的方法适用于以上任何一种业务处理设备402的实现方式。Regardless of whether the service processing device 402 is a part of the capability opening platform 401, a part of the capability enabling end running services, or a separate network entity, the information interaction method between the capability opening platform 401 and the service processing device 402 is the same, and the method described below It is applicable to any implementation manner of the service processing device 402 above.
由于本发明实施例的业务处理设备上预设了业务规则,根据预设的业务规则进行业务处理逻辑,起到了对业务处理逻辑的管理和控制的作用,因此在下面的说明过程中,为了描述清晰,将本发明实施例提供的业务处理设备称作“逻辑管控设备”。Since business rules are preset on the business processing device in the embodiment of the present invention, and the business processing logic is performed according to the preset business rules, it plays a role in the management and control of the business processing logic. Therefore, in the following description process, in order to describe To be clear, the service processing device provided by the embodiment of the present invention is called "logic management and control device".
下面先从能力开放平台侧和逻辑管控设备侧的配合实施进行说明,最后分别从能力开放平台侧与逻辑管控设备侧的实施进行说明,但这并不意味着二者必须配合实施,实际上,当能力开放平台侧与逻辑管控设备侧分开实施时,也解决了分别在能力开放平台侧、逻辑管控设备侧所存在的问题,只是二者结合使用时,会获得更好的技术效果。In the following, we will first describe the cooperative implementation of the capability opening platform side and the logical management and control device side, and finally explain the implementation of the capability opening platform side and the logic management and control device side respectively, but this does not mean that the two must be implemented together. In fact, When the capability opening platform side and the logical control device side are implemented separately, the problems existing on the capability openness platform side and the logical control device side are also solved, but when the two are used in combination, better technical effects will be obtained.
如图9所示,本发明实施例提供的第一种业务处理的方法包括:As shown in Figure 9, the first service processing method provided by the embodiment of the present invention includes:
S901:针对一个规定业务,能力开放平台确定能够提供规定业务的业务使用情况信息的逻辑管控设备;S901: For a specified service, the capability openness platform determines a logical management and control device that can provide service usage information of the specified service;
S902:能力开放平台向确定的逻辑管控设备发送用于获取规定业务的业务使用情况信息的业务使用情况信息请求;S902: The capability opening platform sends a service usage information request for obtaining the service usage information of the specified service to the determined logical management and control device;
S903:逻辑管控设备根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,并根据确定的业务规则确定规定业务的业务使用情况信息;S903: The logic control device determines the business rules corresponding to the specified services according to the preset correspondence relationship between the services and the business rules, and determines the service usage information of the specified services according to the determined business rules;
S904:逻辑管控设备将规定业务的业务使用情况信息上报给能力开放平台;S904: The logical management and control device reports the service usage information of the specified service to the capability opening platform;
S905:能力开放平台根据接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理。S905: The capability opening platform processes the prescribed service after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the received service usage information.
本方法中,逻辑管控设备根据其上预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,并根据确定的业务规则确定规定业务的业务使用情况信息,使得能力开放平台无需关注业务规则,降低了对能力开放平台处理能力的要求。In this method, the logical management and control device determines the business rules corresponding to the specified services according to the corresponding relationship between the preset services and business rules on it, and determines the service usage information of the specified services according to the determined business rules, so that the capability opening platform does not need to pay attention Business rules reduce the requirements on the processing capability of the capability opening platform.
当逻辑管控设备不作为能力开放平台的一部分来实现时,其可以由任何语言开发,无需和能力开放平台的开发语言一致,增加了实现的灵活性。此时,在能力开放平台上也无需维护用户数据和大部分的诸如业务费率相关的业务处理数据。对于逻辑管控设备,当其处理的业务量较小时,对多个不同的业务或所有业务的处理可使用同一个逻辑管控设备,此时,需要逻辑管控设备能够区分不同的业务,一种可选的实现方式是,由能力开放平台将业务的业务类型告知逻辑管控设备,以使逻辑管控设备区分不同的业务;当业务量大时,可使一个逻辑管控设备处理几个处理方法相近的业务,一个逻辑管控设备处理一个业务。When the logic control device is not implemented as a part of the capability opening platform, it can be developed in any language, which does not need to be consistent with the development language of the capability opening platform, which increases the flexibility of implementation. At this time, there is no need to maintain user data and most of the service processing data such as service rates on the capability opening platform. For the logical management and control device, when the amount of business it handles is small, the same logical management and control device can be used to process multiple different services or all services. At this time, the logical management and control device needs to be able to distinguish different services. An optional The implementation method is that the capability opening platform informs the logical management and control device of the service type of the service, so that the logical management and control device can distinguish different services; when the business volume is large, one logical management and control device can handle several services with similar processing methods, A logical management and control device handles a business.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
当业务的业务规则包括计费规则时,业务的业务使用情况包括业务使用的费用;当业务的业务规则包括计时规则时,业务的业务使用情况信息包括业务使用的时长;当业务的业务规则包括流量规则时,业务的业务使用情况信息为业务使用的流量;当业务的业务规则包括用户数规则时,业务的业务使用情况信息为业务的使用者的数量。When the business rules of the business include charging rules, the business usage of the business includes the cost of the business usage; when the business rules of the business include timing rules, the information of the business usage of the business includes the duration of the business usage; When the flow rule is used, the service usage information of the service is the traffic used by the service; when the business rule of the service includes the user number rule, the service usage information of the service is the number of users of the service.
针对一个业务,业务的业务规则可包括计费规则、计时规则、流量规则或用户数规则中的一种或多种。比如:对于视频会议业务,该业务的业务规则可同时包括计费规则、计时规则和流量规则,逻辑管控设备在上报该业务的业务使用情况信息时,同时上报该业务使用的费用、使用的时长和使用的流量。For a service, the business rules of the service may include one or more of charging rules, timing rules, traffic rules, or user number rules. For example, for video conferencing business, the business rules of this business can include billing rules, timing rules, and traffic rules at the same time. When the logic control device reports the business usage information of this business, it also reports the cost and duration of the business usage. and traffic used.
可选地,业务的业务规则可预先写入逻辑管控设备。另一种可选的实现方式是,逻辑管控设备与运行业务的能力使能端存在信息交互的接口,当逻辑管控设备收到能力开放平台发送的业务使用情况信息请求后,向运行业务的能力使能端发送请求,请求获取业务的业务规则,并根据收到的运行业务的能力使能端返回的业务规则确定业务的业务规则。Optionally, the business rules of the business can be pre-written into the logic management and control device. Another optional implementation is that there is an interface for information interaction between the logical management and control device and the capability enabler for running services. When the logical management and control device receives the service usage information request sent by the capability open The enabling end sends a request to obtain the business rules of the business, and determines the business rules of the business based on the received business rules returned by the enabling end of the ability to run the business.
可选地,逻辑管控设备可周期性地(比如:每分钟上报一次)上报规定业务的业务使用情况信息,也可在满足触发条件时上报规定业务的业务使用情况信息,还可在用户终端发起关闭业务的请求的情况下,在收到能力开放平台发送的关闭业务的请求后上报规定业务的业务使用情况信息。Optionally, the logic management and control device can report the service usage information of the specified service periodically (for example, once every minute), or report the service usage information of the specified service when the trigger condition is met, and can also be initiated at the user terminal. In the case of a request to close the service, report the service usage information of the specified service after receiving the request to close the service sent by the capability opening platform.
可选地,能力开放平台在根据接收的业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量之后,本方法还包括:Optionally, after the capability opening platform determines according to the received service usage information that the usage of the specified service reaches the usage set for the specified service, the method further includes:
根据接收的业务使用情况信息更新规定业务的业务使用情况。The service usage of the specified service is updated according to the received service usage information.
下面以计费规则为例,详细描述逻辑管控设备上报规定业务的业务使用情况信息,能力开放平台根据接收的规定业务使用情况信息,确定规定业务的使用量是否达到针对规定业务设定的使用量,以及能力开放平台根据接收的业务使用情况信息更新规定业务的业务使用情况的方法。The following takes the billing rule as an example to describe in detail the service usage information of the specified service reported by the logical management and control device. The capability openness platform determines whether the usage of the specified service reaches the usage set for the specified service according to the received usage information of the specified service. , and a method for the capability opening platform to update the service usage status of the specified service according to the received service usage status information.
可选地,逻辑管控设备周期性地上报规定业务使用的费用。Optionally, the logic management and control device periodically reports the service usage fee.
一种可选的实现方式是,逻辑管控设备周期性地上报规定业务在当前周期(即从上一次上报规定业务使用的费用到本次上报规定业务使用的费用的期间)使用的费用,能力开放平台预存该业务的余额,能力开放平台收到逻辑管控设备上报的规定业务使用的费用后,与规定业务的余额进行比较,确定规定业务的使用的费用是否达到规定业务的余额,并从规定业务的余额中扣除逻辑管控设备上报的规定业务使用的费用,作为更新后的规定业务的余额。An optional implementation method is that the logical management and control device periodically reports the fees used by the specified services in the current period (that is, the period from the last report of the specified service usage fee to the current report of the specified service usage fee), and the capability is open The platform pre-stores the balance of the business, and the capability openness platform receives the fee for the specified business usage reported by the logic control device, compares it with the balance of the specified business, determines whether the fee for the usage of the specified business reaches the balance of the specified business, and calculates from the specified business The balance of the specified service reported by the logic control device is deducted from the balance of the specified service, which is used as the balance of the updated specified service.
另一种可选的实现方式是,逻辑管控设备周期性地上报从收到能力开放平台发送的业务使用情况信息请求开始,到本次上报规定业务使用的费用之前,规定业务已使用的费用总金额,能力开放平台预存规定业务可使用的最大费用,能力开放平台收到逻辑管控设备上报的规定业务已使用的费用总金额后,与预存的规定业务可使用的最大费用进行比较,确定规定业务的已使用的费用总金额是否达到预存的规定业务可使用的最大费用。Another optional implementation method is that the logic management and control device periodically reports the total amount of fees used by the specified services from the time of receiving the service usage information request sent by the capability opening platform to the current report of the specified service usage fees. Amount, the maximum fee that can be used by the specified business pre-stored on the capability openness platform. After the capability open platform receives the total amount of the specified service that has been used by the logic control device, it compares it with the maximum fee that can be used by the pre-stored specified service to determine the specified service. Whether the total amount of the used expenses has reached the pre-stored maximum expenses that can be used by the specified business.
逻辑管控设备可在满足触发条件时上报规定业务使用的费用。比如,能力开放平台通过发送业务使用情况信息请求,将规定业务可使用的最大费用告知逻辑管控设备,逻辑管控设备根据规定业务的业务规则确定规定业务已使用的费用总金额,并在规定业务已使用的费用总金额不小于规定业务可使用的最大费用时,向能力开放平台上报规定业务的业务使用情况信息,其中,业务使用情况信息为规定业务已使用的费用总金额。The logical management and control device can report the fee for the specified service usage when the trigger condition is met. For example, the capability openness platform notifies the logical management and control device of the maximum fee that can be used by the specified service by sending a request for service usage information. When the total amount of fees used is not less than the maximum fee that can be used by the specified business, report the business usage information of the specified business to the capability opening platform, where the business usage information is the total amount of fees used by the specified business.
逻辑管控设备还可以在用户终端发起关闭业务的请求的情况下,在收到能力开放平台发送的停止上报业务使用情况信息的指示后,上报业务已使用的费用总金额。The logic management and control device can also report the total amount of service used fees after receiving the instruction to stop reporting service usage information sent by the capability opening platform when the user terminal initiates a request to close the service.
当业务的业务规则为计时规则、流量规则、用户数规则时,逻辑管控设备上报业务使用情况信息,能力开放平台根据该业务使用情况信息确定规定业务的使用量是否达到针对规定业务设定的使用量,以及能力开放平台根据该业务的业务使用情况信息更新业务的业务使用情况的方法,与计费规则对应的方法类似,这里不再一一赘述。When the business rules of the business are timing rules, flow rules, and user number rules, the logical management and control equipment reports the service usage information, and the capability exposure platform determines whether the usage of the specified business reaches the usage set for the specified business based on the business usage information. The amount, and the method for the capability exposure platform to update the service usage information of the service according to the service usage information of the service are similar to the methods corresponding to the charging rules, and will not be repeated here.
可选地,能力开放平台在向逻辑管控设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求之前,本方法还包括:能力开放平台在接收用户终端发送的业务使用情况信息请求后,若确定用于建立规定业务的API带有逻辑处理标识时,则确定规定业务需要进行逻辑处理,并根据用于建立规定业务的API中的地址信息确定能够提供规定业务的业务使用情况信息的逻辑管控设备。Optionally, before the capability opening platform sends the service usage information request for obtaining the usage information of the specified service to the logical management and control device, the method further includes: after receiving the service usage information request sent by the user terminal, the capability opening platform , if it is determined that the API used to establish the specified service has a logic processing identifier, it is determined that the specified service requires logical processing, and according to the address information in the API used to establish the specified service, it is determined that the service usage information of the specified service can be provided Logical control device.
可选地,API中的地址信息为统一资源定位符(Uniform Resource Locator,URL)地址。比如,对于视频会议业务,该URL地址为http://logicalcontrolconsole.sohu.com/conference_video,则能力开放平台确定http://logicalcontrolconsole.sohu.com对应的设备为能够提供视频会议业务的业务使用情况的逻辑管控设备,http://logicalcontrolconsole.sohu.com/conference_video对应逻辑管控设备中处理视频会议的端口,则能力开放平台向http://logicalcontrolconsole.sohu.com/对应的逻辑管控设备的端口http://logicalcontrolconsole.sohu.com/conference_video发送业务使用情况信息请求。Optionally, the address information in the API is a Uniform Resource Locator (Uniform Resource Locator, URL) address. For example, for the video conferencing service, the URL address is http://logicalcontrolconsole.sohu.com/conference_video, then the capability exposure platform determines that the device corresponding to http://logicalcontrolconsole.sohu.com is the service usage that can provide the video conferencing service The logical control device, http://logicalcontrolconsole.sohu.com/conference_video corresponds to the port of the logical control device for processing video conferencing, and the capability opening platform sends http://logicalcontrolconsole.sohu.com/ the port corresponding to the logical control device http://logicalcontrolconsole.sohu.com/ ://logicalcontrolconsole.sohu.com/conference_videoSend a request for business usage information.
当API中的地址为URL地址时,则首先需要通过域名解析将该ULR地址解析为IP地址,然后再将业务使用情况信息请求发给解析后的IP地址。When the address in the API is a URL address, it is first necessary to resolve the ULR address into an IP address through domain name resolution, and then send the service usage information request to the resolved IP address.
可选地,API中的地址信息为IP地址。比如,对于电话会议业务,该IP地址为电话会议业务对应的逻辑管控设备,则能力开放平台向该IP地址对应的逻辑管控设备发送业务使用情况信息请求。Optionally, the address information in the API is an IP address. For example, for the conference call service, if the IP address is the logical management and control device corresponding to the conference call service, the capability exposure platform sends a service usage information request to the logical management and control device corresponding to the IP address.
当API中的地址信息为URL地址时,逻辑管控设备可处理多种业务,只要各业务对应的URL地址不同即可。比如,对于视频会议业务,该URL地址为上述的http://logicalcontrolconsole.sohu.com/conference_video;对于电话会议业务,该URL地址为http://logicalcontrolconsole.sohu.com/conference_call。两个URL地址对应的二级域名相同,均为http://logicalcontrolconsole.sohu.com,可对应同一个逻辑管控设备,但两个URL地址的后缀不同,可表示该逻辑管控设备接收视频会议业务和电话会议对应的业务使用情况信息请求的端口不同,则逻辑管控设备可根据由不同端口接收的业务使用情况信息请求确定需要进行逻辑管控的业务。When the address information in the API is a URL address, the logical management and control device can handle multiple services, as long as the URL addresses corresponding to each service are different. For example, for the video conference service, the URL address is the above http://logicalcontrolconsole.sohu.com/conference_video; for the telephone conference service, the URL address is http://logicalcontrolconsole.sohu.com/conference_call. The second-level domain names corresponding to the two URL addresses are the same, both are http://logicalcontrolconsole.sohu.com, which can correspond to the same logical control device, but the suffixes of the two URL addresses are different, which means that the logical control device receives video conferencing services The port of the service usage information request corresponding to the teleconference is different, and the logical management and control device can determine the service that needs to be logically controlled according to the service usage information request received by a different port.
再比如:对于电话会议业务,该URL地址为http://conference_call.logicalcontrolconsole.sohu.com,对于视频会议业务,该URL地址为http://conference_video.logicalcontrolconsole.sohu.com,两个业务的URL地址的一级域名相同,表明两个业务可对应同一个逻辑管控设备,两个业务的URL地址的二级域名不同,表明两个业务可对应该同一个逻辑管控设备的不同端口,则逻辑管控设备可根据不同端口接收的业务使用情况信息请求确定需要进行逻辑管控的业务。Another example: for conference call service, the URL address is http://conference_call.logicalcontrolconsole.sohu.com, for video conference service, the URL address is http://conference_video.logicalcontrolconsole.sohu.com, the URLs of the two services The first-level domain names of the addresses are the same, indicating that the two services can correspond to the same logical management and control device. The second-level domain names of the URL addresses of the two services are different, indicating that the two services can correspond to different ports of the same logical management and control device. The device can determine the services that need to be logically controlled according to the service usage information requests received by different ports.
可选地,步骤S903中,逻辑管控设备根据确定的业务规则确定规定业务的业务使用情况信息,包括:Optionally, in step S903, the logic management and control device determines the service usage information of the specified service according to the determined service rule, including:
逻辑管控设备向用于监控规定业务的业务使用情况的监控设备发送查询请求;The logic control device sends a query request to the monitoring device used to monitor the service usage of the specified service;
根据该监控设备返回的规定业务的业务使用情况以及确定的业务规则,确定规定业务的业务使用情况信息。Determine the service usage information of the specified service according to the service usage status of the specified service returned by the monitoring device and the determined service rules.
比如,逻辑管控设备向业务的流量监控设备发送查询规定业务的业务流量的查询请求,之后根据该流量监控设备返回的规定业务已使用的流量以及规定业务的业务规则确定规定业务的业务使用情况信息。For example, the logic management and control device sends a query request for querying the service flow of the specified service to the flow monitoring device of the service, and then determines the service usage information of the specified service according to the used flow of the specified service returned by the flow monitoring device and the business rules of the specified service .
再比如,逻辑管控设备向规定业务的资源占用监控设备发送查询规定业务的资源占用情况的查询请求,之后根据该资源占用监控设备返回的规定业务的资源占用情况(比如:占用带宽)以及规定业务的业务规则确定规定业务的业务使用情况信息。For another example, the logic management and control device sends a query request to the resource occupancy monitoring device of the specified service to query the resource occupancy of the specified service, and then returns the resource occupancy of the specified service (for example: occupied bandwidth) and the specified service according to the resource occupancy monitoring device. The business rules determine the business usage information for the specified business.
可选地,步骤S903中,逻辑管控设备根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,包括:Optionally, in step S903, the logic management and control device determines the business rule corresponding to the specified business according to the preset correspondence between the business and the business rule, including:
根据预设的业务、用户标识与业务规则的对应关系,基于规定业务使用情况信息请求中包括的规定业务对应的用户的用户标识确定规定业务的业务规则。According to the preset corresponding relationship between the service, the user identifier and the service rule, the service rule of the prescribed service is determined based on the user identifier of the user corresponding to the prescribed service included in the request for information on usage of the prescribed service.
这里,业务对应的用户可以是该业务的发起方。逻辑管控设备根据业务对应的用户的用户标识确定规定业务的业务规则,包括:Here, the user corresponding to the service may be the initiator of the service. The logic management and control device determines the business rules for the specified business according to the user ID of the user corresponding to the business, including:
逻辑管控设备根据规定业务对应的用户的用户标识确定规定业务对应的用户的等级(比如VIP用户、重要用户、普通用户等),对应不同的用户等级,确定该用户等级对应的规定业务的逻辑规则。比如,规定业务的业务规则包括计费规则,对于VIP用户,可设置规定业务的业务规则为每分钟0.1元;对于重要用户,可设置规定业务的业务规则为每分钟0.15元;对于普通用户,可设置规定业务的业务规则为每分钟0.2元。The logical control device determines the user level corresponding to the specified service (such as VIP user, important user, ordinary user, etc.) according to the user ID of the user corresponding to the specified service, corresponding to different user levels, and determines the logical rules of the specified service corresponding to the user level . For example, the business rules for specified services include billing rules. For VIP users, the business rules for specified services can be set to 0.1 yuan per minute; for important users, the business rules for specified services can be set to 0.15 yuan per minute; for ordinary users, It is possible to set the business rule of the specified business to be 0.2 yuan per minute.
可选地,逻辑管控设备预存有业务对应的用户的用户标识与用户等级的对应关系,以及用户等级与业务的业务规则的对应关系,当逻辑管控设备收到能力开放平台发送的业务使用情况信息请求后,根据业务使用情况信息请求中的业务对应的用户的用户标识确定用户等级,进一步根据用户等级确定业务的业务规则。Optionally, the logical management and control device pre-stores the corresponding relationship between the user ID of the user corresponding to the service and the user level, and the corresponding relationship between the user level and the business rule of the service. When the logical management and control device receives the service usage information sent by the capability opening platform After the request, the user level is determined according to the user identification of the user corresponding to the service in the service usage information request, and the business rules of the service are further determined according to the user level.
或者,逻辑管控设备预存有业务对应的用户的用户标识与业务的业务规则之间的对应关系,当逻辑管控设备收到能力开放平台发送的业务使用情况信息请求后,根据业务使用情况信息请求中的业务对应的用户的用户标识直接确定业务的业务规则。Alternatively, the logic management and control device pre-stores the correspondence between the user ID of the user corresponding to the service and the business rule of the service. When the logic management and control device receives the service usage information request sent by the capability opening platform, it The user ID of the user corresponding to the business directly determines the business rules of the business.
或者,逻辑管控设备预存有用户等级与业务的业务规则的对应关系,并且逻辑管控设备与运行业务的能力使能端存在消息交互的接口。当逻辑管控设备收到能力开放平台发送的业务使用情况信息请求后,获取业务使用情况信息请求中的业务对应的用户的用户标识,然后向业务的能力使能端发送获取用户等级的请求,并在接收到运行业务的能力使能端发送的用户等级后,根据用户等级与业务的业务规则的对应关系,确定业务的业务规则。Alternatively, the logical management and control device pre-stores the correspondence between user levels and business rules of the service, and there is an interface for message interaction between the logical management and control device and the service-running capability enabler. When the logic control device receives the service usage information request sent by the capability opening platform, it obtains the user ID of the user corresponding to the service in the service usage information request, and then sends a request to the service capability enabler to obtain the user level, and After receiving the user grade sent by the capability enabling terminal for running the service, the service rule of the service is determined according to the corresponding relationship between the user grade and the service rule of the service.
可选地,在步骤S902之前,本方法还包括:Optionally, before step S902, the method further includes:
S9001:能力开放平台向运行规定业务的能力使能端发送用于建立规定业务的业务建立请求;S9001: The capability opening platform sends a service establishment request for establishing a prescribed service to the capability enabler running the prescribed service;
S9002:运行规定业务的能力使能端收到能力开放平台发送的业务建立请求后,为规定业务分配业务标识,并将该业务标识置于建立业务的响应中返回给能力开放平台。S9002: After receiving the service establishment request sent by the capability openness platform, the capability enabler running the specified service allocates a service identifier for the specified service, and puts the service identifier in the service establishment response and returns it to the capability openness platform.
可选地,步骤S9001、步骤S9001可在步骤S901之前或之后。Optionally, step S9001 and step S9001 may be before or after step S901.
可选地,步骤S902中,能力开放平台向确定的逻辑管控设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求,包括:Optionally, in step S902, the capability opening platform sends a service usage information request for obtaining usage information of specified services to the determined logical management and control device, including:
能力开放平台向逻辑管控设备发送携带有下列信息的业务使用情况信息请求:用于建立规定业务的API的API标识、规定业务对应的用户的用户标识、运行规定业务的能力使能端为规定业务分配的业务标识;The capability openness platform sends a service usage information request carrying the following information to the logical management and control device: the API ID of the API used to establish the specified service, the user ID of the user corresponding to the specified service, and the capability enabler running the specified service as the specified service Assigned business identifier;
步骤S904中,逻辑管控设备将业务的业务使用情况信息上报给能力开放平台时,有两种可选的方案:In step S904, when the logical management and control device reports the service usage information of the service to the capability opening platform, there are two optional solutions:
方案一、逻辑管控设备将用于建立规定业务的API的API标识和规定业务对应的用户的用户标识连同规定业务的业务使用情况信息一同发给能力开放平台;Solution 1. The logic control device sends the API ID of the API used to establish the specified service and the user ID of the user corresponding to the specified service together with the service usage information of the specified service to the capability opening platform;
方案二、逻辑管控设备将规定业务的业务标识连同规定业务的业务使用情况信息一同发给能力开放平台。Solution 2: The logical management and control device sends the service identification of the specified service together with the service usage information of the specified service to the capability opening platform.
在方案一中,能力开放平台在收到业务使用情况信息的同时,收到API标识和业务对应的用户的用户标识,能力开放平台根据该API标识和该用户标识确定收到的业务使用情况信息对应的业务;In Solution 1, the capability opening platform receives the API identifier and the user identifier of the user corresponding to the service while receiving the service usage information, and the capability opening platform determines the received service usage information according to the API identifier and the user identifier corresponding business;
在方案二中,能力开放平台在收到业务使用情况信息的同时,收到运行业务的能力使能端为业务分配的业务标识,能力开放平台根据该业务标识确定收到的业务使用情况信息对应的业务。In Scheme 2, while receiving the service usage information, the capability openness platform receives the service identifier assigned to the service by the capability enabling end running the service, and the capability openness platform determines the corresponding Business.
可选地,步骤S904中,逻辑管控设备将规定业务的业务使用情况信息上报给能力开放平台,包括:Optionally, in step S904, the logic management and control device reports the service usage information of the specified service to the capability opening platform, including:
逻辑管控设备将用于标识规定业务的使用情况信息的消息序列号连同规定业务的业务使用情况信息一同上报给能力开放平台。The logic management and control device reports the message sequence number used to identify the usage information of the specified service together with the service usage information of the specified service to the capability opening platform.
在步骤S905能力开放平台根据接收的业务使用情况信息,确定规定业务的使用量达到针对规定业务设定的使用量后,本方法还包括:In step S905, after the capability opening platform determines that the usage of the prescribed business has reached the usage amount set for the prescribed business according to the received business usage information, the method further includes:
S906:能力开放平台向逻辑管控设备发送用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息,该通知消息中包括通知原因和步骤S904中,逻辑管控设备上报规定业务的业务使用情况时一同上报的与规定业务的用于标识业务使用情况的消息序列号;S906: The capability opening platform sends a notification message to the logical management and control device for notifying that the usage of the specified service has reached the usage set for the specified service. The notification message includes the notification reason and step S904. The message sequence number used to identify the business usage status reported together with the specified business when the business usage status is reported;
可选地,能力开放平台也可以在每一次收到逻辑管控设备发送的业务使用情况信息后都返回上述通知消息,通过消息中的字段“处理结果”来通知逻辑管控设备规定业务的使用量是否达到针对规定业务设定的使用量,比如当处理结果为“0”时,表示规定业务的使用量尚未达到针对规定业务设定的使用量,当处理结果为“1”时,表示规定业务的使用量已达到针对规定业务设定的使用量。当处理结果为“1”时,进一步通过“通知原因”字段指示规定业务的使用量达到针对规定业务设定的使用量的具体情况,以便逻辑管控设备根据该通知原因确定是否向能力开放平台发送确认关闭规定业务的确认消息。Optionally, the capability exposure platform may also return the above notification message each time it receives the service usage information sent by the logical management and control device, and use the field "processing result" in the message to notify the logical management and control device whether the specified service usage is Reach the usage set for the specified business, for example, when the processing result is "0", it means that the usage of the specified business has not reached the usage set for the specified business; when the processing result is "1", it means that the usage of the specified business The usage amount has reached the usage amount set for the specified business. When the processing result is "1", further use the "reason for notification" field to indicate the specific situation that the usage of the specified service reaches the usage set for the specified service, so that the logic control device can determine whether to send the notification to the capability opening platform according to the notification reason. Confirm the confirmation message to close the specified business.
S907:逻辑管控设备根据接收的通知消息中的消息序列号确定发生异常的业务为规定业务,并根据通知原因确定是否向能力开放平台发送确认关闭规定业务的确认消息。S907: The logic management and control device determines, according to the message sequence number in the received notification message, that the abnormal service is a specified service, and determines whether to send a confirmation message confirming to close the specified service to the capability opening platform according to the notification reason.
在业务进行过程中,逻辑管控设备可能会多次向能力开放平台上报规定业务的业务使用情况信息,比如每隔1分钟上报一次,以便能力开放平台能够实时地确定规定业务的使用量是否达到针对规定业务设定的使用量。可选地,逻辑管控设备在每一次上报规定业务的业务使用情况信息时会同时上报该业务使用情况信息对应的消息序列号,以区分不同次上报的规定业务的业务使用情况信息。同时,对于不同用户终端发起的同一种业务,该消息序列号也不同,因此当逻辑管控设备同时处理多个相同的业务时,实现各运行的业务之间业务使用情况信息的区分。During the business process, the logical management and control device may report the service usage information of the specified service to the capability openness platform multiple times, for example, once every 1 minute, so that the capability openness platform can determine in real time whether the usage of the specified service reaches the specified level. Define the usage of business settings. Optionally, the logic management and control device will report the message sequence number corresponding to the service usage information each time the service usage information of the specified service is reported, so as to distinguish the service usage information of the specified service reported different times. At the same time, for the same service initiated by different user terminals, the message sequence numbers are also different. Therefore, when the logic management and control device processes multiple identical services at the same time, it can realize the distinction of the service usage information among the running services.
能力开放平台收到规定业务的业务使用情况信息时,同时收到标识该业务使用情况信息的消息序列号,当能力开放平台根据收到的业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量异常时,向逻辑管控设备发送上述通知消息,消息中包括与上述业务使用情况信息一同收到的消息序列号,逻辑管控设备收到该通知消息后,将收到的消息中的消息序列号与之前与规定业务的业务使用情况信息一同发出的消息序列号进行比对,并根据之前存储的消息序列号与业务的对应关系,确定该业务为规定业务。When the capability openness platform receives the service usage information of the specified service, it also receives the message sequence number identifying the service usage information. When the set usage is abnormal, the above notification message will be sent to the logical management and control device. The message includes the message sequence number received together with the above service usage information. After the logical management and control device receives the notification message, it will Compare the message sequence number with the message sequence number previously sent together with the service usage information of the specified service, and determine that the service is a specified service according to the previously stored correspondence between the message sequence number and the service.
逻辑管控设备根据通知原因确定是否向能力开放平台发送确认关闭规定业务的确认消息的方法有很多。比如,在逻辑管控设备上预设不同业务的通知处理规则,该通知处理规则中记录对于不同的通知原因的处理方法。比如,对于视频会议业务,若通知原因为超时,但不包括欠费,则逻辑管控设备确定无需向能力开放平台发送确认关闭规定业务的确认消息;同样,对于视频会议业务,若通知原因为欠费,则逻辑管控设备确定需要向能力开放平台发送确认关闭规定业务的确认消息。There are many methods for the logic control device to determine whether to send a confirmation message to the capability opening platform to confirm closing of the specified service according to the notification reason. For example, notification processing rules for different services are preset on the logical management and control device, and the processing methods for different notification reasons are recorded in the notification processing rules. For example, for video conferencing services, if the notification reason is timeout but does not include arrears, the logic control device determines that there is no need to send a confirmation message to the capability exposure platform to confirm that the specified services are closed; similarly, for video conferencing services, if the notification reason is fee, the logic management and control device determines that it needs to send a confirmation message to the capability opening platform to confirm that the specified service is closed.
此外,逻辑管控设备还可以根据用户等级确定是否向能力开放平台发送确认关闭规定业务的确认消息。比如,对于规定业务,逻辑管控设备确定规定业务的业务规则包括计时规则,则当能力开放平台确定规定业务已使用的时长不小于规定业务的最大时长时,向逻辑管控设备发送上述通知消息,消息中包括的通知原因为超时,同时在通知消息中包括规定业务已超出的时间。当逻辑管控设备收到该通知消息后,确定通知原因为超时,进一步确定该业务对应的用户的用户等级,对于VIP用户,则确定无需向能力开放平台发送确认关闭规定业务的确认消息;对于重要用户,需要进一步将该通知消息中的规定业务已超出的时间与该预设的规定业务的最大超时时长进行比较,若小于规定业务的最大超时时长,则确定无需向能力开放平台发送确认关闭规定业务的确认消息,否则向能力开放平台发送确认关闭规定业务的确认消息;对于普通用户,则直接向能力开放平台发送确认关闭规定业务的确认消息。In addition, the logic management and control device may also determine according to the user level whether to send a confirmation message to the capability opening platform to confirm that the prescribed service is closed. For example, for a specified service, if the logical management and control device determines that the business rules of the specified service include timing rules, then when the capability openness platform determines that the prescribed service has been used for a period not less than the maximum duration of the specified service, it will send the above notification message to the logical management and control device. The notification reason included in is timeout, and the notification message includes the time that the specified service has exceeded. When the logic control device receives the notification message, it determines that the reason for the notification is timeout, and further determines the user level of the user corresponding to the service. For VIP users, it is determined that there is no need to send a confirmation message to the capability opening platform to confirm that the specified service is closed; for important The user needs to further compare the time that the specified service in the notification message has exceeded with the preset maximum timeout period of the specified service, and if it is less than the maximum timeout period of the specified service, it is determined that there is no need to send a confirmation to the capability opening platform to close the provision Otherwise, send a confirmation message to the capability opening platform to confirm the closure of the specified service; for ordinary users, directly send a confirmation message to the capability exposure platform to confirm the closure of the specified service.
可选地,在步骤S907逻辑管控设备根据接收的通知消息中的消息序列号确定发生异常的业务为规定业务,并根据通知原因确定向能力开放平台发送确认关闭规定业务的确认消息后,本方法还包括:Optionally, in step S907, after the logic management and control device determines that the abnormal service is a specified service according to the message sequence number in the received notification message, and determines to send a confirmation message to the capability opening platform to confirm that the specified service is closed according to the notification reason, the method Also includes:
S908:逻辑管控设备向能力开放平台发确认关闭规定业务的确认消息,确认消息中携带规定业务的业务标识;S908: The logic control device sends a confirmation message to the capability opening platform to confirm that the specified service is closed, and the confirmation message carries the service identifier of the specified service;
S909:能力开放平台在收到逻辑管控设备发送的确认关闭规定业务的确认消息后,将该确认消息中的业务标识置于用于请求关闭规定业务的关闭请求中发给运行规定业务的能力使能端,指示该能力使能端关闭规定业务。S909: After receiving the confirmation message sent by the logical management and control device to confirm the closure of the specified service, the capability opening platform puts the service identifier in the confirmation message into the closing request for requesting the closure of the specified service and sends it to the capability user running the specified service enabled terminal, instructing the capability enabled terminal to close the specified service.
步骤S909中,逻辑管控设备向能力开放平台发送的用于确认关闭规定业务的确认消息中包括了规定业务的业务标识,该业务标识即为逻辑管控设备从能力开放平台发送的用于获取规定业务的业务使用情况的业务使用情况信息请求中的业务标识,而该业务标识是运行规定业务的能力使能端为规定业务分配的业务标识。逻辑管控设备将该业务标识置于确认关闭规定业务的确认消息中发给能力开放平台,而能力开放平台又将该业务标识置于用于请求关闭规定业务的关闭请求中发给运行规定业务的能力使能端,这样运行规定业务的能力使能端根据该业务标识即能确定需要关闭规定业务。In step S909, the confirmation message sent by the logical management and control device to the capability opening platform for confirming that the prescribed service is closed includes the service identifier of the prescribed service, which is the service identifier sent by the logical management and control device from the capability opening platform to obtain the prescribed service. The service identifier in the service usage information request of the service usage situation, and the service identifier is the service identifier allocated for the prescribed service by the capability enabler running the prescribed service. The logic control device puts the service identifier in the confirmation message for confirming the closure of the specified service and sends it to the capability opening platform, and the capability opening platform puts the service identifier in the closing request for requesting to close the specified service and sends it to the operator of the specified service The capability enabler, so that the capability enabler running the specified service can determine that the specified service needs to be closed according to the service identifier.
通常能力开放平台是通过服务器集群的方式实现的,在图3所示的业务处理流程中,当能力开放平台在进行业务逻辑管理时,现有的实现方式有两种:Usually, the capability opening platform is implemented through server clusters. In the business processing flow shown in Figure 3, when the capability opening platform is performing business logic management, there are two existing implementation methods:
方式一、在集群中某个节点收到建立会议的请求后,该节点建立定时任务,每分钟触发扣费请求,同时进行集群内的广播,集群其他节点记录会议标识conferenceID和该节点的标识,当其他节点收到关闭会议请求时,将关闭会议的请求路由到该节点来进行处理。Method 1: After a node in the cluster receives a request to establish a conference, the node creates a scheduled task, triggers a fee deduction request every minute, and broadcasts in the cluster at the same time, and other nodes in the cluster record the conference ID and the node’s ID. When other nodes receive the request to close the conference, the request to close the conference is routed to this node for processing.
方式二、在集群中某个节点收到建立会议的请求后,该节点建立定时任务每分钟触发扣费请求,同时将信息记录到数据库中,当其他节点收到会议关闭请求时,到数据库中查询出是哪个节点处理的建立会议请求,并将消息路由到该节点进行处理。Method 2: After a node in the cluster receives the request to establish a conference, the node creates a scheduled task to trigger a fee deduction request every minute, and at the same time records the information in the database. Find out which node handles the conference establishment request, and route the message to the node for processing.
上述两种方式中,当集群中其他节点收到关闭会议请求,都要通知到处理建立会议消息的节点,消息需要多转发一次。另外,如果该节点宕机,就会造成计费信息的丢失。In the above two methods, when other nodes in the cluster receive a conference closing request, they must notify the node that processes the conference establishment message, and the message needs to be forwarded one more time. In addition, if the node goes down, the billing information will be lost.
采用本方法,由于逻辑管控设备在发给能力开放平台的用于请求关闭规定业务的关闭请求中携带了运行规定业务的能力使能端为规定业务分配的业务标识,则能力开放平台在收到逻辑管控设备发送的用于确认关闭规定业务的确认消息后,将该确认消息中的业务标识置于关闭业务的请求中发给运行规定业务的能力使能端,即能实现通知能力使能端关闭规定业务的目的。With this method, since the closing request sent by the logic control device to the capability opening platform for requesting to close the specified service carries the service identifier allocated for the specified service by the capability enabling end running the specified service, the capability opening platform receives After the confirmation message sent by the logic control device to confirm the closure of the specified service, the service identifier in the confirmation message is placed in the request to close the service and sent to the capability enabler running the specified service, that is, the notification capability enabler can be realized Closing for stated business purposes.
下面,分别从能力开放平台侧和逻辑管控设备侧说明本发明实施例提供的业务处理的方法。In the following, the service processing method provided by the embodiment of the present invention is described respectively from the side of the capability opening platform and the side of the logic management and control device.
首先,从能力开放平台侧说明本发明实施例提供的业务处理方法。First, the service processing method provided by the embodiment of the present invention is described from the side of the capability opening platform.
如图10所示,本发明实施例提供的第二种业务处理的方法包括:As shown in Figure 10, the second service processing method provided by the embodiment of the present invention includes:
S1001:能力开放平台针对一个规定业务,确定能够提供规定业务的业务使用情况信息的逻辑管控设备;S1001: The capability openness platform determines a logical management and control device capable of providing service usage information of a specified service for a specified service;
S1002:能力开放平台向确定的逻辑管控设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求;S1002: The capability opening platform sends a service usage information request for obtaining usage information of specified services to the determined logical management and control device;
S1003:能力开放平台接收逻辑管控设备响应业务使用情况信息请求提供的规定业务的业务使用情况信息;S1003: The capability opening platform receives the service usage information of the specified service provided by the logical management and control device in response to the service usage information request;
S1004:能力开放平台根据接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理。S1004: The capability opening platform processes the prescribed service after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the received service usage information.
可选地,能力开放平台对规定业务进行处理包括:Optionally, the capability opening platform's processing of specified services includes:
能力开放平台根据接收的业务使用情况信息更新规定业务的业务使用情况。The capability opening platform updates the service usage of the specified service according to the received service usage information.
可选地,能力开放平台对规定业务进行处理包括:Optionally, the capability opening platform's processing of specified services includes:
能力开放平台向逻辑管控设备发送用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息;The capability opening platform sends a notification message to the logical management and control device to notify that the usage of the specified service has reached the usage set for the specified service;
能力开放平台接收逻辑管控设备根据上述通知消息反馈的用于确认关闭规定业务的确认消息;The capability opening platform receives the confirmation message fed back by the logical management and control device according to the above notification message for confirming the closure of the specified business;
能力开放平台向运行规定业务的能力使能端发送用于请求关闭规定业务的关闭请求,指示该能力使能端关闭规定业务。The capability opening platform sends a closing request to the capability enabling terminal running the specified service to request to close the specified service, and instructs the capability enabling terminal to close the specified service.
可选地,能力开放平台针对一个规定业务,确定能够提供规定业务的业务使用情况信息的逻辑管控设备,包括:Optionally, for a specified service, the capability opening platform determines the logical management and control equipment that can provide service usage information of the specified service, including:
能力开放平台针对规定业务,根据用于建立规定业务的应用程序编程接口API中的地址信息,确定能够提供规定业务的业务使用情况信息的逻辑管控设备。For the specified services, the capability openness platform determines the logical management and control equipment that can provide the service usage information of the specified services according to the address information in the application programming interface API used to establish the specified services.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
下面,从逻辑管控设备侧说明本发明实施例提供的业务处理的方法。In the following, the service processing method provided by the embodiment of the present invention is described from the logic management and control device side.
如图11所示,本发明实施例提供的第三种业务处理的方法包括:As shown in Figure 11, the third business processing method provided by the embodiment of the present invention includes:
S1101:逻辑管控设备接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;S1101: The logical management and control device receives a service usage information request sent by the capability opening platform for obtaining usage information of specified services;
S1102:逻辑管控设备根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则;S1102: The logic management and control device determines the business rule corresponding to the specified business according to the preset correspondence relationship between the business and the business rule;
S1103:逻辑管控设备根据确定的业务规则,确定规定业务的业务使用情况信息;S1103: The logic management and control device determines the service usage information of the specified service according to the determined service rule;
S1104:逻辑管控设备将确定的业务使用情况信息发送给能力开放平台。S1104: The logic management and control device sends the determined service usage information to the capability opening platform.
可选地,逻辑管控设备根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,包括:Optionally, the logic management and control device determines the business rule corresponding to the specified business according to the preset correspondence between the business and the business rule, including:
逻辑管控设备根据预设的业务、用户标识与业务规则的对应关系,基于业务使用情况信息请求中包括的规定业务对应的用户的用户标识确定规定业务的业务规则。The logic management and control device determines the business rule of the specified service based on the user ID of the user corresponding to the specified service included in the service usage information request according to the preset corresponding relationship between the service, the user ID and the business rule.
可选地,逻辑管控设备根据确定的业务规则,确定规定业务的业务使用情况信息,包括:Optionally, the logic management and control device determines service usage information of specified services according to determined service rules, including:
逻辑管控设备向用于监控规定业务的业务使用情况的监控设备发送查询请求;The logic control device sends a query request to the monitoring device used to monitor the service usage of the specified service;
逻辑管控设备根据该监控设备返回的规定业务的业务使用情况以及确定的业务规则,确定规定业务的业务使用情况信息。The logic management and control device determines the service usage information of the prescribed service according to the service usage status of the prescribed service returned by the monitoring device and the determined business rules.
可选地,逻辑管控设备将确定的业务使用情况信息发送给能力开放平台之后,本方法还包括:Optionally, after the logical management and control device sends the determined service usage information to the capability opening platform, the method further includes:
接收能力开放平台在根据业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量之后,发送的用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息;After determining that the usage of the prescribed business has reached the usage set for the prescribed business according to the service usage information, the receiving capability open platform sends a notification message for notifying that the usage of the prescribed business has reached the usage set for the prescribed business;
逻辑管控设备根据通知消息确定需要关闭规定业务后,向能力开放平台发送用于确认关闭规定业务的确认消息。After the logic management and control device determines that the specified service needs to be closed according to the notification message, it sends a confirmation message to the capability opening platform for confirming that the specified service is closed.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
下面,通过示例一给出本发明实施例能力开放平台和逻辑管控设备之间交互消息的定义。通过示例二,以具体的电话会议为例,给出能力开放平台和逻辑管控设备设备之间交互消息的定义。示例一、示例二中的消息定义仅为示例,并不意味实际的消息定义方式仅限于此。以示例的方式给出消息定义是便于解释和说明,不应视为对本发明实施例提供的业务处理方法加以限制。In the following, the definition of the interaction message between the capability opening platform and the logical management and control device in the embodiment of the present invention is given through Example 1. Through the second example, taking a specific conference call as an example, the definition of the interaction message between the capability opening platform and the logical management and control device is given. The message definitions in Example 1 and Example 2 are just examples, and it does not mean that the actual message definition method is limited to this. The message definition is given as an example for the convenience of explanation and description, and should not be regarded as limiting the service processing method provided by the embodiment of the present invention.
其中,可为每一条请求消息定义其对应的响应消息,消息的接收端利用该响应消息指示消息的发送端已收到该消息,如果在预设的时间内,消息的发送端没有收到响应消息,可选地,可以重发请求消息。比如,业务使用情况信息请求消息对应一条响应消息,用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息也对应一条响应消息。Among them, a corresponding response message can be defined for each request message, and the receiving end of the message uses the response message to indicate that the sending end of the message has received the message. If the sending end of the message does not receive a response within the preset time message, optionally a resend request message. For example, the service usage information request message corresponds to a response message, and the notification message for notifying that the usage of the specified service has reached the usage set for the specified service also corresponds to a response message.
从能力开放系统实现角度来看,用户终端发起的每一次业务请求即为一次逻辑会话。下面为了消息描述简化起见,针对示例一和示例二作如下定义:From the perspective of the realization of the capability opening system, each service request initiated by the user terminal is a logical session. For the sake of simplification of the message description, the following definitions are given for Example 1 and Example 2:
能力开放平台向逻辑管控设备发送业务使用情况信息请求消息的接口为“逻辑会话通知接口”,该接口的请求消息为“业务使用情况信息请求消息”;The interface for the capability exposure platform to send the service usage information request message to the logical management and control device is the "logic session notification interface", and the request message of this interface is the "service usage information request message";
逻辑管控设备向能力开放平台上报业务使用情况信息的接口为“逻辑会话上报接口”,该接口的请求消息为“业务使用情况信息上报消息”;The interface for logical management and control equipment to report service usage information to the capability opening platform is the "logic session reporting interface", and the request message of this interface is "business usage information reporting message";
能力开放平台向逻辑管控设备发送的用于通知业务的使用量达到业务设定的使用量的通知消息的接口为“逻辑会话管理接口”,该接口的请求消息为“逻辑会话管理消息”;The interface of the notification message sent by the capability exposure platform to the logical management and control device for notifying that the usage of the service has reached the usage set by the service is the "logic session management interface", and the request message of this interface is the "logic session management message";
逻辑管控设备向能力开放平台发送用于确认关闭业务的确认消息的接口为“逻辑会话关闭接口”,该接口的请求消息为“关闭业务确认消息”。The interface through which the logical management and control device sends the confirmation message for confirming the closure of the service to the capability opening platform is the "logic session closure interface", and the request message of this interface is the "service closure confirmation message".
示例一、消息定义Example 1. Message definition
1、逻辑会话通知接口,业务流向(能力开放平台->逻辑管控设备)1. Logical session notification interface, business flow (capability open platform -> logic management and control equipment)
1)请求消息(即业务使用情况信息请求消息)定义:除了业务特定的字段之外,在业务使用情况信息请求消息中包括如下字段:1) Definition of the request message (that is, the service usage information request message): In addition to the service-specific fields, the following fields are included in the service usage information request message:
2)响应消息定义:2) Response message definition:
2.逻辑会话上报接口,业务流向(逻辑管控设备->能力开放平台)2. Logical session reporting interface, business flow (logic management and control equipment -> capability exposure platform)
1)请求消息(即业务使用情况信息上报消息)定义:1) Definition of request message (that is, service usage information report message):
2)响应消息定义:2) Response message definition:
3)接口字段说明:3) Interface field description:
chargeID是由逻辑管控设备确定的业务付费方的用户标识,可能有多个。比如:对于电话会议,可能是电话会议的发起方付费,也可能是每个电话会议的使用者都付费,也可能由逻辑管控设备识别是运营商内部的号码,标识为免费等。为逻辑管控设备的可选功能。能力开放平台根据该字段确定付费用户。chargeID is the user ID of the service payer determined by the logic management and control device, and there may be more than one. For example, for a conference call, the initiator of the conference call may pay, or each user of the conference call may pay, or the logic control device may identify the number as an internal number of the operator and mark it as free. An optional feature for logic management devices. The capability exposure platform determines paying users based on this field.
Extension为扩展字段。比如逻辑管控设备每分钟上报一次业务使用情况信息,信息中指示业务已使用的时长,最后关闭业务时可能不满1分钟,此时,可利用该扩展字段携带关闭业务时对应的最后一个时间段内具体使用了多长时间。能力开放平台可以不理解此扩展字段内容的具体含义,但可以对该扩展字段解析后,将扩展字段中的内容写入业务的日志或业务的话单,供事后的回溯或分析使用。Extension is an extension field. For example, the logic management and control device reports the service usage information every minute. The information indicates the duration of service usage. It may be less than 1 minute when the service is finally closed. At this time, this extension field can be used to carry the corresponding last time period when the service is closed. Specifically how long it has been used. The capability exposure platform does not need to understand the specific meaning of the content of this extension field, but after parsing the extension field, it can write the content in the extension field into the business log or business bill for later retrospective or analysis.
3.逻辑会话管理接口,业务流向(能力开放平台->逻辑管控设备)3. Logical session management interface, business flow (capability exposure platform -> logic management and control equipment)
1)请求消息(即逻辑会话管理消息)定义:1) Definition of request message (that is, logical session management message):
2)响应消息定义:2) Response message definition:
3)接口字段说明:3) Interface field description:
Dscription,为通知原因,其中“超过API产品的使用范围”的含义为:对于某些业务,会设置使用范围限制。如正常的电话会议产业务是1分钟5毛钱,但是在0点到早上8点,1分钟只要1毛钱,当到8点01分时,就会返回该通知原因。Dscription, for the reason of notification, the meaning of "exceeding the scope of use of API products" means: for some businesses, there will be restrictions on the scope of use. For example, the normal telephone conference service is 50 cents per minute, but from 0:00 to 8:00 am, it only costs 10 cents per minute. When it reaches 8:01, the reason for the notification will be returned.
4.逻辑会话关闭接口,业务流向(逻辑管控设备->能力开放平台)4. Logical session closing interface, business flow (logic management and control equipment -> capability opening platform)
1)请求消息(即关闭业务确认消息)定义:1) Definition of request message (that is, close business confirmation message):
2)响应消息定义:2) Response message definition:
示例二、电话会议业务的消息示例Example 2: Message example of conference call service
1.逻辑会话通知接口,业务流向(能力开放平台->逻辑管控设备)1. Logical session notification interface, business flow (capability exposure platform -> logic management and control equipment)
1)请求消息(即业务使用情况信息请求消息)示例:1) Example of request message (that is, service usage information request message):
2)响应消息示例:2) Example response message:
2、逻辑会话上报接口,业务流向(逻辑管控设备->能力开放平台)2. Logical session reporting interface, business flow (logic management and control equipment -> capability open platform)
1)请求消息(即业务使用情况信息上报消息)示例:1) Example of a request message (that is, a message for reporting business usage information):
2)响应消息示例:2) Example response message:
3.逻辑会话管理接口,业务流向(能力开放平台->逻辑管控设备)3. Logical session management interface, business flow (capability exposure platform -> logic management and control equipment)
1)请求消息(即逻辑会话管理消息)示例:1) Example of a request message (that is, a logical session management message):
2)响应消息定义:2) Response message definition:
4.逻辑会话关闭接口,业务流向(逻辑管控设备->能力开放平台)4. Logical session closing interface, business flow (logic management and control equipment -> capability opening platform)
1)请求消息(即关闭业务确认消息)示例:1) Example of request message (that is, close business confirmation message):
2)响应消息示例:2) Example response message:
下面通过实施例一、实施例二和实施例三说明本发明实施例提供的业务处理的方法。The following describes the service processing method provided by the embodiment of the present invention through Embodiment 1, Embodiment 2 and Embodiment 3.
实施例一、电话会议处理方法Embodiment 1. Teleconference processing method
用户终端向能力开放平台发送建立电话会议业务的请求,能力开放平台调用用于建立电话会议业务的API,能力开放平台在该API具有逻辑处理标识的情况下,通过调用该API将建立电话会议的请求发往电话会议的能力使能端(即电话会议处理系统),并从电话会议处理系统的响应消息中获取其为该电话会议业务分配的业务标识,能力开放平台将该业务标识置于业务使用情况信息请求中,发给逻辑管控设备。The user terminal sends a request for establishing a conference call service to the capability opening platform, and the capability opening platform calls an API for establishing a conference call service. If the API has a logic processing identifier, the capability opening platform will establish a conference call by calling the API. The request is sent to the capability enabler of the conference call (that is, the conference call processing system), and the service identifier allocated for the conference call service is obtained from the response message of the conference call processing system. The capability opening platform puts the service identifier in the service In the usage information request, it is sent to the logical management and control device.
逻辑管控设备接收到能力开放平台发送的业务使用情况信息请求后,周期性将业务使用情况信息上报给能力开放平台,由能力开放平台进行业务上管理,如扣费等。After receiving the service usage information request sent by the capability openness platform, the logic control device periodically reports the service usage information to the capability openness platform, and the capability openness platform conducts business management, such as deduction, etc.
图12为实施例一的业务处理流程图。如图12所示,实施例一的方法包括如下步骤:Fig. 12 is a flow chart of business processing in Embodiment 1. As shown in Figure 12, the method of Embodiment 1 includes the following steps:
S1201:用户终端向能力开放平台发送建立电话会议的请求;S1201: The user terminal sends a request for establishing a conference call to the capability opening platform;
S1202:能力开放平台调用用于建立电话会议的API,将建立电话会议的请求发给电话会议处理系统;S1202: The capability exposure platform invokes an API for establishing a conference call, and sends a request for establishing a conference call to the conference call processing system;
S1203:电话会议处理系统向能力开放平台发送建立电话会议的响应,响应中携带电话会议处理系统为该电话会议分配的会议标识;S1203: The teleconference processing system sends a response for establishing a teleconference to the capability opening platform, and the response carries the conference ID allocated by the teleconference processing system for the teleconference;
S1204:能力开放平台向逻辑管控设备发送业务使用情况信息请求,请求中携带用于建立电话会议的API的API标识、电话会议发起方的用户标识以及电话会议处理系统为该电话会议分配的会议标识;S1204: The capability exposure platform sends a service usage information request to the logical management and control device, and the request carries the API ID of the API used to establish the conference call, the user ID of the conference call initiator, and the conference ID allocated for the conference call by the conference call processing system ;
S1205:逻辑管控设备收到业务使用情况信息请求后,根据电话会议对应的业务规则确定该电话会议的业务使用情况信息;S1205: After receiving the service usage information request, the logic control device determines the business usage information of the conference call according to the business rules corresponding to the conference call;
S1206:逻辑管控设备向能力开放平台上报业务使用情况信息,同时将标识业务使用情况信息的消息序列号、用于建立电话会议的API的API标识、电话会议发起方的用户标识发给能力开放平台;S1206: The logic management and control device reports the service usage information to the capability opening platform, and at the same time sends the message sequence number identifying the service usage information, the API ID of the API used to establish the conference call, and the user ID of the conference call initiator to the capability opening platform ;
S1207:能力开放平台根据收到的业务使用情况信息确定电话会议的使用量是否已达到电话会议设定的使用量;若是,则返回步骤S1205,否则,执行步骤S1208;S1207: The capability opening platform determines whether the usage of the conference call has reached the set usage amount of the conference call according to the received business usage information; if so, return to step S1205, otherwise, execute step S1208;
S1208:能力开放平台在确定电话会议的使用量是否已达到电话会议设定的使用量后,向逻辑管控设备发送逻辑会话管理消息,消息中携带通知原因和消息序列号,其中,消息序列号为步骤S1207中能力开放平台收到的业务使用情况信息对应的消息序列号;S1208: After determining whether the usage amount of the conference call has reached the usage amount set by the conference call, the capability opening platform sends a logic session management message to the logic management and control device, and the message carries the notification reason and the message sequence number, where the message sequence number is In step S1207, the message sequence number corresponding to the service usage information received by the capability opening platform;
S1209:逻辑管控设备收到逻辑会话管理消息后,将消息中的消息序列号与之前发送的业务使用情况信息对应的消息序列号进行比对,确定对应的业务使用情况信息,根据业务使用情况信息与电话会议的对应关系,确定对应的电话会议,并根据逻辑会话管理消息中的通知原因确定是否需要关闭电话会议;S1209: After receiving the logical session management message, the logic management and control device compares the message sequence number in the message with the message sequence number corresponding to the previously sent service usage information to determine the corresponding service usage information, and according to the service usage information The corresponding relationship with the conference call, determine the corresponding conference call, and determine whether the conference call needs to be closed according to the notification reason in the logical session management message;
S1210:逻辑管控设备在确定需要关闭电话会议后,向能力开放平台发送关闭会议确认消息,其中携带会议标识,该会议标识即为步骤S1205中逻辑管控设备接收的业务使用情况信息请求中的会议标识,以及关闭会议的发起方标识,此处,由于是逻辑管控设备确认关闭会议,则关闭会议的发起方标识为“逻辑管控设备”;S1210: After the logic management and control device determines that the conference call needs to be closed, it sends a confirmation message of closing the conference to the capability opening platform, which carries a conference ID, which is the conference ID in the service usage information request received by the logic management and control device in step S1205 , and the ID of the initiator of the closed conference. Here, since the logical management and control device confirms the closing of the conference, the ID of the initiator of the closed conference is "logic management and control device";
S1211:能力开放平台收到逻辑管控设备发送的关闭会议确认消息后,向电话会议处理系统发送关闭会议请求,指示电话会议处理系统根据收到的关闭会议请求中的会议标识,确定需要关闭的会议,并关闭会议;S1211: After receiving the closing conference confirmation message sent by the logical management and control device, the capability opening platform sends a closing conference request to the teleconference processing system, instructing the teleconference processing system to determine the conference to be closed according to the conference ID in the received closing conference request , and close the session;
S1212:能力开放平台向逻辑管控设备发送关闭会议的请求;S1212: The capability opening platform sends a request to close the conference to the logical management and control device;
S1213:逻辑管控设备接收关闭会议的请求,并根据该关闭会议请求中的会议标识确定对应的电话会议,结束逻辑会话;S1213: The logic management and control device receives the request to close the conference, and determines the corresponding conference call according to the conference identifier in the request to close the conference, and ends the logical session;
以上步骤S1208至S1213是在电话会议的使用量达到电话会议预设的使用量时的处理方法,若用户终端发起关闭会议的请求,则在步骤S1208后,实施例一包括如下步骤:The above steps S1208 to S1213 are processing methods when the usage amount of the conference call reaches the preset usage amount of the conference call. If the user terminal initiates a request to close the conference, after step S1208, the first embodiment includes the following steps:
S1214:用户终端向能力开放平台发送关闭会议的请求,请求中携带会议标识(在建立电话会议时,电话会议处理系统在建立会议的响应消息中返回,用户终端在会议期间保存该会议标识。)和关闭会议的发起方标识,由于是用户终端发起关闭会议的请求,这里关闭会议的发起方标识为请求关闭会议的用户的用户标识;S1214: The user terminal sends a request to close the conference to the capability opening platform, and the request carries a conference ID (when establishing a conference call, the conference call processing system returns in a response message for establishing a conference, and the user terminal saves the conference ID during the conference.) and the initiator ID of the closed conference, since the user terminal initiates the request to close the conference, the initiator ID of the closed conference here is the user ID of the user requesting to close the conference;
S1215:能力开放平台收到用户终端发送的关闭会议的请求后,将该关闭会议的请求转给电话会议处理系统,以使电话会议处理系统收到该关闭会议的请求后,根据其中的会议标识确定需要关闭的会议,关闭该电话会议;S1215: After receiving the request for closing the conference sent by the user terminal, the capability opening platform transfers the request for closing the conference to the teleconference processing system, so that the teleconference processing system, after receiving the request for closing the conference, Determine the conference that needs to be closed, and close the conference call;
S1216:能力开放平台向逻辑管控设备发送关闭会议的请求,请求中包括会议标识;S1216: The capability opening platform sends a request to close the conference to the logical management and control device, and the request includes a conference identifier;
S1217:逻辑管控设备接收关闭会议的请求,并根据该关闭会议请求中的会议标识确定对应的电话会议,结束逻辑会话。S1217: The logic management and control device receives the request for closing the conference, and determines a corresponding conference call according to the conference identifier in the request for closing the conference, and ends the logical session.
实施例二、电话会议处理方法(需要监控业务使用的流量)Embodiment 2: Teleconference processing method (need to monitor the traffic used by the business)
图13为实施例二的电话会议处理方法的流程图。如图13所示,实施例二与实施例一相比,逻辑管控设备在收到能力开放平台发来的业务使用情况信息请求消息后,周期性地向流量监控设备发出查询使用该电话会议的各用户流量的请求,并接收流量监控设备返回的各用户使用的流量。逻辑管控设备根据各用户使用的流量计算该电话会议所有用户已使用的总流量,当电话会议的逻辑规则为流量规则时,将该总流量上报给能力开放平台,当电话会议的逻辑规则为计费规则时,根据该总流量,确定电话会议已产生的费用,并将确定的已产生的费用上报给能力开放平台。Fig. 13 is a flow chart of the method for processing a conference call in the second embodiment. As shown in Figure 13, compared with Embodiment 1 in Embodiment 2, after receiving the service usage information request message sent by the capability opening platform, the logical management and control device periodically sends a query to the traffic monitoring device to use the conference call. Request for traffic of each user, and receive the traffic used by each user returned by the traffic monitoring device. The logic control device calculates the total traffic used by all users of the conference call based on the traffic used by each user. When the logical rule of the conference call is a traffic rule, the total traffic is reported to the capability opening platform. When using the fee rules, determine the fees incurred by the conference call according to the total traffic, and report the determined fees generated to the capability opening platform.
实施例三、电话会议处理方法(需要监控业务占用的带宽)Embodiment 3: Teleconference Processing Method (Bandwidth Occupied by Business Needs to be Monitored)
图14为实施例三的电话会议处理方法的流程图。如图14所示,实施例三与实施例一相比,逻辑管控设备在收到能力开放平台发来的建立会议的请求后,周期性地向带宽监控设备发出业务占用带宽查询的请求,并接收带宽监控设备返回的电话会议占用的带宽。逻辑管控设备根据电话会议占用的带宽确定电话会议的费率,比如:当电话会议占用10M以下带宽时,费率为每分钟0.6元,当电话会议占用10M及10M以上的带宽时,费率为每分钟1元。逻辑管控设备根据确定的费率计算电话业务已使用的费用,周期性上报给能力开放平台。FIG. 14 is a flow chart of the conference call processing method in the third embodiment. As shown in Figure 14, compared with Embodiment 1, the logic management and control device periodically sends a service occupation bandwidth query request to the bandwidth monitoring device after receiving the conference establishment request sent by the capability opening platform, and Receive the bandwidth occupied by the teleconference returned by the bandwidth monitoring device. The logical control device determines the rate of the conference call according to the bandwidth occupied by the conference call. For example, when the conference call occupies a bandwidth of less than 10M, the rate is 0.6 yuan per minute; when the conference call occupies a bandwidth of 10M or more, the rate is 1 yuan per minute. The logical management and control device calculates the cost of the telephone service used according to the determined rate, and periodically reports it to the capability opening platform.
实施例四、在线视频观看处理方法(需要监控流量)Embodiment 4, online video viewing processing method (requires traffic monitoring)
图15为实施例四的在线视频观看处理方法的流程图。在实施例四中,用户已订购了30元包100M流量的通用流量套餐包,该流量套餐业务在流量监控设备处统计与控制。但由于视频业务会使用大量流量,此时,在能力平台上可开放诸如10元包100M流量的视频定向流量套餐包,此流量只能定向到某些视频网站上在线看视频,此流量单独计算,不纳入30元包100M流量的通用流量套餐包。Fig. 15 is a flow chart of the online video viewing processing method according to the fourth embodiment. In Embodiment 4, the user has ordered a general traffic package with 100M traffic for 30 yuan, and the traffic package service is counted and controlled at the traffic monitoring device. However, since the video service will use a large amount of traffic, at this time, a video directional traffic package such as 10 yuan package of 100M traffic can be opened on the capability platform. This traffic can only be directed to certain video websites to watch videos online, and this traffic is calculated separately , not included in the 30 yuan package of 100M traffic general traffic package.
如图15所示,实施例四的在线视频观看处理方法中,用户终端发起在线视频观看请求,请求到视频定向流量套餐包对应的特定视频网站上观看视频,能力开放平台将该请求发送到流量监控设备,指示流量监控设备该视频业务使用的是10元包100M流量的视频定向流量套餐包,而不是30元包100M的通用流量套餐包,便于后续流量的核减。同时能力开放平台将在线视频请求发送到逻辑管控设备。As shown in Figure 15, in the online video viewing processing method of Embodiment 4, the user terminal initiates an online video viewing request and requests to watch the video on a specific video website corresponding to the video directional traffic package, and the capability opening platform sends the request to the traffic Monitoring equipment, instructing the traffic monitoring equipment that the video service uses a video directional traffic package with 10 yuan package of 100M traffic instead of a 30 yuan package of 100M general traffic package, which is convenient for subsequent traffic verification and reduction. At the same time, the capability opening platform sends the online video request to the logical management and control device.
逻辑管控设备周期性到流量监控设备处查询用户视频定向套餐使用的流量,若该在线视频观看的逻辑规则是流量规则,则逻辑管控设备将业务已使用的流量上报给能力开放平台;若该在线视频观看的逻辑规则是计费规则,则逻辑管控设备根据业务已使用的流量确定业务已使用的费用,并将业务已使用的费用上报给能力开放平台。The logical management and control device periodically checks the traffic used by the user's targeted video package at the traffic monitoring device. If the logical rule for online video watching is a traffic rule, the logical management and control device will report the traffic used by the service to the capability exposure platform; if the online The logic rules for video viewing are billing rules, and the logic management and control device determines the fees used by the services based on the traffic used by the services, and reports the fees used by the services to the capability exposure platform.
图5所示,为本发明实施例提供的能力开放平台,该能力开放平台包括:As shown in Figure 5, the capability opening platform provided by the embodiment of the present invention, the capability opening platform includes:
第一处理模块501,用于针对一个规定业务,确定能够提供规定业务的业务使用情况信息的业务处理设备;The first processing module 501 is configured to, for a specified service, determine a service processing device capable of providing service usage information of the specified service;
发送模块502,用于向第一处理模块501确定的业务设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求;A sending module 502, configured to send a service usage information request for obtaining usage information of a specified service to the service device determined by the first processing module 501;
接收模块503,用于接收业务处理设备响应业务使用情况信息请求提供的规定业务的业务使用情况信息;The receiving module 503 is configured to receive the service usage information of the specified service provided by the service processing device in response to the service usage information request;
第二处理模块504,用于根据接收模块503接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理。The second processing module 504 is configured to process the prescribed service after determining that the usage of the prescribed service has reached the usage amount set for the prescribed service according to the service usage information received by the receiving module 503 .
可选地,第二第二处理模块504具体用于:Optionally, the second second processing module 504 is specifically configured to:
在根据接收模块503接收的业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量之后,根据接收模块503接收的业务使用情况信息更新规定业务的业务使用情况。After determining according to the service usage information received by the receiving module 503 that the usage amount of the prescribed service has reached the usage amount set for the prescribed service, update the service usage status of the prescribed service according to the service usage information received by the receiving module 503 .
可选地,第二处理模块504具体用于:Optionally, the second processing module 504 is specifically configured to:
在确定规定业务的使用量达到针对规定业务设定的使用量之后,向业务处理设备发送用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息;接收业务处理设备根据通知消息反馈的用于确认关闭规定业务的确认消息;向运行规定业务的能力使能端发送用于请求关闭规定业务的关闭请求,指示能力使能端关闭规定业务。After determining that the usage of the prescribed service has reached the usage amount set for the prescribed business, send a notification message for notifying the usage amount of the prescribed business to the usage amount set for the prescribed business to the business processing device; the receiving business processing device according to the notification The message feedback is used to confirm the closure of the specified business; send a shutdown request to the capability enabler running the specified service to request the shutdown of the specified service, and instruct the capability enabler to close the specified service.
可选地,第一处理模块501具体用于:Optionally, the first processing module 501 is specifically configured to:
针对规定业务,根据用于建立规定业务的应用程序编程接口API中的地址信息,确定能够提供规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
图6所示,为本发明实施例提供的业务处理设备,该设备包括:As shown in FIG. 6, it is a service processing device provided by an embodiment of the present invention, and the device includes:
接收模块601,用于接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求;The receiving module 601 is configured to receive a service usage information request sent by the capability opening platform for obtaining usage information of specified services;
第一确定模块602,用于根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则;The first determining module 602 is configured to determine the business rule corresponding to the specified business according to the preset correspondence between the business and the business rule;
第二确定模块603,用于根据第一确定模块602确定的业务规则,确定规定业务的业务使用情况信息;The second determination module 603 is configured to determine the service usage information of the specified service according to the business rules determined by the first determination module 602;
发送模块604,用于将业务使用情况信息确定模块确定的业务使用情况信息发送给能力开放平台。The sending module 604 is configured to send the service usage information determined by the service usage information determination module to the capability opening platform.
可选地,第一确定模块602具体用于:Optionally, the first determining module 602 is specifically configured to:
根据预设的业务、用户标识与业务规则的对应关系,基于接收模块601接收的业务使用情况信息请求中包括的规定业务对应的用户的用户标识确定规定业务的业务规则。According to the preset corresponding relationship between services, user IDs and business rules, the business rules of the specified services are determined based on the user IDs of the users corresponding to the specified services included in the service usage information request received by the receiving module 601 .
可选地,发送模块604还用于:Optionally, the sending module 604 is also used for:
向用于监控规定业务的业务使用情况的监控设备发送查询请求;Send an inquiry request to the monitoring equipment used to monitor the service usage of the specified service;
接收模块601还用于:接收监控设备返回的规定业务的业务使用情况;The receiving module 601 is also used to: receive the service usage status of the specified service returned by the monitoring device;
第二确定模块603具体用于:根据接收模块601接收的监控设备返回的规定业务的业务使用情况以及确定的业务规则,确定规定业务的业务使用情况信息。The second determining module 603 is specifically configured to: determine the service usage information of the specified service according to the service usage status of the specified service returned by the monitoring device received by the receiving module 601 and the determined business rules.
可选地,接收模块601还用于:Optionally, the receiving module 601 is also used for:
在发送模块604将确定的业务使用情况信息发送给能力开放平台之后,接收能力开放平台在根据业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量之后,发送的用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息;After the sending module 604 sends the determined service usage information to the capability opening platform, the receiving capability opening platform determines that the usage amount of the specified service reaches the usage amount set for the specified service according to the service usage information, and then sends the information for notification. A notification message that the usage of the specified service reaches the usage set for the specified service;
设备还包括第三确定模块,用于根据接收模块601接收的通知消息确定需要关闭规定业务;The device also includes a third determining module, configured to determine that the specified service needs to be closed according to the notification message received by the receiving module 601;
发送模块604还用于,在第三确定模块确定需要关闭规定业务后,向能力开放平台发送用于确认关闭规定业务的确认消息。The sending module 604 is further configured to, after the third determining module determines that the prescribed service needs to be closed, send a confirmation message for confirming closing the prescribed service to the capability opening platform.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
图7所示,为本发明实施例提供的能力开放平台,该能力开放平台包括:As shown in FIG. 7, the capability opening platform provided by the embodiment of the present invention includes:
处理器701,用于针对一个规定业务,确定能够提供规定业务的业务使用情况信息的业务处理设备,以及根据I/O装置接收的业务使用情况信息,在确定规定业务的使用量达到针对规定业务设定的使用量后,对规定业务进行处理;The processor 701 is configured to, for a specified service, determine a service processing device capable of providing service usage information of the specified service, and according to the service usage information received by the I/O device, when it is determined that the usage amount of the specified service reaches the required amount for the specified service After the set amount of usage, the specified business is processed;
I/O装置702,用于向处理器701确定的业务处理设备发送用于获取规定业务的使用情况信息的业务使用情况信息请求,以及接收业务处理设备响应业务使用情况信息请求提供的规定业务的业务使用情况信息。The I/O device 702 is configured to send to the service processing device determined by the processor 701 a service usage information request for obtaining the usage information of the specified service, and receive the specified service provided by the service processing device in response to the service usage information request Business usage information.
可选地,处理器701具体用于:Optionally, the processor 701 is specifically configured to:
在确定规定业务的使用量达到针对规定业务设定的使用量之后,根据I/O装置702接收的业务使用情况信息更新规定业务的业务使用情况。After it is determined that the usage amount of the prescribed service reaches the usage amount set for the prescribed service, the service usage information of the prescribed service is updated according to the service usage information received by the I/O device 702 .
可选地,处理器701具体用于:Optionally, the processor 701 is specifically configured to:
在确定规定业务的使用量达到针对规定业务设定的使用量之后,通过I/O装置702向业务处理设备发送用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息,以及在I/O装置702收到业务处理设备根据通知消息反馈的用于确认关闭规定业务的确认消息后,通过I/O装置702向运行规定业务的能力使能端发送用于请求关闭规定业务的关闭请求,指示能力使能端关闭规定业务。After determining that the usage amount of the prescribed service reaches the usage amount set for the prescribed business, the I/O device 702 sends a notification message for notifying that the usage amount of the prescribed business reaches the usage amount set for the prescribed business to the service processing device, And after the I/O device 702 receives the confirmation message for confirming the closure of the specified service fed back by the service processing device according to the notification message, the I/O device 702 sends a request for closing the specified service to the capability-enabled end running the specified service. A close request, instructing the capability enabler to close the specified service.
可选地,处理器701具体用于:Optionally, the processor 701 is specifically configured to:
针对规定业务,根据用于建立规定业务的应用程序编程接口API中的地址信息,确定能够提供规定业务的业务使用情况信息的业务处理设备。For the specified service, according to the address information in the application programming interface API used to establish the specified service, determine the service processing device that can provide the service usage information of the specified service.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者数量。Business usage fee, business usage time, business usage traffic, business resource usage, and the number of business users.
图8所示,为本发明实施例提供的业务处理设备,该设备包括:As shown in FIG. 8, it is a service processing device provided by an embodiment of the present invention. The device includes:
I/O装置801,用于接收能力开放平台发送的、用于获取规定业务的使用情况信息的业务使用情况信息请求,以及将处理器802确定的规定业务的业务使用情况信息发送给能力开放平台;The I/O device 801 is configured to receive the service usage information request sent by the capability opening platform for obtaining the usage information of the specified service, and send the service usage information of the specified service determined by the processor 802 to the capability opening platform ;
处理器802,用于根据预设的业务与业务规则的对应关系,确定规定业务对应的业务规则,以及根据确定的业务规则,确定规定业务的业务使用情况信息。The processor 802 is configured to determine the business rule corresponding to the prescribed service according to the preset correspondence between the business and the business rule, and determine the service usage information of the prescribed service according to the determined business rule.
可选地,处理器802具体用于:Optionally, the processor 802 is specifically configured to:
根据预设的业务、用户标识与业务规则的对应关系,基于I/O装置801接收的业务使用情况信息请求中包括的规定业务对应的用户的用户标识确定规定业务的业务规则。According to the preset corresponding relationship between services, user IDs and business rules, the business rules of the specified services are determined based on the user IDs of the users corresponding to the specified services included in the service usage information request received by the I/O device 801 .
可选地,I/O装置801还用于:Optionally, the I/O device 801 is also used for:
向用于监控规定业务的业务使用情况的监控设备发送查询请求,以及接收监控设备返回的规定业务的业务使用情况;Send a query request to the monitoring device used to monitor the service usage of the specified service, and receive the service usage of the specified service returned by the monitoring device;
处理器802具体用于:根据I/O装置801接收的、监控设备返回的、规定业务的业务使用情况以及确定的业务规则,确定规定业务的业务使用情况信息。The processor 802 is specifically configured to: determine the service usage information of the specified service according to the service usage status of the specified service received by the I/O device 801 and returned by the monitoring device and the determined business rule.
可选地,I/O装置801还用于:Optionally, the I/O device 801 is also used for:
在将确定的业务使用情况信息发送给能力开放平台之后,接收能力开放平台在根据业务使用情况信息确定规定业务的使用量达到针对规定业务设定的使用量之后发送的、用于通知规定业务的使用量达到针对规定业务设定的使用量的通知消息,以及在处理器802确定需要关闭规定业务后,向能力开放平台发送用于确认关闭规定业务的确认消息。After sending the determined service usage information to the capability opening platform, the receiving capability opening platform is used to notify the specified service after it determines that the usage of the specified service has reached the usage set for the specified service according to the service usage information. A notification message that the usage amount reaches the usage amount set for the specified service, and after the processor 802 determines that the specified service needs to be closed, send a confirmation message for confirming that the specified service is closed to the capability opening platform.
处理器802还用于:根据I/O装置801接收的通知消息确定需要关闭规定业务。The processor 802 is further configured to: determine according to the notification message received by the I/O device 801 that a prescribed service needs to be closed.
可选地,业务情况使用信息包括下列信息中的至少一种:Optionally, the business situation usage information includes at least one of the following information:
业务使用费用、业务使用时长、业务使用流量、业务的资源占用量、业务的使用者的数量。Service usage fee, service usage duration, service usage traffic, service resource occupation, and the number of service users.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在所述计算机可读存储器中的指令产生包括指令装置的制造品,所述指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, so The instruction means implements the functions specified in one or more procedures of the flow chart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (28)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310443328.6A CN103532932B (en) | 2013-09-25 | 2013-09-25 | A capability opening system, business processing method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310443328.6A CN103532932B (en) | 2013-09-25 | 2013-09-25 | A capability opening system, business processing method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103532932A CN103532932A (en) | 2014-01-22 |
| CN103532932B true CN103532932B (en) | 2017-06-27 |
Family
ID=49934612
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310443328.6A Active CN103532932B (en) | 2013-09-25 | 2013-09-25 | A capability opening system, business processing method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103532932B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104735134B (en) * | 2015-02-15 | 2018-12-18 | 百度在线网络技术(北京)有限公司 | A kind of method and apparatus serviced for providing calculating |
| CN106685671B (en) * | 2015-11-10 | 2020-03-17 | 中兴通讯股份有限公司 | Method and device for realizing directional traffic card and traffic service platform |
| CN106209894A (en) * | 2016-07-27 | 2016-12-07 | 福建富士通信息软件有限公司 | A kind of method based on NGINX unified certification and system |
| CN106792923B (en) * | 2017-02-09 | 2019-12-17 | 华为软件技术有限公司 | Method and device for configuring QoS strategy |
| CN110536035B (en) * | 2019-09-26 | 2021-07-30 | 北京二六三企业通信有限公司 | Telephone conference charging method, device and equipment |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101060413A (en) * | 2006-04-17 | 2007-10-24 | 华为技术有限公司 | Roaming policy and charging control method and system |
| CN102196006A (en) * | 2010-03-17 | 2011-09-21 | 中国移动通信集团公司 | Open system for providing resources for application program |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101193153A (en) * | 2006-12-01 | 2008-06-04 | 华为技术有限公司 | A method, system and device for realizing control billing |
| CN101335743B (en) * | 2007-06-29 | 2013-07-31 | 中国移动通信集团公司 | Gateway and information processing method for gateway |
| CN101383845B (en) * | 2008-10-15 | 2011-12-21 | 北京邮电大学 | Integrated service access device, system and control method |
| KR20120075615A (en) * | 2010-12-17 | 2012-07-09 | 한국전자통신연구원 | System and method for account management based on open api using restful web service |
| US9497184B2 (en) * | 2011-03-28 | 2016-11-15 | International Business Machines Corporation | User impersonation/delegation in a token-based authentication system |
-
2013
- 2013-09-25 CN CN201310443328.6A patent/CN103532932B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101060413A (en) * | 2006-04-17 | 2007-10-24 | 华为技术有限公司 | Roaming policy and charging control method and system |
| CN102196006A (en) * | 2010-03-17 | 2011-09-21 | 中国移动通信集团公司 | Open system for providing resources for application program |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103532932A (en) | 2014-01-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11330108B2 (en) | System and method for a work distribution service | |
| US9686230B2 (en) | Management of application server-related user data | |
| US8375360B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| US8291077B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| US9143540B2 (en) | System and method for providing service correlation in a service access gateway environment | |
| US8050391B1 (en) | System and method for capturing accounting data for a communication session | |
| US8612568B2 (en) | Method, system and network server for recording use of network service capability by applications | |
| US9294867B2 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| US9712634B2 (en) | Orchestrating mobile data networks in a network environment | |
| CN103532932B (en) | A capability opening system, business processing method and device | |
| EP3753273B1 (en) | Msisdn request handling for identity fraud management | |
| CN111224831B (en) | Method and system for generating call ticket | |
| JP2011505711A (en) | Call billing and routing of billing information in an internet protocol multimedia subsystem | |
| CN105099803A (en) | A traffic identification method, application server and network element equipment | |
| EP1681832A1 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| JP2017522819A (en) | Billing method and device, access device, service quality control method and device | |
| CN105099802A (en) | Traffic identification method, terminal, and network element equipment | |
| US20060161616A1 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| CN100442714C (en) | Communication fingerprint system and communication fingerprint collection and management method | |
| US20060190539A1 (en) | Provision of services over a common delivery platform such as a mobile telephony network | |
| US8804928B2 (en) | System and method for allowing virtual private network users to obtain presence status and/or location of others on demand | |
| JP2005070884A (en) | Charging policy generation device, metadata distribution server, pay information distribution server, pay information distribution system, charging policy generation method, and pay information charging method | |
| US10318961B2 (en) | Method and arrangement for providing network events | |
| CN114257552A (en) | Traffic acceleration method, device and terminal | |
| US20130074118A1 (en) | Service alert messages for customer premises communication devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |