Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberCN101727648 B
Publication typeGrant
Application numberCN 200910204557
Publication date25 Jul 2012
Filing date1 Dec 2009
Priority date1 Dec 2009
Also published asCN101727648A
Publication number200910204557.6, CN 101727648 B, CN 101727648B, CN 200910204557, CN-B-101727648, CN101727648 B, CN101727648B, CN200910204557, CN200910204557.6
Inventors吴炜斯, 施健, 杨芬, 王迎春
Applicant中国建设银行股份有限公司
Export CitationBiBTeX, EndNote, RefMan
External Links: SIPO, Espacenet
Overtime control method in service system and service system
CN 101727648 B
Abstract
The invention discloses an overtime control method in a service system. The method is implemented by setting agent modules of each time control link for processing access service at the core platform of the service system to register the overtime control information corresponding to each time control link in an overtime management module, calculating the actual overtime standard corresponding to each time control link according to the current service system time when the communication leading-out is carried out on the processed access service by the overtime control method information and theservice system, and finally carrying out overtime control on the communication leading-out according to the selected transaction overtime standard. Correspondingly, the invention discloses a service system applying the overtime control method, the overtime control is extended to the application layer of the system to realize overtime control of fine grain, thus satisfying the time control requirement of the service system on access services of different application contexts, protecting the service system and the front end system resource, and improving the user experience of the service system.
Claims(17)  translated from Chinese
1. 一种服务系统中的超时控制方法,其特征在于,所述方法包括:a.将服务系统核心平台处理接入业务的各个时控环节对应的超时控制信息分别登记在超时管理模块中;b.当服务系统核心平台处理完接入业务,通讯接出时,所述超时管理模块根据所述超时控制信息和当前服务系统时间计算所述各个时控环节对应的实际超时标准;c.所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准;d.根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 A service system timeout control method, wherein the method comprises:. A core platform will handle various service system when the control link access services corresponding to the timeout control information registered in the overtime management module; . b When the service system is the core platform processed access service, communication pick out the overtime management module according to the timeout control information and the current service system time when calculating the various aspects of the corresponding actual timeout control standards; c are. said overtime management module according to one of the actual control strategies chosen timeout timeout standard configuration of the standard as a transaction timeout;. d according to the transaction timeout standard communication access services take out the time-out control.
2.根据权利要求I所述的方法,其特征在于,在步骤a中,对于所述各个时控环节中的每一个时控环节作如下处理:在所述时控环节设置代理模块;通过所述代理模块将所述时控环节对应的超时控制信息登记到超时管理模块中。 2. The method according to claim I, wherein in step a timed for the various aspects of each of the control link when handled as follows: set the proxy module in the timed segment; by the said agent module links the timed registration information corresponding to the timeout timeout control management module.
3.根据权利要求2所述的方法,其特征在于,所述超时控制信息包括:当前线程标识、 所述时控环节处理接入业务的开始时间、所述时控环节对应的超时配置标准和接入业务在所述时控环节对应的超时配置标准索引信息。 3. The method according to claim 2, wherein the timeout control information includes: current start time for a thread ID, the process when the control link access services, the corresponding part of the timed-out configuration standards and access service at the timed segment index corresponding standard timeout configuration information.
4.根据权利要求3所述的方法,其特征在于,接入业务在所述时控环节对应的超时配置标准索引信息为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 4. The method according to claim 3, wherein the access control aspects of the business at the time corresponding to the timeout configuration standard index information access service at the timed part of the corresponding application or service feature information system core platform handles the access execution trace element information corresponding to the service applications in the time control link.
5.根据权利要求4所述的方法,其特征在于,通过所述代理模块将所述时控环节对应的超时控制信息登记到超时管理模块中包括:获取当前线程标识、所述时控环节处理接入业务的开始时间和接入业务在所述时控环节对应的超时配置标准索引信息;根据接入业务在所述时控环节对应的超时配置标准索引信息获取接入业务在所述时控环节对应的超时配置标准;所述代理模块将当前线程标识、所述时控环节处理接入业务的开始时间、接入业务在所述时控环节对应的超时配置标准索引信息和接入业务在所述时控环节对应的超时配置标准作为一条记录登记在所述超时管理模块中。 5. The method according to claim 4, characterized in that, by the time the agent module control link timeout control information register corresponding to the time-out management module comprising: obtaining the current thread ID, when the control part of the processing access services and access services at the start time of the timed segment index corresponding standard timeout configuration information; get access to the service control access service at the time based on the time-controlled part of the standard index corresponding timeout configuration information link timeout configuration corresponding standards; the agent module to the current thread ID, the time control link access business process start time, access service at the timed segment index corresponding timeout configuration standards and access to business information The time control link corresponding timeout configuration standards as a record registered in the overtime management module.
6.根据权利要求3至5中任意一项所述的方法,其特征在于,所述接入业务在所述时控环节对应的超时配置标准为时控环节超时标准。 6. The method according to any one of claims 3-5 claim, wherein the access service at the timed part of the corresponding control link timeout configuration standard is too time-out standards.
7.根据权利要求6所述的方法,其特征在于,步骤b具体为:获取所述当前服务系统时间;对于所述各个时控环节中的每一个时控环节作如下处理:将与所述时控环节对应的超时配置标准索引信息对应的时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 The said:;: 7. The method according to claim 6, characterized in that, in step b specifically timed for the respective links in the link every time control processing as follows to obtain the current serving system time When the control link corresponding Standard Index timeout configuration information corresponding control link timeout when subtracting the time-controlled part of the standard processing time of access service has been performed to obtain the time control link corresponding actual overtime standard, wherein when the control part of treatment access service has been performed time is equal to the current start time control link processing services system time minus the time-access services.
8.根据权利要求3至5中任意一项所述的方法,其特征在于,所述接入业务在所述时控环节对应的超时配置标准包括时控环节超时标准和业务超时标准,其中,在同一个时控环节,不同的接入业务对应同一个时控环节超时标准;而在同一个时控环节,不同的接入业务对应不同的业务超时标准。 8. The method according to any one of claims 3-5 claim, wherein the access service at the time control link corresponding timed timeout configuration standards include standards and business aspects overtime overtime standards, which at the same time control link, corresponding to the different access services at the same standard control link timeout; while in the same time control link, different access services corresponding to different business overtime standards.
9.根据权利要求8所述的方法,其特征在于,步骤b具体为:获取所述当前服务系统时间;对于所述各个时控环节中的每一个时控环节作如下处理:判断所述业务超时标准是否小于所述时控环节超时标准,当判断为是时,将所述业务超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,当判断为否时,将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 9. The method according to claim 8, characterized in that, in step b in particular: obtaining the current serving system time; timed for the respective links in the link every time control processing as follows: to determine the business Timeout standard is less than the standard time-controlled part of the timeout, when the judgment is YES, the service timeout minus the time-controlled part of the standard treatment access service has a timeout to get the actual execution time of the corresponding standard time control link When it is determined No, the control link timeout when subtracting the time-controlled part of the standard processing time of access service has been performed to obtain the time control link corresponding actual overtime standard, wherein when the control aspects of processing access service has been performed time equal to the current service system time minus the processing time control link access services start time.
10.根据权利要求I所述的方法,其特征在于,步骤d具体为:从所述超时管理模块中获取所述交易超时标准;主线程记录所述通讯接出的起始时间戳;启动子线程进行所述通讯接出,同时主线程进入等待;子线程返回唤醒主线程,主线程记录当前时间戳;判断当前时间戳减去起始时间戳的时间值是否小于所述交易超时标准,当判断为是时,表示通讯正常接出,主线程进入通讯接出后的处理环节;当判断为否时,则表示通讯接出超时,进行通讯接出超时处理。 10. The method according to claim I, wherein the step d in particular: to acquire the transaction timeout timeout from the standard management module; the main thread recording the communication interface of the starting timestamp; promoter thread pick out the communications, while the main thread enters the wait; the child thread returns wake main thread, the main thread records the current timestamp; time is determined by subtracting the value of the starting current timestamp timestamp is less than the transaction timeout standard, when judgment is YES, indicate normal communications take out, take out the main thread into the communication link after treatment; when the judgment is NO, then pick out the communications timeout, then a timeout handling communication.
11. 一种服务系统,其特征在于,所述服务系统包括:业务接入模块,用于接入待处理的业务,所述业务称为接入业务;服务系统核心平台,用于处理业务接入模块接入的接入业务;一个或多个代理模块,所述代理模块与服务系统核心平台处理接入业务的各个时控环节一一对应,用于将各个时控环节对应的超时控制信息登记到超时管理模块中;超时管理模块,用于根据所述代理模块登记的超时控制信息和通讯接出时的当前服务系统时间计算各个时控环节对应的实际超时标准,并根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准;业务接出模块,用于将经过服务系统核心平台处理的接入业务通讯接出,并根据所述交易超时标准对所述通讯接出进行超时控制。 11. A service system, characterized in that said service system comprising: a service access module for access to pending business, the business is called access service; service system core platform for handling service access access service access into the module; one or more proxy module, the agent module processing core platform and service system access service in all aspects of the timed-one correspondence for each timed timeout control information corresponding link Registration to overtime management module; overtime management module, is used to calculate the actual timeout each time a standard part of the corresponding control service based on the current system time to register the agent module timeout control information and communication take out the time, and according to the timeout control configuration choose one of the standard policy of the actual time-out transaction timeout as standard; service access the module for access to business communications services through systems connected to a central processing platform, and according to the transaction timeout criterion for the communication interface of conduct timeout control.
12.根据权利要求11所述的系统,其特征在于,所述代理模块包括:超时控制信息获取单元,用于获取与代理模块对应的时控环节的超时控制信息;超时控制信息登记单元,用于将所述超时控制信息登记到所述超时管理模块中。 12. The system of claim 11, wherein the agent module include: overtime control information acquisition unit for acquiring the proxy module corresponding link timeout timed control information; timeout control information registration unit, with Timeout control information in the register to the overtime management module.
13.根据权利要求11或12所述的系统,其特征在于,所述超时管理模块包括:服务系统时间获取单元,用于获取所述通讯接出时的当前服务系统时间;信息存储单元,用于存储所述登记的超时控制信息;实际超时标准计算单元,用于根据所述超时控制信息和所述通讯接出时的当前服务系统时间计算各个时控环节分别对应的实际超时标准;超时策略执行单元,根据配置的超时控制策略选取所述各个实际超时标准之一作为交易超时标准。 13. The system according to claim 11 or claim 12, characterized in that said timeout management module comprising: a service system time acquisition unit for acquiring the current time of said communication service system when the connection; information storage unit, with to store the registration timeout control information; the actual timeout standard calculation unit for calculating each time corresponding to each of the control aspects of the service based on the current system time of the timeout control information and the communication interface of a timeout when the actual standard;-out policy execution unit, according to one of the various control strategies overtime actual overtime standard configuration selected as the standard transaction timeout.
14.根据权利要求13所述的系统,其特征在于,所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 14. The system of claim 13, wherein said time-out control information includes: the current thread ID, the process when the control link access services start time, the time control link corresponding timeout configuration standards, access service at the timed segment index corresponding standard timeout configuration information.
15.根据权利要求14所述的系统,其特征在于,接入业务在所述时控环节对应的超时配置标准索引信息为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 15. The system of claim 14, wherein, wherein the access control aspects of the business at the time corresponding to the timeout configuration standard index information access service at the timed part of the corresponding application or service feature information system core platform handles the access execution trace element information corresponding to the service applications in the time control link.
16.根据权利要求14或15所述的系统,其特征在于,所述服务系统还包括超时标准配置单元,所述超时标准配置单元用于配置和修改超时配置文件,其中,所述接入业务在所述时控环节对应的超时配置标准定义在所述超时配置文件中。 14 or 16. The system of claim 15, characterized in that said service system also includes a standard hive timeout, the timeout standard configuration unit to configure and modify the timeout configuration file, wherein the access service timeout configuration standard defines the timed part of the timeout configuration in the corresponding file.
17.根据权利要求16所述的系统,其特征在于,所述服务系统还包括超时标准装载单元,所述超时标准装载单元用于将所述超时配置文件装载成对象。 17. The system of claim 16, wherein said system further comprises a service timeout standard loading unit, the standard time-out for the loading unit to load the configuration file into an object timeout.
Description  translated from Chinese

