Providing an exclusive view of a shared resource
AssigneeOracle International Corporation
InventorsSurojit Chatterjee, Jonathan Creighton, Alok Srivastava
Life of this patent
Estimating the term…
Abstract
Described herein is a mechanism that follows, at least in part, an object oriented design pattern. In particular, a class is used to model a shared resource as a shared resource object. The class creates one instance of the shared resource object in response to multiple attempts to create a shared resource object from the class. The class defines various methods used to interact with the object. The object receives requests to perform operations from the clients. The clients may register another object to receive from the shared resource object notifications regarding events about the operations requested by the clients.
Claims18
A method of managing a shared object in an object-oriented environment, the method comprising the steps of:
- generating only a single instance of said shared object in response to attempts by a plurality of clients to create an instance of a particular object belonging to a class to which said shared object belongs;
- registering a plurality of observer objects by invoking, for each observer object of said plurality of observer objects, a first method of said shared object to register said each observer object to notify about an event related to an execution requested by a first client of a particular operation;
- wherein said plurality of clients include the first client;
- each client of said plurality of clients invoking a second method of said shared object to request execution of said particular operation;
- and
- when the shared object performs the execution requested by the first client of the particular operation, said shared object sending a first message about a first event related to the execution requested by said first client to each observer object that has been registered to notify about an event related to the execution requested by said first client of a particular operation.
Dependencies are inferred from the claim text.