CN107682426A - interface proxy method and application server - Google Patents

interface proxy method and application server Download PDF

Info

Publication number
CN107682426A
CN107682426A CN201710874874.3A CN201710874874A CN107682426A CN 107682426 A CN107682426 A CN 107682426A CN 201710874874 A CN201710874874 A CN 201710874874A CN 107682426 A CN107682426 A CN 107682426A
Authority
CN
China
Prior art keywords
interface
registration
request
interchange
registration table
Prior art date
Application number
CN201710874874.3A
Other languages
Chinese (zh)
Inventor
周毅
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Priority to CN201710874874.3A priority Critical patent/CN107682426A/en
Publication of CN107682426A publication Critical patent/CN107682426A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/28Network-specific arrangements or communication protocols supporting networked applications for the provision of proxy services, e.g. intermediate processing or storage in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to network resources
    • H04L63/101Access control lists [ACL]

Abstract

The invention discloses a kind of interface proxy method, methods described includes:To the transmission interface registration table order of interface service registration center, the interface service registration center establishes interface registry according to the interface registry order;The registration table renewal request that the interface service registration center sends is received, the registration table renewal request generates according to the interface registration request that the interface service registration center sends;Request transmission registration table more newer command to the interface service registration center, the interface service registration center is updated according to the registration table to be updated the interface registry according to the registration table more newer command and the interface registration request.The present invention also provides a kind of application server.Application server and interface proxy method provided by the invention can docking port information inquiry traversal, registration while can the essential information of interface is maintained in registration table, form good interface management, and be easy to interface authority control.

Description

Interface proxy method and application server

Technical field

The present invention relates to communication technical field, more particularly to a kind of interface proxy method and application server.

Background technology

With the development of informationization, the realization of various information-based applications has increasing need for the calling to database, and calls Realization then need database side various interfaces realization.Database side is present in current system is relatively supplied to other moulds more Block, system or the interface of application, although these interfaces may be referred in unified PKG files, do not formed unified Management, that is, have the following disadvantages:It is difficult to form unified interface authority management, monitoring;It is difficult to the calling for clearing up these interfaces Side, causes interface to be difficult to safeguard.

The content of the invention

In view of this, the present invention proposes a kind of interface proxy method and application server, can docking port information traversal look into Ask, the essential information of interface is maintained in registration table by can while registration, forms good interface management.

First, to achieve the above object, the present invention proposes a kind of application server, and the application server includes storage Device, processor and the interface proxy program that can be run on the memory and on the processor is stored in, the interface generation Following steps are realized when managing program by the computing device:

To the transmission interface registration table order of interface service registration center, the interface service registration center is according to the interface Interface registry is established in registration table order;

The registration table renewal request that the interface service registration center sends is received, the registration table renewal request is according to institute State the interface registration request of interface service registration center transmission and generate;

Request is updated according to the registration table and sends registration table more newer command to the interface service registration center, it is described to connect Mouth service register center is carried out according to the registration table more newer command and the interface registration request to the interface registry Renewal.

Alternatively, the interface registration request includes the interface code and interface interchange method character of required registration interface String, the registration table renewal request include the interface code of required registration interface.

Alternatively, the interface proxy program by the computing device when also realize following steps:

Interface registration white list is established, the interface registration white list includes allowing to enter to the interface service registration center The interface code of row registration;

According to registration table renewal request judge it is described needed for registration interface interface code with the presence or absence of connecing in described In mouth registration white list;

When the interface code is present in the interface registration white list, registration table more newer command is generated.

Alternatively, the interface proxy program by the computing device when also realize following steps:

Establish interface interchange side's white list;

The interface interchange request of the interface interchange side is received, the interface interchange request includes the identity of interface interchange side Code;

Judge that the interface interchange side whether there is in the interface interchange according to the identity code of the interface interchange side In square white list;

If the interface interchange side is present in interface interchange side's white list, please be seek survival according to the interface interchange Corresponding interface is called into interface interchange order, and by the interface service registration center.

Alternatively, the interface interchange request also includes the interface code of required calling interface, the interface proxy program Following steps are also realized during by the computing device:

By obtaining the interface code in the interface interchange request, interface interchange life is generated according to the interface code Order.

Alternatively, the interface proxy program by the computing device when also realize following steps:

Judge to whether there is the interface in called state in the interface of the interface registration center registration;

If the interface of the interface registration center registration has the interface of called state, implement to the interface that is called Monitoring.

Alternatively, the interface proxy program by the computing device when also realize following steps:

The abnormal monitoring of the called interface of monitoring, the abnormal monitoring includes the called interface is in preset time It is no data-transmission interruptions to be present.

In addition, to achieve the above object, the present invention also provides a kind of interface proxy method, and this method is applied to application service Device, methods described include:

To the transmission interface registration table order of interface service registration center, the interface service registration center is according to the interface Interface registry is established in registration table order;

The registration table renewal request that the interface service registration center sends is received, the registration table renewal request is according to institute State the interface registration request of interface service registration center transmission and generate;

Request is updated according to the registration table and sends registration table more newer command to the interface service registration center, it is described to connect Mouth service register center is carried out according to the registration table more newer command and the interface registration request to the interface registry Renewal.

Alternatively, the interface registration request includes the interface code and interface interchange method character of required registration interface String, the registration table renewal request include the interface code of required registration interface.

Alternatively, transmission registration table more newer command to the interface service is asked to be noted in described updated according to the registration table Before the step of volume center, methods described also includes:

Interface registration white list is established, the interface registration white list includes allowing to enter to the interface service registration center The interface code of row registration;

According to registration table renewal request judge it is described needed for registration interface interface code with the presence or absence of connecing in described In mouth registration white list;

When the interface code is present in the interface registration white list, registration table more newer command is generated.

Alternatively, methods described also includes:

Establish interface interchange side's white list;

The interface interchange request of the interface interchange side is received, the interface interchange request includes the identity of interface interchange side Code;

Judge that the interface interchange side whether there is in the interface interchange according to the identity code of the interface interchange side In square white list;

If the interface interchange side is present in interface interchange side's white list, please be seek survival according to the interface interchange Corresponding interface is called into interface interchange order, and by the interface service registration center.

Alternatively, the interface interchange request also includes the interface code of required calling interface, described according to the interface The step of call request generation interface interchange order, further comprises:

By obtaining the interface code in the interface interchange request, interface interchange life is generated according to the interface code Order.

Alternatively, methods described also includes:

Judge to whether there is the interface in called state in the interface of the interface registration center registration;

If the interface of the interface registration center registration has the interface of called state, implement to the interface that is called Monitoring.

Alternatively, it is described implement to be called interface monitoring the step of, specifically include:

The performance monitoring of the called interface of monitoring, the performance monitoring include the digital independent speed of the called interface Rate, data deposit writing speed.

Alternatively, it is described implement to be called interface monitoring the step of, specifically also include:

The abnormal monitoring of the called interface of monitoring, the abnormal monitoring includes the called interface is in preset time It is no data-transmission interruptions to be present.

Further, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer Readable storage medium storing program for executing is stored with interface proxy program, and the interface proxy program can be by least one computing device, so that institute The step of stating at least one computing device interface proxy method described above.

Compared to prior art, application server proposed by the invention, interface proxy method and computer-readable storage Medium, first, to the transmission interface registration table order of interface service registration center, the interface service registration center connects according to Interface registry is established in mouth registration table order;Then, the registration table renewal request that the interface service registration center sends is received, The registration table renewal request generates according to the interface registration request that the interface service registration center sends;Finally, according to Registration table renewal request sends registration table more newer command to the interface service registration center, in the interface service registration The heart is updated according to the registration table more newer command and the interface registration request to the interface registry.So, both The drawbacks of can avoiding being difficult to form unified interface authority management in the prior art, the enough docking port information traversal queries of and can, The essential information of interface is maintained in registration table by can while registration, forms good interface management.

Brief description of the drawings

Fig. 1 is the schematic diagram of one optional hardware structure of application server in each embodiment of the present invention;

Fig. 2 is the program module schematic diagram of interface proxy program first embodiment of the present invention;

Fig. 3 is the program module schematic diagram of second, third and fourth embodiment of interface proxy program of the present invention;

Fig. 4 is the flow chart of interface proxy method first embodiment of the present invention;

Fig. 5 is the flow chart of interface proxy method second embodiment of the present invention;

Fig. 6 is the flow chart of interface proxy method 3rd embodiment of the present invention;

Fig. 7 is the flow chart of interface proxy method fourth embodiment of the present invention.

Reference:

The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.

Embodiment

In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.Based on the embodiment in the present invention, those of ordinary skill in the art are not before creative work is made The every other embodiment obtained is put, belongs to the scope of protection of the invention.

It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for describing purpose, and can not It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Thus, define " the One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical scheme With reference to occurring conflicting or will be understood that the combination of this technical scheme is not present when can not realize, also not in application claims Protection domain within.

As shown in fig.1, it is the schematic diagram of 1 one optional hardware structure of application server in each embodiment of the present invention.

The application server 1 can be rack-mount server, blade server, tower server or cabinet-type service The computing devices such as device, the application server 1 can be the servers that independent server or multiple servers are formed Cluster.

In the present embodiment, the application server 1 may include, but be not limited only to, and company can be in communication with each other by system bus Connect memory 11, processor 12, network interface 13.It is pointed out that Fig. 1 illustrate only the application clothes with component 11-13 It is engaged in device 1, it should be understood that be not required for implementing all components shown, the implementation that can be substituted is more or less Component.

Wherein, the memory 11 comprises at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with Machine access memory (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), it is programmable only Read memory (PROM), magnetic storage, disk, CD etc..In certain embodiments, the memory 11 can be described answers With the hard disk or internal memory of the internal storage unit of server 1, such as the application server 1.In further embodiments, it is described to deposit Reservoir 11 can also be that the plug-in type being equipped with the External memory equipment of the application server 1, such as the application server 1 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 1 or wrap Include its External memory equipment.In the present embodiment, the memory 11 is generally used for the behaviour that storage is installed on the application server 1 Make system and types of applications software, such as program code of the interface proxy program 200 etc..In addition, the memory 11 is also It can be used for temporarily storing the Various types of data that has exported or will export.

The processor 12 can be in certain embodiments central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is generally used for should described in control With the overall operation of server 1, such as execution data interaction or the control of communication correlation and processing etc..In the present embodiment, institute State processor 12 to be used to run the program code stored in the memory 11 or processing data, such as run described interface Agent 200 etc..

The network interface 13 may include radio network interface or wired network interface, and the network interface 13 is generally used for Communication connection is established between the application server 1 and other electronic equipments.In the present embodiment, the network interface 13 is mainly used In the application server 1 is connected with the various interfaces of database side by network (Fig. 1 is not shown), in the application service Data transmission channel and communication connection are established between device 1 and the various interfaces of database side.The network can be in enterprise Portion's net (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile Communication, GSM), WCDMA (Wideband Code Division Multiple Access, WCDMA), the wirelessly or non-wirelessly network such as 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network.

In the present embodiment, when being installed in the application server 1 and having run interface proxy program 200, connect when described When mouth Agent 200 is run, the application server 1 is described to the transmission interface registration table order of interface service registration center Interface service registration center establishes interface registry according to the interface registry order;Receive the interface service registration center The registration table renewal request of transmission, the interface that the registration table renewal request is sent according to the interface service registration center are registered Ask and generate;Request is updated according to the registration table and sends registration table more newer command to the interface service registration center, institute Interface service registration center is stated according to the registration table more newer command and the interface registration request to the interface registry It is updated.Enable the docking port information traversal queries of application server 1, can is by interface while registration Essential information is maintained in registration table, forms good interface management.

