Connect public, paid and private patent data with Google Patents Public Datasets

Overtime control method in service system and service system

Info

Publication number
CN101727648B
CN101727648B CN 200910204557 CN200910204557A CN101727648B CN 101727648 B CN101727648 B CN 101727648B CN 200910204557 CN200910204557 CN 200910204557 CN 200910204557 A CN200910204557 A CN 200910204557A CN 101727648 B CN101727648 B CN 101727648B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
system
control
service
overtime
method
Prior art date
Application number
CN 200910204557
Other languages
Chinese (zh)
Other versions
CN101727648A (en )
Inventor
吴炜斯
施健
杨芬
王迎春
Original Assignee
中国建设银行股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Grant date

Links

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.

Description

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

技术领域 FIELD

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

背景技术 Background technique

[0002] 金融、电信等行业的服务系统负载着大量并发的联机事务的处理,这些联机事务处理的每笔业务的信息量较小,而且具有一定的实时性,对时间的要求非常严格。 [0002] finance, telecommunications and other industries of the service system is loaded with a large number of concurrent online transaction processing, the smaller the amount of information of each of these online transaction processing business, but also has some real-time, very strict requirements on time. 因此,需要对服务系统进行超时控制以满足实时性要求。 Therefore, the need for time-out control of the service system to meet real-time requirements. 例如:在阻塞时间比较长的环节上实施超时控制,这些阻塞时间比较长的环节可能是和远程数据库的连接,也可能是网络下载,在这些环节超时后,往往需要进行一些操作,比如:抛出超时控制异常,或者重新执行,达到客户端快速响应、服务器端稳定可靠的效果。 For example: the implementation of the timeout control on blocking a long time links, which blocked a long time links may be and remote connection to the database, it may be downloaded from the Internet after these aspects overtime, often need to do something, such as: throwing a timeout control abnormality, or re-executed client achieve quick response, the server reliable results.

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

发明内容 SUMMARY

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

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

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

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

[0008] c.所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准; [0008] c of the timeout management module select one of the actual timeout as the timeout standard criteria based on the configured timeout control strategy.;

[0009] d.根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 [0009] d. The communication access to a service connection timeout control based on the standard transaction timeout.

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

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

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

[0014] 超时管理模块,用于根据所述代理模块登记的超时控制信息和通讯接出时的当前服务系统时间计算各个时控环节对应的实际超时标准,并根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准; [0014] Time-out management module, the system for the current service time when calculating the actual contact time control link timeout criteria each corresponding to the control information and the communication module according to the proxy registration timeout, the timeout control policy and selected according to the configuration The actual time-out as one of the standard transaction timeout standard;

[0015] 业务接出模块,用于将经过服务系统核心平台处理的接入业务通讯接出,并根据所述交易超时标准对所述通讯接出进行超时控制。 [0015] a service access module, configured to take out communications through the access service platform processes the core service system, and the communication connection the timeout control based on the standard transaction timeout.