服务系统中的超时控制方法及服务系统 Service System timeout control method and service system

技术领域 Technical Field

[0001] 本发明涉及银行数据处理领域,更为具体地,本发明涉及一种服务系统中的超时控制方法及服务系统。 [0001] The present invention relates to the field of bank data processing, and more particularly, the present invention relates to a service system and service system timeout control method.

背景技术 Background

[0002] 金融、电信等行业的服务系统负载着大量并发的联机事务的处理,这些联机事务处理的每笔业务的信息量较小,而且具有一定的实时性,对时间的要求非常严格。 [0002] The financial, telecommunications and other sectors of service systems loaded with large numbers of concurrent online transaction processing, the amount of information of each of these online transaction processing business is small and has a real-time, time requirements are very stringent. 因此,需要对服务系统进行超时控制以满足实时性要求。 Therefore, the need for service timeout control system to meet real-time requirements. 例如:在阻塞时间比较长的环节上实施超时控制,这些阻塞时间比较长的环节可能是和远程数据库的连接,也可能是网络下载,在这些环节超时后,往往需要进行一些操作,比如:抛出超时控制异常,或者重新执行,达到客户端快速响应、服务器端稳定可靠的效果。 For example: the implementation of timeout control on the congested part of a long time, they blocked part of a long time and may be connected to a remote database, it could be the network to download, in these areas after the timeout, often requires some operations, such as: throwing the timeout control abnormal, or re-run, to reach clients fast response, the server is stable and reliable results.

[0003] 现有超时控制使用通讯协议和中间件提供的超时控制功能来设置超时标准,利用所设置的超时标准对通讯接入和/或通讯接出进行超时控制:在所设置的超时标准内通讯正常接入和/或通讯正常接出,则进行通讯正常接入和/或通讯正常接出的后续处理,若在所设置的超时标准内通讯接入和/或通讯接出超时则进行超时控制异常处理,比如抛出超时控制异常。 [0003] timeout control function to control the use of existing communication protocol timeout and middleware to set the standard timeout timeout standard, using the set of communications access and / or the communication interface of the time-out control: Timeout within the standard set in Normal communications access and / or properly connected to the communication, the communication normal access and / or communicating properly pick out the follow-up treatment, if the standards set in the timeout communication access and / or the communication interface of the time-out period expires, control exception handling, such as throw an exception timeout control. 例如,目前通讯接入的超时控制主要是在TUXEDO (Transaction for UNIX has been Extendedfor Distributed Operation,分布式操作扩展之后的UNIX 事务系统)接入模块实现的,TUXEDO接入模块的功能是将TUXEDO接入的报文通过传输控制协议(Transmission Control Protocol, TCP)转发给服务系统核心平台,对通讯接入的超时控制是用来解决TCP通讯转发的超时问题。 For example, the current timeout control communication access mainly in the TUXEDO (Transaction for UNIX has been Extendedfor Distributed Operation, after the expansion of the UNIX operating distributed transaction system) access module, function module is to access TUXEDO TUXEDO access packets of the Transmission Control Protocol (Transmission Control Protocol, TCP) forwarded to the service system core platform for communication access timeout control is used to solve the timeout problem TCP communications forwarded. 现有的超时控制技术中,由于底层通讯协议和中间件并不涉及具体应用,不能在各个环节进行超时控制,控制粒度比较粗,使得服务系统的服务质量和用户的体验差。 Existing timeout control technique, since the underlying communication protocol and middleware does not involve specific application, can not be in control of all aspects of the timeout, relatively coarse granularity of control, so that the quality of service and user experience of poor service system.

发明内容 DISCLOSURE

[0004] 本发明提供了一种服务系统中的超时控制方法及一种服务系统,可以根据对应于应用层各个时控环节的超时配置标准进行超时控制,是一种细粒度的超时控制。 [0004] The present invention provides a service system timeout control method and a service system that can be controlled according to a timeout each time corresponding to the application layer control aspects of the timeout configuration standards, is a fine-grained timeout control.

[0005] 根据本发明的第一方面,本发明提供了一种服务系统中的超时控制方法,所述方法包括: [0005] According to a first aspect of the present invention, the present invention provides a service timeout control system, the method comprising:

[0006] a.将服务系统核心平台处理接入业务的各个时控环节对应的超时控制信息分别登记在超时管理模块中; . [0006] a core platform will handle service system access service in all aspects of the timed-out control information corresponding to the registration timeout management module;

[0007] b.当服务系统核心平台处理完接入业务,通讯接出时,所述超时管理模块根据所述超时控制信息和当前服务系统时间计算所述各个时控环节对应的实际超时标准; . [0007] b When the service system is the core platform processed access service, communication pick out the overtime management module when calculating the various aspects of the corresponding control criteria based on the actual timeout timeout control information and the current service system time;

[0008] c.所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准; [0008] c the overtime management module select the timeout control policy configuration according to one of the actual standards as the transaction timeout timeout Standards;

[0009] d.根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 [0009] d. According to the transaction timeout standard for communication access services take out the time-out control.

[0010] 根据本发明的第二方面,本发明提供了一种服务系统,所述系统包括:[0011] 业务接入模块,用于接入待处理的业务,所述业务称为接入业务; [0010] According to a second aspect of the present invention, the present invention provides a service system, the system comprising: [0011] service access module for access to the business to be treated, said service called Access Service ;

[0012] 服务系统核心平台,用于处理业务接入模块接入的接入业务; [0012] The core platform service system for processing access service access module access services;

[0013] 一个或多个代理模块,所述代理模块与服务系统核心平台处理接入业务的各个时控环节一一对应,用于将各个时控环节对应的超时控制信息登记到超时管理模块中; [0013] one or more proxy module, the agent module core platform and service system access service processing various aspects of correspondence timed, timed for the registration of each link corresponding to the timeout timeout control information management module ;

[0014] 超时管理模块,用于根据所述代理模块登记的超时控制信息和通讯接出时的当前服务系统时间计算各个时控环节对应的实际超时标准,并根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准; [0014] Time management module for the registration of the agent module timeout control information and communication systems are currently serving time take out the time to calculate the actual timeout each time a standard part of the corresponding control, and control strategies based on the timeout configuration select the The actual time-out one of the standard as a transaction timeout standards;

[0015] 业务接出模块,用于将经过服务系统核心平台处理的接入业务通讯接出,并根据所述交易超时标准对所述通讯接出进行超时控制。 [0015] Business pick out the module for access to business communications services through systems connected to a central processing platform, and according to the transaction timeout standard communication interface for the control of a time-out.

[0016] 实施本发明提供的一种服务系统中的超时控制方法及一种服务系统,通过登记各个时控环节对应的超时控制信息、依据所述超时控制信息计算实际超时标准、根据超时控制策略从所述实际超时标准中选取交易超时标准并根据所述交易超时标准对通讯接出进行超时控制,超时控制细化至应用层各个时控环节,实现了在服务系统应用层细粒度的超时控制。 [0016] The present invention provides a service system in the timeout control method and a service system, by registering each link corresponding timed timeout control information, based on the information to calculate the actual timeout timeout control standards, based on the timeout control strategy Select from the actual transaction timeout timeout standard criteria and in accordance with the transaction timeout standard communication interface to control the time-out, timeout control to the application layer refine various aspects timed to achieve the overtime control system in service of the application layer of fine-grained . 超时控制的粒度细化提高了超时控制的精度,能满足服务系统对不同应用场景接入业务的时控需求;细粒度的超时控制避免了交易超时对系统资源(包括通讯资源、内存资源和线程资源等)的长时间占用,保护了服务系统资源,防止了其他交易无法执行甚至宕机等严重故障的发生;同时,前端系统也无需长时间等待服务系统的响应,因而间接保护了前端系统资源;细粒度的超时控制能整体上提高服务系统处理用户业务的速度、提高了服务系统的服务质量和用户的体验。 Timeout granularity control of refinement to improve the accuracy of the timeout control to meet the service system for different application scenarios timed demand access services; timeout fine-grained control to avoid the transaction timeout of system resources (including communications resources, memory resources and threads resources, etc.) of prolonged occupation, the protection service system resources and prevent other transactions can not be performed even downtime and other serious failures occur; at the same time, front-end systems without a long wait for a response service system, thus indirectly protecting the front-end system resources ; timeout control can improve overall service system for processing fine-grained user traffic speed, improve service quality service system and the user's experience.

附图说明 [0017] 图I是本发明的一种服务系统中的超时控制方法的流程图;[0018] 图2是图I中步骤S400的流程图;[0019] 图3是图I中步骤SlOO的流程图;[0020] 图4是对接入业务通讯接入服务系统核心平台时进行超时控制的流程示意图[0021] 图5是本发明的一种服务系统的示意图;[0022] 图6是图5中的代理模块的组成示意图;[0023] 图7是图5中的超时管理模块530的组成示意图。 BRIEF DESCRIPTION [0017] Figure I is a flow chart of a service system of the present invention timeout control method; [0018] FIG. 2 is a flow chart diagram I step S400; [0019] FIG. 3 is a step I The flowchart SlOO; [0020] FIG. 4 is the access business communications access system core platform timeout control flow diagram [0021] FIG. 5 is a schematic diagram of a service system of the present invention; [0022] FIG. 6 5 is a schematic diagram of the composition of the agent module; [0023] FIG. 5 FIG. 7 is a component management module schematic timeout 530.

具体实施方式 DETAILED DESCRIPTION

[0024] 为使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明进一步地详细描述。 [0024] For the purpose, technical solutions, and advantages of the present invention will become more apparent, the present invention will be described below in further detail accompanying drawings.

[0025] 在具体描述之前,需要说明的是,在本发明实施例中,服务系统核心平台对接入业务的处理包括若干处理环节,系统通过整个业务处理流程的总控模块(例如,调度处理模块)来调度其他业务模块对接入业务在各个处理环节依次处理,例如,服务系统需要对接入业务依次在渠道处理环节、交易处理环节、服务处理环节、服务系统处理环节和基础服务处理环节进行处理,那么调度处理模块将依次调用渠道处理模块、交易处理模块、服务处理模块、服务系统处理模块和基础服务处理模块对接入业务进行处理。 [0025] Before detailed description should be noted that, in the present embodiment, the core platform for service system access service processing includes several processing aspects of the system throughout the entire business processes of master control module (for example, scheduling module) to schedule other modules to access services business sequentially processed in each processing stage, for example, the service system needs to access services in turn channel processing chain, transaction processing chain, service processing chain, service system handles the processing chain links and infrastructure services processing, scheduling processing module will then in turn call the channel processing module, transaction processing module, the service processing module, process module and a service system of basic services to access services processing module for processing. 这些处理环节可以分为非时控环节和时控环节:在非时控环节,不对接入业务在该处理环节的处理实施本发明所述的超时控制,也即在非时控环节不进行超时控制信息的登记等动作;时控环节是根据需要对接入业务在该处理环节的处理实施本发明所述的超时控制的处理环节。 The processing chain can be divided into non-timed timed links and links: In a non-timed links, not access services in the processing stage of the process to implement timeout control of the present invention, that is not part of the non-timed time-out registration control action information; when control link access services according to the needs of the processing in this part of the implementation process timeout control in the processing chain of the present invention. 同时,在上述的各个处理环节中,有些处理环节可能会比较简单,而且在一个交易处理过程只会被执行一次;有些处理环节可能会比较复杂,这些处理环节支持流程定义,可以顺序、循环、分支、嵌套和执行多个处理,例如,所述的服务处理环节可以实现对接入业务完成复杂度较高的核心处理。 At the same time, in all aspects of the above process, some aspects may be relatively simple process, but also in a transaction processing is executed only once; some may be more complex processing chain, these processing chain support process definition, you can cycle through, branch, nesting and perform multiple processing, for example, the service processing chain can be achieved on completion of high complexity access services core processing.

[0026] 图I是本发明的一种服务系统中的超时控制方法的流程图。 [0026] Figure I is a flow chart of a service system of the present invention timeout control methods. 由图I可知,所述方法至少包括: Figure I shows, the method comprising at least:

[0027] S100,将服务系统核心平台处理接入业务的各个时控环节对应的超时控制信息分别登记在超时管理模块中。 [0027] S100, the service system processing core platform access services corresponding to the various aspects of the timed-out control information registered in the overtime management module. 具体而言,服务系统核心平台处理接入业务的主线程执行到每一个时控环节时,都会将该时控环节对应的超时控制信息登记在超时管理模块中。 Specifically, the main thread core platform service system access service processing executed every timed session, will be part of the timed-out control information register corresponding to the time-out management module.

[0028] 所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、 所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 [0028] The timeout control information includes: the current thread ID, the process starts when the time control link access services, the corresponding part of the timed-out configuration standards, access service in the corresponding part of the timed-out Configuration Standard index information. 其中,接入业务在所述时控环节对应的超时配置标准索引信息又可以为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 Among them, the access service at the timed segment index corresponding timeout configuration standard for access to information and services in the timed part of the corresponding application or service feature information systems core platform in the process when the control link access services Execution Trace elements corresponding application information.

[0029] 其中,当前线程代表一个正在执行的交易,而当前线程标识则作为正在执行交易的唯一标识,当前线程标识可以是当前线程名,例如,可以通过JDK(Java Development Kit, Java 开发工具包)提供的API (Application ProgrammingInterface,应用程序接口) 获得当前线程,从当前线程中可以获取当前线程名; [0029] where the current thread is executing on behalf of a transaction, and the current thread ID is a unique identification being executed transactions, the current thread identifier can be the name of the current thread, for example, by JDK (Java Development Kit, Java Development Kit ) API (Application ProgrammingInterface, application programming interface) provides access to the current thread, you can obtain the current thread name from the current thread;

[0030] 所述时控环节处理接入业务的开始时间是所述时控环节开始处理接入业务时的服务系统时间; [0030] The processing time control link access services start time is the time control link service systems begin processing access service when the time;

[0031] 所述时控环节对应的应用要素信息预先保存在线程上下文中,可从线程上下文中获取;服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息可以从当前交易路径信息获取; [0031] When the control part of the application corresponding to feature information previously stored in the thread context, available from the thread context; service system access service processing core platform execution trace information corresponding application elements from the time control link current trading route to information;

[0032] 所述超时配置标准定义在配置文件中,服务系统可以通过装载器(例如超时标准装载单元)将配置文件装载成对象以供服务系统获取超时配置标准。 [0032] The timeout configuration standards defined in the configuration file, the service system can be loaded (for example timeout standard loading unit) configuration file is loaded into an object for service system acquisition timeout configuration standards.

[0033] S200,当服务系统核心平台按照各个环节处理完接入业务,通讯接出时,所述超时管理模块根据所述超时控制信息和当前服务系统时间计算所述各个时控环节对应的实际超时标准。 [0033] S200, when the complete service system core platform handles the access business in accordance with all aspects of communications pick out the overtime management module calculates the various aspects of the corresponding real time control based on the time-out control information and the current service system time Timeout standards.

[0034] S300,所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时控制标准。 [0034] S300, the time-out transaction management module as a standard timeout control standards based on one of the actual timeout timeout control strategy selection of the configuration.

[0035] 超时控制策略配置在超时管理模块中,同时超时控制策略也可以通过代码接口来扩展。 [0035] timeout timeout control policy configuration management module, while overtime control strategy can also be extended by the interface code. 通过执行超时控制策略的算法选取所述实际超时标准之一作为交易超时标准。 A time-out by the algorithm of the control strategy selection criteria as one of the actual time-out transaction timeout criteria. 例如,默认的超时控制策略是最小超时策略,即:选取各环节实际超时标准中时间值最小的实际超时标准作为该笔交易的交易超时标准。 For example, the default timeout control strategy is the minimum time-out policy, namely: selecting various aspects of the real value of the minimum timeout standard time of actual overtime standards as standard transaction timeout of the transaction.

