Using a temporary object handle to control access to a resource object
AssigneeInternational Business Machines Corporation
InventorsPaul Cullen, Andrew Hickson, Gary Longerstaey, Stuart Reece
Life of this patent
Estimating the term…
Abstract
A method is provided for using a temporary object handle. The method performed at a resource manager includes: receiving an open temporary handle request from an application for a resource object, wherein 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 method then includes: 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.
Claims20
A computer implemented method for using a temporary object handle at a resource manager, comprising:
- receiving an open temporary object handle request for a handle from an application for a resource object, wherein the handle is an opaque reference that identifies the resource object;
- opening the handle for the resource object;
- allocating a handle control block at the resource manager for the resource object, wherein the handle control block includes an indication that the handle is a temporary object handle that can be asynchronously invalidated by the resource manager at any time;
- receiving, from the application, a request to use the handle after the handle has been invalidated by the resource manager;
- in response to receiving the request from the application to use the handle after the handle has been invalidated, sending a response to the request from the application that indicates to the application that the handle has been invalidated;
- and
- in response to receiving the response from the resource manager that indicates the handle has been invalidated, the application issuing a new request to the resource manager for a second handle to be opened on the resource object.
A computer-implemented method for using a temporary object handle by an application, the method comprising:
- the application issuing a request for a handle to be opened on a resource object that is managed by a resource manager, wherein the handle is an opaque reference that identifies the resource object;
- the application electing that the handle to be opened on the resource object is a temporary object handle, wherein the temporary object handle is subject to being asynchronously invalidated by the resource manager at any time, wherein any application requesting a temporary object handle for a particular resource object is able to cope with the particular resource object being made unavailable;
- wherein in response to the resource manager receiving the request and the election for the handle from the application, the resource manager allocates a handle control block at the resource manager for the resource object, wherein the handle control block includes an indication that the handle is a temporary object handle;
- in response to the application sending a utilization request to the resource manager to use the handle after the handle has been invalidated by the resource manager, the application receiving a response to the utilization request from the resource manager that indicates the handle has been invalidated;
- and
- in response to receiving the response from the resource manager that indicates the handle has been invalidated, the application issuing a new request to the resource manager for a second handle to be opened on the resource object.
Dependencies are inferred from the claim text.