Method and system for passing objects in a distributed system using serialization contexts
First Claim
Patent Images
1. A method in a distributed system for passing a first object and a second object, wherein the first object and the second object are instances of a class, comprising the steps of:
- passing the first object from a sender to a recipient with a descriptor of the class and a handle corresponding to the descriptor;
storing the handle and the descriptor received from the sender with the first object by the recipient;
passing the second object from the sender to the recipient with the handle;
using the handle received by the recipient with the second object to access the descriptor received by the recipient with the first object;
using the descriptor by the recipient to interpret the first object; and
using the descriptor by the recipient to interpret the second object.
2 Assignments
0 Petitions
Accused Products
Abstract
A system consistent with the present invention reduces the number of redundant class descriptors that are sent during remote method calls by using serialization contexts. “Serialization contexts” are dictionary objects that map a class descriptor to a corresponding integer handle. When possible, the integer handle, rather than the full class descriptor, is passed, saving processing time in RMI calls.
283 Citations
13 Claims
-
1. A method in a distributed system for passing a first object and a second object, wherein the first object and the second object are instances of a class, comprising the steps of:
-
passing the first object from a sender to a recipient with a descriptor of the class and a handle corresponding to the descriptor; storing the handle and the descriptor received from the sender with the first object by the recipient; passing the second object from the sender to the recipient with the handle; using the handle received by the recipient with the second object to access the descriptor received by the recipient with the first object; using the descriptor by the recipient to interpret the first object; and using the descriptor by the recipient to interpret the second object. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method in a distributed system for passing a first object and a second object to a recipient, wherein the first object and the second object are instances of a class, comprising the steps of:
-
passing, by a sender, the first object to the recipient with a descriptor of the class and a handle corresponding to the descriptor, whereupon receipt by the recipient, the recipient uses the descriptor to interpret the first object and stores the handle and the descriptor; and passing, by the sender, the second object to the recipient with the handle, whereupon receipt by the recipient, the recipient uses the handle received with the second object to access the descriptor of the class received with the first object and uses the descriptor to interpret the second object. - View Dependent Claims (7, 8, 9)
-
-
10. A method in a distributed system for interpreting a first object and a second object, wherein the first object and the second object are instances of a class, comprising the steps of:
-
receiving the first object from a sender with a descriptor of the class and a handle corresponding to the descriptor; storing the handle and the descriptor; receiving the second object with the handle; using the handle received with the second object to access the descriptor received with the first object; using the descriptor by the recipient to interpret the first object; and using the descriptor by the recipient to interpret the second object. - View Dependent Claims (11)
-
-
12. A distributed system comprising:
-
a client computer, comprising; a memory with a client program that sends a first object and a second object of a class to a remote location together with a handle corresponding to a descriptor of the class, and with an outgoing serialization context that stores the descriptor of the class and the handle corresponding to the descriptor; and a processor that runs the client program; and a server computer, comprising; a memory with an incoming serialization context that stores the descriptor of the class and the handle received from the client computer with the first object, and with a server program that uses the descriptor of the class to interpret the first object, receives the second object from the client program, uses the handle received with the second object to access the descriptor of the class stored in the incoming serialization context, and uses the descriptor of the class to interpret the second object; and a processor that runs the server program.
-
-
13. A computer-readable medium containing instructions for controlling a data processing system to perform a method, the method for sending a first object and a second object from a source to a destination, wherein the first object and the second object are instances of a class, the method comprising the steps of:
-
sending the first object from the source to the destination with a descriptor of the class and a handle corresponding to the descriptor; storing the handle and the descriptor received from the source by the destination; using the descriptor by the destination to interpret the first object; sending the second object from the source to the destination with the handle; using the handle received by the destination with the second object to access the descriptor received by the destination with the first object; and using the descriptor to interpret the second object.
-
Specification