CN109189509A - The response method and server that call method, the interface of interface call - Google Patents

The response method and server that call method, the interface of interface call Download PDF

Info

Publication number
CN109189509A
CN109189509A CN201811019901.XA CN201811019901A CN109189509A CN 109189509 A CN109189509 A CN 109189509A CN 201811019901 A CN201811019901 A CN 201811019901A CN 109189509 A CN109189509 A CN 109189509A
Authority
CN
China
Prior art keywords
interface
request
target interface
call request
data
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.)
Granted
Application number
CN201811019901.XA
Other languages
Chinese (zh)
Other versions
CN109189509B (en
Inventor
许进
谈锦勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
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
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811019901.XA priority Critical patent/CN109189509B/en
Publication of CN109189509A publication Critical patent/CN109189509A/en
Application granted granted Critical
Publication of CN109189509B publication Critical patent/CN109189509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention is suitable for field of communication technology, provide a kind of call method of interface, the response method and server that interface calls, pass through the parsing to target interface instruction is called, obtain the interface name of target interface and the server identification of destination server, according to server identification, request of data is sent to destination server, after the answer message for receiving destination server return, according to the corresponding waiting queuing data of target interface for including in answer message, judge whether target interface meets calling and require, it is required if target interface meets calling, the call request of target interface is then sent to destination server, first to carry out the judgement whether target interface runs excess load before transmission interface call request, to improve the safety and stability of system operation.

Description

The response method and server that call method, the interface of interface call
Technical field
The invention belongs to the response methods that field of communication technology more particularly to a kind of call method of interface, interface call And server.
Background technique
Application system is often based upon multiple servers and realizes system architecture, and the interface of each server often exists at one The maximum value of reason amount then can shadow once the requested quantity of the interface for some server occur is greater than the maximum value of its treating capacity Ring the normal operation of the server.
Current technology is all often from the server-side where called interface in order to avoid the generation of above situation It is limited accordingly, it is done so that the burden of the server where called interface can be increased, furthermore the one of calling interface Side server is also difficult to obtain the process of interface calling, can not judge the subsequent operation that should be executed, therefore whole system is steady Fixed operation just will receive a degree of influence.
In addition, each server has the possibility attacked, the attack that current technology largely requests initiation does not have Good counte-rplan.
To sum up, current system has that safety is lower, stability is poor during interface calls.
Summary of the invention
In view of this, the embodiment of the invention provides response methods and clothes that a kind of call method of interface, interface call Business device, to solve the problems, such as that the low stability of safety of the existing technology is poor.
The first aspect of the embodiment of the present invention provides a kind of call method of interface, comprising:
If receiving the invocation target interface instruction of user's input, parses in the invocation target interface instruction and include The interface name of target interface and the server identification of destination server;
According to the server identification, request of data is sent to the destination server, the request of data includes to be used for The timestamp at the generation moment of the request of data and the interface name of the target interface are described, so that the destination server Judge whether to return according to the timestamp and replies message;
If receiving the answer message that the destination server returns, include according to the answer message described in The corresponding waiting queuing data of target interface, judges whether the target interface meets calling and require;
If the target interface meets calling and requires, the call request of target interface is generated, and by the target interface Call request be sent to the destination server, to complete to the calling of the target interface.
In embodiments of the present invention, by call target interface instruction parsing, obtain the interface name of target interface with And the server identification of destination server sends request of data to destination server, is receiving target according to server identification After the answer message that server returns, according to the corresponding waiting queuing data of target interface for including in message is replied, judge Whether target interface, which meets calling, requires, if target interface meets calling and requires, sends target interface to destination server Call request is to improve first to carry out the judgement whether target interface runs excess load before transmission interface call request The stability of system operation.
The second aspect of the embodiment of the present invention provides a kind of response method that interface calls, comprising:
If receiving the request of data of external server, according to the interface for the target interface for including in the request of data Name, judges whether to intercept the request of data;
If not intercepting to the request of data, the timestamp for including in the request of data is parsed, if described The difference of timestamp corresponding time and current time is not more than preset time difference threshold value, then reads in Java Virtual Machine caching The quantity of call request in the corresponding waiting queue of the target interface of storage;
If the quantity of call request is not more than preset calling number extreme value in the waiting queue, by the waiting queue The quantity of middle call request and the receiving time of each call request are added to waiting queuing data, and are packaged described etc. Queuing data is waited, generates and replies message;
The answer message is sent to external server;
When receiving the call request of the target interface, if call request in the waiting queue of the target interface Quantity is not 0, then recently received call request is added in the waiting queue.
The third aspect of the embodiment of the present invention provides a kind of server of calling interface, including memory and processing Device, the computer program that can be run on the processor is stored in the memory, and the processor executes the calculating When machine program, following steps are realized:
If receiving the invocation target interface instruction of user's input, parses in the invocation target interface instruction and include The interface name of target interface and the server identification of destination server;
According to the server identification, request of data is sent to the destination server, the request of data includes to be used for The timestamp at the generation moment of the request of data and the interface name of the target interface are described, so that the destination server Judge whether to return according to the timestamp and replies message;
If receiving the answer message that the destination server returns, include according to the answer message described in The corresponding waiting queuing data of target interface, judges whether the target interface meets calling and require;
If the target interface meets calling and requires, the call request of target interface is generated, and by the target interface Call request be sent to the destination server, to complete to the calling of the target interface.
The fourth aspect of the embodiment of the present invention provides a kind of response server that interface calls, including memory and place Device is managed, the computer program that can be run on the processor is stored in the memory, the processor executes the meter When calculation machine program, following steps are realized:
When receiving the request of data of external server, according to the interface for the target interface for including in the request of data Name, judges whether to intercept the request of data;
If not intercepting to the request of data, the timestamp for including in the request of data is parsed, if described The difference of timestamp corresponding time and current time is not more than preset time difference threshold value, then reads in Java Virtual Machine caching The quantity of call request in the corresponding waiting queue of the target interface of storage;
If the quantity of call request is not more than preset calling number extreme value in the waiting queue, by the waiting queue The quantity of middle call request and the receiving time of each call request are added to waiting queuing data, and are packaged described etc. Queuing data is waited, generates and replies message;
The answer message is sent to external server;
When receiving the call request of the target interface, if call request in the waiting queue of the target interface Quantity is not 0, then recently received call request is added in the waiting queue.
5th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, realizes as described in relation to the first aspect when the computer-readable instruction is executed by processor The step of call method of interface.
6th aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer-readable instruction, realizes as described in second aspect when the computer-readable instruction is executed by processor The step of response method that interface calls.
In embodiments of the present invention, by being judged according to the interface name for the target interface for including in the request of data received Whether request of data is intercepted, if not intercepting to request of data, the timestamp in request of data is parsed, in institute When stating the difference of timestamp corresponding time and current time and meeting the requirements, reads in the corresponding waiting queue of target interface and call The quantity of request just sends to external server if the quantity meets the requirements and replies message, in the calling for receiving target interface When request, if the quantity of call request is not 0 in the waiting queue of target interface, recently received call request is added Into, to avoid the malicious attack carried out by way of largely requesting to target interface, raising system is run in the waiting queue Safety.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the implementation flow chart of the call method of interface provided in an embodiment of the present invention;
Fig. 2 is the specific implementation flow chart of the call method S103 of interface provided in an embodiment of the present invention;
Fig. 3 is the response method implementation flow chart that interface provided in an embodiment of the present invention calls;
Fig. 4 is the structural block diagram of the server of calling interface provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram for the response server that interface provided in an embodiment of the present invention calls;
Fig. 6 is the server schematic diagram of calling interface provided in an embodiment of the present invention;
Fig. 7 is the response server schematic diagram that interface provided in an embodiment of the present invention calls;
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 shows the implementation process of the call method of interface provided in an embodiment of the present invention, and this method process includes step Rapid S101 to S105.The specific implementation principle of each step is as follows.
S101 is parsed in the invocation target interface instruction if receiving the invocation target interface instruction of user's input The interface name for the target interface for including and the server identification of destination server.
In embodiments of the present invention, a system includes multiple child servers, and a child servers can call other sons Interface on server, to use the processing function of other child servers.The principle of the embodiment of the present invention is introduced for convenience And step, we are known as destination server for the child servers that interface is called to other child servers are provided, and will call other sons The child servers of server interface are known as local server.
Notably, the embodiment of the present invention is that technical solution is introduced from local server side, i.e., it is main to be situated between The child servers for the system that continues are when calling the interface of another child servers, the necessary operating procedure made.
In embodiments of the present invention, when a user wishes the function by other servers of the server calls of oneself operation When energy, an invocation target interface instruction can be inputted to local server operated by the user.It is to be appreciated that target interface The interface name for the target interface that instruction includes is used to lock the physical interface of a destination server, and target interface instruction includes The server identification of destination server is for locking a specific destination server.
S102 sends request of data to the destination server, the request of data includes according to the server identification For describing the timestamp at the generation moment of the request of data and the interface name of the target interface, so that the target takes Business device judges whether to return according to the timestamp replies message.
It is to be appreciated that local server can generate one after the invocation target interface instruction for receiving user's input Request of data, and it is sent to destination server.
Notably, also including the life of request of data in request of data other than the interface name comprising target interface At the timestamp at moment, this timestamp can help target interface to judge whether the request of data transmission abnormality occurs.It can To understand ground, in communications, transmission abnormality may be led to due to many reasons, such as channel block etc., these transmission are different Often will lead to request of data can not convey, or time-out is conveyed.The server as involved in the embodiment of the present invention requires A large amount of mass data is handled in real time, so if request of data delay reaches, then possible local server has not needed this When the function of target interface or the target interface that request of data to be requested has been subjected to or failure, so destination server Just without in the operation for being further analyzed to request of data and being called without making subsequent interface.
To sum up, the timestamp at the generation moment of request of data can help destination server to judge whether to need to return to reply Message, to agree to that local server continues invocation target interface.
It is to be appreciated that in embodiments of the present invention, when what need to only be done adds the generation of request of data in request of data The timestamp at quarter, and receive destination server reply message after continue target interface call flow, do not connecing also It receives a reply before message, the call flow of interface is in interruption transition naturally.
S103 includes according to the answer message if receiving the answer message that the destination server returns The corresponding waiting queuing data of the target interface, judge the target interface whether meet calling require.
In embodiments of the present invention, the interface of any one destination server is greater than in the quantity of the request of data to it and is somebody's turn to do When the maximum concurrency of interface, all waiting queue can be added to the satisfactory request of data of the interface by what is newly received Data, and specifically how to judge whether a request of data meets the requirements in destination server, by destination service below It is specifically introduced in the embodiment of device side, in embodiments of the present invention, local server only needs to utilize target interface pair The waiting queuing data answered is analyzed, and judges whether the target interface meets calling and require.
Notably, the waiting queuing data includes calling to ask in the corresponding waiting queue of the target interface The receiving time of the quantity and each call request asked.
As an embodiment of the present invention, as shown in Fig. 2, above-mentioned S103 includes:
S1031, the quantity and the first preset quantity and the second preset quantity for waiting call request in queue Size cases.
In embodiments of the present invention, the first preset quantity is less than the second preset quantity.
S1032 determines the target if the quantity of call request is not more than the first preset quantity in the waiting queue Interface meets calling and requires.
It is to be appreciated that it is less due to waiting call request in queue in this case, so receiving a calling again Request does not still influence normally to operate, and waiting time will not be too long, requires it is determined that the target interface meets calling.
S1033 determines that the target connects if the quantity of call request is greater than the second preset quantity in the waiting queue Mouth does not meet calling and requires.
It is to be appreciated that call request is excessive in queue due to waiting in this case, team is waited in the prior art The quantity of call request excessively will lead to a series of problem in column, so in order to avoid processing exception occurs in destination server, It is too long also for waiting time is avoided, it is required it is determined that the target interface does not meet calling.
S1034, if the quantity of call request is greater than first preset quantity and no more than the in the waiting queue Two preset quantities calculate the corresponding calling of multiple unit time periods and ask then according to the receiving time of each call request The quantity asked, generates the corresponding relationship of the quantity of unit interval and call request, and first preset quantity is less than described the Two preset quantities.
In embodiments of the present invention, the quantity that call request in queue is waited in S1034, which is in S1032 and S1033, to be adjusted It is required between the quantity of request, needing to judge by further algorithm that the target interface meets to call.
Illustratively, unit interval can be 1 minute, it is assumed that current time be 10 points 10 minutes, then according to each calling The receiving time of request, count 10 points to 10 points corresponding call requests in 01 minutes quantity, 10 points 01 minutes to 10 points 02 minutes pairs The quantity of the 10 points of corresponding call requests in 0 10 minutes in 09 minutes to 10 points of quantity ... for the call request answered, to generate each The corresponding relationship of unit interval and the quantity of call request.
S1035 is fitted the unit interval in preset time period and the quantity of call request by linear regression model (LRM) Corresponding relationship, and calculate according to least square method the linear regression coeffficient of the equation of linear regression.
Optionally, the linear regression model (LRM) includes: Y (n)=aX (n)+b, and the Y (n) is in the preset time period The quantity of the corresponding call request of n-th of unit interval, the X (n) are n-th of unit time in the preset time period Section, a are the linear regression coeffficient, and the b is error coefficient.
Illustratively, it is assumed that preset time period is 10 minutes, and each unit interval is successively sorted sequentially in time, The X (n) of first unit interval is set as 1, the X (n) of second unit interval is set as 2, by third unit The X (n) of period is set as 3, and so on, X (n) indicates n-th of unit interval in 10 minutes as independent variable.
Understandably, it is assumed that preset time period is divided into 10 unit intervals altogether, then the after current time The X (n) of one unit interval is then 101, and the X (n) of second unit interval after current time is then 102, with this Analogize.
It is to be appreciated that in the corresponding relationship for counting the unit interval in preset time period and the quantity of call request Later, the linear regression coeffficient that the equation of linear regression can be calculated by least square method, that is, calculate linear regression side The slope of journey.
S1036 determines that the target interface meets calling and requires if the linear regression coeffficient is non-positive number.
It is to be appreciated that proving if linear regression coeffficient, that is, equation of linear regression slope is non-positive number default In period, the quantity for waiting call request in queue is not in the trend of a rising, so calling in waiting queue The quantity of request is no more than the second preset quantity under the premise of this, and there is also the skies centainly stored for the waiting queue of target interface Between, so determining that the target interface meets calling and requires in embodiments of the present invention.
Notably, a critically important inventive point of the embodiment of the present invention is that, it is different from the prior art and only exists That one end (one end of the child servers of i.e. called interface) of destination server judges the quantity of call request, avoids adjusting Exceed the tolerance range of target interface with the quantity of request, the embodiment of the present invention (calls other in this one end of local server One end of child servers interface) it will inquire and judge that the new calling of processing of whether having the ability of target interface in destination server is asked It asks, facilitates the burden for mitigating destination server in this way, and the target of the timely switching request of local server can be helped to connect Mouthful, guarantee the treatment effeciency of the data of user, guarantees the even running of whole system.
S104 terminates the call flow of the interface if the target interface does not meet calling and requires.
Notably, in embodiments of the present invention, if target interface does not meet calling and requires, proving that the target connects Mouth is busy, therefore directly terminates the call flow to interface, and does not send any instruction or notice to destination server.
S105 generates the call request of target interface if the target interface meets calling and requires, and by the target The call request of interface is sent to the destination server, to complete the calling to the target interface.
Optionally, the call request for generating target interface, comprising: obtain the ginseng of the realization class of the target interface Number, the parameter for realizing class are used to determine the specific realization class in the target interface;By the target interface The parameter of interface name and the realization class of the target interface is packaged by writeValuesAsString method, is generated Json character string;It is encrypted by json character string described in preset key pair, generates encryption word string;Create a Map collection It closes, sets the encryption word string for the value value that the Map gathers, set described close for the Key value that the Map gathers Key, and Map set is converted into call request.
It is to be appreciated that the embodiment of the present invention obtains connecing for target interface by the parsing to calling target interface to instruct The server identification of mouth name and destination server sends request of data to destination server, is receiving according to server identification After the answer message returned to destination server, according to the corresponding waiting number of queues of target interface for including in answer message According to, judge target interface whether meet calling require, if target interface meet calling require, to destination server send target The call request of interface, first to carry out the judgement whether target interface runs excess load before transmission interface call request, with The stability of raising system operation.
Fig. 3 shows the implementation process for the response method that interface provided in an embodiment of the present invention calls, this method process packet Include step S301 to S311.The specific implementation principle of each step is as follows.
S301, if receiving the request of data of external server, according to the target interface for including in the request of data Interface name judges whether to intercept the request of data.
In embodiments of the present invention, in embodiments of the present invention, a system includes multiple child servers, a sub-services Device can call the interface in other child servers, to use the processing function of other child servers.Originally in order to facilitate introduction The principle and step of inventive embodiments, we are known as destination service for the child servers that interface is called to other child servers are provided The child servers for calling other child servers interfaces are known as the external server (outside for destination server by device Server).
Notably, the embodiment of the present invention is that technical solution is introduced from destination server side, i.e., it is main to be situated between The child servers for the system that continues are in called interface, the necessary operating procedure made.
It is to be appreciated that a sleep interface list, Yi Jiyi can be stored in embodiments of the present invention, in destination server A failure interface list, if the interface name of the target interface is present in sleep interface list or failure interface list, to institute Request of data is stated to be intercepted.
S302 no longer analyzes the request of data after interception if intercepting to the request of data, eventually The process for the response that only interface calls.
S303 parses the timestamp for including in the request of data if not intercepting to the request of data.
It also include the time at the generation moment of request of data in request of data other than the interface name comprising target interface Stamp, this timestamp can help target interface to judge whether the request of data transmission abnormality occurs.It is to be appreciated that logical In letter transmission, transmission abnormality, such as channel block etc. may be led to due to many reasons, these transmission abnormalities will lead to data and ask Asking can not convey, or time-out is conveyed.The server as involved in the embodiment of the present invention requires to handle in real time a large amount of Mass data, so if request of data delay reaches, then possible external server has not needed the request of data to be asked When the function of the target interface asked or the target interface has been subjected to or failure, so destination server is just not necessarily to data The operation that request is further analyzed and calls without making subsequent interface.
S304, judges whether the difference of the timestamp corresponding time and current time is greater than preset time difference threshold Value.
S305, if the difference of the timestamp corresponding time and current time is not more than preset time difference threshold value, Read the quantity of call request in the corresponding waiting queue of the target interface stored in Java Virtual Machine caching.
S306, if the difference of the timestamp corresponding time and current time is greater than preset time difference threshold value, to The external server returns to request timed out notice.
It is to be appreciated that the request timed out notice is for reminding the external server in the communication of the request of data It is abnormal to occur time-out in transmission process.
S307, judges whether the quantity of call request in the waiting queue is greater than preset calling number extreme value
S308 connects described in termination if the quantity of call request is greater than preset calling number extreme value in the waiting queue The process for the response that mouth calls.
S309 will be described etc. if the quantity of call request is not more than preset calling number extreme value in the waiting queue It waits the quantity of call request and the receiving time of each call request in queue and is added to waiting queuing data, and be packaged The waiting queuing data generates and replies message.
The answer message is sent to external server by S310.
S311, when receiving the call request of the target interface, if being called in the waiting queue of the target interface The quantity of request is not 0, then recently received call request is added in the waiting queue.
It is to be appreciated that the embodiment of the present invention passes through the interface according to the target interface for including in the request of data received Name judges whether to intercept request of data, if not intercepting to request of data, parses the time in request of data Stamp reads the corresponding waiting team of target interface when the difference of the timestamp corresponding time and current time meet the requirements The quantity of call request in column just sends to external server if the quantity meets the requirements and replies message, connect receiving target When the call request of mouth, if the quantity of call request is not 0 in the waiting queue of target interface, by recently received calling Request is added in the waiting queue to avoid the malicious attack carried out by way of largely requesting to target interface, is improved The safety of system operation.
It is to be appreciated that the embodiment introduced by Fig. 1 and Fig. 3, can form the interactive system of interface calling, The system includes destination server and external server, and the destination server is to provide the server of interface, the outside Server is the server of calling interface;
The external server parses the invocation target when receiving the invocation target interface instruction of user's input The interface name for the target interface for including in interface instruction and the server identification of destination server;
The external server sends request of data, the number according to the server identification, to the destination server The interface name of timestamp and the target interface at the time of according to request comprising the generation request of data;
The destination server includes when receiving the request of data of external server, according in the request of data The interface suffix name of target interface judges whether to intercept the request of data;
If the destination server does not intercept the request of data, parses in the request of data and include Timestamp is read if the difference of the timestamp corresponding time and current time are not more than preset time difference threshold value The quantity of call request in the corresponding waiting queue of the target interface stored in Java Virtual Machine caching;
If the quantity of call request is not more than preset calling number extreme value, the destination server in the waiting queue The quantity of call request and the receiving time of each call request in the waiting queue are added to waiting number of queues According to, and it is packaged the waiting queuing data, it generates and replies message, the answer message is sent to external server;
If the external server receives the answer message that the destination server returns, according to the answer Message judges whether the target interface meets calling and require;
It being required if the target interface meets calling, the external server generates the call request of target interface, and The call request of the target interface is sent to the destination server;
The destination server is when receiving the call request of the target interface, if the waiting team of the target interface The quantity of call request is not 0 in column, then recently received call request is added in the waiting queue, with completion pair The calling of the target interface.
It is to be appreciated that obtaining the interface name and target of target interface by the parsing to target interface instruction is called The server identification of server sends request of data to destination server, is receiving destination server according to server identification After the answer message of return, according to the corresponding waiting queuing data of target interface for including in message is replied, judge that target connects Whether mouth, which meets calling, requires, if target interface meets calling and requires, the calling for sending target interface to destination server is asked It asks, first to carry out the judgement whether target interface runs excess load before transmission interface call request, to improve system operation Stability.
Corresponding to the call method of interface described in foregoing embodiments, Fig. 4 shows calling provided in an embodiment of the present invention The structural block diagram of the server of interface, for ease of description, only parts related to embodiments of the present invention are shown.
Referring to Fig. 4, which includes:
Parsing module 401, if the invocation target interface instruction for receiving user's input, parses the invocation target The interface name for the target interface for including in interface instruction and the server identification of destination server;
Sending module 402, it is described for sending request of data to the destination server according to the server identification Request of data includes the interface name for the timestamp and the target interface that describe the generation moment of the request of data, with The destination server is set to be judged whether to return to answer message according to the timestamp;
Judgment module 403, if the answer message returned for receiving the destination server, is answered according to The corresponding waiting queuing data of the target interface that multiple message includes, judges whether the target interface meets calling and require;
Calling module 404 requires if meeting calling for the target interface, generates the call request of target interface, And the call request of the target interface is sent to the destination server, to complete the calling to the target interface.
Optionally, the waiting queuing data includes call request in the corresponding waiting queue of the target interface Quantity and the receiving time of each call request;
The corresponding waiting queuing data of the target interface for including according to the answer message, judges the target Whether interface, which meets calling, requires, including;
If the quantity of call request is not more than the first preset quantity in the waiting queue, the target interface symbol is determined It closes to call and require;
If the quantity of call request is greater than first preset quantity and presets no more than second in the waiting queue Quantity calculates the number of the corresponding call request of multiple unit time periods then according to the receiving time of each call request Amount generates the corresponding relationship of the quantity of unit interval and call request, and it is default that first preset quantity is less than described second Quantity;
Pass through linear regression model (LRM): unit interval and call request in Y (n)=aX (n)+b fitting preset time period Quantity corresponding relationship, and calculate according to least square method the linear regression coeffficient of the equation of linear regression, the Y (n) For the quantity of the corresponding call request of n-th of unit interval in the preset time period, the X (n) is the preset time N-th of unit interval in section, a are the linear regression coeffficient, and the b is error coefficient;
If the linear regression coeffficient is non-positive number, determine that the target interface meets calling and requires.
Optionally, the call request for generating target interface, comprising:
The parameter of the realization class of the target interface is obtained, the parameter for realizing class is for determining in the target interface Specific realization class;
The parameter of the interface name of the target interface and the realization class of the target interface is passed through WriteValuesAsString method is packaged, and generates json character string;
It is encrypted by json character string described in preset key pair, generates encryption word string;
A Map set is created, the encryption word string is set by the value value that the Map gathers, by the Map collection The Key value of conjunction is set as the key, and Map set is converted to call request.
It is to be appreciated that in embodiments of the present invention, by the parsing to target interface instruction is called, obtaining target interface Interface name and the server identification of destination server request of data is sent to destination server according to server identification, After the answer message for receiving destination server return, according to the corresponding waiting queue of target interface for including in answer message Data, judge whether target interface meets calling and require, if target interface meets calling and requires, send mesh to destination server The call request of tag splice mouth, first to carry out the judgement whether target interface runs excess load before transmission interface call request, To improve the stability of system operation.
Corresponding to the response method that interface described in foregoing embodiments calls, Fig. 5 shows provided in an embodiment of the present invention The structural block diagram for the response server that interface calls, for ease of description, only parts related to embodiments of the present invention are shown.
Referring to Fig. 5, the response server which calls includes:
Receiving module 501 includes according in the request of data if the request of data for receiving external server The interface name of target interface judges whether to intercept the request of data;
Read module 502, if parsing in the request of data for not intercepted to the request of data and including Timestamp, if the difference of the timestamp corresponding time and current time be not more than preset time difference threshold value, read The quantity of call request in the corresponding waiting queue of the target interface stored in Java Virtual Machine caching;
Generation module 503, if the quantity for call request in the waiting queue is not more than preset calling number extreme value, The quantity of call request and the receiving time of each call request in the waiting queue are then added to waiting queue Data, and it is packaged the waiting queuing data, it generates and replies message;
Sending module 504, for the answer message to be sent to external server;
Adding module 505, for when receiving the call request of the target interface, if the waiting of the target interface The quantity of call request is not 0 in queue, then recently received call request is added in the waiting queue.
Optionally, the response server that the interface calls further include:
Notification module, if being greater than preset time difference threshold for the difference of the timestamp corresponding time and current time Value then returns to request timed out notice to the external server, and the request timed out notice is for reminding the external server It is abnormal to occur time-out in the communication transmission process of the request of data.
Fig. 6 is the server schematic diagram for the calling interface that one embodiment of the invention provides.As shown in fig. 6, the embodiment Terminal device 6 includes: processor 60, memory 61 and is stored in the memory 61 and can transport on the processor 60 Capable computer program 62, such as the caller of interface.The processor 60 is realized when executing the computer program 62 State the step in the call method embodiment of each interface, such as step 101 shown in FIG. 1 is to 105.Alternatively, the processor The function of each module/unit in above-mentioned each Installation practice, such as list shown in Fig. 4 are realized when the 60 execution computer program 62 The function of member 401 to 404.
Illustratively, the computer program 62 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 61, and are executed by the processor 60, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 62 in the terminal device 6 is described.
The terminal device 6 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 60, memory 61.It will be understood by those skilled in the art that Fig. 6 The only example of terminal device 6 does not constitute the restriction to terminal device 6, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 60 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 61 can be the internal storage unit of the terminal device 6, such as the hard disk or interior of terminal device 6 It deposits.The memory 61 is also possible to the External memory equipment of the terminal device 6, such as be equipped on the terminal device 6 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 61 can also both include the storage inside list of the terminal device 6 Member also includes External memory equipment.The memory 61 is for storing needed for the computer program and the terminal device Other programs and data.The memory 61 can be also used for temporarily storing the data that has exported or will export.
Fig. 7 is the response server schematic diagram that the interface that one embodiment of the invention provides calls.As shown in fig. 7, the implementation The terminal device 7 of example includes: processor 70, memory 71 and is stored in the memory 71 and can be in the processor 70 The computer program 72 of upper operation, such as the caller of interface.The processor 70 executes real when the computer program 72 Step in the call method embodiment of existing above-mentioned each interface, such as step 301 shown in Fig. 3 is to 311.Alternatively, the place Reason device 70 realizes the function of each module/unit in above-mentioned each Installation practice, such as Fig. 5 institute when executing the computer program 72 Show the function of unit 501 to 505.
Illustratively, the computer program 72 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 71, and are executed by the processor 70, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 72 in the terminal device 7 is described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.In addition, the specific name of each functional unit, module is also only for convenience of distinguishing each other, The protection scope being not intended to limit this application.The specific work process of unit in above system, module, can refer to aforementioned side Corresponding process in method embodiment, details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of call method of interface characterized by comprising
If receiving the invocation target interface instruction of user's input, the target for including in the invocation target interface instruction is parsed The interface name of interface and the server identification of destination server;
According to the server identification, request of data is sent to the destination server, the request of data includes for describing The request of data generation the moment timestamp and the target interface interface name so that the destination server according to The timestamp, which judges whether to return, replies message;
If receiving the answer message that the destination server returns, according to the target for replying message and including The corresponding waiting queuing data of interface, judges whether the target interface meets calling and require;
If the target interface meets calling and requires, the call request of target interface is generated, and by the tune of the target interface It is sent to the destination server with request, to complete the calling to the target interface.
2. the call method of interface as described in claim 1, which is characterized in that the waiting queuing data includes the target The quantity of call request and the receiving time of each call request in the corresponding waiting queue of interface;
The corresponding waiting queuing data of the target interface for including according to the answer message, judges the target interface Whether meet calling to require, including;
If the quantity of call request is not more than the first preset quantity in the waiting queue, determine that the target interface meets tune With requiring;
If the quantity of call request is greater than first preset quantity and is not more than the second preset quantity in the waiting queue, Then according to the receiving time of each call request, the quantity of the corresponding call request of multiple unit time periods is calculated, it is raw At the corresponding relationship of unit interval and the quantity of call request, first preset quantity is less than second preset quantity;
Pass through linear regression model (LRM): the number of unit interval and call request in Y (n)=aX (n)+b fitting preset time period The corresponding relationship of amount, and the linear regression coeffficient of the equation of linear regression is calculated according to least square method, the Y (n) is institute The quantity of the corresponding call request of n-th of unit interval in preset time period is stated, the X (n) is in the preset time period N-th of unit interval, a are the linear regression coeffficient, and the b is error coefficient;
If the linear regression coeffficient is non-positive number, determine that the target interface meets calling and requires.
3. the call method of interface as described in claim 1, which is characterized in that the call request for generating target interface, Include:
The parameter of the realization class of the target interface is obtained, the parameter for realizing class is used to determine the tool in the target interface One realization class of body;
The parameter of the interface name of the target interface and the realization class of the target interface is passed through WriteValuesAsString method is packaged, and generates json character string;
It is encrypted by json character string described in preset key pair, generates encryption word string;
A Map set is created, the encryption word string is set by the value value that the Map gathers, the Map is gathered Key value is set as the key, and Map set is converted to call request.
4. the response method that a kind of interface calls characterized by comprising
If receiving the request of data of external server, according to the interface name for the target interface for including in the request of data, sentence It is disconnected whether the request of data to be intercepted;
If not intercepting to the request of data, the timestamp for including in the request of data is parsed, if the time The difference of corresponding time and current time is stabbed no more than preset time difference threshold value, then reads in Java Virtual Machine caching and stores The target interface it is corresponding waiting queue in call request quantity;
If the quantity of call request is not more than preset calling number extreme value in the waiting queue, will be adjusted in the waiting queue It is added to waiting queuing data with the receiving time of the quantity of request and each call request, and is packaged the waiting team Column data generates and replies message;
The answer message is sent to external server;
When receiving the call request of the target interface, if the quantity for waiting call request in queue of the target interface It is not 0, then recently received call request is added in the waiting queue.
5. the response method that interface as claimed in claim 4 calls, which is characterized in that further include:
If the difference of the timestamp corresponding time and current time is greater than preset time difference threshold value, to the external clothes Business device returns to request timed out notice, and the request timed out notice is for reminding the external server in the logical of the request of data Believe in transmission process time-out exception occur.
6. a kind of server of calling interface, including memory and processor, being stored in the memory can be at the place The computer program run on reason device, which is characterized in that when the processor executes the computer program, realize following step It is rapid:
If receive the invocation target interface instruction of user's input, the mesh for including in the invocation target interface instruction is parsed The interface name of tag splice mouth and the server identification of destination server;
According to the server identification, request of data is sent to the destination server, the request of data includes for describing The request of data generation the moment timestamp and the target interface interface name so that the destination server according to The timestamp, which judges whether to return, replies message;
If receiving the answer message that the destination server returns, according to the target for replying message and including The corresponding waiting queuing data of interface, judges whether the target interface meets calling and require;
If the target interface meets calling and requires, the call request of target interface is generated, and by the tune of the target interface It is sent to the destination server with request, to complete the calling to the target interface.
7. the server of calling interface as claimed in claim 6, which is characterized in that the waiting queuing data includes the mesh The quantity of call request and the receiving time of each call request in the corresponding waiting queue of tag splice mouth;
The corresponding waiting queuing data of the target interface for including according to the answer message, judges the target interface Whether meet calling to require, including;
If the quantity of call request is not more than the first preset quantity in the waiting queue, determine that the target interface meets tune With requiring;
If the quantity of call request is greater than first preset quantity and is not more than the second preset quantity in the waiting queue, Then according to the receiving time of each call request, the quantity of the corresponding call request of multiple unit time periods is calculated, it is raw At the corresponding relationship of unit interval and the quantity of call request, first preset quantity is less than second preset quantity;
Pass through linear regression model (LRM): the number of unit interval and call request in Y (n)=aX (n)+b fitting preset time period The corresponding relationship of amount, and the linear regression coeffficient of the equation of linear regression is calculated according to least square method, the Y (n) is institute The quantity of the corresponding call request of n-th of unit interval in preset time period is stated, the X (n) is in the preset time period N-th of unit interval, a are the linear regression coeffficient, and the b is error coefficient;
If the linear regression coeffficient is non-positive number, determine that the target interface meets calling and requires.
8. the response server that a kind of interface calls, including memory and processor, being stored in the memory can be in institute State the computer program run on processor, which is characterized in that when the processor executes the computer program, realize as follows Step:
When receiving the request of data of external server, according to the interface name for the target interface for including in the request of data, Judge whether to intercept the request of data;
If not intercepting to the request of data, the timestamp for including in the request of data is parsed, if the time The difference of corresponding time and current time is stabbed no more than preset time difference threshold value, then reads in Java Virtual Machine caching and stores The target interface it is corresponding waiting queue in call request quantity;
If the quantity of call request is not more than preset calling number extreme value in the waiting queue, will be adjusted in the waiting queue It is added to waiting queuing data with the receiving time of the quantity of request and each call request, and is packaged the waiting team Column data generates and replies message;
The answer message is sent to external server;
When receiving the call request of the target interface, if the quantity for waiting call request in queue of the target interface It is not 0, then recently received call request is added in the waiting queue.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claims 1 to 3 of realization the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 4 to 5 of realization the method.
CN201811019901.XA 2018-09-03 2018-09-03 Interface calling method, interface calling response method and server Active CN109189509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811019901.XA CN109189509B (en) 2018-09-03 2018-09-03 Interface calling method, interface calling response method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811019901.XA CN109189509B (en) 2018-09-03 2018-09-03 Interface calling method, interface calling response method and server

Publications (2)

Publication Number Publication Date
CN109189509A true CN109189509A (en) 2019-01-11
CN109189509B CN109189509B (en) 2024-04-26

Family

ID=64917871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811019901.XA Active CN109189509B (en) 2018-09-03 2018-09-03 Interface calling method, interface calling response method and server

Country Status (1)

Country Link
CN (1) CN109189509B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857575A (en) * 2019-01-18 2019-06-07 深圳壹账通智能科技有限公司 Interface call method, device, electronic equipment and storage medium
CN109872146A (en) * 2019-02-17 2019-06-11 北京意锐新创科技有限公司 Third party's interface call method and system based on two dimension code reading device
CN110187987A (en) * 2019-06-05 2019-08-30 北京百度网讯科技有限公司 Method and apparatus for handling request
CN111552577A (en) * 2020-03-24 2020-08-18 福建天泉教育科技有限公司 Method for preventing invalid request from occurring, storage medium
CN111953772A (en) * 2020-08-11 2020-11-17 北京达佳互联信息技术有限公司 Request processing method, device, server and storage medium
CN112306701A (en) * 2019-07-25 2021-02-02 中移动信息技术有限公司 Service fusing method, device, equipment and storage medium
CN113204395A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580409A (en) * 2014-12-24 2015-04-29 广州酷狗计算机科技有限公司 Service request processing method, server and terminal
US20150128103A1 (en) * 2013-11-07 2015-05-07 Runscope, Inc. System and method for automating application programming interface integration
CN105262826A (en) * 2015-10-29 2016-01-20 福建天晴数码有限公司 Method and system for adjusting interface processing amount
US20170126817A1 (en) * 2015-10-30 2017-05-04 Mckesson Financial Holdings Methods and apparatuses for location-based data access
CN108279983A (en) * 2016-12-30 2018-07-13 北京国双科技有限公司 A kind of processing method and processing device that interface returns the result
CN108282405A (en) * 2017-12-27 2018-07-13 努比亚技术有限公司 Application programming interfaces buffer memory management method, application server and storage medium
CN108365961A (en) * 2018-01-02 2018-08-03 深圳壹账通智能科技有限公司 The response method and server that interface call method and terminal device, interface call

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150128103A1 (en) * 2013-11-07 2015-05-07 Runscope, Inc. System and method for automating application programming interface integration
CN104580409A (en) * 2014-12-24 2015-04-29 广州酷狗计算机科技有限公司 Service request processing method, server and terminal
CN105262826A (en) * 2015-10-29 2016-01-20 福建天晴数码有限公司 Method and system for adjusting interface processing amount
US20170126817A1 (en) * 2015-10-30 2017-05-04 Mckesson Financial Holdings Methods and apparatuses for location-based data access
CN108279983A (en) * 2016-12-30 2018-07-13 北京国双科技有限公司 A kind of processing method and processing device that interface returns the result
CN108282405A (en) * 2017-12-27 2018-07-13 努比亚技术有限公司 Application programming interfaces buffer memory management method, application server and storage medium
CN108365961A (en) * 2018-01-02 2018-08-03 深圳壹账通智能科技有限公司 The response method and server that interface call method and terminal device, interface call

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857575A (en) * 2019-01-18 2019-06-07 深圳壹账通智能科技有限公司 Interface call method, device, electronic equipment and storage medium
CN109872146A (en) * 2019-02-17 2019-06-11 北京意锐新创科技有限公司 Third party's interface call method and system based on two dimension code reading device
CN110187987A (en) * 2019-06-05 2019-08-30 北京百度网讯科技有限公司 Method and apparatus for handling request
CN110187987B (en) * 2019-06-05 2022-02-25 北京百度网讯科技有限公司 Method and apparatus for processing requests
CN112306701A (en) * 2019-07-25 2021-02-02 中移动信息技术有限公司 Service fusing method, device, equipment and storage medium
CN112306701B (en) * 2019-07-25 2024-05-03 中移动信息技术有限公司 Service fusing method, device, equipment and storage medium
CN111552577A (en) * 2020-03-24 2020-08-18 福建天泉教育科技有限公司 Method for preventing invalid request from occurring, storage medium
CN111552577B (en) * 2020-03-24 2023-11-03 福建天泉教育科技有限公司 Method for preventing invalid request from occurring and storage medium
CN111953772A (en) * 2020-08-11 2020-11-17 北京达佳互联信息技术有限公司 Request processing method, device, server and storage medium
CN111953772B (en) * 2020-08-11 2022-11-22 北京达佳互联信息技术有限公司 Request processing method, device, server and storage medium
CN113204395A (en) * 2021-05-21 2021-08-03 珠海金山网络游戏科技有限公司 Service processing method and device

Also Published As

Publication number Publication date
CN109189509B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN109189509A (en) The response method and server that call method, the interface of interface call
US20220239496A1 (en) Blockchain consensus method, device and system
US7912949B2 (en) Systems and methods for recording changes to a data store and propagating changes to a client application
CN112165691B (en) Content delivery network scheduling method, device, server and medium
CN110365752A (en) Processing method, device, electronic equipment and the storage medium of business datum
US7548843B2 (en) Simulation of distributed networks
CN111277511B (en) Transmission rate control method, device, computer system and readable storage medium
CN109962855A (en) A kind of current-limiting method of WEB server, current-limiting apparatus and terminal device
CN110311983A (en) Processing method, device, system, electronic equipment and the storage medium of service request
CN110535661A (en) Method for processing business, device, electronic equipment and storage medium based on block chain
CN110427304A (en) O&M method, apparatus, electronic equipment and medium for banking system
CN110287266A (en) A kind of distributed system and data processing method
CN110300188A (en) Data transmission system, method and apparatus
Kobzan et al. Utilizing blockchain technology in industrial manufacturing with the help of network simulation
CN110213338A (en) A kind of clustering acceleration calculating method and system based on cryptographic calculation
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN110022323A (en) A kind of method and system of the cross-terminal real-time, interactive based on WebSocket and Redux
CN109725887A (en) Data interactive method, device and terminal device based on message research and development frame
CN111310242B (en) Method and device for generating device fingerprint, storage medium and electronic device
CN106506660B (en) A kind of online request processing method, server and system
Yang et al. Method of Interaction between Blockchain and the World outside the Chain based on Oracle Machine
CN116074331A (en) Block data synchronization method and related product
CN115987858A (en) Pressure testing method of block chain network and related equipment
CN116261839A (en) Operation of a distributed deterministic network
CN115250276A (en) Distributed system and data processing method and device

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
GR01 Patent grant
GR01 Patent grant