CN114579376A - Gateway operation detection method and device, electronic equipment and storage medium - Google Patents
Gateway operation detection method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN114579376A CN114579376A CN202210113000.7A CN202210113000A CN114579376A CN 114579376 A CN114579376 A CN 114579376A CN 202210113000 A CN202210113000 A CN 202210113000A CN 114579376 A CN114579376 A CN 114579376A
- Authority
- CN
- China
- Prior art keywords
- transfer protocol
- hypertext transfer
- module
- detection
- functional module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2289—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请实施例涉及计算机技术领域,尤其涉及网关运行检测方法、装置、电子设备和存储介质。The embodiments of the present application relate to the field of computer technologies, and in particular, to a gateway operation detection method, apparatus, electronic device, and storage medium.
背景技术Background technique
网关程序运行出现异常需要等待网关程序不能对外提供正常的服务的时候,才进行人为排查,进行重启等操作。当程序出现异常的时候,该程序的服务已经不能正常工作;若程序不能及时检测到异常,会造成整个系统功能的异常,轻则影响用户体验,重则会造成一定的用户损失,影响较大。If the gateway program runs abnormally, you need to wait for the gateway program to not provide normal services to the outside world, and then conduct manual investigation and restart operations. When the program is abnormal, the service of the program can no longer work normally; if the program cannot detect the abnormality in time, it will cause the abnormality of the whole system function, which will affect the user experience at light level, and cause certain user losses in severe cases. .
发明内容SUMMARY OF THE INVENTION
本申请实施例提出了网关运行检测方法、装置、电子设备和存储介质。Embodiments of the present application provide a gateway operation detection method, apparatus, electronic device, and storage medium.
第一方面,本申请的一些实施例提供了一种网关运行检测方法,该方法包括:获取目标网关的功能模块的配置文件;根据配置文件确定功能模块的检测周期及检测方式;根据检测周期及检测方式定期检测功能模块是否运行正常。In a first aspect, some embodiments of the present application provide a gateway operation detection method. The method includes: acquiring a configuration file of a functional module of a target gateway; determining a detection period and a detection method of the functional module according to the configuration file; The detection method regularly detects whether the function module is operating normally.
在一些实施例中,功能模块包括超文本传输协议服务模块,以及根据检测周期及检测方式定期检测功能模块是否运行正常,包括:根据检测周期发起超文本传输协议模拟请求;判断超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内是否接收到超文本传输协议模拟请求;响应于超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内未接收到超文本传输协议模拟请求,确定超文本传输协议服务模块运行异常。In some embodiments, the function module includes a hypertext transfer protocol service module, and periodically detecting whether the function module operates normally according to the detection period and the detection method includes: initiating a hypertext transfer protocol simulation request according to the detection period; judging the hypertext transfer protocol service Whether the module receives the hypertext transfer protocol simulation request within the first preset time after initiating the hypertext transfer protocol simulation request; in response to the first preset time after the hypertext transfer protocol service module initiates the hypertext transfer protocol simulation request The hypertext transfer protocol simulation request is not received, and it is determined that the hypertext transfer protocol service module is running abnormally.
在一些实施例中,功能模块包括多线程消息队列模块,以及根据检测周期及检测方式定期检测功能模块是否运行正常,包括:根据检测周期选取两个线程发起模拟消息;判断多线程消息队列模块在发起模拟消息后的第二预设时间内是否接收到模拟消息;响应于多线程消息队列模块在发起模拟消息后的第二预设时间内未接收到模拟消息,确定多线程消息队列模块通讯存在异常。In some embodiments, the functional module includes a multi-threaded message queue module, and periodically detecting whether the functional module operates normally according to the detection period and the detection method includes: selecting two threads according to the detection period to initiate a simulated message; judging that the multi-threaded message queue module is in Whether the simulated message is received within the second preset time after the simulated message is initiated; in response to the fact that the multithreaded message queue module does not receive the simulated message within the second preset time after the simulated message is initiated, it is determined that the communication of the multithreaded message queue module exists abnormal.
在一些实施例中,方法还包括:响应于检测功能模块运行异常,保存功能模块运行异常的异常信息;响应于接收到针对功能模块的异常信息查询请求,返回查询结果;根据查询结果显示和/或通知预先设置的关联责任人。In some embodiments, the method further includes: in response to detecting the abnormal operation of the functional module, saving the abnormal information of the abnormal operation of the functional module; in response to receiving the abnormal information query request for the functional module, returning a query result; Or notify the pre-set associated responsible person.
在一些实施例中,配置文件还包括重启规则;以及方法还包括:响应于检测功能模块运行异常,根据重启规则确定是否重启功能模块。In some embodiments, the configuration file further includes a restart rule; and the method further includes: in response to detecting the abnormal operation of the function module, determining whether to restart the function module according to the restart rule.
第二方面,本申请的一些实施例提供了一种网关运行检测装置,该装置包括:获取单元,被配置成获取目标网关的功能模块的配置文件;确定单元,被配置成根据配置文件确定功能模块的检测周期及检测方式;检测单元,被配置成根据检测周期及检测方式定期检测功能模块是否运行正常。In a second aspect, some embodiments of the present application provide a gateway operation detection device, the device includes: an acquisition unit configured to acquire a configuration file of a function module of a target gateway; a determination unit configured to determine a function according to the configuration file The detection period and detection method of the module; the detection unit is configured to regularly detect whether the function module operates normally according to the detection period and the detection method.
在一些实施例中,功能模块包括超文本传输协议服务模块,以及检测单元,进一步被配置成:根据检测周期发起超文本传输协议模拟请求;判断超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内是否接收到超文本传输协议模拟请求;响应于超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内未接收到超文本传输协议模拟请求,确定超文本传输协议服务模块运行异常。In some embodiments, the functional module includes a hypertext transfer protocol service module, and a detection unit, which is further configured to: initiate a hypertext transfer protocol simulation request according to the detection period; determine that the hypertext transfer protocol service module is initiating a hypertext transfer protocol simulation request Whether the hypertext transfer protocol simulation request is received within the first preset time after the request; in response to the hypertext transfer protocol service module not receiving the hypertext transfer protocol within the first preset time after initiating the hypertext transfer protocol simulation request Simulate the request to determine that the hypertext transfer protocol service module is running abnormally.
在一些实施例中,功能模块包括多线程消息队列模块,以及检测单元,进一步被配置成:根据检测周期选取两个线程发起模拟消息;判断多线程消息队列模块在发起模拟消息后的第二预设时间内是否接收到模拟消息;响应于多线程消息队列模块在发起模拟消息后的第二预设时间内未接收到模拟消息,确定多线程消息队列模块通讯存在异常。In some embodiments, the functional module includes a multi-threaded message queue module and a detection unit, and is further configured to: select two threads according to the detection period to initiate a simulated message; Whether the simulated message is received within the set time; in response to the multi-threaded message queue module not receiving the simulated message within the second preset time after initiating the simulated message, it is determined that there is an abnormality in the communication of the multi-threaded message queue module.
在一些实施例中,装置还包括:保存单元,被配置成响应于检测功能模块运行异常,保存功能模块运行异常的异常信息;返回单元,被配置成响应于接收到针对功能模块的异常信息查询请求,返回查询结果;显示单元,被配置成根据查询结果显示和/或通知预先设置的关联责任人。In some embodiments, the apparatus further includes: a saving unit, configured to, in response to detecting the abnormal operation of the functional module, save the abnormality information of the abnormal operation of the functional module; and a returning unit, configured to respond to receiving the abnormality information query for the functional module request, and return the query result; the display unit is configured to display and/or notify the preset association responsible person according to the query result.
在一些实施例中,配置文件还包括重启规则;以及装置还包括:重启单元,被配置成响应于检测功能模块运行异常,根据重启规则确定是否重启功能模块。In some embodiments, the configuration file further includes a restart rule; and the apparatus further includes: a restart unit configured to, in response to detecting abnormal operation of the function module, determine whether to restart the function module according to the restart rule.
第三方面,本申请的一些实施例提供了一种设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当上述一个或多个程序被上述一个或多个处理器执行,使得上述一个或多个处理器实现如第一方面上述的方法。In a third aspect, some embodiments of the present application provide a device, including: one or more processors; a storage device on which one or more programs are stored, when the one or more programs are stored by the one or more programs described above Execution by the plurality of processors causes the above-mentioned one or more processors to implement the method as described above in the first aspect.
第四方面,本申请的一些实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面上述的方法。In a fourth aspect, some embodiments of the present application provide a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, implements the method as described in the first aspect.
本申请实施例提供的网关运行检测方法、装置、电子设备和存储介质,通过获取目标网关的功能模块的配置文件;根据配置文件确定功能模块的检测周期及检测方式;根据检测周期及检测方式定期检测功能模块是否运行正常,提供了一种网关运行的自检机制,提高了网关运行的可靠性。The gateway operation detection method, device, electronic device, and storage medium provided by the embodiments of the present application obtain the configuration file of the functional module of the target gateway; determine the detection period and detection method of the functional module according to the configuration file; Detecting whether the function module is running normally, providing a self-checking mechanism for the operation of the gateway, and improving the reliability of the operation of the gateway.
附图说明Description of drawings
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
图1是根据本申请的网关运行检测方法的一个实施例的流程图;1 is a flowchart of an embodiment of a gateway operation detection method according to the present application;
图2是根据本申请的网关运行检测方法的一个可选实现方式中异常检测流程的一个示意图;2 is a schematic diagram of an abnormality detection process in an optional implementation of the gateway operation detection method according to the present application;
图3是根据本申请的网关运行检测方法的一个可选实现方式中异常信息保存及查询的一个示意图;3 is a schematic diagram of abnormal information storage and query in an optional implementation of the gateway operation detection method according to the present application;
图4是根据本申请的网关运行检测装置的一个实施例的结构示意图;4 is a schematic structural diagram of an embodiment of a gateway operation detection device according to the present application;
图5是适于用来实现本申请的一些实施例的执行主体的计算机系统的结构示意图。FIG. 5 is a schematic structural diagram of a computer system suitable for implementing the executive body of some embodiments of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. In addition, it should be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
继续参考图1,示出了根据本申请的网关运行检测方法的一个实施例的流程100。该网关运行检测方法,包括以下步骤:Continuing to refer to FIG. 1 , a
步骤101,获取目标网关的功能模块的配置文件。Step 101: Obtain the configuration file of the function module of the target gateway.
在本实施例中,网关运行检测方法执行主体可以首先获取目标网关的功能模块的配置文件。其中,目标网关可以包括边缘网关,配置文件中存储有功能模块的配置信息及相关设置,例如,功能模块的检测周期及检测方式。In this embodiment, the execution body of the gateway operation detection method may first acquire the configuration file of the function module of the target gateway. The target gateway may include an edge gateway, and the configuration file stores the configuration information and related settings of the functional module, for example, the detection period and detection method of the functional module.
步骤102,根据配置文件确定功能模块的检测周期及检测方式。Step 102: Determine the detection period and detection mode of the functional module according to the configuration file.
在本实施例中,上述执行主体可以读取配置文件,以确定功能模块的检测周期及检测方式。由于网关不同功能模块的运行情况不同,因此需要针对功能模块设置其检测周期及检测方式。检测方式可以包括针对模块的功能进行测试,或检测其运行参数等。In this embodiment, the above-mentioned execution body can read the configuration file to determine the detection period and detection method of the functional module. Because the operating conditions of different functional modules of the gateway are different, it is necessary to set the detection period and detection method for the functional modules. The detection method may include testing the function of the module, or detecting its operating parameters.
步骤103,根据检测周期及检测方式定期检测功能模块是否运行正常。
在本实施例中,上述执行主体可以根据步骤102中确定的检测周期及检测方式定期检测功能模块是否运行正常。定期检测功能模块可以保证及时检测出错误或是程序无响应的异常情况。In this embodiment, the above-mentioned execution body may periodically detect whether the function module operates normally according to the detection period and detection method determined in
在本实施例的一些可选实现方式中,功能模块包括超文本传输协议服务(httpsever)模块,以及根据检测周期及检测方式定期检测功能模块是否运行正常,包括:根据检测周期发起超文本传输协议(http)模拟请求;判断超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内是否接收到超文本传输协议模拟请求;响应于超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内未接收到超文本传输协议模拟请求,确定超文本传输协议服务模块运行异常。在本实现方式中,第一预设时间可以根据实际需要进行设置,例如可以设置为1秒。本实现方式实现了超文本传输协议服务模块的定期检测,提高了超文本传输协议服务模块的可靠性。In some optional implementations of this embodiment, the functional module includes a hypertext transfer protocol service (httpsever) module, and regularly detects whether the functional module operates normally according to the detection period and the detection method, including: initiating the hypertext transfer protocol according to the detection period (http) simulation request; judge whether the hypertext transfer protocol service module receives the hypertext transfer protocol simulation request within the first preset time after initiating the hypertext transfer protocol simulation request; If the hypertext transfer protocol simulation request is not received within the first preset time after the text transfer protocol simulation request, it is determined that the hypertext transfer protocol service module operates abnormally. In this implementation manner, the first preset time may be set according to actual needs, for example, may be set to 1 second. The implementation mode realizes the regular detection of the service module of the hypertext transfer protocol, and improves the reliability of the service module of the hypertext transfer protocol.
在本实施例的一些可选实现方式中,功能模块包括多线程消息队列模块,以及根据检测周期及检测方式定期检测功能模块是否运行正常,包括:根据检测周期选取两个线程发起模拟消息;判断多线程消息队列模块在发起模拟消息后的第二预设时间内是否接收到模拟消息;响应于多线程消息队列模块在发起模拟消息后的第二预设时间内未接收到模拟消息,确定多线程消息队列模块通讯存在异常。在本实现方式中,第二预设时间可以根据实际需要进行设置,例如可以设置为1秒。本实现方式实现了多线程消息队列模块的定期检测,提高了多线程消息队列模块的可靠性。In some optional implementations of this embodiment, the functional module includes a multi-threaded message queue module, and periodically detecting whether the functional module operates normally according to the detection period and the detection method includes: selecting two threads according to the detection period to initiate a simulated message; judging Whether the multi-threaded message queue module receives the simulated message within the second preset time after initiating the simulated message; in response to the multi-threaded message queue module not receiving the simulated message within the second preset time after initiating the simulated message, determine whether the Thread message queue module communication is abnormal. In this implementation manner, the second preset time may be set according to actual needs, for example, may be set to 1 second. This implementation mode realizes the regular detection of the multi-threaded message queue module, and improves the reliability of the multi-threaded message queue module.
在本实施例的一些可选实现方式中,配置文件还包括重启规则;以及方法还包括:响应于检测功能模块运行异常,根据重启规则确定是否重启功能模块。在本实现方式中,还可以为程序配置一个守护进程,该守护进程能对停止运行的程序重新启动,完成重启的功能。通过增加网关模块定期自检机制,一旦检测出严重的错误或是程序无响应的时候,自动发起程序重启,实现网关主动自我修复,快速的恢复程序的服务,本实现方式的异常检测流程可以参加图2。In some optional implementations of this embodiment, the configuration file further includes a restart rule; and the method further includes: in response to detecting an abnormal operation of the function module, determining whether to restart the function module according to the restart rule. In this implementation manner, a daemon process can also be configured for the program, and the daemon process can restart the stopped program to complete the function of restarting. By adding a regular self-check mechanism of the gateway module, once a serious error is detected or the program does not respond, the program will be restarted automatically, so that the gateway can actively repair itself and quickly restore the program service. The abnormality detection process of this implementation can participate in figure 2.
在本实施例的一些可选实现方式中,方法还包括:响应于检测功能模块运行异常,保存功能模块运行异常的异常信息;响应于接收到针对功能模块的异常信息查询请求,返回查询结果;根据查询结果显示和/或通知预先设置的关联责任人。如图3所示,产生异常后可以保存异常信息到队列中以供查询,同时,程序可以提供一接口(如http接口),保存的异常信息随时可被查询;客户端可以根据查询结果显示或通知相关责任人等操作。本实现方式实现快速通知责任,还能根据异常类型快速排查定位问题,进一步提高了网关的运行可靠性。In some optional implementations of this embodiment, the method further includes: in response to detecting the abnormal operation of the functional module, saving the abnormal information of the abnormal operation of the functional module; in response to receiving the abnormal information query request for the functional module, returning the query result; Display and/or notify the pre-set associated responsible person according to the query result. As shown in Figure 3, after an exception occurs, the exception information can be saved in the queue for query. At the same time, the program can provide an interface (such as http interface), and the saved exception information can be queried at any time; the client can display or query according to the query result. Notify relevant responsible persons, etc. This implementation method realizes quick notification of responsibility, and can also quickly troubleshoot and locate problems according to abnormal types, further improving the operational reliability of the gateway.
本申请的上述实施例提供的方法通过获取目标网关的功能模块的配置文件;根据配置文件确定功能模块的检测周期及检测方式;根据检测周期及检测方式定期检测功能模块是否运行正常,提供了一种网关运行的自检机制,提高了网关运行的可靠性。The method provided by the above embodiments of the present application provides a configuration file of the functional module of the target gateway by acquiring the configuration file of the functional module; determining the detection period and detection mode of the functional module according to the configuration file; A self-checking mechanism for the operation of the gateway improves the reliability of the operation of the gateway.
进一步参考图4,作为对上述各图所示方法的实现,本申请提供了一种网关运行检测装置的一个实施例,该装置实施例与图1所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 4 , as an implementation of the methods shown in the above figures, the present application provides an embodiment of a gateway operation detection device, which corresponds to the method embodiment shown in FIG. 1 . Can be used in various electronic devices.
如图4所示,本实施例的网关运行检测装置400包括:获取单元401、确定单元402、检测单元403。其中,获取单元,被配置成获取目标网关的功能模块的配置文件;确定单元,被配置成根据配置文件确定功能模块的检测周期及检测方式;检测单元,被配置成根据检测周期及检测方式定期检测功能模块是否运行正常。As shown in FIG. 4 , the gateway
在本实施例中,网关运行检测装置400的获取单元401、确定单元402、检测单元403的具体处理可以参考图1对应实施例中的步骤101、步骤102、步骤103。In this embodiment, for the specific processing of the acquiring
在本实施例的一些可选实现方式中,功能模块包括超文本传输协议服务模块,以及检测单元,进一步被配置成:根据检测周期发起超文本传输协议模拟请求;判断超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内是否接收到超文本传输协议模拟请求;响应于超文本传输协议服务模块在发起超文本传输协议模拟请求后的第一预设时间内未接收到超文本传输协议模拟请求,确定超文本传输协议服务模块运行异常。In some optional implementations of this embodiment, the functional module includes a hypertext transfer protocol service module and a detection unit, and is further configured to: initiate a hypertext transfer protocol simulation request according to a detection period; determine whether the hypertext transfer protocol service module is in Whether a hypertext transfer protocol simulation request is received within the first preset time after initiating the hypertext transfer protocol simulation request; A hypertext transfer protocol simulation request is received, and it is determined that the hypertext transfer protocol service module is running abnormally.
在本实施例的一些可选实现方式中,功能模块包括多线程消息队列模块,以及检测单元,进一步被配置成:根据检测周期选取两个线程发起模拟消息;判断多线程消息队列模块在发起模拟消息后的第二预设时间内是否接收到模拟消息;响应于多线程消息队列模块在发起模拟消息后的第二预设时间内未接收到模拟消息,确定多线程消息队列模块通讯存在异常。In some optional implementations of this embodiment, the functional module includes a multi-threaded message queue module and a detection unit, and is further configured to: select two threads according to the detection period to initiate a simulation message; determine that the multi-threaded message queue module is initiating a simulation message Whether the simulated message is received within the second preset time after the message; in response to the multithreaded message queue module not receiving the simulated message within the second preset time after the simulated message is initiated, it is determined that there is an abnormality in the communication of the multithreaded message queue module.
在本实施例的一些可选实现方式中,装置还包括:保存单元,被配置成响应于检测功能模块运行异常,保存功能模块运行异常的异常信息;返回单元,被配置成响应于接收到针对功能模块的异常信息查询请求,返回查询结果;显示单元,被配置成根据查询结果显示和/或通知预先设置的关联责任人。In some optional implementations of this embodiment, the apparatus further includes: a saving unit, configured to, in response to detecting the abnormal operation of the functional module, save the abnormality information of the abnormal operation of the functional module; The abnormal information query request of the function module returns the query result; the display unit is configured to display and/or notify the preset association responsible person according to the query result.
在本实施例的一些可选实现方式中,配置文件还包括重启规则;以及装置还包括:重启单元,被配置成响应于检测功能模块运行异常,根据重启规则确定是否重启功能模块。In some optional implementations of this embodiment, the configuration file further includes a restart rule; and the apparatus further includes: a restart unit configured to, in response to detecting abnormal operation of the function module, determine whether to restart the function module according to the restart rule.
本申请的上述实施例提供的装置,通过获取目标网关的功能模块的配置文件;根据配置文件确定功能模块的检测周期及检测方式;根据检测周期及检测方式定期检测功能模块是否运行正常,提供了一种网关运行的自检机制,提高了网关运行的可靠性。The device provided by the above embodiments of the present application obtains the configuration file of the functional module of the target gateway; determines the detection period and detection method of the functional module according to the configuration file; A self-checking mechanism for the operation of the gateway improves the reliability of the operation of the gateway.
下面参考图5,其示出了适于用来实现本申请实施例的执行主体的计算机系统500的结构示意图。图5示出的执行主体仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring next to FIG. 5 , it shows a schematic structural diagram of a
如图5所示,计算机系统500包括中央处理单元(CPU)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储部分508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM 503中,还存储有系统500操作所需的各种程序和数据。CPU 501、ROM 502以及RAM 503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, a
以下部件可以连接至I/O接口505:包括诸如键盘、鼠标等的输入部分506;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分507;包括硬盘等的存储部分508;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分509。通信部分509经由诸如因特网的网络执行通信处理。驱动器510也根据需要连接至I/O接口505。可拆卸介质511,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器510上,以便于从其上读出的计算机程序根据需要被安装入存储部分508。The following components may be connected to the I/O interface 505: an
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分509从网络上被下载和安装,和/或从可拆卸介质511被安装。在该计算机程序被中央处理单元(CPU)501执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读介质或者是上述两者的任意组合。计算机可读介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如C语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present application may be written in one or more programming languages, including object-oriented programming languages—such as Java, Smalltalk, C++, but also conventional procedural programming language—such as C or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元、确定单元和检测单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“被配置成获取目标网关的功能模块的配置文件的单元”。The units involved in the embodiments of the present application may be implemented in a software manner, and may also be implemented in a hardware manner. The described unit may also be provided in the processor, for example, it may be described as: a processor includes an acquisition unit, a determination unit and a detection unit. Wherein, the names of these units do not constitute a limitation of the unit itself in some cases, for example, the obtaining unit may also be described as "a unit configured to obtain the configuration file of the functional module of the target gateway".
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:获取目标网关的功能模块的配置文件;根据配置文件确定功能模块的检测周期及检测方式;根据检测周期及检测方式定期检测功能模块是否运行正常。As another aspect, the present application also provides a computer-readable medium, which may be included in the apparatus described in the above-mentioned embodiments, or may exist independently without being assembled into the apparatus. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the device, the device is made to: obtain the configuration file of the function module of the target gateway; determine the detection period and the function module according to the configuration file. Detection method; according to the detection cycle and detection method, regularly check whether the function module is running normally.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an illustration of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover the above technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above-mentioned features with the technical features disclosed in this application (but not limited to) with similar functions.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113000.7A CN114579376A (en) | 2022-01-30 | 2022-01-30 | Gateway operation detection method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210113000.7A CN114579376A (en) | 2022-01-30 | 2022-01-30 | Gateway operation detection method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114579376A true CN114579376A (en) | 2022-06-03 |
Family
ID=81770892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210113000.7A Pending CN114579376A (en) | 2022-01-30 | 2022-01-30 | Gateway operation detection method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114579376A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016128A (en) * | 2022-12-28 | 2023-04-25 | 北京天融信网络安全技术有限公司 | Process management method, device, electronic device and storage medium of gateway device |
CN116633762A (en) * | 2023-06-19 | 2023-08-22 | 山东浪潮数字商业科技有限公司 | Self-healing API gateway implementation method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010020241A1 (en) * | 2000-03-02 | 2001-09-06 | Sony Corporation | Communication network system, gateway, data communication method and program providing medium |
KR20020084374A (en) * | 2001-04-30 | 2002-11-07 | 주식회사 팬택 | Discrimination And Display Method Of Abnormal URL In Wireless Internet |
CN103684897A (en) * | 2012-09-11 | 2014-03-26 | 北京百度网讯科技有限公司 | Method, system and device for detecting network connectivity in client |
-
2022
- 2022-01-30 CN CN202210113000.7A patent/CN114579376A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20010020241A1 (en) * | 2000-03-02 | 2001-09-06 | Sony Corporation | Communication network system, gateway, data communication method and program providing medium |
KR20020084374A (en) * | 2001-04-30 | 2002-11-07 | 주식회사 팬택 | Discrimination And Display Method Of Abnormal URL In Wireless Internet |
CN103684897A (en) * | 2012-09-11 | 2014-03-26 | 北京百度网讯科技有限公司 | Method, system and device for detecting network connectivity in client |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116016128A (en) * | 2022-12-28 | 2023-04-25 | 北京天融信网络安全技术有限公司 | Process management method, device, electronic device and storage medium of gateway device |
CN116633762A (en) * | 2023-06-19 | 2023-08-22 | 山东浪潮数字商业科技有限公司 | Self-healing API gateway implementation method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11509505B2 (en) | Method and apparatus for operating smart network interface card | |
US10180836B1 (en) | Generating source code review comments using code analysis tools | |
US9064048B2 (en) | Memory leak detection | |
US9632919B2 (en) | Request change tracker | |
US20130311835A1 (en) | Forecasting workload transaction response time | |
US10108474B2 (en) | Trace capture of successfully completed transactions for trace debugging of failed transactions | |
CN114579376A (en) | Gateway operation detection method and device, electronic equipment and storage medium | |
CN111741046B (en) | Data reporting method, data acquisition method, device, equipment and medium | |
CN110362435A (en) | PCIE Fault Locating Method, device, equipment and the medium of Purley Platform Server | |
US20100192029A1 (en) | Systems and Methods for Logging Correctable Memory Errors | |
CN111782527A (en) | Interface testing method, device, computer equipment and storage medium | |
CN112817831A (en) | Application performance monitoring method, device, computer system and readable storage medium | |
CN109299124B (en) | Method and apparatus for updating a model | |
CN113362173B (en) | Anti-duplicate mechanism verification method, verification system, electronic device and storage medium | |
CN114594984A (en) | Inspection method, device, computer equipment and storage medium | |
CN119883773B (en) | A BIOS operation and maintenance method, system and storage medium | |
CN116841902A (en) | Health state checking method, device, equipment and storage medium | |
CN112084114B (en) | Method and apparatus for testing interfaces | |
US9292401B2 (en) | Systems and methods for determining desktop readiness using interactive measures | |
US20090094614A1 (en) | Direct synchronous input | |
CN113535568B (en) | Verification method, device, equipment and medium for application deployment version | |
CN116975200A (en) | Method, device, equipment and medium for controlling working state of server | |
CN109960659B (en) | Method and device for detecting application program | |
CN115373802A (en) | Method and device for restarting agent system, electronic equipment and storage medium | |
CN114764713A (en) | Method and device for generating merchant patrol task, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |