CN109660585A - Call method, device, equipment and the storage medium of AOP enhancing objects services - Google Patents
Call method, device, equipment and the storage medium of AOP enhancing objects services Download PDFInfo
- Publication number
- CN109660585A CN109660585A CN201811137724.5A CN201811137724A CN109660585A CN 109660585 A CN109660585 A CN 109660585A CN 201811137724 A CN201811137724 A CN 201811137724A CN 109660585 A CN109660585 A CN 109660585A
- Authority
- CN
- China
- Prior art keywords
- aop
- enhancing
- service
- call
- calling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/62—Establishing a time schedule for servicing the requests
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses call method, device, equipment and the storage mediums of a kind of AOP enhancing objects services, the method comprising the steps of: after detecting call instruction of the calling towards tangential programming AOP enhancing object corresponding with service, calling the corresponding service of the AOP enhancing object in micro services system according to the call instruction;Whether detection receives the micro services system in preset duration and calls the call result returned after the AOP enhancing object corresponding with service;If not receiving the call result in the preset duration, the corresponding service of the AOP enhancing object is called in primal system.The present invention is realized to be enhanced by AOP, after the function that micro services system can not achieve AOP enhancing object corresponding with service, is intelligently switched back into primal system and is called the corresponding service of AOP enhancing object, improve the robustness of primal system.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of call method of AOP enhancing objects services, device, set
Standby and storage medium.
Background technique
Micro services framework is a kind of form popular in present server architecture, it is bonded the characteristic of internet, than
Relatively flexibly.Therefore the system for having conventional architectures wants the scene toward the migration of micro services framework.It is currently by phase in primal system
The code rewriting mutually relied on is changed to rely on new service, i.e. service in dependence micro services framework.At this point, if operational process
There is exception in system where middle micro services, can not switch back into primal system, poor so as to cause primal system robustness.
Summary of the invention
The main purpose of the present invention is to provide call method, device, equipment and the storages of a kind of AOP enhancing objects services
Medium, it is intended to after solving existing system migration process, the technical problem of primal system robustness difference.
To achieve the above object, the present invention provides a kind of call method of AOP enhancing objects services, the AOP enhancing pair
As service call method comprising steps of
After detecting call instruction of the calling towards tangential programming AOP enhancing object corresponding with service, according to the calling
The corresponding service of the AOP enhancing object is called in instruction in micro services system;
After whether detection receives the micro services system calling AOP enhancing object corresponding with service in preset duration
The call result of return;
If not receiving the call result in the preset duration, the AOP is called to enhance in primal system
The corresponding service of object.
Preferably, whether the detection receives the micro services system in preset duration and calls the AOP enhancing pair
As returned after corresponding with service call result the step of after, further includes:
If receiving the call result in the preset duration, result mark entrained by the call result is extracted
Know;
Determine that the micro services system successfully realizes the AOP enhancing object corresponding with service when identifying according to the result
After function, the corresponding service of AOP enhancing object described in output prompt information prompt user is successfully called.
Preferably, described after detecting the call instruction for calling AOP enhancing object corresponding with service, referred to according to the calling
Order was called in micro services system before the step of AOP enhancing object corresponding service, further includes:
It determines the AOP enhancing object in the primal system, obtains the block code of the AOP enhancing object;
The block code is sent to the micro services system, the micro services system is written into the block code
In.
Preferably, AOP in the determination primal system enhances the step of object and includes:
Detect whether the modules in the primal system dock third party system;
The module that the third party system is docked in the primal system is determined as AOP enhancing object.
Preferably, AOP in the determination primal system enhances the step of object and includes:
Obtain the functions of modules that modules in the primal system are realized, judge the functions of modules whether with default function
It can be consistent, wherein the preset function is that the AOP enhances the corresponding function of object;
The functions of modules and the consistent module of the preset function are determined as the AOP enhancing object.
Preferably, described after detecting the call instruction for calling AOP enhancing object corresponding with service, referred to according to the calling
Order was called in micro services system before the step of AOP enhancing object corresponding service, further includes:
After receiving the operational order of user's triggering, detect whether the operational order has permission the calling micro services
Service in system;
If detecting, the operational order has permission the service called in the micro services system, trigger calling with it is described
The call instruction of the corresponding AOP enhancing object corresponding with service of operational order.
Preferably, described after detecting the call instruction for calling AOP enhancing object corresponding with service, referred to according to the calling
Order calls the step of AOP enhancing object corresponding service to include: in micro services system
After detecting the call instruction for calling AOP enhancing object corresponding with service, obtained in incognito according to the call instruction
The calling logic of business system;
The corresponding service of the AOP enhancing object is called in the micro services system according to the calling logic.
In addition, to achieve the above object, the present invention also provides a kind of calling device of AOP enhancing objects services, the AOP
Enhancing objects services calling device include:
Calling module, for when detect call the call instruction towards tangential programming AOP enhancing object corresponding with service after,
The corresponding service of the AOP enhancing object is called in micro services system according to the call instruction;
Whether detection module receives the micro services system calling AOP enhancing for detecting in preset duration
The call result returned after object corresponding with service;
If the calling module is also used to not receive the call result in the preset duration, in primal system
It is middle to call the corresponding service of the AOP enhancing object.
In addition, to achieve the above object, the present invention also provides a kind of calling equipment of AOP enhancing objects services, the AOP
The calling equipment of enhancing objects services includes memory, processor and is stored on the memory and can be on the processor
The caller of the AOP enhancing objects services of operation, the caller of the AOP enhancing objects services are executed by the processor
The step of call method of Shi Shixian AOP enhancing objects services as described above.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The caller of AOP enhancing objects services is stored on storage medium, the caller of the AOP enhancing objects services is processed
Device realizes the step of call method of AOP enhancing objects services as described above when executing.
The present invention by calling the AOP to enhance the corresponding service of object in micro services system, and if primal system exist
Micro services system is not received in preset duration and calls the call result returned after AOP enhancing object corresponding with service, then is directly existed
The corresponding service of AOP enhancing object is called in primal system.Realizing is enhanced by AOP, can not achieve AOP in micro services system
After the function of enhancing object corresponding with service, intelligently switches back into primal system and call the corresponding service of AOP enhancing object, improve
The robustness of primal system.
Detailed description of the invention
Fig. 1 is the flow diagram of the call method first embodiment of AOP enhancing objects services of the present invention;
Fig. 2 is the flow diagram of the call method second embodiment of AOP enhancing objects services of the present invention;
Fig. 3 is the flow diagram of the call method 3rd embodiment of AOP enhancing objects services of the present invention;
Fig. 4 is the flow diagram of the call method fourth embodiment of AOP enhancing objects services of the present invention;
Fig. 5 is the functional schematic module map for the calling device preferred embodiment that AOP of the present invention enhances objects services;
Fig. 6 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of call method of AOP enhancing objects services, and referring to Fig.1, Fig. 1 is AOP of the present invention enhancing pair
As the flow diagram of the call method first embodiment of service.
The embodiment of the invention provides the embodiments of the call method of AOP enhancing objects services, it should be noted that although
Logical order is shown in flow charts, but in some cases, can be executed with the sequence for being different from herein it is shown or
The step of description.
AOP enhance objects services call method be applied to primal system in, primal system be mountable to server or
In terminal, terminal may include such as mobile phone, tablet computer, laptop, palm PC, personal digital assistant
(Personal Digital Assistant, PDA), etc. mobile terminals, and number TV, desktop computer etc. it is fixed eventually
End.It is to execute master with primal system for ease of description in each embodiment of the call method of AOP enhancing objects services
Body is illustrated each embodiment.AOP enhancing objects services call method include:
Step S10, after detecting call instruction of the calling towards tangential programming AOP enhancing object corresponding with service, according to
The call instruction calls the corresponding service of the AOP enhancing object in micro services system.
It should be noted that AOP (Aspect Oriented Programming, towards tangent plane programming) enhancing is java
A common technology, it can make particular code and intercept, modify, but be able to maintain source code not by defining point of penetration
Become, the object of enhancing is exactly the block code being migrated in micro services system.It should be noted that, although saying is migration, but
Old block code is still deposited in primal system, and new service only replicates a block code to new micro services system
In system, this ensure that the stabilization of primal system.
After primal system detects the call instruction for calling AOP enhancing object corresponding with service, primal system is according to the tune
The corresponding service of AOP enhancing object is called in micro services system with instruction.Wherein, AOP enhances the difference of object corresponding with service,
The function of being realized is also different.
Further, step S10 includes:
Step a is obtained after detecting the call instruction for calling AOP enhancing object corresponding with service according to the call instruction
Take the calling logic of micro services system.
After primal system detects the call instruction for calling AOP enhancing object corresponding with service, primal system is according to the tune
The ribbon calling logic of micro services system is obtained with instruction.Wherein, ribbon is loaded to calling between service, is service
Between load balancing.Primal system can pass through WiFi, bluetooth or 4G (the 4th Generation mobile
Communication technology, fourth generation mobile communication technology) etc. networks connect with micro services system.The calling logic
It can be stored in advance in micro services system, when primal system needs to obtain the calling logic, primal system is according to call instruction
The calling logic is obtained from micro services system.It further, can also will be micro- in order to improve the calling efficiency for obtaining calling logic
The calling logic of service system is stored in advance in the database of primal system, when primal system needs to obtain the calling logic
When, primal system directly obtains pre-stored calling logic in its database.It is understood that passing through the calling
Logic can call AOP in micro services system to enhance the corresponding service of object, and AOP enhancing object is corresponding in micro services system
Service is moved in micro services system from primal system.
Step b calls the corresponding clothes of the AOP enhancing object according to the calling logic in the micro services system
Business.
After getting calling logic, primal system calls that micro services system is corresponding remotely connects according to the calling logic
Mouthful, to call AOP to enhance the corresponding service of object in micro services system by the remote interface, realizing enhances object with AOP
The function of corresponding with service.It should be noted that being previously provided with the Advice code of enhancing in primal system, adjusted passing through
When calling the remote interface of micro services system with logic, the corresponding service of micro services system can be called in Advice code.Its
In, use SpringCloud Feign plug-in unit as micro services system, its advantage is can to adjust as calling local code
With the remote interface of micro services system.Feign is pseudo- Http (the Hyper Text Transfer of a statement formula
Protocol, hypertext transfer protocol) client, it, which to write Http client, becomes simpler.
Whether step S20, detection receive the micro services system in preset duration and call the AOP enhancing object pair
The call result returned after should servicing.
It is original after primal system calls according to calling logic the corresponding service of AOP enhancing object in micro services system
Whether system detection receives micro services system in preset duration and calls the calling knot returned after AOP enhancing object corresponding with service
Fruit.Wherein, after calling the AOP enhancing corresponding service of object in micro services system according to call instruction when primal system, if micro-
Service system successfully calls the corresponding service of AOP enhancing object, and micro services system can then send a call result to original
System;If micro services system, which fails, calls the corresponding service of AOP enhancing object, micro services system will not send calling knot
Fruit is to primal system.Preset duration is arranged according to specific needs, can such as set preset duration to 0.5 second, 2 seconds or 1
Second etc..Primal system is avoided by the preset duration and falls into a long wait micro services system return call result, causes to call AOP
Enhance the low situation of the corresponding efficiency of service of object to occur.
Step S30, if not receiving the call result in the preset duration, in primal system described in calling
AOP enhances the corresponding service of object.
When primal system does not receive the call result of micro services system return in preset duration, in root in primal system
Calling directly its original AOP according to the call instruction enhances the corresponding service of object, to realize AOP enhancing pair in primal system
As the function of corresponding with service.It should be noted that when primal system does not receive the return of micro services system in preset duration
Call result shows that the micro services system is in malfunction.The AOP of primal system is being enhanced into the corresponding services migrating of object
Into micro services systematic procedure, primal system does not modify code, therefore, even if the corresponding service of AOP enhancing object is moved
After moving on in micro services system, the corresponding service of AOP enhancing object can also be called in primal system, realizes corresponding function.
The present embodiment in micro services system by calling the AOP to enhance the corresponding service of object, and if primal system
It does not receive micro services system in preset duration and calls the call result returned after AOP enhancing object corresponding with service, then directly
The corresponding service of AOP enhancing object is called in primal system.Realizing is enhanced by AOP, can not achieve in micro services system
After AOP enhances the function of object corresponding with service, intelligently switches back into primal system and call the corresponding service of AOP enhancing object, mention
The high robustness of primal system, wherein robustness is also known as robustness, refers to software for the input condition other than code requirement
Processing capacity, a such as software can run correctly under various circumstances, then it is assumed that the software portability is high, can also be with
It cries, software is healthy and strong under different platform.
Further, the call method second embodiment of AOP enhancing objects services of the present invention is proposed.
The call method second embodiment of the AOP enhancing objects services and the called side of AOP enhancing objects services
The difference of method first embodiment is, enhances the call method of objects services referring to Fig. 2, AOP further include:
Step S40 is extracted entrained by the call result if receiving the call result in the preset duration
Result mark.
If primal system receives the call result of micro services system return in preset duration, primal system extracts tune
The result mark carried with result.Wherein, there can be two kinds of result mark in call result, first kind result identifies table
After showing that micro services system calls the corresponding service of AOP enhancing object, it is successfully realized the function of AOP enhancing object corresponding with service,
Second class result mark indicates that micro services system fails and realizes the function of AOP enhancing object corresponding with service.Wherein, the first kind
As a result it identifies and the form of expression of the second class result mark is arranged according to specific needs, first kind result can such as be identified and be set
It is set to " 11 ", the second class result mark is set as " 00 ".
Step S50 determines that the micro services system successfully realizes that the AOP enhances object pair when identifying according to the result
After the function that should be serviced, the corresponding service of AOP enhancing object described in output prompt information prompt user is successfully called.
After primal system extracts the mark of result entrained by call result, primal system is identified according to the result and is determined
Whether micro services system successfully realizes the function of AOP enhancing object corresponding with service.Further, when primal system is according to the result
Identify determine micro services system successfully realize AOP enhancing object corresponding with service function after, primal system generates successfully calling
Prompt information, and the prompt information successfully called is exported, to prompt the corresponding clothes of user AOP enhancing object according to the prompt information
Business is successfully called, and the function of AOP enhancing object corresponding with service has been realized.When primal system determines in incognito according to result mark
Business system fails after the function of realizing AOP enhancing object corresponding with service, and primal system generates the prompt information of malloc failure malloc,
And the prompt information of malloc failure malloc is exported, to prompt user AOP enhancing object corresponding according to the prompt information of the malloc failure malloc
Service call failure.It is understood that in the present embodiment, only in the function for successfully realizing AOP enhancing object corresponding with service
After energy, primal system can just prompt the corresponding service of user AOP enhancing object successfully to call.
The present embodiment by extract call result entrained by result mark, according to result identify determine micro services system at
After function realizes the function of AOP enhancing object corresponding with service, AOP enhances the corresponding service of object to output prompt information prompt user
It successfully calls, in order to which user understands the calling situation of the corresponding service of AOP enhancing object in time.
Further, the call method 3rd embodiment of AOP enhancing objects services of the present invention is proposed.
The call method 3rd embodiment of the AOP enhancing objects services and the called side of AOP enhancing objects services
The difference of method first or second embodiments is, enhances the call method of objects services referring to Fig. 3, AOP further include:
Step S60 determines the AOP enhancing object in the primal system, obtains the module generation of the AOP enhancing object
Code.
Primal system determines the AOP enhancing object for needing to carry out AOP enhancing, and obtaining after determining AOP enhancing object should
AOP enhances the corresponding block code of object.In primal system, one or more AOP enhancing object may be present, each
All there is corresponding block code in AOP enhancing object.Further, after primal system determines that AOP enhances object, primal system
By in AOP enhancing object write-in configuration file, enhances object addition enhancing mark in configuration file for AOP, pass through the enhancing
Mark, primal system can determine the need for calling the service in micro services system quickly to realize the operational order of user's triggering
Corresponding function.
Further, AOP in the determination primal system enhances the step of object and includes:
Step c, detects whether the modules in the primal system dock third party system.
Specifically, primal system detects whether the modules built in it need to dock third party system, that is, detects in it
Whether the mode set, which needs to dock other systems, is just able to achieve corresponding function.Specifically, if some module in primal system
It needs to dock third party system, then can carry specific mark in the title of the module.Therefore, pass through the specific mark
Detect whether the modules in primal system need to dock third party system.
The module that the third party system is docked in the primal system is determined as AOP enhancing object by step d.
After primal system, which determines, needs to dock the module of third party system, primal system will need to dock third party system
Module be determined as AOP enhancing object.It is former after primal system determines that some module does not need the module of docking third party system
The module for not needing docking third party system is determined as not being AOP enhancing object by beginning system.
Further, AOP in the determination primal system enhances the step of object and includes:
Step e obtains the functions of modules that modules in the primal system are realized, judge the functions of modules whether with
Preset function is consistent, wherein the preset function is that the AOP enhances the corresponding function of object.
Specifically, primal system obtains functions of modules achieved by its built-in modules, and judgment module function with
Whether preset function is consistent, wherein it can be the function of realizing that preset function, which enhances object corresponding with service for AOP,.
Step f, the functions of modules and the consistent module of the preset function, which are determined as the AOP, enhances object.
When the functions of modules that primal system determines that some module is realized is consistent with preset function, primal system is by module function
It can be determined as AOP enhancing object with the consistent module of preset function.When primal system determining module function and preset function are different
After cause, functions of modules and the inconsistent module of preset function are determined as not being AOP enhancing object by primal system.
The block code is sent to the micro services system by step S70, the block code is written described micro-
In service system.
After primal system gets the block code of AOP enhancing object, the block code of AOP enhancing object is sent to
Micro services system.After micro services system receives the block code of AOP enhancing object of primal system transmission, the module is stored
Code, will be in the block code write-in micro services system of AOP enhancing object.It should be noted that AOP is enhanced object
Still the block code of AOP enhancing object is stored with after block code is sent to micro services system, in primal system, i.e., it is original
For calling the java code of AOP enhancing object corresponding with service there is no modifying in system, primal system is still complete original
System, at this point, into micro services systematic procedure, not needing to rewrite in incognito by the AOP enhancing object migration of primal system
The calling code of business system, reduces the workload of developer.
It further, can be in primal system after by the corresponding block code write-in micro services system of AOP enhancing object
The call instruction of AOP enhancing object corresponding with service is called in triggering, to test whether micro services system is in normal condition.Work as basis
When the call instruction, which can call directly in micro services system AOP, enhances object corresponding service, determine that micro services system is in
Normal condition;When that AOP cannot be called in micro services system to enhance the corresponding service of object according to the call instruction, determine micro-
Service system is in malfunction, at this point, primal system needs to call the corresponding block code of enhancing object of the AOP built in it,
Realize the function of AOP enhancing object corresponding with service.
The present embodiment is written in micro services system by the way that AOP in primal system to be enhanced to the block code of object, in order to
When needing that AOP is called to enhance object corresponding with service, AOP enhancing pair can be called in the corresponding micro services framework of micro services system
As corresponding with service.
Further, the call method fourth embodiment of AOP enhancing objects services of the present invention is proposed.
The call method fourth embodiment of the AOP enhancing objects services and the called side of AOP enhancing objects services
The difference of the first, second or third embodiment of method is, enhances the call method of objects services referring to Fig. 4, AOP further include:
Step S80 detects whether the operational order has permission calling institute after receiving the operational order of user's triggering
State the service in micro services system.
After primal system receives the operational order of user's triggering, the received operational order of primal system detection is
It is no to have permission the service called in micro services system, that is, detect whether received operational order can call in micro services system
Service.It is understood that if the function to be realized of the operational order is achieved by AOP enhancing object corresponding with service
Function, it is determined that operational order has permission the service called in micro services system;If the function to be realized of the operational order is
AOP enhances the irrealizable function of object corresponding with service, it is determined that operational order does not have permission to call the clothes in micro services system
Business.Wherein, which can be triggered in the corresponding display interface of primal system as needed by user.
Step S90, if detecting, the operational order has permission the service called in the micro services system, triggers tune
With the call instruction of AOP corresponding with operational order enhancing object corresponding with service.
If detect operational order have permission call micro services system in service, primal system trigger calling with it is described
The call instruction of the corresponding AOP enhancing object corresponding with service of operational order.If detecting, operational order does not have permission to call in incognito
Service in business system, primal system then directly execute the operational order.
The present embodiment is by receiving the operational order of user's triggering, and it is micro- to detect that the operational order has permission calling
After service in service system, the call instruction of AOP enhancing object corresponding with service is called in triggering, to avoid operation is being received
After instruction, directly triggering calls AOP to enhance the call instruction of object corresponding with service, improves and calls the corresponding clothes of AOP enhancing object
The accuracy rate of business.
In addition, referring to Fig. 4, the present invention also provides a kind of calling device of AOP enhancing objects services, the AOP enhancing pair
As the calling device of service includes:
Calling module 10 calls the call instruction towards tangential programming AOP enhancing object corresponding with service for working as to detect
Afterwards, the corresponding service of the AOP enhancing object is called in micro services system according to the call instruction;
Whether detection module 20 receives the micro services system calling AOP increasing for detecting in preset duration
The call result returned after strong object corresponding with service;
If the calling module 10 is also used to not receive the call result in the preset duration, in original system
The corresponding service of the AOP enhancing object is called in system.
Further, the calling device of the AOP enhancing objects services further include:
Extraction module, if extracting the call result for receiving the call result in the preset duration
Entrained result mark;
Output module determines that the micro services system successfully realizes that the AOP enhances according to result mark for working as
After the function of object corresponding with service, the corresponding service of AOP enhancing object described in output prompt information prompt user is successfully called.
Further, the calling device of the AOP enhancing objects services further include:
Determining module, for determining that the AOP in the primal system enhances object;
Module is obtained, for obtaining the block code of the AOP enhancing object;
The block code is written for the block code to be sent to the micro services system for sending module
In the micro services system.
Further, the determining module further include:
Whether detection unit, the modules for detecting in the primal system dock third party system;
First determination unit increases for the module for docking the third party system in the primal system to be determined as AOP
Strong object.
Further, the determining module further include:
First acquisition unit, for obtaining the functions of modules that modules are realized in the primal system;
Judging unit, for judging whether the functions of modules is consistent with preset function, wherein the preset function is institute
State the corresponding function of AOP enhancing object;
Second determination unit, for the functions of modules and the consistent module of the preset function to be determined as the AOP
Enhance object.
Further, the detection module 20 is also used to detect the behaviour after receiving the operational order of user's triggering
Instruct the service for whether having permission and calling in the micro services system;
The calling device of the AOP enhancing objects services further include:
Trigger module, if for detecting that the operational order has permission the service called in the micro services system,
The call instruction of AOP enhancing object corresponding with service corresponding with the operational order is called in triggering.
Further, the calling module 10 includes:
Second acquisition unit, for when detect call AOP enhancing object corresponding with service call instruction after, according to described
The calling logic of call instruction acquisition micro services system;
Call unit, for calling the AOP enhancing object pair in the micro services system according to the calling logic
The service answered.
It should be noted that each embodiment and above-mentioned AOP enhancing object clothes of the calling device of AOP enhancing objects services
Each embodiment of the call method of business is essentially identical, and in this not go into detail.
In addition, the present invention also provides a kind of calling equipment of AOP enhancing objects services.As shown in fig. 6, Fig. 6 is the present invention
The structural schematic diagram for the hardware running environment that example scheme is related to.
It should be noted that the structure that Fig. 6 can enhance the hardware running environment of the calling equipment of objects services for AOP is shown
It is intended to.The calling equipment of AOP of embodiment of the present invention enhancing objects services can be PC, the terminal devices such as portable computer.
As shown in fig. 6, the calling equipment of AOP enhancing objects services may include: processor 1001, such as CPU, storage
Device 1005, user interface 1003, network interface 1004, communication bus 1002.Wherein, communication bus 1002 is for realizing these groups
Connection communication between part.User interface 1003 may include display screen (Display), input unit such as keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional
May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory,
It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
Optionally, AOP enhance objects services calling equipment can also include camera, RF (Radio Frequency,
Radio frequency) circuit, sensor, voicefrequency circuit, WiFi module etc..
It will be understood by those skilled in the art that the calling device structure of AOP shown in Fig. 6 enhancing objects services not structure
The restriction of the calling equipment of pairs of AOP enhancing objects services, may include components more more or fewer than diagram, or combine certain
A little components or different component layouts.
As shown in fig. 6, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe the caller of module, Subscriber Interface Module SIM and AOP enhancing objects services.Wherein, operating system is to manage and control AOP
Enhance objects services calling device hardware and software resource program, support AOP enhancing objects services caller and
The operation of other softwares or program.
In the calling equipment of AOP enhancing objects services shown in Fig. 6, user interface 1003 can be used for receiving operation and refer to
It enables;Network interface 1004 is mainly used for connecting background server, carries out data communication with background server;Processor 1001 can be with
For calling the caller of the AOP stored in memory 1005 enhancing objects services, and execute AOP enhancing pair as described above
As service call method the step of.
The calling equipment specific embodiment of AOP enhancing objects services of the present invention and the tune of above-mentioned AOP enhancing objects services
Essentially identical with each embodiment of method, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with the callers of AOP enhancing objects services, when the caller of AOP enhancing objects services is executed by processor
The step of realizing the call method of AOP enhancing objects services as described above.
The call method of computer readable storage medium specific embodiment of the present invention and above-mentioned AOP enhancing objects services is each
Embodiment is essentially identical, and details are not described herein.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
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.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
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 call method of AOP enhancing objects services, which is characterized in that the call method of the AOP enhancing objects services
The following steps are included:
After detecting call instruction of the calling towards tangential programming AOP enhancing object corresponding with service, according to the call instruction
The corresponding service of the AOP enhancing object is called in micro services system;
Whether detection, which is received in preset duration after the micro services system calls the AOP enhancing object corresponding with service, returns
Call result;
If not receiving the call result in the preset duration, the AOP enhancing object is called in primal system
Corresponding service.
2. the call method of AOP enhancing objects services as described in claim 1, which is characterized in that the detection is when default
Whether the micro services system call the call result that the AOP enhancing object corresponding with service after returns the step of is received in long
Later, further includes:
If receiving the call result in the preset duration, the mark of result entrained by the call result is extracted;
When the function of successfully realizing the AOP enhancing object corresponding with service according to the determining micro services system of result mark
Afterwards, the corresponding service of AOP enhancing object described in output prompt information prompt user is successfully called.
3. the call method of AOP enhancing objects services as described in claim 1, which is characterized in that described to detect calling
After AOP enhances the call instruction of object corresponding with service, the AOP is called to enhance in micro services system according to the call instruction
Before the step of object corresponding service, further includes:
It determines the AOP enhancing object in the primal system, obtains the block code of the AOP enhancing object;
The block code is sent to the micro services system, the block code is written in the micro services system.
4. the call method of AOP enhancing objects services as claimed in claim 3, which is characterized in that the determination is described original
AOP in system enhances the step of object and includes:
Detect whether the modules in the primal system dock third party system;
The module that the third party system is docked in the primal system is determined as AOP enhancing object.
5. the call method of AOP enhancing objects services as claimed in claim 3, which is characterized in that the determination is described original
AOP in system enhances the step of object and includes:
Obtain the functions of modules that modules in the primal system are realized, judge the functions of modules whether with preset function one
It causes, wherein the preset function is that the AOP enhances the corresponding function of object;
The functions of modules and the consistent module of the preset function are determined as the AOP enhancing object.
6. the call method of AOP enhancing objects services as described in claim 1, which is characterized in that described to detect calling
After AOP enhances the call instruction of object corresponding with service, the AOP is called to enhance in micro services system according to the call instruction
Before the step of object corresponding service, further includes:
After receiving the operational order of user's triggering, detect whether the operational order has permission the calling micro services system
In service;
If detecting, the operational order has permission the service called in the micro services system, triggers calling and the operation
Instruct the call instruction of corresponding AOP enhancing object corresponding with service.
7. such as the call method of AOP as claimed in any one of claims 1 to 6 enhancing objects services, which is characterized in that described to detect
After measuring the call instruction for calling AOP enhancing object corresponding with service, institute is called in micro services system according to the call instruction
The step of stating AOP enhancing object corresponding service include:
After detecting the call instruction for calling AOP enhancing object corresponding with service, micro services system is obtained according to the call instruction
The calling logic of system;
The corresponding service of the AOP enhancing object is called in the micro services system according to the calling logic.
8. a kind of calling device of AOP enhancing objects services, which is characterized in that the calling device of the AOP enhancing objects services
Include:
Calling module, for when detect call the call instruction towards tangential programming AOP enhancing object corresponding with service after, according to
The call instruction calls the corresponding service of the AOP enhancing object in micro services system;
Whether detection module receives the micro services system calling AOP enhancing object for detecting in preset duration
The call result returned after corresponding with service;
If the calling module is also used to not receive the call result in the preset duration, adjusted in primal system
With the corresponding service of AOP enhancing object.
9. a kind of calling equipment of AOP enhancing objects services, which is characterized in that the calling equipment of the AOP enhancing objects services
Including memory, processor and it is stored in the AOP that can be run on the memory and on the processor enhancing objects services
Caller, the caller of AOP enhancing objects services realizes such as claim 1 to 7 when being executed by the processor
Any one of described in AOP enhancing objects services call method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with AOP increasing on the computer readable storage medium
The caller of the caller of strong objects services, the AOP enhancing objects services is realized when being executed by processor as right is wanted
AOP described in asking any one of 1 to 7 enhances the step of call method of objects services.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811137724.5A CN109660585B (en) | 2018-09-28 | 2018-09-28 | Method, device, equipment and storage medium for calling AOP enhanced object service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811137724.5A CN109660585B (en) | 2018-09-28 | 2018-09-28 | Method, device, equipment and storage medium for calling AOP enhanced object service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109660585A true CN109660585A (en) | 2019-04-19 |
CN109660585B CN109660585B (en) | 2022-08-19 |
Family
ID=66109979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811137724.5A Active CN109660585B (en) | 2018-09-28 | 2018-09-28 | Method, device, equipment and storage medium for calling AOP enhanced object service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109660585B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256351A (en) * | 2020-10-26 | 2021-01-22 | 卫宁健康科技集团股份有限公司 | Implementation method of Feign component, micro-service calling method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101097615A (en) * | 2006-06-30 | 2008-01-02 | 上海卓繁信息技术有限公司 | Net administrative examination and approval management information system structure |
CN101364185A (en) * | 2008-09-02 | 2009-02-11 | 中国科学院软件研究所 | Thread pool size self-adapting regulating method and concurrency control method applying server |
CN101907993A (en) * | 2010-07-27 | 2010-12-08 | 华南理工大学 | Dynamic model based on SpringDM and application thereof to persistence layer of RFID (Radio Frequency Identification) middleware |
US20110202564A1 (en) * | 2010-02-15 | 2011-08-18 | Fujitsu Limited | Data store switching apparatus, data store switching method, and non-transitory computer readable storage medium |
CN108011768A (en) * | 2017-12-26 | 2018-05-08 | 杭州电子科技大学 | A kind of aop intercept types HBase data store micro services framework construction method |
US20180246786A1 (en) * | 2017-02-28 | 2018-08-30 | International Business Machines Corporation | Resuming applications using pass-through servers and trace data |
-
2018
- 2018-09-28 CN CN201811137724.5A patent/CN109660585B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101097615A (en) * | 2006-06-30 | 2008-01-02 | 上海卓繁信息技术有限公司 | Net administrative examination and approval management information system structure |
CN101364185A (en) * | 2008-09-02 | 2009-02-11 | 中国科学院软件研究所 | Thread pool size self-adapting regulating method and concurrency control method applying server |
US20110202564A1 (en) * | 2010-02-15 | 2011-08-18 | Fujitsu Limited | Data store switching apparatus, data store switching method, and non-transitory computer readable storage medium |
CN101907993A (en) * | 2010-07-27 | 2010-12-08 | 华南理工大学 | Dynamic model based on SpringDM and application thereof to persistence layer of RFID (Radio Frequency Identification) middleware |
US20180246786A1 (en) * | 2017-02-28 | 2018-08-30 | International Business Machines Corporation | Resuming applications using pass-through servers and trace data |
CN108011768A (en) * | 2017-12-26 | 2018-05-08 | 杭州电子科技大学 | A kind of aop intercept types HBase data store micro services framework construction method |
Non-Patent Citations (2)
Title |
---|
刘辉军等: "基于开源框架及容器技术的微服务架构研究", 《电力信息与通信技术》 * |
杜玲玲: "AOP技术在国库集中支付系统的应用", 《计算机应用与软件》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112256351A (en) * | 2020-10-26 | 2021-01-22 | 卫宁健康科技集团股份有限公司 | Implementation method of Feign component, micro-service calling method and device |
CN112256351B (en) * | 2020-10-26 | 2023-11-17 | 卫宁健康科技集团股份有限公司 | Method for realizing Feign component, method and device for calling micro-service |
Also Published As
Publication number | Publication date |
---|---|
CN109660585B (en) | 2022-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10069692B2 (en) | Electronic device and method for providing information thereof | |
US9594496B2 (en) | Method and apparatus for playing IM message | |
US10824449B2 (en) | Application running method and device | |
US9800609B2 (en) | Method, device and system for detecting malware in a mobile terminal | |
EP3514684A1 (en) | Memory recovery method and apparatus | |
US10956280B2 (en) | Data backup method, electronic device, and storage medium | |
CN106371826B (en) | The method and apparatus of application program cross-system operation | |
US20160126996A1 (en) | Mobile Communication Using a Plurality of Subscriber Identity Modules | |
CN108287918B (en) | Music playing method and device based on application page, storage medium and electronic equipment | |
CN112148579B (en) | User interface testing method and device | |
CN110020293B (en) | Multimedia data display method, device and storage medium | |
CN110933075B (en) | Service calling method and device, electronic equipment and storage medium | |
US20190258372A1 (en) | Multi-window displaying apparatus and method and mobile electronic equipment | |
CN107734618B (en) | Application program closing method and device, storage medium and electronic equipment | |
EP2869604A1 (en) | Method, apparatus and device for processing a mobile terminal resource | |
CN112749074B (en) | Test case recommending method and device | |
CN110568925A (en) | lock screen display control method, terminal and computer storage medium | |
CN111309307B (en) | Method and device for integrating VUE page and workflow system | |
CN109660585A (en) | Call method, device, equipment and the storage medium of AOP enhancing objects services | |
CN108984238B (en) | Gesture processing method and device of application program and electronic equipment | |
CN107168648B (en) | File storage method and device and terminal | |
CN114374703B (en) | Cloud mobile phone information acquisition method, device, equipment and storage medium | |
CN112966201B (en) | Object processing method, device, electronic equipment and storage medium | |
KR20190085517A (en) | Application resource usage reduction techniques | |
CN110489679B (en) | Browser kernel processing method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |