Opening a temporary object handle on a resource object
First Claim
Patent Images
1. A computer program product comprising:
- a non-transitory computer readable storage device; and
program code stored on the non-transitory computer readable storage device that when executed by a processor performs the functions of;
providing, via a resource manager, a temporary handle to a first application managed by a first database that is requesting access to a resource object managed by a second database, wherein the temporary handle provides access to the resource object, wherein the temporary handle can be asynchronously invalidated or closed by the resource manager of the resource object at any time whilst the first application is active, wherein the temporary handle includes a priority attribute indicating that a resource manager should invalidate any other existing temporary handle on the resource object having a lower priority attribute to allow a higher priority request by the temporary handle;
receiving, at the resource manager, a conflicting request to access the resource object from a second application;
in response to receiving the conflicting request from the second application, the resource manager;
invalidating the temporary handle and any other existing temporary handles associated with the resource object that conflict with and have a lower priority than a priority of the second application; and
in response to receiving a request from the first application to close the temporary handle after the temporary handle has been invalidated by the resource manager, the resource manager deleting a handle control block associated with the temporary handle, wherein the resource manager comprises a plurality of handle control blocks, wherein each handle control block is allocated for a particular resource object.
1 Assignment
0 Petitions
Accused Products
Abstract
A system is provided for using a temporary object handle. The system includes a resource manager: receiving an open temporary handle request from an application for a resource object, where a temporary handle can by asynchronously invalidated by the resource manager at any time; and creating a handle control block at the resource manager for the object, including an indication that the handle is a temporary handle. The system then includes the resource manager: responsive to receiving a request from an application to use a handle, which has been invalidated by the resource manager, sending a response to the application that the handle is invalidated.
-
Citations
20 Claims
-
1. A computer program product comprising:
-
a non-transitory computer readable storage device; and program code stored on the non-transitory computer readable storage device that when executed by a processor performs the functions of; providing, via a resource manager, a temporary handle to a first application managed by a first database that is requesting access to a resource object managed by a second database, wherein the temporary handle provides access to the resource object, wherein the temporary handle can be asynchronously invalidated or closed by the resource manager of the resource object at any time whilst the first application is active, wherein the temporary handle includes a priority attribute indicating that a resource manager should invalidate any other existing temporary handle on the resource object having a lower priority attribute to allow a higher priority request by the temporary handle; receiving, at the resource manager, a conflicting request to access the resource object from a second application; in response to receiving the conflicting request from the second application, the resource manager;
invalidating the temporary handle and any other existing temporary handles associated with the resource object that conflict with and have a lower priority than a priority of the second application; andin response to receiving a request from the first application to close the temporary handle after the temporary handle has been invalidated by the resource manager, the resource manager deleting a handle control block associated with the temporary handle, wherein the resource manager comprises a plurality of handle control blocks, wherein each handle control block is allocated for a particular resource object. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A data processing system for referencing a resource object, the system comprising:
-
a processor; a memory coupled to the processor and having code that executed by the processor provides a resource manager for managing a resource object referenced by a first application, wherein the resource manager is configured to; provide a temporary handle to a first application managed by a first database that is requesting access to a resource object managed by a second database, wherein the temporary handle provides access to the resource object, wherein the temporary handle can be asynchronously invalidated or closed by the resource manager of the resource object at any time whilst the first application is active, wherein the temporary handle includes a priority attribute indicating that a resource manager should invalidate any other existing temporary handle on the resource object having a lower priority attribute to allow a higher priority request by the temporary handle; receive a conflicting request to access the resource object from a second application, wherein the conflicting request has an associated priority that is higher than the priority attribute of the temporary handle; in response to receiving the conflicting request from the second application, invalidate the temporary handle and any other existing temporary handles to access the resource object that conflict with and have a lower priority than the priority associated with the conflicting request from the second application; and in response to receiving a request from the first application to close the temporary handle after the temporary handle has been invalidated by the resource manager, delete a handle control block associated with the temporary handle, wherein the resource manager comprises a plurality of handle control blocks, wherein each handle control block is allocated for a particular resource object. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification