CN109672553A - Gateway Dynamic Configuration, system, computer equipment and storage medium - Google Patents

Gateway Dynamic Configuration, system, computer equipment and storage medium Download PDF

Info

Publication number
CN109672553A
CN109672553A CN201811237828.3A CN201811237828A CN109672553A CN 109672553 A CN109672553 A CN 109672553A CN 201811237828 A CN201811237828 A CN 201811237828A CN 109672553 A CN109672553 A CN 109672553A
Authority
CN
China
Prior art keywords
class file
file
class
specified folder
gateway
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.)
Withdrawn
Application number
CN201811237828.3A
Other languages
Chinese (zh)
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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811237828.3A priority Critical patent/CN109672553A/en
Publication of CN109672553A publication Critical patent/CN109672553A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1408Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic by monitoring network traffic
    • H04L63/1416Event detection, e.g. attack signature detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • H04L63/205Network architectures or network communication protocols for network security for managing network security; network security policies in general involving negotiation or determination of the one or more network security mechanisms to be used, e.g. by negotiation between the client and the server or between peers or by selection according to the capabilities of the entities involved

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a kind of gateway Dynamic Configurations, the described method includes: at least one class file of heat deployment, and the class file is stored into specified folder, definition has expansible Zuul component filter in the class file, and the Zuul component filter is for executing one or more gateway service functions;When target program is in operating status, monitor whether the class file in the specified folder occurs to be modified event;And if the class file in the specified folder occurs to be loaded into modified class file in memory, by class loading procedure by modification event to execute the corresponding gateway service function of modified class file.The embodiment of the invention provides gateway dynamic configuration system, computer equipment and computers can storage medium.Efficiently upgrade gateway service function without maintenance shut-downs the response efficiency of reply attack and the duration of gateway service can be effectively promoted in the embodiment of the present invention.

Description

Gateway Dynamic Configuration, system, computer equipment and storage medium
Technical field
The present embodiments relate to network technique field more particularly to a kind of gateway Dynamic Configurations, system, computer Equipment and computer readable storage medium.
Background technique
Gateway provides the channel of network service as operator, digital content provider and network equipment vendor, can be with Multiple network applications and the services such as wideband data, voice, video, network security, energy management, health monitoring are provided.For example, net The entrance as server is closed, is applied not only to receive the solicited message of client, is requested according to the solicited message to server Content needed for client is also used to provide the service functions such as safety check for server.
With the appearance of network attack, the increasingly serious challenge of the security facing of server.Such as, more known today Network attack can be serviced from provide server can not to complete destruction, control server.To cope with above situation, Server needs frequent loophole reparation, iterative program version.But reply network attack has certain lack through the above way It falls into, such as: program version iteration cycle is generally longer, can not cope with paroxysmal assault in time;Version iteration needs Restart server or related software, lead to out-of-service, to reduce user experience.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is that providing a kind of gateway Dynamic Configuration, system, computer equipment And computer readable storage medium, paroxysmal assault can be corresponded in time, and without restarting server or correlation Software keeps the duration of service, promotes user experience.
To achieve the above object, the embodiment of the invention provides a kind of gateway Dynamic Configurations, comprising the following steps: heat At least one class file is disposed, and the class file is stored into specified folder, there is expansible definition in the class file Zuul component filter, the Zuul component filter is for executing one or more gateway service functions;Work as target program When in operating status, monitor whether the class file in the specified folder occurs to be modified event;And it is if described The class file in specified folder occurs then to be loaded into modified class file by class loading procedure by modification event In memory, to execute the corresponding gateway service function of modified class file.
Further, whether the class file in the monitoring specified folder occurs to be modified the step of event Suddenly, comprising:
The specified folder is scanned with preset frequency, reads the class file to obtain the file of class file letter Breath, the file information include being loaded time and last time the last time by modification time;
Compare the last time be loaded the time whether be less than it is described last time by modification time;And
If the last time is loaded the time and is less than the last time by modification time, judge in the specified folder The class file occur by modification event.
Further, the class file is configured with filename, the class file in the monitoring specified folder Whether modified event the step of is occurred, comprising:
The specified folder is scanned with preset frequency, is indexed according to file name and reads the class file;
Whether identical compare the class file that the class file under file name and the last time under file name are loaded; And
If it is different, the class file under judging file name occurs by modification event.
Further, one or more of gateway service functions include: monitoring function, permission control function, dynamic road By function and/or load-balancing function.
To achieve the above object, the embodiment of the invention also provides a kind of computer equipment, the computer equipment includes Memory, processor are stored with the gateway dynamic configuration system that can be run on the processor, the net on the memory It closes dynamic configuration system and realizes following steps when being executed by the processor: at least one class file of heat deployment, and by the class File is stored into specified folder, and definition has expansible Zuul component filter, the Zuul component in the class file Filter is for executing one or more gateway service functions;When target program is in operating status, the specified text is monitored Whether the class file in part folder occurs to be modified event;And if quilt occurs for the class file in the specified folder Modified class file is then loaded into memory by modification event by class loading procedure, to execute modified class file pair The gateway service function of answering.
Further, whether the class file in the monitoring specified folder occurs to be modified the step of event Suddenly, comprising:
The specified folder is scanned with preset frequency, reads the class file to obtain the file of class file letter Breath, the file information include being loaded time and last time the last time by modification time;
Compare the last time be loaded the time whether be less than it is described last time by modification time;And
If the last time is loaded the time and is less than the last time by modification time, judge in the specified folder The class file occur by modification event.
Further, the class file is configured with filename, the class file in the monitoring specified folder Whether modified event the step of is occurred, comprising:
The specified folder is scanned with preset frequency, is indexed according to file name and reads the class file;
Whether identical compare the class file that the class file under file name and the last time under file name are loaded; And
If it is different, the class file under judging file name occurs by modification event.
Further, one or more of gateway service functions include: monitoring function, permission control function, dynamic road By function and/or load-balancing function.
To achieve the above object, the embodiment of the invention also provides a kind of gateway dynamic configuration systems, comprising:
Heat deployment module is used at least one class file of heat deployment, and the class file is stored into specified folder, Definition has expansible Zuul component filter in the class file, and the Zuul component filter is for executing one or more Gateway service function;
Monitoring modular, for when target program is in operating status, monitoring the text of the class in the specified folder Whether part occurs to be modified event;And
Class file execution module, if occurred for the class file in the specified folder by modification event, Modified class file is loaded into memory by class loading procedure, to execute the corresponding gateway service of modified class file Function.
To achieve the above object, the embodiment of the invention also provides a kind of computer readable storage medium, the computers Computer program is stored in readable storage medium storing program for executing, the computer program can be performed by least one processor, so that institute State the step of at least one processor executes gateway Dynamic Configuration as discussed.
Gateway Dynamic Configuration, system, computer equipment and computer-readable storage medium provided in an embodiment of the present invention Matter can modify Zuul gateway service function according to current business demand in class file, such as increase the control of IP blacklist, increase newly Black list user etc., which can be loaded dynamically in memory, without startup program or hardware Carrier, therefore reached the technical effect of not maintenance shut-downs routing iinformation.For example, when facing uncertain attack, it can Efficiently to provide the gateway service function of coping with the attack, without maintenance shut-downs, being effectively promoted should attack against each other Hit the response efficiency of event and the duration of gateway service.
Detailed description of the invention
Fig. 1 is the flow chart of gateway Dynamic Configuration embodiment one of the present invention.
Fig. 2 is the flow chart of gateway Dynamic Configuration embodiment two of the present invention.
Fig. 3 is the flow chart of gateway Dynamic Configuration embodiment three of the present invention.
Fig. 4 is the program module schematic diagram of gateway dynamic configuration system example IV of the present invention.
Fig. 5 is the hardware structural diagram of computer equipment embodiment five of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
For ease of understanding, " class file " herein is explained first.The class file is the bytecode text after compiling Part generally includes instruction, parameter etc..By taking java class file as an example: in Java operation system, Java compiler is each Java Class (business) generates a java class file, and this file is protected using the java class file format that Java Virtual Machine (JVM) is defined It deposits, and is loaded by Java Virtual Machine and explain execution.For current operation system, system maintenance personnel are according to needed for business Function carries out the application that the business is supported in corresponding exploitation i.e. compiling and passes through Java compiler or class after compiling debugging As CompilerTools the application of the business generated into corresponding java class file.Certainly, the present embodiment is not limited to Java lattice The class file of formula, can also class file in other formats, such as C++.
Embodiment one
Refering to fig. 1, the step flow chart of the gateway Dynamic Configuration of the embodiment of the present invention one is shown.It is appreciated that Flow chart in this method embodiment, which is not used in, is defined the sequence for executing step.Below using server as executing subject into Row exemplary description.It is specific as follows.
Step S100, at least one class file of heat deployment, and the class file is stored into specified folder.
Heat deployment refers in target program operating status, without starting application program or hardware carrier, and may be implemented The updating operation of program.It, can will be direct after the A.Class file is modified by taking class file (A.Class file) as an example The modified A.Class file can be loaded into memory by class loading procedure, to replace the A.Class before modification File, aforesaid operations do not need to restart target program or hardware carrier.
Definition has expansible Zuul component filter (also known as ZuulFilter) in the class file.Zuul is An API (application programming interface, Application Programming Inerface) the gateway clothes of Netflix open source Business device, for providing dynamic routing, monitoring, elasticity, the gateway service of safety.Zuul provides different types of filter for locating Reason request, these ZuulFilter are for executing one or more gateway service functions: monitoring function (blacklist interception, modification Blacklist etc.), permission control function, dynamic routing function, load-balancing function etc..It is appreciated that the class text in the present embodiment Part is the filter of a customized Zuul component, inherits ZuulFlieter class, realizes the abstract side of ZuuFliter class Method, customized some gateway service functions.Class file in the present embodiment has scalability, and definition has connecing for extension Mouthful.Illustratively, an automatic extension grammer can also be defined in class file, which is used for basis Current network environment (e.g., the attack of appearance), to extend corresponding network service function.
The class file is stored into specified folder, specifically, the class file can be stored in CDN (content point Hairnet network, Content Delivery Network) in repository, it can also be stored in other specified databases.
Step S102, when target program is in operating status, the class file monitored in the specified folder is No generation is by modification event.
In the present embodiment, target program is associated with the class file, needs to call the class file in other words.When the target journey When sequence is in operating status middle, class file (but may be previous legacy version) may be loaded with, it is therefore desirable to by rear Continuous step confirms: the target program currently-loaded class file whether be newest modification in specified folder class text Part.
When the target program is in operating status, which can open a thread, and the thread is for monitoring Whether the class file in the specified folder occurs to be modified event.
Step S104 will be modified if the class file in the specified folder occurs by modification event Class file is loaded into memory by class loading procedure, to execute the corresponding gateway service function of modified class file.
After modified class file is loaded into memory, which is carried out that following behaviour can be executed Make: 1) verification operation, to ensure that the byte stream inputted can correctly be resolved and be stored in method area;2) prepare operation, become for class Simultaneously class variable initial value is arranged in amount storage allocation;3) symbolic reference in constant pool is replaced with and directly to be quoted by parsing operation Process, such as class or interface, field, class method, interface method are parsed;4) initialization operation executes defined in class Code;5) using operation, according to the gateway service function of the definition in class file.
Embodiment two
Referring to Fig. 2, showing the step flow chart of the gateway Dynamic Configuration of the embodiment of the present invention two.The present embodiment A kind of gateway Dynamic Configuration in, comprising the following steps:
Step S200, at least one class file of heat deployment, and the class file is stored into specified folder.The class Definition has expansible Zuul component filter in file, and the Zuul component filter is for executing one or more gateway clothes Business function.
Whether step S202, monitoring objective program are in operating status.If so, entering step S204, otherwise continue to supervise It surveys.
Step S204 scans the specified folder with preset frequency, reads the class file to obtain the class file The file information, the file information include be loaded the last time time and last time by modification time.
Step S206, the last time are loaded whether the time is less than the last time by modification time.If so, S208 is entered step, S210 is otherwise entered step.
" last time is loaded the time " refers to that newest be loaded in time, such as the file information recorded in the file information is remembered Record is loaded the time successively are as follows: 2018/05/06AM8:00,2018/05/10AM8:00,2018/06/15AM8:00,2018/ 07/11AM8:00, last time are loaded the time as 2018/07/11AM8:00.
" last time by modification time ", which refers to, to be recorded newest by modification time in the file information, repeated no more.
Step S208 judges that the class file in the specified folder occurs by modification event.Enter step S212.
Step S210, there is no entering step by modification event for the class file for judging in the specified folder S214。
Modified class file is loaded into memory, to execute modified class by step S212 by class loading procedure The corresponding gateway service function of file.
Step S214 does not reload operation to class file execution.Memory has currently been loaded into that is, continuing to execute In, the class file that is in calling state, without reloading the class file in the specified folder.
Embodiment three
The difference is that, class file is different by the judgment method of modification event with embodiment two.In the present embodiment, class File is configured with corresponding file identification, such as filename.
Referring to Fig. 3, showing the step flow chart of the gateway Dynamic Configuration of the embodiment of the present invention three.The present embodiment A kind of gateway Dynamic Configuration in, comprising the following steps:
Step S300, at least one class file of heat deployment, and the class file is stored into specified folder.The class Definition has expansible Zuul component filter in file, and the Zuul component filter is for executing one or more gateway clothes Business function.
Whether step S302, monitoring objective program are in operating status.If so, entering step S304, otherwise continue to supervise It surveys.
Step S304 scans the specified folder with preset frequency, indexes and read according to the filename of the class file Take the class file.
Step S306 compares the class file that the class file under file name is loaded with the last time under file name It is whether identical.If it is different, entering step S308;Otherwise S310 is entered step.
Illustratively, the number of words of the class file under file name can be compared and the last time under file name is added The number of words of the class file of load.When number of words difference, then judge that the class file under file name occurs by modification event, it is on the contrary Do not occur then to be modified event.
Illustratively, the code character string that the class file under file name can be compared and upper one under file name The code character string of the secondary class file being loaded.When code character string difference, then the class file under file name is judged Occur by modification event, it is on the contrary then do not occur to be modified event.
Step S308 judges that the class file under file name occurs by modification event.Enter step S312.
Step S310, there is no by modification event for the class file for judging under file name.Enter step S314.
Modified class file is loaded into memory, to execute modified class by step S312 by class loading procedure The corresponding gateway service function of file.
Step S314 does not reload operation to class file execution.
Example IV
Please continue to refer to Fig. 4, the program module schematic diagram of gateway dynamic configuration system example IV of the present invention is shown.? In the present embodiment, gateway dynamic configuration system 20 may include or be divided into one or more program modules, and one or more A program module is stored in storage medium, and as performed by one or more processors, to complete the present invention, and can be realized Above-mentioned gateway Dynamic Configuration.The so-called program module of the embodiment of the present invention is a series of meters for referring to complete specific function Calculation machine program instruction section, the execution than program itself more suitable for description gateway dynamic configuration system 20 in storage medium Journey.The function of each program module of the present embodiment will specifically be introduced by being described below:
Heat deployment module 200 is used at least one class file of heat deployment, and the class file is stored to specified folder In, definition has an expansible Zuul component filter in the class file, the Zuul component filter for execute one or Multiple gateway service functions.
Illustratively, the class file in the present embodiment is the filter of a customized Zuul component, inherits ZuulFlieter class realizes the abstract method of ZuuFliter class, customized some gateway service functions.Class in the present embodiment File has scalability, and definition has the interface for extension.Illustratively, an automatic extension can also be defined in class file Functional Grammar, the unlatching automatic extension grammer are used for according to current network environment (e.g., the attack of appearance), to extend Corresponding network service function.
Illustratively, one or more of gateway service functions include: monitoring function, permission control function, dynamic road By function and/or load-balancing function.
Monitoring modular 202, for monitoring the class in the specified folder when target program is in operating status Whether file occurs to be modified event.
In the present embodiment, target program is associated with the class file, when the target program is in operating status, the target Program can open a thread, and whether the class file which is used to monitor in the specified folder occurs to be modified Event.
Illustratively, the monitoring modular 202 is used for: being scanned the specified folder with preset frequency, is read the class For file to obtain the file information of the class file, the file information includes being loaded the time last time and last being modified Time;Compare the last time be loaded the time whether be less than it is described last time by modification time;And the if last time quilt Load time is less than the last time by modification time, judges that the class file in the specified folder occurs by modification thing Part.
Illustratively, the class file is configured with filename, and the monitoring modular 202 is used for: scanning institute with preset frequency Specified folder is stated, indexed according to file name and reads the class file;Compare the class file under file name and is somebody's turn to do Whether the class file that the last time under filename is loaded is identical;If it is different, the class file under judging file name is sent out Life is by modification event.
It should be noted that be above only two kinds of concrete methods of realizing for being illustratively described monitoring modular, they It is not intended to restrict the invention.
Class file execution module 204, if occurred for the class file in the specified folder by modification event, Then modified class file is loaded into memory by class loading procedure, to execute the corresponding gateway clothes of modified class file Business function.If there is no by modification event, the class file execution module for the class file in the specified folder 204 do not execute operation.
Embodiment five
It is the hardware structure schematic diagram of the computer equipment of the embodiment of the present invention five refering to Fig. 5.It is described in the present embodiment Computer equipment 2 is that one kind can be automatic to carry out numerical value calculating and/or information processing according to the instruction for being previously set or storing Equipment.The computer equipment 2 can be rack-mount server, blade server, tower server or Cabinet-type server (including server cluster composed by independent server or multiple servers) etc..As shown, the computer equipment 2 include at least, but are not limited to, can be in communication with each other by system bus connection memory 21, processor 22, network interface 23, with And gateway dynamic configuration system 20.Wherein:
In the present embodiment, memory 21 includes at least a type of computer readable storage medium, the readable storage Medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 21 can be the internal storage unit of computer equipment 2, such as the hard disk or memory of the computer equipment 2.In other implementations In example, memory 21 is also possible to the grafting being equipped on the External memory equipment of computer equipment 2, such as the computer equipment 20 Formula hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, memory 21 can also both including computer equipment 2 internal storage unit and also including outside it Store equipment.In the present embodiment, memory 21 is installed on the operating system and types of applications of computer equipment 2 commonly used in storage Software, for example, example IV gateway dynamic configuration system 20 program code etc..In addition, memory 21 can be also used for temporarily Ground stores the Various types of data that has exported or will export.
Processor 22 can be in some embodiments central processing unit (Central Processing Unit, CPU), Controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in control computer equipment 20 overall operation.In the present embodiment, program code or processing data of the processor 22 for being stored in run memory 21, Such as operation gateway dynamic configuration system 20, to realize the gateway Dynamic Configuration of embodiment one, two or three.
The network interface 23 may include radio network interface or wired network interface, which is commonly used in Communication connection is established between the server 2 and other electronic devices.For example, the network interface 23 is used to pass through network for institute It states server 2 to be connected with exterior terminal, establishes data transmission channel and communication link between the server 2 and exterior terminal It connects.The network can be intranet (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), 4G network, 5G network, bluetooth (Bluetooth), Wi-Fi etc. is wireless or has Gauze network.
It should be pointed out that Fig. 5 illustrates only the computer equipment 2 with component 20-23, it should be understood that simultaneously All components shown realistic are not applied, the implementation that can be substituted is more or less component.
In the present embodiment, the gateway dynamic configuration system 20 being stored in memory 21 can also be divided into one A or multiple program modules, one or more of program modules are stored in memory 21, and by one or more Processor (the present embodiment is processor 22) is performed, to complete the present invention.
For example, Fig. 4 shows the program module schematic diagram for realizing 20 example IV of gateway dynamic configuration system, the reality It applies in example, it is described that heat deployment module 200, monitoring modular 202 and class text can be divided into based on gateway dynamic configuration system 20 Part loading module 204.Wherein, the so-called program module of the present invention is the series of computation machine program for referring to complete specific function Instruction segment, than program more suitable for describing implementation procedure of the gateway dynamic configuration system 20 in the computer equipment 2. The concrete function of described program module 200-204 has had a detailed description in example IV, and details are not described herein.
Embodiment six
The present embodiment also provides a kind of computer readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory (PROM), magnetic storage, magnetic Disk, CD, server, App are stored thereon with computer program, phase are realized when program is executed by processor using store etc. Answer function.The computer readable storage medium of the present embodiment is for storing gateway dynamic configuration system 20, when being executed by processor Realize the gateway Dynamic Configuration of embodiment one, two or three.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of dynamic gateway configuration method, which is characterized in that the described method includes:
At least one class file of heat deployment, and the class file is stored into specified folder, there is definition in the class file Expansible Zuul component filter, the Zuul component filter is for executing one or more gateway service functions;
When target program is in operating status, monitor whether the class file in the specified folder occurs to be modified thing Part;And
If the class file in the specified folder occurs to be added modified class file by class by modification event It carries program to be loaded into memory, to execute the corresponding gateway service function of modified class file.
2. dynamic gateway configuration method according to claim 1, which is characterized in that in the monitoring specified folder The class file the step of being modified event whether occurs, comprising:
The specified folder is scanned with preset frequency, reads the class file to obtain the file information of the class file, institute Stating the file information includes being loaded time and last time the last time by modification time;
Compare the last time be loaded the time whether be less than it is described last time by modification time;And
If the last time is loaded the time and is less than the last time by modification time, the institute in the specified folder is judged Class file is stated to occur by modification event.
3. dynamic gateway configuration method according to claim 1, which is characterized in that the class file is configured with filename, Whether the class file in the monitoring specified folder occurs the step of being modified event, comprising:
The specified folder is scanned with preset frequency, is indexed according to file name and reads the class file;
Whether identical compare the class file that the class file under file name and the last time under file name are loaded;And
If it is different, the class file under judging file name occurs by modification event.
4. dynamic gateway configuration method according to claim 1 to 3, which is characterized in that one or more of Gateway service function includes: monitoring function, permission control function, dynamic routing function and/or load-balancing function.
5. a kind of computer equipment, which is characterized in that the computer equipment includes memory, processor, on the memory It is stored with the gateway dynamic configuration system that can be run on the processor, the gateway dynamic configuration system is by the processor Following steps are realized when execution:
At least one class file of heat deployment, and the class file is stored into specified folder, there is definition in the class file Expansible Zuul component filter, the Zuul component filter is for executing one or more gateway service functions;
When target program is in operating status, monitor whether the class file in the specified folder occurs to be modified thing Part;And
If the class file in the specified folder occurs to be added modified class file by class by modification event It carries program to be loaded into memory, to execute the corresponding gateway service function of modified class file.
6. computer equipment according to claim 5, which is characterized in that described in the monitoring specified folder Whether class file occurs the step of being modified event, comprising:
The specified folder is scanned with preset frequency, reads the class file to obtain the file information of the class file, institute Stating the file information includes being loaded time and last time the last time by modification time;
Compare the last time be loaded the time whether be less than it is described last time by modification time;And
If the last time is loaded the time and is less than the last time by modification time, the institute in the specified folder is judged Class file is stated to occur by modification event.
7. computer equipment according to claim 5, which is characterized in that the class file is configured with filename, the prison Whether the class file surveyed in the specified folder occurs the step of being modified event, comprising:
The specified folder is scanned with preset frequency, is indexed according to file name and reads the class file;
Whether identical compare the class file that the class file under file name and the last time under file name are loaded;And
If it is different, the class file under judging file name occurs by modification event.
8. according to computer equipment described in claim 5-7 any one, which is characterized in that one or more of gateway clothes Function of being engaged in includes: monitoring function, permission control function, dynamic routing function and/or load-balancing function.
9. a kind of gateway dynamic configuration system characterized by comprising
Heat deployment module is used at least one class file of heat deployment, and the class file is stored into specified folder, described Definition has expansible Zuul component filter in class file, and the Zuul component filter is for executing one or more gateways Service function;
Monitoring modular, for when target program is in operating status, the class file monitored in the specified folder to be No generation is by modification event;And
Class file execution module, if occurring to be repaired by modification event for the class file in the specified folder Class file after changing is loaded into memory by class loading procedure, to execute the corresponding gateway service function of modified class file Energy.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium Program, the computer program can be performed by least one processors, so that at least one described processor executes such as right It is required that described in any one of 1-4 the step of gateway Dynamic Configuration.
CN201811237828.3A 2018-10-23 2018-10-23 Gateway Dynamic Configuration, system, computer equipment and storage medium Withdrawn CN109672553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811237828.3A CN109672553A (en) 2018-10-23 2018-10-23 Gateway Dynamic Configuration, system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811237828.3A CN109672553A (en) 2018-10-23 2018-10-23 Gateway Dynamic Configuration, system, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109672553A true CN109672553A (en) 2019-04-23

Family

ID=66141741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811237828.3A Withdrawn CN109672553A (en) 2018-10-23 2018-10-23 Gateway Dynamic Configuration, system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109672553A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181860A (en) * 2020-01-07 2020-05-19 苏宁云计算有限公司 Route forwarding method, device and system based on zuul gateway
CN112039780A (en) * 2020-09-01 2020-12-04 浪潮云信息技术股份公司 Zuul-based persistent dynamic routing implementation method, electronic device and storage medium
CN112769687A (en) * 2020-12-10 2021-05-07 前海飞算科技(深圳)有限公司 API gateway platform
CN113347041A (en) * 2021-06-21 2021-09-03 深圳壹账通智能科技有限公司 Dynamic current-limiting fusing configuration method, device, equipment and storage medium
CN113485686A (en) * 2021-07-22 2021-10-08 苏州万戈软件科技有限公司 Method and device for generating information system program, electronic device and storage medium
CN115102853A (en) * 2022-06-27 2022-09-23 平安银行股份有限公司 Gateway configuration method and device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181860A (en) * 2020-01-07 2020-05-19 苏宁云计算有限公司 Route forwarding method, device and system based on zuul gateway
CN112039780A (en) * 2020-09-01 2020-12-04 浪潮云信息技术股份公司 Zuul-based persistent dynamic routing implementation method, electronic device and storage medium
CN112039780B (en) * 2020-09-01 2022-03-15 浪潮云信息技术股份公司 Zuul-based persistent dynamic routing implementation method, electronic device and storage medium
CN112769687A (en) * 2020-12-10 2021-05-07 前海飞算科技(深圳)有限公司 API gateway platform
CN113347041A (en) * 2021-06-21 2021-09-03 深圳壹账通智能科技有限公司 Dynamic current-limiting fusing configuration method, device, equipment and storage medium
CN113347041B (en) * 2021-06-21 2022-03-01 深圳壹账通智能科技有限公司 Dynamic current-limiting fusing configuration method, device, equipment and storage medium
CN113485686A (en) * 2021-07-22 2021-10-08 苏州万戈软件科技有限公司 Method and device for generating information system program, electronic device and storage medium
CN113485686B (en) * 2021-07-22 2023-10-20 苏州万戈软件科技有限公司 Information system program generation method and device, electronic equipment and storage medium
CN115102853A (en) * 2022-06-27 2022-09-23 平安银行股份有限公司 Gateway configuration method and device
CN115102853B (en) * 2022-06-27 2023-07-28 平安银行股份有限公司 Gateway configuration method and device

Similar Documents

Publication Publication Date Title
CN109672553A (en) Gateway Dynamic Configuration, system, computer equipment and storage medium
CN102332072B (en) System and method for detection of malware and management of malware-related information
US8099472B2 (en) System and method for a mobile cross-platform software system
CN1174302C (en) Verification of software agents and agent activities
CN110597531B (en) Distributed module upgrading method and device and storage medium
CN109284217A (en) Application exception processing method, device, electronic equipment and storage medium
CN104077160B (en) A kind of method, apparatus and system for upgrading Android software
EP3345112B1 (en) Thresholds on scripts executable by unified extensible firmware interface systems
CN105389191A (en) Software upgrading method, apparatus and system based on local area network
CN110995825B (en) Intelligent contract issuing method, intelligent node equipment and storage medium
JP2008546318A5 (en)
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN109672580A (en) Full link monitoring method, apparatus, terminal device and storage medium
CN106886437B (en) Application program updating method and device
CN111191226A (en) Method, device, equipment and storage medium for determining program by using privilege-offering vulnerability
CN111698283A (en) Distributed cluster host management and control method, device, equipment and storage medium
CN112860282A (en) Upgrading method and device of cluster plug-in and server
CN110427752A (en) A kind of method, mobile terminal and the storage medium of sandbox monitoring application program
CN111026581A (en) Application program repairing method, device, system, storage medium and electronic device
CN108958785B (en) Application program upgrading method and device
CN108322466A (en) Verification method, server and the readable storage medium storing program for executing of APK based on Android
CN105630672A (en) Automatic application monitoring method and device
CN113077260A (en) Data access method and device based on block chain and electronic equipment
CN113031997A (en) Upgrade package generation and management method and device, computer equipment and storage medium
CN116450165A (en) Method, system, terminal and storage medium for quickly building environment and deploying program

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190423