So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail Energy.Below, above-mentioned application environment and relevant device will be based on, proposes each embodiment of the present invention.

First, the present invention proposes a kind of interface proxy program 200.

As shown in fig.2, it is the Program modual graph of the first embodiment of interface proxy program 200 of the present invention.In the present embodiment, Described interface proxy program 200 can be divided into one or more modules, and one or more of modules are stored in In the memory 11, and it is performed by one or more processors (being the processor 12 in the present embodiment), to complete this Invention.For example, in fig. 2, described interface proxy program 200 can be divided into sending module 201 and receiving module 202. Program module alleged by the present invention is the series of computation machine programmed instruction section for referring to complete specific function, is more suitable for than program In implementation procedure of the description interface proxy program 200 in the application server 1.Each program module 201- is put up with below 202 function is described in detail.

The sending module 201, for the transmission interface registration table order of interface service registration center.In the present embodiment, The application server 1 includes interface service registration center (Fig. 2 is not shown), and the interface service registration center is mainly used in root Interface registry is established according to the interface registry order.

The receiving module 202, update request for receiving the registration table that the interface service registration center sends.This reality Apply in example, the registration table renewal request generates according to the interface registration request that the interface service registration center sends.

The sending module 201, is additionally operable to update request according to the registration table and sends registration table more newer command to described Interface service registration center.In the present embodiment, the interface service registration center is according to the registration table more newer command and institute Interface registration request is stated to be updated the interface registry.

Further, the interface registration request includes the interface code and interface interchange method word of required registration interface Symbol string, the registration table renewal request include the interface code of required registration interface.

By said procedure module 201-202, interface proxy program 200 proposed by the invention, first, to interface service Registration center's transmission interface registration table order, the interface service registration center establish interface according to the interface registry order Registration table;Then, the registration table renewal request that the interface service registration center sends is received, rooting is asked in the registration table renewal Generated according to the interface registration request that the interface service registration center sends;Finally, request hair is updated according to the registration table Registration table more newer command to the interface service registration center, the interface service registration center is sent to be updated according to the registration table Order and the interface registration request are updated to the interface registry.So, it is difficult in the prior art both to have avoided To form the drawbacks of unified interface authority manages, the enough docking port information traversal queries of and can, can will while registration The essential information of interface is maintained in registration table, forms good interface management.

Further, the above-mentioned first embodiment based on interface proxy program 200 of the present invention, propose that the second of the present invention is real Apply example (as shown in Figure 3).In the present embodiment, the interface proxy program 200 also include establish module 203, judge module 204 and Execution module 205, wherein:

Described to establish module 203, for establishing interface registration white list, the interface registration white list includes allowing to institute State the interface code that interface service registration center is registered.

The judge module 204, for according to the registration table renewal request judge it is described needed for registration interface interface Code whether there is to be registered in white list in the interface.

The execution module 205, for when the interface code is present in the interface registration white list, generation to be noted Volume table more newer command.

By said procedure module 203-205, interface proxy program 200 proposed by the invention can be by establishing interface The white list of registration, it can so prevent unsafe registration table from updating.

Further, first and second above-mentioned embodiment based on interface proxy program 200 of the present invention, propose the present invention's 3rd embodiment (as shown in Figure 3).In the present embodiment:

It is described to establish module 203, it is additionally operable to establish interface interchange side's white list.In the present embodiment, the interface interchange side White list includes the identity code for allowing the interface interchange side of calling.

The receiving module 201, it is additionally operable to receive the interface interchange request of the interface interchange side, the interface interchange please Seek the identity code including interface interchange side.In the present embodiment, the interface interchange request also includes connecing for required calling interface Mouth code.

The judge module 204, it is additionally operable to judge the interface interchange side according to the identity code of the interface interchange side With the presence or absence of in interface interchange side's white list.

The execution module 205, it is additionally operable to when the interface interchange side is present in interface interchange side's white list, then Generation interface interchange order is asked according to the interface interchange, and is called by the interface service registration center and connect accordingly Mouthful.