[0036] S400,根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 [0036] S400, according to the transaction timeout standard for communication access services take out the time-out control. 在选取交易超时标准之后,业务接出模块从超时管理模块中取所述交易超时标准,根据所述交易超时标准调用通讯接出适配器进行通讯接出并对通讯接出进行超时控制。 After checking transaction timeout standard, business transactions take out the module to take the time out from the timeout management module standard, according to the transaction timeout call communication standard interface to communicate with the adapter connected to a communication interface and a time-out control. [0037] 具体而言,如图2所示,步骤S400具体包括: [0037] Specifically, as shown in FIG. 2, step S400 specifically includes:

[0038] S4001,通讯接出的主线程记录通讯接出起始时间戳; [0038] S4001, then the main thread of communications recording communications received the starting time stamp;

[0039] S4002,通讯接出模块启动子线程进行通讯接出,同时所述主线程进入等待; [0039] S4002, communication module connected to the communication promoter thread pick out, while the main thread into the wait;

[0040] S4003,子线程返回唤醒主线程,主线程记录当前时间戳; [0040] S4003, the child thread returns wake main thread, the main thread records the current timestamp;

[0041] S4004,判断当前时间戳减去通讯接出起始时间戳的时间是否小于所述交易超时标准, [0041] S4004, the communication connection is determined by subtracting the current timestamp the starting time of the time stamp is less than the transaction timeout standard,

[0042] 当判断为是,则执行步骤S4005,否则执行步骤S4006 : [0042] When the determination is yes, then execute step S4005, otherwise, to step S4006:

[0043] S4005,主线程进入通讯接出后的处理环节,比如接受后台服务系统的处理等; [0043] S4005, the main thread after entering the communication interface of the processing chain, such as receiving treatment systems and other back-office services;

[0044] S4006,服务系统进行通讯接出超时处理。 [0044] S4006, the service system is connected to the communication time-out processing. 例如,服务系统抛出超时控制异常,可以认为超时控制中的超时也属于一种异常情况,利用“异常”这一种JAVA提供的异常类(Exception)来进行通讯接出超时处理。 For example, the service timeout control system throws an exception, it is considered timeout timeout control also belongs to an abnormal situation, the use of "abnormal" This one kind of JAVA provides exception class (Exception) to carry out handling the communication interface. 抛出超时控制异常后,后续处理可以交给异常处理模块进行统一的异常处理,比如:修改服务状态为失败,组织错误报文返回给渠道系统等。 Timeout control throws an exception, the subsequent processing can be handed over to the exception handling module unified exception handling, such as: Failed to modify service status, organizational error message is returned to the channel system. 异常处理模块会进行通用异常处理,能处理所有异常(所有异常包括:超时异常、打拆包异常、通讯异常和加解密异常等)。 Exception handling module will be common exception handling, able to handle all exceptions (all exceptions include: timeout exception, playing unpacking abnormal abnormal abnormal communication and processing decryption).

[0045] 在本发明提供的一个实施例中,步骤SlOO是通过分别设置在所述时控环节的各个代理模块提供的代理服务实现的,各个时控环节分别与各个代理模块一一对应。 [0045] In one embodiment of the present invention provides, step SlOO are provided by the proxy service control aspects of each agent module provides implementation, various aspects were timed correspondence with each agent module. 各个处理环节对应的功能模块都是组件,被容器统一管理,系统启动时,需要对所有组件进行装载并注册到容器中,其中,组件装载器负责管理具体组件的装载过程。 Each processing stage corresponding function modules are components, are managed container, when the system starts, all the components need to be loaded and registered to the container, wherein the assembly loader is responsible for managing the loading process specific components. 在代理模块的实现上,可以利用名称为“超时装载器”的组件装载器在系统启动时负责为各个时控环节装载需要超时控制的组件,并且为这些组件添加超时代理,并运用了设计模式中的装饰模式(Decorator),通过代理模块将原有功能模块进行装饰,为原有功能模块添加超时登记的功能。 In the realization of the agent module, you can use the name "Timeout loader" is responsible for the assembly loader at system startup when the control link for each component requires loading timeout control, and these components add timeout agents, and the use of design patterns The decorative patterns (Decorator), by proxy module of the original decorative function modules, function modules added to the original time-out registration functions. 由于运用了设计模式中的装饰模式(Decorator),因而不需要对原有应用模块进行修改,使具体业务功能和其他管理控制功能(比如超时控制等)分离。 Due to the use of design patterns in decorative patterns (Decorator), there is no need to modify existing application modules that manage specific business functions and other control functions (such as time-out control, etc.) separated. 代理模块将与之对应的时控环节的超时控制信息登记到超时管理模块中的具体步骤参照图3进行说明。 Agent module corresponding link timeout timed control information management module timeout register to concrete steps will be described with reference to FIG.

[0046] 图3是图I中步骤S100的流程图。 [0046] FIG. 3 is a flow chart of FIG. I in the step S100. 如图3所示,步骤S100具体包括: As shown, in step S100 3 specifically comprises:

[0047] S1001,获取当前线程标识、所述时控环节处理接入业务的开始时间(也即此时的服务系统时间)和接入业务在所述时控环节对应的超时配置标准索引信息; [0047] S1001, to get the current thread ID, the process when the control link access services start time (ie at this time of service systems) and access services in the timed segment index corresponding standard timeout configuration information;

[0048] S1002,根据所述接入业务在所述时控环节对应的超时配置标准索引信息获取接入业务在所述时控环节对应的超时配置标准; [0048] S1002, obtain access to business links in the timed timeout configuration corresponding access service in accordance with the standards of the time control link corresponding Standard Index timeout configuration information;

[0049] S1003,所述代理模块将当前线程标识、所述时控环节处理接入业务的开始时间、 接入业务在所述时控环节对应的超时配置标准索引信息和接入业务在所述时控环节对应的超时配置标准和作为一条记录登记到所述超时管理模块中。 [0049] S1003, the agent module to the current thread ID, the time control link access business process start time, access service at the timed segment index corresponding standard timeout configuration information and access services in the When the control link corresponding timeout configuration standards and as a record registered in the overtime management module.

[0050] 其中,在该条记录中,所述时控环节处理接入业务的开始时间、接入业务在所述时控环节对应的超时配置标准索引信息和接入业务在所述时控环节对应的超时配置标准都与当前线程标识对应。 [0050] where, in this record, the control aspects of processing access service when the start time, access to business links in the timed-out configuration standards corresponding to the index information and access services at the time control link corresponding timeout configuration standards correspond to the current thread ID.

[0051] 在本发明提供的一个实施例中,步骤S100之前还包括对接入业务通讯接入所述服务系统核心平台时进行超时控制的步骤,下面结合图4详细说明。 [0051] In one embodiment of the present invention is provided, further comprising the step S100 performed prior to the step timeout control access to business communications when accessing the service system core platform, described in detail below with reference to FIG. 4.

[0052] 如图4所示,对接入业务通讯接入所述服务系统核心平台时进行超时控制的步骤的包括:[0053] S5001,接入模块获取配置的通讯接入超时标准; [0052] 4, to access services when accessing the service system core communications platform timeout control steps performed include: [0053] S5001, the access module to obtain the configuration of the communication access timeout standards;

[0054] S5002,接入模块记录开始通讯接入的时间戳并调用通讯接入适配器进行接入业务的通讯接入,同时接入模块监听所述服务系统核心平台返回的通讯接入反馈; [0054] S5002, recording start time stamp access module communication access and call communication access adapter access business communication access, while listening to the service system access module core platform of communication access feedback;

[0055] S5003,监听在所述通讯接入超时标准内是否监听到所述反馈, [0055] S5003, listen timeout in the communications access standards are listening to the feedback,

[0056] 当在所述通讯接入超时标准内监听到所述反馈时,执行步骤S5004,否则执行步骤S5005, [0056] when the communication access in the standard listening to the feedback timeout, step S5004, otherwise, to step S5005,

[0057] S5004,进行通讯正常接入后处理,例如调度等; [0057] S5004, after the normal access process communication, such as scheduling;

[0058] S5005,服务系统抛出超时控制异常。 [0058] S5005, the service control system throws a timeout exception.

[0059] 对接入业务通讯接入所述服务系统核心平台时进行超时控制的步骤的超时控制粒度比较粗,主要是在通讯层实现超时控制,其主要目的是为了解决TCP通讯转发的超时问题。 [0059] When access services for access to the service system core communications platform timeout step timeout control of relatively coarse granularity of control, the control is to achieve a timeout in the communication layer, its main purpose is to solve the timeout problem TCP communications forwarded .

[0060] 在本发明计算所述各个时控环节对应的实际超时标准的步骤S200中,所述超时控制信息中接入业务在所述时控环节对应的超时配置标准可以只是时控环节超时标准也可以包括时控环节超时标准和业务超时标准,其中,在同一个时控环节,不同应用场景下的接入业务对应同一个时控环节超时标准;而在同一个时控环节,不同的应用场景下的接入业务根据不同的接入业务的应用类型信息对应不同的业务超时标准。 [0060] In the step of the present invention to calculate the various aspects of the corresponding actual timed timeout standard S200, the timeout control information access service in the corresponding part of the timed-out configuration standards can only control part of the timeout when Standard You can also include links timed timeout timeout standards and business standards, which, at the same time control link access services under different scenarios corresponding to the same standard when the control link timeout; while in the same time control link, different application access business scenarios based on different types of applications access business information corresponding to different business overtime standards.