[0016] 实施本发明提供的一种服务系统中的超时控制方法及一种服务系统,通过登记各个时控环节对应的超时控制信息、依据所述超时控制信息计算实际超时标准、根据超时控制策略从所述实际超时标准中选取交易超时标准并根据所述交易超时标准对通讯接出进行超时控制,超时控制细化至应用层各个时控环节,实现了在服务系统应用层细粒度的超时控制。 [0016] The system of the present invention provides a service in a service timeout control method and system control information by registering each link corresponding to the timed-out, according to the control information to calculate the actual timeout timeout criteria, based on the timeout control strategy selecting from the actual transaction timeout timeout criteria and standards for the communication connection timeout control based on the standard transaction timeout, the timeout control various aspects of refining timed to the application layer, to achieve a fine-grained timeout control at the application layer service system . 超时控制的粒度细化提高了超时控制的精度,能满足服务系统对不同应用场景接入业务的时控需求;细粒度的超时控制避免了交易超时对系统资源(包括通讯资源、内存资源和线程资源等)的长时间占用,保护了服务系统资源,防止了其他交易无法执行甚至宕机等严重故障的发生;同时,前端系统也无需长时间等待服务系统的响应,因而间接保护了前端系统资源;细粒度的超时控制能整体上提高服务系统处理用户业务的速度、提高了服务系统的服务质量和用户的体验。 Timeout control of the particle size refinement to improve the accuracy of the time-out control, the system can meet the service access service for different application scenarios timed demand; fine-grained control to avoid the transaction timeout timeout of system resources (including communications resources, memory resources and the thread resources, etc.) of prolonged occupation, the protection service system resources, preventing other transactions can not be executed even serious failures such as downtime; 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 user traffic speed fine-grained, improve service quality service system and user 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 flowchart of a timeout control method of a service system of the present invention; [0018] FIG 2 is a flowchart illustrating step S400 of FIG. I; [0019] FIG. 3 is a step I of FIG. the flowchart SlOO; [0020] 4 is a timeout of the access control of FIG communication service internet access services schematic flow diagram of core system [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 schematic diagram illustrating a timeout management module 530.

具体实施方式 detailed description

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

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

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

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

[0028] 所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、 所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 [0028] The timeout control information comprises: identifying the current thread, the processing start time when the link access control service, the timeout when the corresponding control link standard configuration, the access service corresponding to the timed-out part standard configuration index information. 其中,接入业务在所述时控环节对应的超时配置标准索引信息又可以为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 Wherein, when the access service control link timeout configuration corresponding standard index information and the access service may be timed application element information corresponding to the link or the internet service system core segment handling access service timed application execution trace element information corresponding.

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

[0030] 所述时控环节处理接入业务的开始时间是所述时控环节开始处理接入业务时的服务系统时间; Start Time [0030] When the link control processing access service is a service control part of the system time at the time of access service start process;

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

[0032] 所述超时配置标准定义在配置文件中,服务系统可以通过装载器(例如超时标准装载单元)将配置文件装载成对象以供服务系统获取超时配置标准。 [0032] The standard defines the timeout configuration in the configuration file, the service system may loader (e.g., a standard time-out loading unit) loading the configuration file to the service objects for system acquisition timeout configuration standards.

[0033] S200,当服务系统核心平台按照各个环节处理完接入业务,通讯接出时,所述超时管理模块根据所述超时控制信息和当前服务系统时间计算所述各个时控环节对应的实际超时标准。 [0033] S200, when the core service platform system in accordance with various aspects of treatment End access service, the communication connection, the management module calculates the overtime when the respective control link to the corresponding actual timeout control in accordance with the service information and the current system time timeout standards.

[0034] S300,所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时控制标准。 [0034] S300, the management module as a transaction timeout timeout control in accordance with the standard control policy to select one of the configuration timeout actual timeout criteria.

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

[0036] S400,根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 [0036] S400, according to the transaction timeout of the standard communications access an access service timeout control. 在选取交易超时标准之后,业务接出模块从超时管理模块中取所述交易超时标准,根据所述交易超时标准调用通讯接出适配器进行通讯接出并对通讯接出进行超时控制。 After selecting the transaction timeout criteria, then the service module taken from the transaction timeout timeout standard management module, according to the transaction timeout call communications standard communications adapter connected to the whip and the contact communication timeout control. [0037] 具体而言,如图2所示,步骤S400具体包括: [0037] Specifically, as shown in FIG. 2, step S400 comprises:

[0038] S4001,通讯接出的主线程记录通讯接出起始时间戳; [0038] S4001, then the communication master thread take out the recording starting time stamp correspond;

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

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

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

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

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

[0044] S4006,服务系统进行通讯接出超时处理。 [0044] S4006, communication service system connected to a time-out process. 例如,服务系统抛出超时控制异常,可以认为超时控制中的超时也属于一种异常情况,利用“异常”这一种JAVA提供的异常类(Exception)来进行通讯接出超时处理。 For example, the service control system timeout exception is thrown, that can control the timeout timeout also belong to an unusual case, the abnormal class (Exception) "exception" to this kind of JAVA providing a communication connection time-out processing. 抛出超时控制异常后,后续处理可以交给异常处理模块进行统一的异常处理,比如:修改服务状态为失败,组织错误报文返回给渠道系统等。 After the timeout control throws an exception, follow-up treatment can be given to exception handling module consistent 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 (including all exceptions: timeout exception, playing unpacking abnormalities, abnormal communication and processing decryption abnormalities).

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

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

[0047] S1001,获取当前线程标识、所述时控环节处理接入业务的开始时间(也即此时的服务系统时间)和接入业务在所述时控环节对应的超时配置标准索引信息; [0047] S1001, acquires the current thread identifier, start time when the link control processing access service (i.e. service system time in this case) out configuration standard index information and the access control service when the corresponding segment;

[0048] S1002,根据所述接入业务在所述时控环节对应的超时配置标准索引信息获取接入业务在所述时控环节对应的超时配置标准; [0048] S1002, the acquired access service control when a standard link timeout configuration corresponding service according to the access link corresponding to the timed-out index information of the standard configuration;

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

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

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

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

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

[0055] S5003,监听在所述通讯接入超时标准内是否监听到所述反馈, [0055] S5003, whether the listener listening to the feedback within the access communication timeout criteria,

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

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

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

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

[0060] 在本发明计算所述各个时控环节对应的实际超时标准的步骤S200中,所述超时控制信息中接入业务在所述时控环节对应的超时配置标准可以只是时控环节超时标准也可以包括时控环节超时标准和业务超时标准,其中,在同一个时控环节,不同应用场景下的接入业务对应同一个时控环节超时标准;而在同一个时控环节,不同的应用场景下的接入业务根据不同的接入业务的应用类型信息对应不同的业务超时标准。 [0060] In the present invention calculates the actual time-out criterion of each link corresponding timed step S200, the timeout of the service access control information in the control segment when the corresponding configuration timeout criterion may simply timed link timeout criteria may also include a time-controlled timeout link timeout criteria and operational standards, wherein at the same time control link, access services of different application scenarios correspond to the same standard when the control link timeout; timed in the same part, different applications the access service when different service corresponding to application type information according to the standard time-out of the different access service.

[0061] 服务系统核心平台处理完接入业务,通讯接出时,超时管理模块获取当前服务系统时间,并根据所述在超时管理模块中登记的所述每个时控环节对应的超时控制信息,按照超时配置标准包含信息的不同,分别按如下方式处理: [0061] The core service platform system finished processing access service, when a communication connection, the management module acquires the current time-out time service system, and the control information registered in the management module in each of a timeout when the corresponding control link timeout , arranged according to different standards timeout information contained respectively in the following manner:

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

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

[0064] 比较所述时控环节超时标准和业务超时标准的大小,当所述业务超时标准大于所述时控环节超时标准,则将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准; [0064] When comparing the control link timeout criteria and operational timeout standard size, when the traffic is greater than the standard time-out when the control link timeout criteria, when the control part subtracts the standard time-out process will be time-controlled part of the access service has been an actual execution time of the standard time-out time corresponding to the control link;

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

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

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

[0068] 根据时控环节I对应的超时控制信息,计算得到时控环节I对应的实际超时标准TOldf TOI存储为交易超时标准;[0069] 根据时控环节2对应的超时控制信息,计算得到时控环节2对应的实际超时标准T02,比较TOl与T02的大小: [0068] The control information when the control part I corresponds to a timeout is calculated to give the timeout criterion actual timeout criteria control part I corresponding TOldf TOI memory; [0069] The 2 when the corresponding control link timeout control information calculated 2 corresponding actual control link timeout criteria T02, T02 and Comparative TOl size:

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

[0071] 按上述规则,依次计算所有剩余时控环节(时控环节3、......、时控环节n, n代 [0071] according to the above rule sequentially calculates all the remaining time-controlled part (when the control part 3, ......, when the control part n, n generations

表时控环节的最大编号)对应的实际超时标准,直到得到最后的时控环节时控环节n对应的实际超时标准TOn,每计算得到一个新的实际超时标准,都将该新的实际超时标准与前一个时控环节中存储为交易超时标准的时间值比较大小,根据比较结果,确定是否将新计算出的实际超时标准标储存为交易超时标准,如此,最后存储的实际超时标准即为接入业务的交易超时标准。 Table maximum number of link control) corresponding actual timeout criteria until a final time-controlled link when the control link corresponding to the actual timeout criteria TOn n, each of the calculated actual timeout a new standard, all the new actual timeout criteria a link with the previous timed value comparing the time stored transaction timeouts standard size, based on the comparison, it is determined whether the new calculated actual transaction timeout is a timeout standard standard standard storage, so the actual timeout criteria is the last access stored the standard business transaction timeout.

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

[0073] 在本发明的一种服务系统的超时控制方法的上述任意一个实施例中,在服务系统运行过程中都可以通过管理命令修改配置的超时配置标准,修改后的超时配置生效成为新的超时配置标准。 [0073] a standard configuration timeout embodiment, during the operation of the service system can be configured through the management command to modify any of the above embodiments timeout control method of a service system of the present invention, the changes to take effect after the timeout configuration becomes the new timeout configuration standards.

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

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

[0076] < !--超时配置,其中switch作为超时控制的总开关,on打开,off关闭,timeout 表示当无配置时的默认值,单位为秒--> [0076] <! - out configuration, wherein the switch as a master switch timeout control, open the ON, OFF off, timeout showing the configuration when no default value, in 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 timeout. 如果为"O" 或""表示始终超时即挡住交易--> If "O" or "" indicates a timeout that is always blocking the transaction ->

[0079] < !--渠道和交易的超时配置--> [0079] <-! Timeout configuration channels and transactions ->

[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] <! - service and service timeout atoms 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 field, such as the "channel name", "tran name '" service name "and" timeout "may be during the service system operation management commands modified, the modified profile configuration instance by performing effected through. can also be seen, the main switch may be provided timeout control (switch) and the configuration file timeout state, if the total timeout control switch is on (oN), it indicates that the timeout control is active, all functions are configuration and control; if the total switch is OFF (OFF), it means that timeout control does not take effect, i.e. no timeout control.

[0091] 通过实施本发明提供的一种服务系统中的超时控制方法,通过登记各个时控环节对应的超时控制信息、根据所述超时控制信息计算实际超时标准、按照超时控制策略选取交易超时标准并根据所述交易超时标准对通讯接出进行超时控制,实现了在服务系统应用层细粒度的超时控制。 [0091] By implementing a timeout control method of a service system of the present invention provides, by registering the corresponding respective control information when the control link timeout, the timeout criterion is calculated according to the actual timeout control information, in accordance with the control strategy to select the timeout timeout criteria and to take out the communication timeout control based on the standard transaction timeout, the timeout control implemented at the application layer of fine-grained services system. 同时能灵活配置超时控制策略和超时配置标准,满足了服务系统对不同应用场景接入业务的时控需求,提高了服务系统用户的体验。 At the same time the flexibility to configure the timeout timeout configuration control policies and standards to meet the demand for services when the control system access services for different application scenarios, 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 service system timeout control techniques, in conjunction with FIG. 5 to FIG. 7, this is explained in 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 comprises: a service access module 510, a core service platform system 520, one or more of the agent modules (as in FIG. agent module shown proxy module I- [eta]), the management module 530 and a time-out the service access module 540, specifically:

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

[0095] 服务系统核心平台520,用于处理业务接入模块510接入的接入业务,接入业务在服务系统核心平台520中通过若干处理环节进行处理,这些处理环节包括渠道处理环节、 交易处理环节、服务处理环节、服务系统处理环节、基础服务处理环节等。 [0095] The service platform system core 520 for processing access service access service access module 510, a plurality of access service processed by the processing chain in the core platform service system 520, which comprises a processing stage channel processing chain, the transaction the processing chain, service processing chain, processing chain service system, basic services such as processing chain. 值得注意的是,在本发明中,可根据需要对所述服务系统核心平台520处理接入业务的各个处理环节中的部分或全部处理环节进行超时控制,所述需要进行超时控制的处理环节称为时控环节(如图5所示,包括时控环节I、时控环节2、......、时控环节η,η为时控环节的最大编号); It is noted that, in the present invention, the timeout control portion of the core service platform system 520 processes each access service processing part or all of the required processing chain, the links need to be processed, said timeout control a timed link (shown in Figure 5, includes control links I, when the control part 2, ......, when the control part η, η a timed maximum number of links);

[0096] 一个或多个代理模块,各个代理模块与服务系统核心平台520处理接入业务的各个时控环节——对应(如图5所示,代理模块I对应时控环节I、代理模块2对应时控环节 [0096] One or more of the agent modules, each proxy system service module 520 each time the core control aspects of internet access service process - the corresponding (shown in Figure 5, the proxy module I I corresponds to when the control link, the proxy module 2 when the corresponding control link

2........代理模块η对应时控环节η),每个代理模块用于将与之对应的时控环节的超时 [Eta] 2 ........ agent module when the corresponding control links η), each proxy module configured to link the corresponding timed-out

控制信息登记在超时管理模块中530 ; Registered in the control information management module 530 timeout;

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

[0098] 业务接出模块540,用于将经过服务系统核心平台520处理的接入业务通讯接出, 并根据所述交易超时标准对所述通讯接出进行超时控制。 [0098] a service access module 540, configured to take out communications through the access service system 520 processes the core service platform, and to pick out the communication timeout control based on the standard transaction timeout.

[0099] 其中,业务接出模块540将经过服务系统核心平台520处理的接入业务通讯接出并对通讯接出进行超时控制具体为: [0099] wherein the service access module 540 to access services through the core communication service system processing platform 520 and pick out a communication connection timeout control specifically is:

[0100] 业务接出模块540从超时管理模块530中获取所述交易超时标准; [0100] a service access module 540 acquires the transaction timeout timeout criteria from the management module 530;

[0101] 主线程记录通讯接出起始时间戳; [0101] Corresponding master thread take out the recording starting time stamp;

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

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

[0104] 判断通讯接出耗时(当前时间戳减去通讯接出起始时间戳的时间)是否小于所述交易超时标准,若判断为是,则表示通讯正常接出,主线程进入通讯接出后的处理环节,比如接受后台服务系统的处理;否则表示通讯接出超时,服务系统抛出超时控制异常。 [0104] Analyzing the communication connection Processed (current timestamp minus the starting time for the communication access timestamp) is less than the transaction timeout criterion, if the determination is YES, then pick out the normal communication, the communication connection into the main thread after the processing chain, such as receiving a background service processing system; otherwise, it indicates a communication connection timeout, timeout control service system throws an exception.

[0105] 图6是图5中的代理模块的组成示意图。 [0105] FIG. 6 is a schematic diagram illustrating a FIG. 5 proxy module. 如图6所示,所述代理模块包括超时控制信息获取单元610和超时控制信息登记单元620,其中,超时控制信息获取单元610用于获取与代理模块对应的时控环节的超时控制信息;超时控制信息登记单元620用于将所述超时控制信息登记到所述超时管理模块中。 As shown in FIG. 6, the proxy module includes a timeout control information obtaining unit 610 and the time-out information registration control unit 620, wherein the timeout control information acquisition unit 610 for acquiring the proxy module corresponding timed link timeout control information; Timeout a control information registration unit 620 for registering the timeout control information to the management module timeout.

[0106] 所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、 所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 [0106] The timeout control information comprises: identifying the current thread, the processing start time when the link access control service, the timeout when the corresponding control link standard configuration, the access service corresponding to the timed-out part standard configuration index information. 接入业务在所述时控环节对应的超时配置标准索引信息又可以为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 Standard timeout configuration index information access service when the control segment may be processed and corresponding access services to access service execution trace of the control links when the corresponding application or service information element in the system core internet links timed application information corresponding elements.

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

[0108] 所述时控环节处理接入业务的开始时间是所述时控环节开始处理接入业务时的服务系统时间; Start Time [0108] When the link control processing access service is a service control part of the system time at the time of access service start process;

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

[0110] 所述超时配置标准定义在配置文件中,服务系统可以通过装载器(例如超时标准装载单元)将配置文件装载成对象以供服务系统获取超时配置标准。 [0110] The standard timeout configuration defined in the configuration file, the service system may loader (e.g., a standard time-out loading unit) loading the configuration file to the service objects for system acquisition timeout configuration standards.

[0111] 值得注意的是,超时控制信息获取单元610是根据接入业务在所述时控环节对应的超时配置标准索引信息(接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息)获取对应的超时配置标准的。 [0111] It is noted that the timeout control information obtaining unit 610 is an access service corresponding to the timed-out part of the standard configuration index information (access service when the corresponding application segment element control information or service system the core processing applications internet access service execution trace element information corresponding to the timed segment) obtains the corresponding configuration timeout criteria.

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

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

[0113] 根据接入业务在所述时控环节对应的超时配置标准索引信息(以接入业务在所述时控环节对应的应用要素信息为例),每个代理模块获取对应的超时控制标准的具体步骤为: [0113] The access traffic segment corresponding to the timed-out standard configuration index information (application element information access service to the corresponding part of an example time-controlled), each proxy module acquires the corresponding timeout control standards the specific steps:

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

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

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

[0117] 服务系统时间获取单元531,用于获取所述通讯接出时的当前服务系统时间; [0117] service system time acquiring unit 531, configured to obtain the current serving communication system, the access time;

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

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

[0120] 超时策略执行单元534,根据配置的超时控制策略选取所述各个实际超时标准之一作为交易超时标准。 [0120] Time-out policy execution unit 534, in accordance with one of the respective selected control strategy timeout actual timeout as the timeout standard criteria.

[0121] 根据本发明提供的一个实施例,超时策略执行单元依次比较各个时控环节对应的实际超时标准得到最终的交易超时标准,具体地: [0121] According to one embodiment, the policy execution unit timeout embodiment of the present invention provides timed sequentially comparing respective corresponding actual link timeout criteria to obtain the final transaction timeout criteria, in particular:

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

[0123] 根据时控环节2对应的超时控制信息,计算得到时控环节2对应的实际超时标准T02,比较TOl与T02的大小: [0123] The control part 2 when the control information corresponding to the time-out, the control part 2 when the calculated corresponding actual timeout standard T02, T02 of Comparative TOl size:

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

[0125] 按上述规则,依次计算所有剩余时控环节(时控环节3、......、时控环节η, η代 [0125] according to the above rule sequentially calculates all the remaining time-controlled part (when the control part 3, ......, when the control part η, η substituting

表时控环节的最大编号)对应的实际超时标准,直到得到最后的时控环节时控环节η对应的实际超时标准TOn,每计算得到一个新的实际超时标准,都将该新计算出的实际超时标准与前一个时控环节中存储为交易超时标准的时间值比较大小,根据比较结果,确定是否将新计算出的实际超时标准标储存为交易超时标准,如此,最后存储的实际超时标准即为接入业务的交易超时标准。 Table maximum number of link control) corresponding actual timeout criteria until a final time-controlled when the control link links η TOn corresponding actual timeout criteria, each of the calculated actual timeout a new standard, all the newly calculated actual timeout standard the previous timed part is stored as a time value transaction timeouts comparison of standard sizes, based on the comparison, it determines whether the newly calculated actual timeout standard labeled stored as the timeout criteria, so the actual timeout criteria last stored i.e. to access standard business transaction timeout.

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

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

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

[0129] 在本发明提供的另一种实施方式中,所述实际超时标准计算单元533还包括比较器。 [0129] In another embodiment, the present invention provides, the actual timeout criterion calculation unit 533 further comprises a comparator. 当接入业务在所述时控环节对应的超时配置标准包括时控环节超时标准和业务超时标准,则所述环节对应的实际超时标准的计算按下述方式进行: When the access traffic segment corresponding to the timed-out configuration when the control link timeout criteria include criteria and operational timeout criteria, calculating the actual link timeout criteria corresponding performed in the following manner:

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

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

[0132] 在上述本发明的一种服务系统的任意一个实施例中,所述超时管理模块还可以包括超时配置单元,所述超时标准配置单元用于配置和修改超时配置文件,其中,所述接入业务在所述时控环节对应的超时配置标准定义在所述超时配置文件中。 [0132] In an arbitrary service system of the present invention in one embodiment, the management module may further include a timeout timeout configuration unit, the configuration unit for configuring the standard time-out and modify the timeout configuration file, wherein said timeout configuration access service defined in the standard time corresponding to the control link timeout configuration file. 相应地,所述系统包括超时标准装载单元,所述超时标准装载单元用于将所述超时配置文件装载成对象。 Accordingly, the system includes a standard time-out loading unit, the standard time-out loading unit for loading said configuration file into an object timeout. 超时配置文件定义在在超时配置单元中,通过所述超时配置装载单元将超时标准配置文件装载成对象(例如JAVA对象),在系统启动期被所述超时装载器调用。 Timeout profile defined in the hive timeout, a timeout by the loading unit configured to load the file into an object timeout standard configuration (e.g., a JAVA object), the timeout is called the boot loader of the system. 在服务系统运行过程中也可以通过管理命令将新的超时配置信息写入超时配置文件中修改超时配置信息,修改后的超时配置信息生效成为新的超时配置信息。 You can also configure the new timeout in the course of the service management system run by the command information write timeout configuration file to modify the configuration information timeout, timeout configuration information after the changes take effect become the new timeout configuration information. 本发明中的超时配置信息定义在超时配置文件中,下面是本发明中的超时配置文件样例: Timeout information defining the configuration of the present invention timeout configuration file, the configuration file timeout following examples of the present invention:

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

[0134] < !—超时配置,其中switch作为超时控制的总开关,on打开,off关闭,timeout 表示当无配置时的默认值,单位为秒一> [0134] <! - out configuration, wherein the switch as a master switch timeout control, open the ON, OFF off, timeout indicates when there is no default configuration, a seconds>

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

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

[0137] < !—渠道和交易的超时配置一> [0137] <-! Timeout configuration channels and trading 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 field, such as the "channel name", "tran name '" service name "and" timeout "may be during the service system operation management commands modified, the modified profile configuration instance by performing effected through. can also be seen, the main switch may be provided timeout control (switch) and the configuration file timeout state, if the total timeout control switch is on (oN), it indicates that the timeout control is active, all functions are configuration and control; if the total switch is OFF (OFF), it means that timeout control does not take effect, i.e. no timeout control.

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

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

[0151] 以上所揭露的仅为本发明的较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。 [0151] The above descriptions are merely preferred embodiments of the present invention, it, of course, not intended to limit the scope of the claimed invention, the invention according to the claims made by the change in claim equivalents, still covered by the scope of the present invention.

15 15

Claims (17)

1. 一种服务系统中的超时控制方法,其特征在于,所述方法包括:a.将服务系统核心平台处理接入业务的各个时控环节对应的超时控制信息分别登记在超时管理模块中;b.当服务系统核心平台处理完接入业务,通讯接出时,所述超时管理模块根据所述超时控制信息和当前服务系统时间计算所述各个时控环节对应的实际超时标准;c.所述超时管理模块根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准;d.根据所述交易超时标准对所述接入业务的通讯接出进行超时控制。 Timeout control method of a service system, wherein the method comprises:. A core service platform system when processing the various aspects of the access control service corresponding to the control information registered in the timeout timeout management module; . when the service system B core internet access service has been processed, then the communication, the timeout management module according to the service information and the current time-out control system calculates the time corresponding to each real time control link timeout criteria; C is. said timeout management module according to one of the selected control strategy configured timeout actual timeout as the timeout criteria standards;. D according to the transaction timeout of the standard communications access an access service timeout control.
2.根据权利要求I所述的方法,其特征在于,在步骤a中,对于所述各个时控环节中的每一个时控环节作如下处理:在所述时控环节设置代理模块;通过所述代理模块将所述时控环节对应的超时控制信息登记到超时管理模块中。 2. The method as claimed in claim I, wherein, in step a, for each of the respective link when timed control links in the process as follows: When the agent module disposed link control; by the said agent module when the control part controls the registration information corresponding to the timeout timeout management module.
3.根据权利要求2所述的方法,其特征在于,所述超时控制信息包括:当前线程标识、 所述时控环节处理接入业务的开始时间、所述时控环节对应的超时配置标准和接入业务在所述时控环节对应的超时配置标准索引信息。 3. The method according to claim 2, wherein the timeout control information comprises: a start time of the current thread identifier, the access service processing when the control link, said link corresponding to the timed-out and configuration standards standard timeout configuration index information access service when the corresponding control part.
4.根据权利要求3所述的方法,其特征在于,接入业务在所述时控环节对应的超时配置标准索引信息为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 4. The method according to claim 3, wherein, when the access service control link timeout configuration corresponding standard index information for the application or service element information access service in the core system control part when the corresponding internet access service processing application execution trace element information corresponding to the timed part.
5.根据权利要求4所述的方法,其特征在于,通过所述代理模块将所述时控环节对应的超时控制信息登记到超时管理模块中包括:获取当前线程标识、所述时控环节处理接入业务的开始时间和接入业务在所述时控环节对应的超时配置标准索引信息;根据接入业务在所述时控环节对应的超时配置标准索引信息获取接入业务在所述时控环节对应的超时配置标准;所述代理模块将当前线程标识、所述时控环节处理接入业务的开始时间、接入业务在所述时控环节对应的超时配置标准索引信息和接入业务在所述时控环节对应的超时配置标准作为一条记录登记在所述超时管理模块中。 5. The method as claimed in claim 4, wherein the agent module through the segment corresponding to the timed-out information registration timeout control management module comprises: obtaining the current thread identifier, the processing when the control part standard timeout configuration index information access service start time and service access control in the segment corresponding to the time; obtaining access service control according to the access service when the timed-out part corresponding to the standard configuration index information link timeout configuration corresponding to the standard; the agent module identifier of the current thread, the segment start time when the control process access service, access service corresponding to the timed-out part of the standard configuration and index information access service when the control part of the corresponding standard timeout configuration as a timeout record registered in the management module.
6.根据权利要求3至5中任意一项所述的方法,其特征在于,所述接入业务在所述时控环节对应的超时配置标准为时控环节超时标准。 6. The method of any one of claims 3 to claim 5, wherein said service access links corresponding to the timed-out standard configuration a timed link timeout criteria.
7.根据权利要求6所述的方法,其特征在于,步骤b具体为:获取所述当前服务系统时间;对于所述各个时控环节中的每一个时控环节作如下处理:将与所述时控环节对应的超时配置标准索引信息对应的时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 7. The method according to claim 6, wherein step b: obtaining the current serving system time; timed for each link in the respective aspects of the timed process as follows: to the when the control link corresponding to the link timeout criteria timed out configuration information corresponding to the index by subtracting the standard time-controlled part of the processing time of access service has been executed when the actual timeout criterion corresponding control links, wherein said timed link access service has been performed the processing time is equal to the start time of the current access service process control part of the service subtracting system time.
8.根据权利要求3至5中任意一项所述的方法,其特征在于,所述接入业务在所述时控环节对应的超时配置标准包括时控环节超时标准和业务超时标准,其中,在同一个时控环节,不同的接入业务对应同一个时控环节超时标准;而在同一个时控环节,不同的接入业务对应不同的业务超时标准。 8. A method according to any one of claims 3 to claim 5, wherein said service access links corresponding to the timed-out configuration when the control link timeout criteria include criteria and operational timeout criteria, wherein at the same time control link, different access service corresponding to the same standards a timed link timeout; timed in the same part, different access service corresponding to service different timeout criteria.
9.根据权利要求8所述的方法,其特征在于,步骤b具体为:获取所述当前服务系统时间;对于所述各个时控环节中的每一个时控环节作如下处理:判断所述业务超时标准是否小于所述时控环节超时标准,当判断为是时,将所述业务超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,当判断为否时,将所述时控环节超时标准减去所述时控环节处理接入业务的已执行时间得到所述时控环节对应的实际超时标准,其中,所述时控环节处理接入业务的已执行时间等于所述当前服务系统时间减去所述时控环节处理接入业务的开始时间。 9. The method according to claim 8, characterized in that step b: obtaining the current serving system time; timed for each link in the respective aspects of the timed treated as follows: determining the service timeout is smaller than the standard when the standard control link timeout, when the determination is YES, the service times out by subtracting the standard time-controlled access service link processing has been performed to obtain the actual time when the timeout control link corresponding standard when it is determined NO, the control part when subtracting the standard time-out process when the link access control service has been an actual execution time of the standard time-out time corresponding to the control link, wherein said link when the control process access service has been performed the current serving system time is equal to the start time minus the processing time control link access services.
10.根据权利要求I所述的方法,其特征在于,步骤d具体为:从所述超时管理模块中获取所述交易超时标准;主线程记录所述通讯接出的起始时间戳;启动子线程进行所述通讯接出,同时主线程进入等待;子线程返回唤醒主线程,主线程记录当前时间戳;判断当前时间戳减去起始时间戳的时间值是否小于所述交易超时标准,当判断为是时,表示通讯正常接出,主线程进入通讯接出后的处理环节;当判断为否时,则表示通讯接出超时,进行通讯接出超时处理。 10. A method as claimed in claim I, wherein the step d: obtaining the transaction timeout timeout criterion from the management module; recording main thread take out the communication start time stamp; promoter the thread take out communication, while the main thread enters a wait; child thread returns wake up the main thread, the main thread records a current time stamp; Analyzing current timestamp minus the time stamp is less than the initial transaction timeout criterion, when determination is YES, then the normal communication indicates, the main thread into the processing stage after the communications connection; when the determination is NO, then pick out the communication timeout, then a timeout process communication.
11. 一种服务系统,其特征在于,所述服务系统包括:业务接入模块,用于接入待处理的业务,所述业务称为接入业务;服务系统核心平台,用于处理业务接入模块接入的接入业务;一个或多个代理模块,所述代理模块与服务系统核心平台处理接入业务的各个时控环节一一对应,用于将各个时控环节对应的超时控制信息登记到超时管理模块中;超时管理模块,用于根据所述代理模块登记的超时控制信息和通讯接出时的当前服务系统时间计算各个时控环节对应的实际超时标准,并根据配置的超时控制策略选取所述实际超时标准之一作为交易超时标准;业务接出模块,用于将经过服务系统核心平台处理的接入业务通讯接出,并根据所述交易超时标准对所述通讯接出进行超时控制。 A service system, wherein the service system comprises: a service access module for accessing a service to be processed, the service called access service; core service platform system for processing service access the access service access module; one or more proxy module, the proxy system service module when the respective control core segment handling internet access service correspondence, for each link corresponding to the timed-out control information timeout register management module; time-out control means for calculating the actual timeout criteria corresponding to various aspects of time-controlled according to the current system time when the service agent module timeout register access control information and the communications and control configuration based on the timeout one strategy to select the actual timeout as the timeout criterion standard; a service access module, configured to take out communications through the access service platform processes the core service system, and take out the communication based on the standard transaction timeouts timeout control.
12.根据权利要求11所述的系统,其特征在于,所述代理模块包括:超时控制信息获取单元,用于获取与代理模块对应的时控环节的超时控制信息;超时控制信息登记单元,用于将所述超时控制信息登记到所述超时管理模块中。 12. The system according to claim 11, wherein said agent module comprising: a timeout control information acquisition unit for acquiring the corresponding agent module timed link timeout control information; timeout control information registration unit, with the timeout control in the registration information to the management module timeout.
13.根据权利要求11或12所述的系统,其特征在于,所述超时管理模块包括:服务系统时间获取单元,用于获取所述通讯接出时的当前服务系统时间;信息存储单元,用于存储所述登记的超时控制信息;实际超时标准计算单元,用于根据所述超时控制信息和所述通讯接出时的当前服务系统时间计算各个时控环节分别对应的实际超时标准;超时策略执行单元,根据配置的超时控制策略选取所述各个实际超时标准之一作为交易超时标准。 13. The system of claim 11 or claim 12, wherein said time-out control module comprises: a service system time acquisition unit for acquiring the current time when the service system of the communication connection; information storage unit, with storing the registration timeout control information; actual timeout criterion calculating means for calculating respective time control links respectively correspond to the current service according to the system time when the time-out control information and the actual communications connection timeout criteria; timeout policy execution unit, in accordance with one of the selected configuration timeout control policy for each actual transaction timeout as the timeout standard criteria.
14.根据权利要求13所述的系统,其特征在于,所述超时控制信息包括:当前线程标识、所述时控环节处理接入业务的开始时间、所述时控环节对应的超时配置标准、接入业务在所述时控环节对应的超时配置标准索引信息。 14. The system according to claim 13, wherein the timeout control information includes: identifying the current thread, the start time of access service control processing part, said part corresponding to the timed-out configuration standards, standard timeout configuration index information access service when the corresponding control part.
15.根据权利要求14所述的系统,其特征在于,接入业务在所述时控环节对应的超时配置标准索引信息为接入业务在所述时控环节对应的应用要素信息或服务系统核心平台在所述时控环节处理接入业务执行轨迹对应的应用要素信息。 15. The system according to claim 14, wherein, when the access service control link timeout configuration corresponding standard index information for the application or service element information access service in the core system control part when the corresponding internet access service processing application execution trace element information corresponding to the timed part.
16.根据权利要求14或15所述的系统,其特征在于,所述服务系统还包括超时标准配置单元,所述超时标准配置单元用于配置和修改超时配置文件,其中,所述接入业务在所述时控环节对应的超时配置标准定义在所述超时配置文件中。 16. The system of claim 14 or claim 15, wherein the service system further comprises a standard time-out unit, the standard time-out unit for configuring and modifying timeout configuration file, wherein the access service standard defines the timeout configuration when the corresponding control link timeout configuration file.
17.根据权利要求16所述的系统,其特征在于,所述服务系统还包括超时标准装载单元,所述超时标准装载单元用于将所述超时配置文件装载成对象。 17. The system according to claim 16, wherein the service system further comprises a timeout criteria loading unit, the standard time-out for the loading unit to load the configuration file into an object timeout.
CN 200910204557 2009-12-01 2009-12-01 Overtime control method in service system and service system CN101727648B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910204557 CN101727648B (en) 2009-12-01 2009-12-01 Overtime control method in service system and service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910204557 CN101727648B (en) 2009-12-01 2009-12-01 Overtime control method in service system and service system

Publications (2)

Publication Number Publication Date
CN101727648A true CN101727648A (en) 2010-06-09
CN101727648B true CN101727648B (en) 2012-07-25

Family

ID=42448506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910204557 CN101727648B (en) 2009-12-01 2009-12-01 Overtime control method in service system and service system

Country Status (1)

Country Link
CN (1) CN101727648B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678020A (en) * 2012-09-18 2014-03-26 中国银联股份有限公司 Timeout processing method and timeout processing device for database operation during transaction processing
US9292039B2 (en) * 2012-09-18 2016-03-22 Amazon Technologies, Inc. Adaptive service timeouts
CN103618590B (en) * 2013-11-20 2017-03-29 北京先进数通信息技术股份公司 Timeout control method and apparatus for transaction processing procedure
CN104616197B (en) * 2015-02-16 2017-11-14 中国工商银行股份有限公司 One kind of separable transaction data query scheduling method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363496B1 (en) 1999-01-29 2002-03-26 The United States Of America As Represented By The Secretary Of The Air Force Apparatus and method for reducing duration of timeout periods in fault-tolerant distributed computer systems
US6526433B1 (en) 1999-12-15 2003-02-25 International Business Machines Corporation Adaptive timeout value setting for distributed computing environment (DCE) applications
US20080062863A1 (en) 2006-09-12 2008-03-13 Qualcomm Incorporated Transaction timeout handling in communication session management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6363496B1 (en) 1999-01-29 2002-03-26 The United States Of America As Represented By The Secretary Of The Air Force Apparatus and method for reducing duration of timeout periods in fault-tolerant distributed computer systems
US6526433B1 (en) 1999-12-15 2003-02-25 International Business Machines Corporation Adaptive timeout value setting for distributed computing environment (DCE) applications
US20080062863A1 (en) 2006-09-12 2008-03-13 Qualcomm Incorporated Transaction timeout handling in communication session management

Also Published As

Publication number Publication date Type
CN101727648A (en) 2010-06-09 application

Similar Documents

Publication Publication Date Title
US8271653B2 (en) Methods and systems for cloud management using multiple cloud management schemes to allow communication between independently controlled clouds
US20110295999A1 (en) Methods and systems for cloud deployment analysis featuring relative cloud resource importance
US20110131499A1 (en) Methods and systems for monitoring cloud computing environments
US20100049628A1 (en) System and Method for Service Virtualization in a Service Governance Framework
US20090193057A1 (en) Service-oriented architecture (soa) management of data repository
US20110137805A1 (en) Inter-cloud resource sharing within a cloud computing environment
US20070006278A1 (en) Automated dissemination of enterprise policy for runtime customization of resource arbitration
US20070013948A1 (en) Dynamic and distributed queueing and processing system
US20110131315A1 (en) Methods and systems for verifying software license compliance in cloud computing environments
US20030050972A1 (en) System and method for transaction processing with transaction property feature
US20110295986A1 (en) Systems and methods for generating customized build options for cloud deployment matching usage profile against cloud infrastructure options
US20120209947A1 (en) Integrating cloud applications and remote jobs
US20080184265A1 (en) Exposing process flows and choreography controllers as web services
US20050289388A1 (en) Dynamic cluster configuration in an on-demand environment
US20110145153A1 (en) Negotiating agreements within a cloud computing environment
US20110166952A1 (en) Facilitating dynamic construction of clouds
US20120324092A1 (en) Forecasting capacity available for processing workloads in a networked computing environment
US20120137003A1 (en) Systems and methods for migrating subscribed services from a set of clouds to a second set of clouds
US8037187B2 (en) Resource exchange management within a cloud computing environment
US20110238458A1 (en) Dynamically optimized distributed cloud computing-based business process management (bpm) system
US20070027784A1 (en) Network payment framework
US7801976B2 (en) Service-oriented architecture systems and methods
US20110145392A1 (en) Dynamic provisioning of resources within a cloud computing environment
US20100049640A1 (en) Charging enabler
US20090037425A1 (en) System and method for dynamically configuring a multiplatform computing environment

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C14 Granted