In the present embodiment, described the step of asking generation interface interchange order according to the interface interchange, mainly includes:Hold Row module 205 generates interface interchange by obtaining the interface code in the interface interchange request according to the interface code Order.

By said procedure module 201-205, interface proxy program 200 proposed by the invention can be by establishing interface The white list of called side, it can so prevent from calling unsafe interface.And called side reduces exploitation amount, in addition, calling Side can also be used unified caller to be called.

Further, the above-mentioned first embodiment based on interface proxy program 200 of the present invention, propose that the 4th of the present invention is real Apply example (as shown in Figure 3).In the present embodiment:

The judge module 204, is additionally operable to:Judge to whether there is in the interface of the interface registration center registration and be in quilt The interface of calling state.

If the interface of called state be present in the interface of the interface registration center registration, the execution module 205, also For implementing the monitoring to the interface that is called.In the present embodiment, the execution module 205 mainly performs the property to the interface that is called It can monitor, data read rates, the data that the performance monitoring includes the called interface deposit writing speed.

Further, the execution module 205 also performs the abnormal monitoring to the interface that is called, and the abnormal monitoring includes The called interface whether there is data-transmission interruptions in preset time.

By said procedure module 201-205, interface proxy program 200 proposed by the invention may determine that the interface It whether there is the interface in called state in the interface of registration center's registration;If the interface of the interface registration center registration In the presence of called state interface when, implement the monitoring to the interface that is called, be easy to increase every monitoring or the interface of interface Control of authority etc..

In addition, the present invention also proposes a kind of interface proxy method.

As shown in fig.4, it is the flow chart of interface proxy method first embodiment of the present invention.In the present embodiment, according to Different demands, the execution sequence of the step in flow chart shown in Fig. 4 can change, and some steps can be omitted.

Step S401, the application server 1 is to the transmission interface registration table order of interface service registration center.

In the present embodiment, the application server 1 includes interface service registration center (Fig. 2 is not shown), the interface clothes Business registration center is mainly used in establishing interface registry according to the interface registry order.

Step S402, receive the registration table renewal request that the interface service registration center sends.It is described in the present embodiment Registration table renewal request generates according to the interface registration request that the interface service registration center sends.

Step S403, request is updated according to the registration table and sends registration table more newer command into interface service registration The heart.In the present embodiment, the interface service registration center is according to the registration table more newer command and the interface registration request The interface registry is updated.

Further, the interface registration request includes the interface code and interface interchange method word of required registration interface Symbol string, the registration table renewal request include the interface code of required registration interface.

By above-mentioned steps S401-403, interface proxy method proposed by the invention, first, in being registered to interface service Heart transmission interface registration table order, the interface service registration center establish interface according to the interface registry order and registered Table;Then, the registration table renewal request that the interface service registration center sends is received, the registration table renewal request is according to institute State the interface registration request of interface service registration center transmission and generate;Finally, request is updated according to the registration table and sends note Volume table more newer command is to the interface service registration center, and the interface service registration center is according to the registration table more newer command And the interface registration request is updated to the interface registry.So, can both avoid being difficult to shape in the prior art Into the drawbacks of unified interface authority management, the enough docking port information traversal queries of and can, can is by interface while registration Essential information be maintained in registration table, form good interface management.

As shown in fig.5, it is the flow chart of interface proxy method second embodiment of the present invention.In the present embodiment, according to Different demands, the execution sequence of the step in flow chart shown in Fig. 5 can change, and some steps can be omitted.

Step S501, the application server 1 is to the transmission interface registration table order of interface service registration center.

In the present embodiment, the application server 2 includes interface service registration center (Fig. 2 is not shown), the interface clothes Business registration center is mainly used in establishing interface registry according to the interface registry order.

Step S502, receive the registration table renewal request that the interface service registration center sends.It is described in the present embodiment Registration table renewal request generates according to the interface registration request that the interface service registration center sends.

Step S503, request is updated according to the registration table and sends registration table more newer command into interface service registration The heart.In the present embodiment, the interface service registration center is according to the registration table more newer command and the interface registration request The interface registry is updated.

Further, the interface registration request includes the interface code and interface interchange method word of required registration interface Symbol string, the registration table renewal request include the interface code of required registration interface.

Step S504, establish interface registration white list.The interface registration white list includes allowing to the interface service The interface code that registration center is registered.

Step S505, according to registration table renewal request judge it is described needed for the interface code of registration interface whether there is Registered in the interface in white list.When the interface code is present in the interface registration white list, step is performed S506, otherwise, step terminate.

Step S506, generate registration table more newer command.

By above-mentioned steps S501-506, interface proxy method proposed by the invention, can be registered by establishing interface White list, can so prevent unsafe registration table from updating.

As shown in fig.6, it is the implementation process diagram of interface proxy method 3rd embodiment of the present invention.In the present embodiment In, according to different demands, the execution sequence of the step in flow chart shown in Fig. 6 can change, and some steps can be omitted.

Step S601, the application server 1 is to the transmission interface registration table order of interface service registration center.

In the present embodiment, the application server 2 includes interface service registration center (Fig. 2 is not shown), the interface clothes Business registration center is mainly used in establishing interface registry according to the interface registry order.

Step S602, receive the registration table renewal request that the interface service registration center sends.It is described in the present embodiment Registration table renewal request generates according to the interface registration request that the interface service registration center sends.

Step S603, request is updated according to the registration table and sends registration table more newer command into interface service registration The heart.In the present embodiment, the interface service registration center is according to the registration table more newer command and the interface registration request The interface registry is updated.

Further, the interface registration request includes the interface code and interface interchange method word of required registration interface Symbol string, the registration table renewal request include the interface code of required registration interface.

Step S604, establish interface interchange side's white list.In the present embodiment, the interface interchange Fang Baiming includes allowing to adjust The identity code of interface interchange side.

Step S605, receives the interface interchange request of the interface interchange side, and the interface interchange request includes interface tune With the identity code of side.In the present embodiment, the interface interchange request also includes the interface code of required calling interface.

Step S606, judge that the interface interchange side whether there is in described according to the identity code of the interface interchange side In interface interchange side's white list.When the interface interchange side is present in interface interchange side's white list, step is performed S607, otherwise, step terminate.

Step S607, generation interface interchange order is asked according to the interface interchange, and registered by the interface service Call corresponding interface in center.

In the present embodiment, described the step of asking generation interface interchange order according to the interface interchange, mainly includes:Institute Application server 1 is stated by obtaining the interface code in the interface interchange request, and interface is generated according to the interface code Call instruction.

By above-mentioned steps S601-607, interface proxy method proposed by the invention can be by establishing interface interchange The white list of side, can so prevent from calling unsafe interface.And called side reduces exploitation amount, in addition, called side Unified caller can be used to be called.

As shown in fig.7, it is the flow chart of interface proxy method fourth embodiment of the present invention.In the present embodiment, according to Different demands, the execution sequence of the step in flow chart shown in Fig. 7 can change, and some steps can be omitted.

Step S701, judge to whether there is connecing in called state in the interface of the interface registration center registration Mouthful.If the interface of the interface registration center registration has the interface of called state, step S702, otherwise, step are performed Terminate.

Step S702, implement the monitoring to the interface that is called.

In the present embodiment, the application server 1 mainly performs the performance monitoring to the interface that is called, the performance monitoring Data read rates, data including the called interface deposit writing speed.

Further, the application server 1 also performs the abnormal monitoring to the interface that is called, and the abnormal monitoring includes The called interface whether there is data-transmission interruptions in preset time.

By above-mentioned steps S701-702, interface proxy method proposed by the invention, it can be determined that the interface registration It whether there is the interface in called state in the interface of center registration;If the interface of the interface registration center registration is present During the interface of called state, implement the monitoring to the interface that is called, be easy to increase every monitoring or the interface authority of interface Control etc..

The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.

Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, computer, clothes Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.

The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. interface proxy method, applied to application server, it is characterised in that methods described includes:
    To the transmission interface registration table order of interface service registration center, the interface service registration center registers according to the interface Interface registry is established in table order;
    The registration table renewal request that the interface service registration center sends is received, the registration table renewal request connects according to Interface registration request that mouthful service register center is sent and generate;And
    Request is updated according to the registration table and sends registration table more newer command to the interface service registration center, the interface clothes Business registration center is updated according to the registration table more newer command and the interface registration request to the interface registry.
  2. 2. interface proxy method as claimed in claim 1, it is characterised in that the interface registration request includes required registration and connect The interface code and interface interchange method character string of mouth, the registration table renewal request include the interface generation of required registration interface Code.
  3. 3. interface proxy method as claimed in claim 1, it is characterised in that request hair is updated according to the registration table described Before sending registration table more newer command to the step of interface service registration center, methods described also includes:
    Interface registration white list is established, the interface registration white list includes allowing to be noted to the interface service registration center The interface code of volume;
    According to the registration table renewal request judge it is described needed for registration interface interface code with the presence or absence of in the interface note In volume white list;And
    When the interface code is present in the interface registration white list, registration table more newer command is generated.
  4. 4. interface proxy method as claimed in claim 1, it is characterised in that methods described also includes:
    Establish interface interchange side's white list;
    The interface interchange request of the interface interchange side is received, the interface interchange request includes the identity generation of interface interchange side Code;
    Judge that the interface interchange side whether there is in the interface interchange Fang Bai according to the identity code of the interface interchange side In list;And
    If the interface interchange side is present in interface interchange side's white list, generation is asked to connect according to the interface interchange Mouth call instruction, and pass through the interface service registration center and call corresponding interface.
  5. 5. interface proxy method as claimed in claim 4, it is characterised in that the interface interchange request also includes required call The interface code of interface, described the step of asking generation interface interchange order according to the interface interchange, further comprise:
    By obtaining the interface code in the interface interchange request, interface interchange order is generated according to the interface code.
  6. 6. interface proxy method as claimed in claim 1, it is characterised in that methods described also includes:
    Judge to whether there is the interface in called state in the interface of the interface registration center registration;And
    If the interface of the interface registration center registration has the interface of called state, implement the prison to the interface that is called Control.
  7. 7. interface proxy method as claimed in claim 6, it is characterised in that the step for implementing the monitoring to the interface that is called Suddenly, specifically include:
    The performance monitoring of the called interface of monitoring, the performance monitoring include the data read rates of the called interface, number According to depositing writing speed.
  8. 8. interface proxy method as claimed in claim 7, it is characterised in that the step for implementing the monitoring to the interface that is called Suddenly, specifically also include:
    Whether the abnormal monitoring of the called interface of monitoring, the abnormal monitoring are deposited including the called interface in preset time Break in the data transmission.
  9. 9. a kind of application server, it is characterised in that the application server includes memory, processor, on the memory The interface proxy program that can be run on the processor is stored with, the interface proxy program is by real during the computing device Now the step of interface proxy method as any one of claim 1-8.
  10. 10. a kind of computer-readable recording medium, the computer-readable recording medium storage has interface proxy program, described to connect Mouth Agent can be by least one computing device, so as to appoint at least one computing device such as claim 1-8 The step of interface proxy method described in one.
CN201710874874.3A 2017-09-25 2017-09-25 interface proxy method and application server CN107682426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710874874.3A CN107682426A (en) 2017-09-25 2017-09-25 interface proxy method and application server

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710874874.3A CN107682426A (en) 2017-09-25 2017-09-25 interface proxy method and application server
PCT/CN2018/076147 WO2019056693A1 (en) 2017-09-25 2018-02-10 Interface proxying method and application server

Publications (1)

Publication Number Publication Date
CN107682426A true CN107682426A (en) 2018-02-09

Family

ID=61137053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710874874.3A CN107682426A (en) 2017-09-25 2017-09-25 interface proxy method and application server

Country Status (2)

Country Link
CN (1) CN107682426A (en)
WO (1) WO2019056693A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056693A1 (en) * 2017-09-25 2019-03-28 平安科技(深圳)有限公司 Interface proxying method and application server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408917A (en) * 2008-10-22 2009-04-15 厦门市美亚柏科资讯科技有限公司 Method and system for detecting application program behavior legality
CN102523206A (en) * 2011-12-06 2012-06-27 公安部交通管理科学研究所 Information system associated sharing and interoperation platform
CN103049438A (en) * 2011-10-11 2013-04-17 镇江精英软件科技有限公司 Method for managing data access port
CN105389619A (en) * 2014-08-31 2016-03-09 通用电气公司 Methods and systems for improving connections within healthcare ecosystem
CN106453519A (en) * 2016-09-21 2017-02-22 合网络技术(北京)有限公司 Interface call method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050273788A1 (en) * 2004-06-04 2005-12-08 Vinay Gupta Event registration operating in a common information model environment
CN102520957A (en) * 2011-12-19 2012-06-27 厦门雅迅网络股份有限公司 Method for software separation design of embedded system
CN107682426A (en) * 2017-09-25 2018-02-09 平安科技(深圳)有限公司 interface proxy method and application server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101408917A (en) * 2008-10-22 2009-04-15 厦门市美亚柏科资讯科技有限公司 Method and system for detecting application program behavior legality
CN103049438A (en) * 2011-10-11 2013-04-17 镇江精英软件科技有限公司 Method for managing data access port
CN102523206A (en) * 2011-12-06 2012-06-27 公安部交通管理科学研究所 Information system associated sharing and interoperation platform
CN105389619A (en) * 2014-08-31 2016-03-09 通用电气公司 Methods and systems for improving connections within healthcare ecosystem
CN106453519A (en) * 2016-09-21 2017-02-22 合网络技术(北京)有限公司 Interface call method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019056693A1 (en) * 2017-09-25 2019-03-28 平安科技(深圳)有限公司 Interface proxying method and application server

Also Published As

Publication number Publication date
WO2019056693A1 (en) 2019-03-28

Similar Documents

Publication Publication Date Title
US9185179B2 (en) Re-establishing push notification channels via user identifiers
US9672024B2 (en) Techniques for automatic software provisioning
US9019927B2 (en) Optimization of the presence information refresh for a wireless device
EP3534320A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
CN105979009B (en) A kind of increase load automatic balancing method for cloud application container
CA2700174C (en) Apparatus and methods for network identification of open market wireless devices
US9325785B2 (en) Device, system, and method for client-governed session persistency between one or more clients and servers of a data center
US10225145B2 (en) Method and device for updating client
CN104951353A (en) VNF (virtual network function) acceleration method and device
KR100728076B1 (en) Method, device and system for synchronizing of data providing for the handling of an interrupted synchronization process
CN104144098B (en) Information push method, system and push server equipment
JP6444405B2 (en) Software update method, system and device
WO2006137698A1 (en) Method and system for managing log information of user using location servers belonging to pluality of groups
US9692846B2 (en) System, device and method for providing push service using feedback message
CN102316043B (en) Port virtualization method, switch and communication system
CN103428198B (en) network device, system and method
WO2003029966A3 (en) Personal computer upgrade
CN102523276B (en) A kind of method, equipment and system managing mobile broadband equipment
CN100488131C (en) System server for data processing with multiple clients and a data processing method
CN105373396B (en) Update of plug-in loading method and device in plug-platform
CN104092756B (en) A kind of resource dynamic distributing method of the cloud storage system based on DHT mechanism
CN104639361A (en) Network service template management method and device
CN104778178B (en) A kind of application class method, apparatus and service server
CN103580918B (en) A kind of configuration data processing method and device
CN103064960A (en) Method and equipment for database query

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