[0061] 服务系统核心平台处理完接入业务,通讯接出时,超时管理模块获取当前服务系统时间,并根据所述在超时管理模块中登记的所述每个时控环节对应的超时控制信息,按照超时配置标准包含信息的不同,分别按如下方式处理: [0061] service system processed the core platform access service, when communication pick out, overtime management module obtains the current service system time, and the control information based on said management module timeout register link corresponding to each of the timed-out according to different timeout configuration standards include information processing are as follows:

[0062] 根据本发明的一种实施方式,当与所述时控环节对应的超时配置标准索引信息对应的超时配置标准只是时控环节超时标准,则将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准。 [0062] According to one embodiment of the present invention, when the timed segment index corresponding timeout configuration information corresponding standard configuration standards timeout timeout standard only when the control link, then the link timed timeout minus the standard said time-controlled part of the processing time of access service has been performed to obtain the time control link corresponding actual overtime standards. 其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 Wherein when the control aspects of processing access service has been performed time equal to the current system time minus the service when handling the access control aspects of business start time.

[0063] 根据本发明的另一种实施方式,当与所述时控环节对应的超时配置标准索引信息对应的超时配置标准包括时控环节超时标准和业务超时标准,则所述时控环节对应的实际超时标准的计算按下述方式进行: [0063] According to another embodiment of the present invention, when compared with the corresponding time-controlled part of the timeout timeout configuration standard configuration standards corresponding index information included control standards and business aspects of the timeout timeout criteria, corresponding to the time control link The actual timeout criterion is calculated in the following manner:

[0064] 比较所述时控环节超时标准和业务超时标准的大小,当所述业务超时标准大于所述时控环节超时标准,则将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准; [0064] When comparing the control standards and business aspects of the timeout timeout standard size, standard time-out when the service is greater than the standard time-controlled part of the timeout, then the standard time control link timeout minus the processing time control link access service has been performed to obtain the time when the control link corresponding actual overtime standards;

[0065] 当所述业务超时标准小于所述时控环节超时标准,则将所述业务超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准。 [0065] When the service timeout is less than the standard when the standard control link timeout, then subtracting the service standard of the timeout process when the control link access services have been performed to obtain the actual time out of the time when the corresponding control link standards.

[0066] 其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 [0066] wherein when the control aspects of processing access service has been performed time equal to the current system time minus the service when handling the access control aspects of business start time.

[0067] 关于步骤S300,在本发明提供的一个实施例中,执行最小超时策略,选取各环节实际超时标准时间值最小的实际超时标准作为该笔交易的交易超时标准是通过依次比较各个计算得出的实际超时标准获得的,下面具体说明: [0067] For the step S300, in one embodiment, the present invention provides the minimum execution time-out policy, select the various aspects of the real value of the minimum standard time timeout actual transaction timeout timeout standards as the standard of the transaction is calculated by sequentially compare each an actual timeout standard obtained specifically described below:

[0068] 根据时控环节I对应的超时控制信息,计算得到时控环节I对应的实际超时标准TOldf TOI存储为交易超时标准;[0069] 根据时控环节2对应的超时控制信息,计算得到时控环节2对应的实际超时标准T02,比较TOl与T02的大小: [0068] According to aspects I timed timeout corresponding control information, calculate the actual timeout standard control link when I TOldf TOI corresponding transaction timeout stored as standard; [0069] According timeout control information, calculated when the corresponding control link 2 2 corresponds to the actual link control timeout standard T02, and T02 compare TOl size:

[0070] 若T02小于T01,则将T02替换TOl存储为交易超时标准;否则,维持TOl存储为交易超时标准的状态不变。 [0070] If less than T02 T01, T02 will replace TOl stored as transaction timeouts standards; otherwise, maintain TOl stored as state trading timeout standard unchanged.

[0071] 按上述规则,依次计算所有剩余时控环节(时控环节3、......、时控环节n, n代 [0071] by the above rules, in order to calculate all the remaining time control link (when the control link 3, ......, when the control part of n, n-generation

表时控环节的最大编号)对应的实际超时标准,直到得到最后的时控环节时控环节n对应的实际超时标准TOn,每计算得到一个新的实际超时标准,都将该新的实际超时标准与前一个时控环节中存储为交易超时标准的时间值比较大小,根据比较结果,确定是否将新计算出的实际超时标准标储存为交易超时标准,如此,最后存储的实际超时标准即为接入业务的交易超时标准。 The maximum number of table control link) corresponding to the actual time-out standard, until you get a final timed link timeout when the control aspects of the actual standard n corresponding TOn, each calculated a new standard real time-out, all the new reality timeout standard previous timed session storage for the transaction timeout value comparison size standard time, according to the comparison results to determine whether the new standard to calculate the actual timeout for the transaction timeout standard storage standard, so the actual timeout standard last stored is connected the transaction timeout standard operations.

[0072] 需要说明的是,配置在所述超时控制模块的超时控制策略支持扩展,可由开发人员定制实现其他不同的超时控制策略。 [0072] It should be noted that the configuration of the timeout the timeout control module control strategy to support the expansion, customized by developers of other different timeout control strategies. 例如,可以根据业务需求采用最大超时策略,即:选取各环节实际超时标准中时间值最大的实际超时标准作为该笔交易的交易超时标准;同样,还可以采用平均超时策略,即:选取各环节实际超时标准时间值的平均值作为该笔交易的交易超时标准。 For example, according to business needs with maximum time-out policy, namely: selecting various aspects of the actual value of the maximum timeout standard time standard as the actual transaction timeout standard timeout of the transaction; Similarly, you can also use an average time-out policy, namely: Select all sectors the average actual timeout value as the standard time of the transaction transaction timeout standard.

[0073] 在本发明的一种服务系统的超时控制方法的上述任意一个实施例中,在服务系统运行过程中都可以通过管理命令修改配置的超时配置标准,修改后的超时配置生效成为新的超时配置标准。 [0073] In any of the above methods a service timeout control system of the present invention, an embodiment of the timeout configuration standards embodiment, the system is running in the service are available through the administrative command to modify the configuration timeout configuration changes become effective after the new timeout configuration standards.

[0074] 本发明中的超时配置标准定义在超时配置文件中,下面是本发明中的超时配置文件样例: [0074] The present invention is defined in the timeout timeout configuration standard configuration file, the following is a sample of the present invention timeout configuration file:

[0075] < ? xml version = " 1. O" encoding = " GB2312" ? > [0075] <? Xml version = "1. O" encoding = "GB2312"?>

[0076] < !--超时配置,其中switch作为超时控制的总开关,on打开,off关闭,timeout 表示当无配置时的默认值,单位为秒--> [0076] <! - Timeout configuration, in which the switch as a master switch timeout control of, on opening, off close, timeout indicates that when no configuration defaults seconds ->

[0077] 〈timeout-config switch = " on" timeout = " 60" > [0077] <timeout-config switch = "on" timeout = "60">

[0078] 〈! [0078] <! --下面的timeout为必配属性,单位为秒,表示最大超时时间。 - The following is the required configuration attribute timeout, in seconds, represents the maximum time-out. 如果为"O" 或""表示始终超时即挡住交易--> If "O" or "" means never timeout that is blocking the transaction ->

[0079] < !--渠道和交易的超时配置--> [0079] <! - Channels and transaction timeout configuration ->

[0080] 〈channel name = " AAAAAA" timeout = " 60" > [0080] <channel name = "AAAAAA" timeout = "60">

[0081] <tran name = " BBBBBB" timeout = " 70" /> [0081] <tran name = "BBBBBB" timeout = "70" />

[0082] 〈/channel〉 [0082] </ channel>

[0083] < !--服务和原子服务的超时配置--> [0083] <! - Services and atomic services timeout configuration ->

[0084] 〈service name = " CCCCCC" timeout = " 20" /> [0084] <service name = "CCCCCC" timeout = "20" />

[0085] 〈! [0085] <! --服务系统和基础服务的超时配置--> - Service systems and infrastructure services timeout configuration ->

[0086] 〈server name = " DDDDDD" timeout = " 60" > [0086] <server name = "DDDDDD" timeout = "60">

[0087] <base-service name = " EEEEEEE" timeout = " 40" /--> [0087] <base-service name = "EEEEEEE" timeout = "40" / ->

[0088] </server) [0088] </ server)

[0089] 〈/timeout-config〉 [0089] </ timeout-config>

[0090]其中的各个配置字段,如 “channel name”、“tran name'“service name” 和“timeout”都可以在服务系统运行期间通过管理命令修改,修改后的配置文件通过执行配置实例生效。也可以看到,在超时配置文件中可以设置超时控制总开关(switch)及其状态,如果超时控制总开关为开(on),就表示超时控制生效,所有配置和控制都起作用;如果总开关为关(off),就表示超时控制不生效,即不进行超时控制。 [0090] wherein each configuration fields, such as "channel name", "tran name '" service name "and" timeout "during the service system can run administrative commands to modify, the modified configuration file to configure the instance take effect by performing through. can also be seen in the configuration file timeout timeout can be set to control the master switch (switch) and the state, if the timeout control master switch is on (on), it means timeout control force, all configuration and control of all work; if the total switch is off (off), it indicates that the timeout control is not effective, that is, no timeout control.

[0091] 通过实施本发明提供的一种服务系统中的超时控制方法,通过登记各个时控环节对应的超时控制信息、根据所述超时控制信息计算实际超时标准、按照超时控制策略选取交易超时标准并根据所述交易超时标准对通讯接出进行超时控制,实现了在服务系统应用层细粒度的超时控制。 [0091] by means of a service system of the present invention provides a method of controlling the implementation of the timeout, by registering each link corresponding timed timeout control information to calculate the actual timeout timeout control information in accordance with the standard, according to the transaction timeout timeout control strategy selection criteria and according to the transaction timeout standard communication interface to control the time-out to achieve a timeout control system in the service application layer fine-grained. 同时能灵活配置超时控制策略和超时配置标准,满足了服务系统对不同应用场景接入业务的时控需求,提高了服务系统用户的体验。 With the flexibility to configure the timeout timeout configuration control policies and standards to meet the needs of the service when the control systems for different application scenarios of access services, improve the service system user experience.

[0092] 根据本发明的另一方面,本发明提供了一种使用所述超时控制技术的服务系统, 下面结合图5至图7对此详细说明。 [0092] According to another aspect of the present invention, the present invention provides a method of using the timeout control technology service system, below in conjunction with FIGS. 5 to 7 of this detail.

[0093] 图5是本发明的一种服务系统的示意图,如图5所示,所述服务系统包括:业务接入模块510、服务系统核心平台520、一个或多个代理模块(如图所示的代理模块I-代理模块η),超时管理模块530和业务接出模块540,具体而言: [0093] FIG. 5 is a schematic diagram of a service system of the present invention, shown in Figure 5, the service system include: service access module 510, service core platform system 520, one or more proxy modules (as shown in Agent module I- agent module shown η), overtime management module 530 and service access the module 540, in particular:

[0094] 业务接入模块510,用于接入待处理的业务,所述业务称为接入业务。 [0094] service access module 510 for access to the business to be treated, the service known as the access business. 例如,业务接入模块510接收TUXEDO接入请求,并通过TCP协议将请求报文转发给服务系统核心平台520处理。 For example, TUXEDO service access module 510 receives the access request, and the request by TCP protocol packets forwarded to the service platform 520 processing core of the system. 所述业务接入模块510能接入各种业务场景下的业务; The service access module 510 can access a variety of business service scenarios;

[0095] 服务系统核心平台520,用于处理业务接入模块510接入的接入业务,接入业务在服务系统核心平台520中通过若干处理环节进行处理,这些处理环节包括渠道处理环节、 交易处理环节、服务处理环节、服务系统处理环节、基础服务处理环节等。 [0095] service platform 520 core system for processing access service access module 510 access services, access services in the service system core platform 520 for processing through a number of treatment areas, including ways to deal with these processing chain links, trade processing chain, service processing chain, service system processing chain, processing chain and other basic services. 值得注意的是,在本发明中,可根据需要对所述服务系统核心平台520处理接入业务的各个处理环节中的部分或全部处理环节进行超时控制,所述需要进行超时控制的处理环节称为时控环节(如图5所示,包括时控环节I、时控环节2、......、时控环节η,η为时控环节的最大编号); It is worth noting that, in the present invention can be carried out in accordance with the need for the timeout control service system core processing platform 520 of each processing stage access services in some or all of the processing chain, the need for treatment, said the link timeout control last control link (Figure 5, including control aspects when I, when the control link 2, ......, when the control link η, η maximum number of links too controlled);

[0096] 一个或多个代理模块,各个代理模块与服务系统核心平台520处理接入业务的各个时控环节——对应(如图5所示,代理模块I对应时控环节I、代理模块2对应时控环节 [0096] one or more agents modules, systems and services for each agent module 520 processing core platform access service in all aspects of the timed - correspondence (shown in Figure 5, the agent module I timed the corresponding links I, agent module 2 corresponding to the time control link

2........代理模块η对应时控环节η),每个代理模块用于将与之对应的时控环节的超时 2 ........ proxy module corresponds to the time control link η η), each agent module is used to link the corresponding timed-out

控制信息登记在超时管理模块中530 ; Control information registration management module 530 in overtime;

[0097] 超时管理模块530,用于根据所述代理模块登记的超时控制信息和将经过服务系统核心平台520处理的接入业务通讯接出时的服务系统时间计算各个时控环节对应的实际超时标准,并根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准; [0097] Time management module 530, according to the agent module for the registration of timeouts and after service system time access to communications services system core business processing platform 520 pick out when the calculation of the various aspects of the corresponding actual timed timeout control standard, and select the one actual transaction timeout timeout standards as standard control strategy based on the timeout configuration;

[0098] 业务接出模块540,用于将经过服务系统核心平台520处理的接入业务通讯接出, 并根据所述交易超时标准对所述通讯接出进行超时控制。 [0098] a module 540 service access for business telecommunications services through the access system core processing platform 520 pick out, and in accordance with the transaction timeout standard communication interface for the control of a time-out.

[0099] 其中,业务接出模块540将经过服务系统核心平台520处理的接入业务通讯接出并对通讯接出进行超时控制具体为: [0099] where the service access module 540 will access business communications services through the core system processing platform 520 and pick out a time-out control communication interface in particular:

[0100] 业务接出模块540从超时管理模块530中获取所述交易超时标准; [0100] service access module 540 to obtain a standard time-out from the transaction management module 530 in overtime;

[0101] 主线程记录通讯接出起始时间戳; [0101] The main thread then the starting time stamp recorded communications;

[0102] 业务接出模块启动子线程调用通讯接出适配器进行通讯接出,同时主线程进入等待; [0102] Service Access Module promoter thread calls a communications adapter connected to a communication interface that, while the main thread enters the wait;

[0103] 子线程返回唤醒主线程,主线程记录当前时间戳; [0103] return to wake up the main thread child thread, the main thread records the current timestamp;

[0104] 判断通讯接出耗时(当前时间戳减去通讯接出起始时间戳的时间)是否小于所述交易超时标准,若判断为是,则表示通讯正常接出,主线程进入通讯接出后的处理环节,比如接受后台服务系统的处理;否则表示通讯接出超时,服务系统抛出超时控制异常。 [0104] determine the time-consuming communication interface (communication interface current timestamp minus the starting timestamps) is less than the transaction timeout standard, if determined to be, then pick out the normal communications, the main thread enters the communication interface After the processing chain, such as back-office services system to accept the deal; otherwise it indicates a communication connection timeout, timeout control service system throws an exception.

[0105] 图6是图5中的代理模块的组成示意图。 [0105] FIG. 6 is a schematic diagram of the composition of the agent module 5. 如图6所示,所述代理模块包括超时控制信息获取单元610和超时控制信息登记单元620,其中,超时控制信息获取单元610用于获取与代理模块对应的时控环节的超时控制信息;超时控制信息登记单元620用于将所述超时控制信息登记到所述超时管理模块中。 6, the agent module comprises a control information obtaining unit 610 timeout and timeout control information registration unit 620, wherein the timeout control information obtaining unit 610 for obtaining the agent module when the corresponding control link timeout control information; Timeout control information registration unit 620 for the timeout control information registration to the overtime management module.

[0106] 所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、 所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 [0106] The timeout control information includes: the current thread ID, the process starts when the time control link access services, the corresponding part of the timed-out configuration standards, access service in the corresponding part of the timed-out Configuration Standard index information. 接入业务在所述时控环节对应的超时配置标准索引信息又可以为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 Access service at the timed segment index corresponding timeout configuration standard for access to information and services on the timed part of the corresponding application or service feature information processing system core platform access services to perform the track at the time control link feature information corresponding application.

[0107] 其中,当前线程代表一个正在执行的交易,而当前线程标识则作为正在执行交易的唯一标识,当前线程标识可以是当前线程名,例如,可以通过JDK(Java Development Kit, Java 开发工具包)提供的API (Application ProgrammingInterface,应用程序接口) 获得当前线程,从当前线程中可以获取当前线程名。 [0107] where the current thread is executing on behalf of a transaction, and the current thread ID is a unique identification being executed transactions, the current thread identifier can be the name of the current thread, for example, by JDK (Java Development Kit, Java Development Kit ) API (Application ProgrammingInterface, application programming interface) provides access to the current thread, you can obtain the name of the current thread from the current thread.

[0108] 所述时控环节处理接入业务的开始时间是所述时控环节开始处理接入业务时的服务系统时间; [0108] The processing time control link access services start time is the time control link service systems begin processing access service when the time;

[0109] 所述时控环节对应的应用要素信息预先保存在线程上下文中,可从线程上下文中获取;服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息可以从当前交易路径信息获取; [0109] When the control part of the application corresponding to feature information previously stored in the thread context, available from the thread context; service system access service processing core platform execution trace information corresponding application elements from the time control link current trading route to information;

[0110] 所述超时配置标准定义在配置文件中,服务系统可以通过装载器(例如超时标准装载单元)将配置文件装载成对象以供服务系统获取超时配置标准。 [0110] The timeout configuration standards defined in the configuration file, the service system can be loaded (for example timeout standard loading unit) configuration file is loaded into an object for service system acquisition timeout configuration standards.

