Unlock instant, AI-driven research and patent intelligence for your innovation.

Remote calling method and remote calling device

A technology of remote calling and circuit breaker, which is applied in multi-programming devices, inter-program communication, program control design, etc., and can solve problems such as inability to modify

Active Publication Date: 2017-08-25
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a remote call method and a remote call device, which overcomes the existing problem that once the opening and closing conditions of the circuit breaker are set, they cannot be modified

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Remote calling method and remote calling device
  • Remote calling method and remote calling device
  • Remote calling method and remote calling device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0042] see figure 1 , is a remote invocation method in an embodiment of the present invention, which is applied in the method protection of remote invocation using a circuit breaker. The remote calling method includes: S1, an embedded Jetty server, the Jetty server receiving an externally sent circuit breaker opening and closing request, wherein the circuit breaker opening and closing request carries the circuit breaker identification information and the requested circuit breaker ID Opening and closing state; S2, find the original opening and closing state of the circuit breaker corresponding to the circuit breaker identification information from the HashMap; S3, accordin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a remote calling method and a remote calling device. The method comprises the following steps of: embedding a Jetty server and receiving an externally sent breaker opening / closing request, wherein the breaker opening / closing request carries identification information of a breaker and opening / closing state information of the requested breaker; searching an original opening / closing state, corresponding to the identification information of the breaker, of the breaker from a HashMap; and updating the original opening / closing state, searched from the HashMap, of the breaker according to the opening / closing state of the breaker requested in the breaker opening / closing request, and allowing or rejecting a remote calling request according to the updated opening / closing state of the breaker. According to the remote calling method, the Jetty server is embedded in a program, and the Jetty server receives the external breaker opening / closing request, so that the opening / closing state of the breaker can be updated after a calling program is started, and then the opening / closing state of the breaker more accords with the practical condition.

Description

technical field [0001] The present invention relates to the technical field of computer applications, and more specifically, to a remote calling method and a remote calling device. Background technique [0002] Software systems often make remote calls to software running in different processes, likely on different machines on a network. A big difference between in-process calls and remote calls is that remote calls often fail or hang unresponsively until they time out. Worse, if many calls are made on an unresponsive service, it is likely to cause the system to exhaust critical resources, resulting in cascading failures on multiple systems. [0003] In response to the above problems, a circuit breaker pattern is currently proposed to avoid such cascading failures. The principle of the circuit breaker is very simple. It is to use the circuit breaker to encapsulate the called method, and the circuit breaker can monitor the failure of calling the method. Once the number of f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/54
CPCG06F9/548G06F2209/544
Inventor 支猛陈少杰张文明
Owner WUHAN DOUYU NETWORK TECH CO LTD