System and method for accessing data objects via remote references
First Claim
Patent Images
1. A method comprising:
- receiving, by a first machine, from an application executing on a second machine, a request for creating a data object and a remote reference to the data object;
in response to the request, creating, by the first machine, the data object;
generating a ticket that references the data object;
creating, by the first machine, a proxy data object based on the ticket, wherein the proxy data object forwards calls received by the proxy data object to the data object using the ticket;
creating, by the first machine, a remote reference comprising a wrapper corresponding to the proxy data object, the remote reference further comprising at least one property of the data object, wherein the at least one property is accessible via the remote reference without accessing the data object via the proxy data object;
transmitting the remote reference from the first machine to the application executing on the second machine;
receiving, by the first machine, from the application, a request to evaluate an expression that includes the remote reference;
accessing, by the first machine, at least one element included in the data object via the remote reference;
evaluating, by the first machine, the expression based on the at least one element to produce a result;
transmitting the result from the first machine to the application;
determining, after the proxy data object is garbage collected, that no other proxy data objects reference the data object; and
responsive to determining that no other proxy data objects reference the data object, de-allocating a portion of memory allocated to the data object.
8 Assignments
0 Petitions
Accused Products
Abstract
One embodiment of the present invention sets forth a method for providing access to a data object stored on an application server from within a client side machine. The method includes creating a remote reference that is linked to the data object, transmitting the remote reference to an application executing on a second machine, receiving an expression to evaluate that includes the remote reference, accessing at least one element included in the data object via the remote reference, evaluating the expression based on the at least one element to produce a result, and transmitting the result to the application.
-
Citations
15 Claims
-
1. A method comprising:
-
receiving, by a first machine, from an application executing on a second machine, a request for creating a data object and a remote reference to the data object; in response to the request, creating, by the first machine, the data object; generating a ticket that references the data object; creating, by the first machine, a proxy data object based on the ticket, wherein the proxy data object forwards calls received by the proxy data object to the data object using the ticket; creating, by the first machine, a remote reference comprising a wrapper corresponding to the proxy data object, the remote reference further comprising at least one property of the data object, wherein the at least one property is accessible via the remote reference without accessing the data object via the proxy data object; transmitting the remote reference from the first machine to the application executing on the second machine; receiving, by the first machine, from the application, a request to evaluate an expression that includes the remote reference; accessing, by the first machine, at least one element included in the data object via the remote reference; evaluating, by the first machine, the expression based on the at least one element to produce a result; transmitting the result from the first machine to the application; determining, after the proxy data object is garbage collected, that no other proxy data objects reference the data object; and responsive to determining that no other proxy data objects reference the data object, de-allocating a portion of memory allocated to the data object. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer readable medium storing instructions that, when executed by a processor of a first machine, cause the processor to perform:
-
receiving, from an application executing on a second machine, a request for creating a data object and a remote reference to the data object; in response to the request, creating, by the first machine, the data object; generating a ticket that references the data object; creating a proxy data object based on the ticket, wherein the proxy data object forwards calls received by the proxy data object to the data object using the ticket; creating a remote reference comprising a wrapper corresponding to the proxy data object, the remote reference further comprising at least one property of the data object, wherein the at least one property is accessible via the remote reference without accessing the data object via the proxy data object; transmitting the remote reference to the application executing on a second machine; receiving, from the application, a request to evaluate an expression that includes the remote reference; accessing at least one element included in the data object via the remote reference; evaluating the expression based on the at least one element to produce a result; transmitting the result to the application; determining, after the proxy data object is garbage collected, that no other proxy data objects reference the data object; and responsive to determining that no other proxy data objects reference the data object, de-allocating a portion of memory allocated to the data object. - View Dependent Claims (9, 10, 11, 12, 13, 15)
-
-
14. A computer system, comprising:
-
a memory; and a processor configured to; receive, from an application executing on a second machine, a request for creating a data object and a remote reference to the data object, in response to the request, create the data object, generate a ticket that references the data object, create a proxy data object based on the ticket, wherein the proxy data object forwards calls received by the proxy data object to the data object using the ticket, create a remote reference comprising a wrapper corresponding to the proxy data object, the remote reference further comprising at least one property of the data object, wherein the at least one property is accessible via the remote reference without accessing the data object via the proxy data object, transmit the remote reference to the application executing on the second machine, receive, from the application, a request to evaluate an expression that includes the remote reference, access at least one element included in the data object via the remote reference, evaluate the expression based on the at least one element to produce a result, transmit the result to the application, determine, after the proxy data object is garbage collected, that no other proxy data objects reference the data object, and responsive to determining that no other proxy data objects reference the data object, de-allocate a portion of memory allocated to the data object.
-
Specification