Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Inactive Publication Date: 2012-06-13
融创天下(上海)科技发展有限公司
View PDF5 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The java.io.Externalizable interface, as an extension of the above interface, allows programmers to serialize custom program objects. Usually, serialized objects that implement this interface can provide better network throughput and performance, but this interface requires Manually participate in writing serialization and deserialization method implementation logic

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Optimization method applicable to JAVA remote invocation object transfer and device
  • Optimization method applicable to JAVA remote invocation object transfer and device
  • Optimization method applicable to JAVA remote invocation object transfer and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an optimization method applicable to JAVA remote invocation object transfer. The method includes recognizing a program object required RMI (remote method invocation) transfer and intercepting the program object; and creating a method for writing and reading serialized streams in the program object and storing the program object. The invention further discloses an optimization device applicable to JAVA remote invocation object transfer, and the optimization device comprises a first recognition unit, an interception unit and a modification unit. The method and the device adopt a non-invasive mode, and realize optimization processing for the RMI transfer object, the method for writing and reading the serialized streams is created dynamically, accordingly, coding or modifying original service logics of a program is omitted, and performances of the transfer object can be improved during network transfer only by means of configuration.

Description

Technical field [0001] The present invention relates to the field of remote invocation, in particular to an optimization method and device suitable for JAVA remote invocation object transmission. Background technique [0002] In the JAVA language, RMI (Remote Method Invocation) is implemented by Java in JDK (Java Development kit is a product of Sun Microsystems for Java developers) 1.1, which greatly enhances the ability of Java to develop distributed applications. RMI is one of the core solutions to develop a 100% pure Java network distributed application system. In fact, it can be seen as the Java version of RPC. But traditional RPC (Remote Procedure Call Protocol) cannot be applied to distributed object systems well. Java RMI supports communication between program-level objects stored in different address spaces to achieve seamless remote calls between remote objects. [0003] Usually, the realization of RMI transmission in JAVA program requires the program object to implemen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/46
Inventor 阮航
Owner 融创天下(上海)科技发展有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products