[0111] 值得注意的是,超时控制信息获取单元610是根据接入业务在所述时控环节对应的超时配置标准索引信息(接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息)获取对应的超时配置标准的。 [0111] It is worth noting that the timeout control information acquisition unit 610 is based on the access service at the timed segment index corresponding standard timeout configuration information (access service at the timed part of the corresponding application or service feature information system core platform handles the access execution trace element information corresponding to the service applications in the time control link) you get the corresponding timeout configuration standards.

[0112] 接入业务在所述时控环节对应的应用要素信息包括应用要素的类型和名称等。 [0112] access service at the timed part of the corresponding application element information including the application element type and name. 应用要素的类型是指应用的属性,可以有以下分类:渠道类型、交易类型、服务类型、服务系统类型、基础服务类型等。 Type of application element is a property application, you can have the following categories: channel type, transaction type, service type, service type of system, basic service types. 以渠道类型应用要素为例,具体又包含:柜面渠道类型、分行特色渠道类型、电子渠道类型、统一渠道类型等。 Channel-type application feature, for example, concrete and comprising: counter channel types, the branch channel type characteristics, the type of electronic channels, unified channel types. 应用要素的名称在系统内部以ID表示。 Name of the application elements within the system represented by ID. 名称比较多,而且在不断增加中,下面举例说明:渠道应用要素的名称包括000100 (柜面渠道)、 999900 (统一渠道)、gdpxt (个贷P渠道)、gjjxt (公积金渠道)等;交易应用要素的名称包括YTH915000 ( 一体化签约交易)、GJJ960001 (公积金交易)等;服务应用要素的名称包括CR0500500(卡查询服务)等;服务系统应用要素的名称包括host (主机服务系统)、 eaih(eaih服务系统)等;基础服务应用要素的名称包括500500 (卡查询基础服务)等。 Name more, but increasing in the following example: name of channel elements include application 000100 (counter channels), 999900 (unified channels), gdpxt (loan P channel), gjjxt (CPF channels) and the like; transactional applications name of the feature include YTH915000 (integration contract transactions), GJJ960001 (fund transactions) and the like; name of the service application features include CR0500500 (card inquiry services); Name Service System elements include host (host service system), eaih (eaih service systems); name of the underlying service applications include elements 500500 (cards for basic services). 应用要素信息和时控环节具有对应关系,比如:渠道应用要素信息对应渠道处理(时控)环节。 Application control link feature information and when a corresponding relationship, such as: channel feature information corresponding to the channel application process (time control) links. 服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息记录了服务系统核心平台对接入业务进行复杂服务处理的服务处理环节的服务处理执行轨迹对应的服务应用要素信息,可以从当前线程上下文中获取当前交易路径信息并从当前可以从 Service system the core platform in the access part of the processing corresponding to the service application execution trace elements of the control information is recorded when the service processing execution system tracks service core platform for access services for complex service processing service processing chain of the corresponding service application feature information You can obtain information about the current trade route from the current thread context and from the current available from

12当前交易路径信息获取所述与服务执行轨迹对应的服务应用要素信息。 12 current trading route information acquisition and execution trace of the corresponding service application service element information.

[0113] 根据接入业务在所述时控环节对应的超时配置标准索引信息(以接入业务在所述时控环节对应的应用要素信息为例),每个代理模块获取对应的超时控制标准的具体步骤为: [0113] The access control aspects of the business at the time corresponding to the standard index timeout configuration information (to access services at the time control link feature information corresponding application example), each agent module obtains the corresponding timeout control standards The specific steps:

[0114] 超时控制信息获取单元610从线程上下文中获取接入业务在所述时控环节对应的应用要素信息。 [0114] timeout control information obtaining unit 610 to obtain access service at the timed part of the corresponding application elements from thread context. 例如,〈渠道类型、000100(柜面渠道)> ; For example, the <channel type, 000100 (counter channels) ";

[0115] 超时控制信息获取单元610根据所述接入业务在所述时控环节对应的应用要素信息获取超时配置标准。 [0115] timeout control information obtaining unit 610 to obtain time-out configuration standards based on the access service at the time control link feature information corresponding application. 例如,在超时配置文件中查找获得与〈渠道类型、000100(柜面渠道)> 对应的超时配置标准。 For example, find obtained <channel type, 000100 (counter channels)> timeout configuration file corresponding timeout configuration standards.

[0116] 图7是图5中的超时管理模块530的组成示意图。 [0116] FIG. 7 is a schematic diagram of the composition of the management module 5 timeout 530. 如图7所示,所述超时管理模块530包括: As shown, the time-out management module 530 comprises 7:

[0117] 服务系统时间获取单元531,用于获取所述通讯接出时的当前服务系统时间; [0117] service system time acquisition unit 531 for acquiring the communications system currently serving time take out the time;

[0118] 信息存储单元532,用于存储所述登记的超时控制信息。 [0118] information storage unit 532 for storing the control information of the registration timeout. 所述登记的超时控制信息以逐条记录的方式存储在信息存储单元中,一条记录对应一个代理模块登记的对应于一个时控环节的超时控制信息; The registration timeout control information stored one by one recorded in the information storage unit, a record corresponding to a registered agent module corresponds to a time-controlled part of the timeout control information;

[0119] 实际超时标准计算单元533,用于根据所述超时控制信息和所述通讯接出时的服务系统时间计算各个时控环节对应的实际超时标准; [0119] The actual timeout standard calculation unit 533 for calculating the various aspects of the corresponding time control system based on the service time of the timeout control information and the communication interface of a timeout when the actual standard;

[0120] 超时策略执行单元534,根据配置的超时控制策略选取所述各个实际超时标准之一作为交易超时标准。 [0120] timeout policy enforcement unit 534, according to one timeout control strategy chosen standard configuration of the respective actual timeout as the transaction timeout criteria.

[0121] 根据本发明提供的一个实施例,超时策略执行单元依次比较各个时控环节对应的实际超时标准得到最终的交易超时标准,具体地: [0121] When compared in turn control various aspects of the present invention to provide a corresponding one example of timeout policy enforcement unit according to the actual standards are final transaction timeout timeout criteria, in particular:

[0122] 根据时控环节I对应的超时控制信息,计算得到时控环节I对应的实际超时标准TOldf TOI存储为交易超时标准; [0122] According to aspects I timed timeout corresponding control information, calculate the actual timeout standard control link when I TOldf TOI corresponding transaction timeout stored as standard;

[0123] 根据时控环节2对应的超时控制信息,计算得到时控环节2对应的实际超时标准T02,比较TOl与T02的大小: [0123] According to the control link 2 when the control information corresponding to the timeout, calculated when the control link 2 corresponds to the actual timeout standard T02, and T02 compare TOl size:

[0124] 若T02小于T01,则将T02替换TOl存储为交易超时标准;否则,维持TOl存储为交易超时标准的状态不变。 [0124] If less than T02 T01, T02 will replace TOl stored as transaction timeouts standards; otherwise, maintain TOl stored as state trading timeout standard unchanged.

[0125] 按上述规则,依次计算所有剩余时控环节(时控环节3、......、时控环节η, η代 [0125] by the above rules, in order to calculate all the remaining time control link (when the control link 3, ......, when the control link η, η Generation

表时控环节的最大编号)对应的实际超时标准,直到得到最后的时控环节时控环节η对应的实际超时标准TOn,每计算得到一个新的实际超时标准,都将该新计算出的实际超时标准与前一个时控环节中存储为交易超时标准的时间值比较大小,根据比较结果,确定是否将新计算出的实际超时标准标储存为交易超时标准,如此,最后存储的实际超时标准即为接入业务的交易超时标准。 The maximum number of table control link) corresponding to the actual time-out standard, until you get a final timed segment when the control link η corresponding actual timeout standard TOn, each calculated a new standard real time-out, all the actual newly calculated Timeout standard with the previous session timed transaction timeout value is stored as a time standard size comparison, according to the comparison results to determine whether the new standard to calculate the actual timeout for the transaction timeout standard storage standard, so the actual timeout standard that is the last memory to access standard business transaction timeout.

[0126] 需要说明的是,配置在所述超时控制模块的超时控制策略支持扩展,可由开发人员定制实现其他不同的超时控制策略。 [0126] It should be noted that the configuration of the timeout the timeout control module control strategy to support the expansion, customized by developers of other different timeout control strategies. 例如,可以根据业务需求采用最大超时策略,即:选取各环节实际超时标准中时间值最大的实际超时标准作为该笔交易的交易超时标准;同样,还可以采用平均超时策略,即:选取各环节实际超时标准时间值的平均值作为该笔交易的交易超时标准。 For example, according to business needs with maximum time-out policy, namely: selecting various aspects of the actual value of the maximum timeout standard time standard as the actual transaction timeout standard timeout of the transaction; Similarly, you can also use an average time-out policy, namely: Select all sectors the average actual timeout value as the standard time of the transaction transaction timeout standard.

[0127] 在所述超时管理模块530中,实际超时标准计算单元533在计算各个时控环节对应的实际超时标准时,对于每条所述记录,按下述方式进行计算: [0127] In the time-out management module 530, the actual timeout criterion calculating unit 533 when calculating the various aspects of the control when the actual timeout corresponding standards, for each of the record, is calculated in the following manner:

[0128] 在本发明提供的一种实施方式中,当接入业务在所述时控环节对应的超时配置标准是时控环节超时标准,则将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准。 [0128] In one embodiment of the present invention provides, when access service at the time control link timeout configuration corresponding standard is the standard control link timeout, then the standard time control link timeout minus the time process control link access services have been implemented to give the time when the control link corresponding actual overtime standards. 其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 Wherein when the control aspects of processing access service has been performed time equal to the current system time minus the service when handling the access control aspects of business start time.

[0129] 在本发明提供的另一种实施方式中,所述实际超时标准计算单元533还包括比较器。 [0129] In another embodiment of the present invention is provided, the actual timeout criterion calculating means 533 further comprises a comparator. 当接入业务在所述时控环节对应的超时配置标准包括时控环节超时标准和业务超时标准,则所述环节对应的实际超时标准的计算按下述方式进行: When the access control aspects of the business at the time corresponding timed timeout configuration standards include standards and business aspects of the timeout timeout criteria, calculate the actual timeout standard corresponding link in the following manner:

[0130] 所述比较器比较所述时控环节超时标准和业务超时标准的大小,当所述业务超时标准大于所述时控环节超时标准,则将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准;否则,将所述业务超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准。 [0130] when the comparator control standards and business aspects of the timeout timeout comparing the standard size, when the service is greater than the standard timeout timeout standard time control link, link timeout time control will be the standard by subtracting the Otherwise, the business standard by subtracting the timeout when the control aspects of processing access service has been performed to obtain the time; time-controlled part of the processing time of access service has been performed to obtain the actual time out of the time-controlled part of the standard corresponding control link corresponding actual overtime standards. 其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 Wherein when the control aspects of processing access service has been performed time equal to the current system time minus the service when handling the access control aspects of business start time.

[0131 ] 在上述本发明的一种服务系统的任意一个实施例中,所述业务接入模块还可包括业务接入超时控制单元,所述业务接入超时控制单元用于对业务接入模块将业务接入所述服务系统核心平台时进行超时控制,具体地,当业务接入模块将接入业务通讯接入时,通过中间件和通信协议获取配置的通讯接入超时标准,所述业务接入超时控制单元记录开始通讯接入的时间戳并调用通讯接入适配器进行接入业务的通讯接入,同时接入模块监听所述服务系统核心平台返回的通讯接入反馈,若在所述通讯接入超时标准时间内监听到所述反馈,则接入业务正常接入,否则,服务系统抛出超时控制异常。 [0131] In one service any system of the present invention, in one embodiment, the service access module may also include a service access timeout control unit, the service access time-out control unit for service access module service access will be the core platform at the service timeout control system, in particular, when the service access module will access business communications access, access to the configuration of the communication access through middleware overtime standards and communication protocols, the business Access timestamp recording start communication access control unit and call a timeout access adapter communication access services communications access, while listening to the service system access module core platform of communication access feedback, if the Access timeout in the communications standard time listening to the feedback, the access normal business access, otherwise, the service control system throws a timeout exception.

[0132] 在上述本发明的一种服务系统的任意一个实施例中,所述超时管理模块还可以包括超时配置单元,所述超时标准配置单元用于配置和修改超时配置文件,其中,所述接入业务在所述时控环节对应的超时配置标准定义在所述超时配置文件中。 [0132] In one service any system of the present invention, in one embodiment, the timeout management module may also include overtime hive, the timeout standard configuration unit to configure and modify the timeout configuration file, wherein timeout configuration standard defines access service at the time control link corresponding to the timeout in the configuration file. 相应地,所述系统包括超时标准装载单元,所述超时标准装载单元用于将所述超时配置文件装载成对象。 Accordingly, the system comprises a loading unit standard timeout, the timeout criterion for the loading unit loading the configuration file into an object timeout. 超时配置文件定义在在超时配置单元中,通过所述超时配置装载单元将超时标准配置文件装载成对象(例如JAVA对象),在系统启动期被所述超时装载器调用。 Timeout profile is defined in the hive timeout, timeout configuration via the loading unit to load timeout standard configuration file into an object (such as JAVA objects), the system start-up period is the time-out loader calls. 在服务系统运行过程中也可以通过管理命令将新的超时配置信息写入超时配置文件中修改超时配置信息,修改后的超时配置信息生效成为新的超时配置信息。 During the operation of the service may be new timeout configuration information is written to modify the configuration file timeout timeout configuration information through the management command, modify the configuration timeout after timeout take effect become the new configuration information. 本发明中的超时配置信息定义在超时配置文件中,下面是本发明中的超时配置文件样例: The present invention is defined in the timeout timeout configuration information in the configuration file, the following is a sample of the present invention timeout configuration file:

[0133] < ? xml version = " I. O" encoding = " GB2312" ? > [0133] <? Xml version = "I. O" encoding = "GB2312"?>

[0134] < !—超时配置,其中switch作为超时控制的总开关,on打开,off关闭,timeout 表示当无配置时的默认值,单位为秒一> [0134] <! - Timeout configuration, in which the switch as a master switch timeout control of, on opening, off close, timeout indicates that when no configuration defaults seconds a>

[0135] 〈timeout-config switch = " on" timeout = " 60" > [0135] <timeout-config switch = "on" timeout = "60">

[0136] 〈! [0136] <! 一下面的timeout为必配属性,单位为秒,表示最大超时时间。 The following is a timeout must be equipped property, in seconds, it represents the maximum time-out. 如果为"O" 或""表示始终超时即挡住交易一> If "O" or "" indicates that is blocking the transaction timeout always a>

[0137] < !—渠道和交易的超时配置一> [0137] <! - Timeout configuration channels and trading of a>

[0138] 〈channel name = " AAAAAA" timeout = " 60" > [0138] <channel name = "AAAAAA" timeout = "60">

[0139] <tran name = " BBBBBB" timeout = " 70" />[0145] [0139] <tran name = "BBBBBB" timeout = "70" /> [0145]

[0146] </server) [0146] </ server)

[0147] </timeout-config> [0147] </ timeout-config>

[0140] [0140]

[0141] [0141]

[0142] [0142]

[0143] [0143]

[0144] [0144]

[0148]其中的各个配置字段,如 “channel name”、“tran name'“service name” 和“timeout”都可以在服务系统运行期间通过管理命令修改,修改后的配置文件通过执行配置实例生效。也可以看到,在超时配置文件中可以设置超时控制总开关(switch)及其状态,如果超时控制总开关为开(on),就表示超时控制生效,所有配置和控制都起作用;如果总开关为关(off),就表示超时控制不生效,即不进行超时控制。 [0148] wherein each configuration fields, such as "channel name", "tran name '" service name "and" timeout "during the service system can run administrative commands to modify, the modified configuration file to configure the instance take effect by performing through. can also be seen in the configuration file timeout timeout can be set to control the master switch (switch) and the state, if the timeout control master switch is on (on), it means timeout control force, all configuration and control of all work; if the total switch is off (off), it indicates that the timeout control is not effective, that is, no timeout control.

[0149] 综上所述,实施本发明提供的一种服务系统中的超时控制的方法及一种服务系统,通过登记各个时控环节对应的超时控制信息、根据所述超时控制信息计算实际超时标准、按照超时控制策略选取交易超时标准并根据所述交易超时标准对通讯接出进行超时控制,实现了在服务系统应用层细粒度的超时控制。 [0149] In summary, the implementation of a service system of the present invention provides a method and a service control system timeout, by registering each link corresponding to the timed-out control information, information based on the calculated actual timeout timeout control standards, according to the transaction timeout timeout control strategy selection criteria and in accordance with the transaction timeout standard communication interface to control the time-out to achieve a timeout control system in the service application layer fine-grained. 同时能灵活配置超时控制策略和超时配置标准,满足了服务系统对不同应用场景接入业务的时控需求,提高了服务系统用户的体验。 With the flexibility to configure the timeout timeout configuration control policies and standards to meet the needs of the service when the control systems for different application scenarios of access services, improve the service system user experience.

[0150] 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件结合硬件平台的方式来实现,当然也可以全部通过硬件来实施。 [0150] The above description of embodiments, those skilled in the art can understand that the present invention may be by means of software with hardware platforms to achieve, of course, can all be implemented by hardware. 基于这样的理解,本发明的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如R0M/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。 Based on this understanding, the technical aspect of the present invention is to contribute to the background art, all or part may be embodied in the form of a software product, the computer software product may be stored in a storage medium, such as R0M / RAM, disk, CD-ROM , including several instructions to instruct a computer device (may be a personal computer, a server, or network equipment) to perform the various embodiments of the present invention, or certain parts of the method according to the embodiment.

[0151] 以上所揭露的仅为本发明的较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 [0151] disclosed above is only a preferred embodiment of the present invention only, of course, can not be used to limit the scope of the claimed invention, therefore equivalent claim under this claimed invention changes made, the scope of the present invention is still covered.

15 15

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
US636349629 Jan 199926 Mar 2002The United States Of America As Represented By The Secretary Of The Air ForceApparatus and method for reducing duration of timeout periods in fault-tolerant distributed computer systems
US652643315 Dec 199925 Feb 2003International Business Machines CorporationAdaptive timeout value setting for distributed computing environment (DCE) applications
US2008006286311 Sep 200713 Mar 2008Qualcomm IncorporatedTransaction timeout handling in communication session management
Classifications
International ClassificationG06F9/44, G06Q40/00
Legal Events
DateCodeEventDescription
9 Jun 2010C06Publication
11 Aug 2010C10Request of examination as to substance
25 Jul 2012C14Granted