Optimization method applicable to JAVA remote invocation object transfer and device
A technology for remote invocation and optimization methods, applied in the field of remote invocation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Example 1, see figure 1 , The present invention provides an optimization method for JAVA remote method invocation object transmission. The method includes:
[0060] Step 101: Identify the program objects that need to be transmitted in RMI;
[0061] In this step, two methods can be used to identify the program objects that need to be transmitted in RMI:
[0062] The first method is to judge and recognize by loading an XML description file. For example, if there is a program object whose full name is foo.bar.hello.java, the XML file can be matched through regular fuzzy matching, and it can also be matched exactly, such as or , Add these rules to the program judgment when the program starts;
[0063] The second method: through the annotation method (Annotation) in JDK to indicate that the program object needs to be optimized for transmission, the program fragment is as follows:
[0064] RMIOptimize--annotation description
[0065] public class Hello{
[0066] private String name;} ...
Embodiment 2
[0097] Example 2, see Figure 7 , The present invention also provides an optimization device suitable for JAVA remote call object transmission, the device to which it belongs includes:
[0098] The first identification unit is used to identify the program object that needs to be transmitted in the RMI;
[0099] The interception unit is used to intercept the program object;
[0100] The modification unit is used to create methods for writing and reading the serialized stream in the program object, and to store the program object.
[0101] Wherein, the first identification unit includes:
[0102] The second recognition unit is used to judge and recognize the program object by loading the regular fuzzy matching in the XML description file;
[0103] or
[0104] The third recognition unit is used to determine the program object through the annotation method in the JDK.
[0105] Wherein, the modification unit includes:
[0106] Interface unit: used to modify the program object to implement the fi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com