The present application is related to U.S. Pat. No. 6,427,123, entitled “HIERARCHICAL INDEXING FOR ACCESSING HIERARCHICALLY ORGANIZED INFORMATION IN A RELATIONAL SYSTEM”, filed Feb. 18, 1999; U.S. Pat. No. 6,549,916, entitled “EVENT NOTIFICATION SYSTEM TIED TO FILE SYSTEM”, filed May 15, 2000; U.S. patent application Ser. No. 09/571,060, entitled “BASING DIRECTORY CONTENTS ON A QUERY THAT IS ASSOCIATED WITH A FILE IDENTIFIER”, filed May 15, 2000; U.S. patent application Ser. No. 09/571,696, entitled “VERSIONING IN INTERNET FILE SYSTEM”, filed May 15, 2000; U.S. patent application Ser. No. 10/259,176, entitled “MECHANISM FOR UNIFORM ACCESS CONTROL IN A DATABASE SYSTEM”, filed Sep. 27, 2002; U.S. patent application Ser. No. 10/260,381, entitled “MECHANISM TO EFFICIENTLY INDEX STRUCTURED DATA THAT PROVIDES HIERARCHICAL ACCESS IN A RELATIONAL DATABASE SYSTEM”, filed Sep. 27, 2002; U.S. patent application Ser. No. 10/306,485, entitled “TECHNIQUES FOR MANAGING HIERARCHICAL DATA WITH LINK ATTRIBUTES IN A RELATIONAL DATABASE”, filed Nov. 26, 2002; U.S. patent application Ser. No. 10/884,311, entitled “INDEX FOR ACCESSING XML DATA”, filed Jul. 2, 2004; U.S. patent application Ser. No. 10/944,177, entitled “INDEX MAINTENANCE FOR OPERATIONS INVOLVING INDEXED XML DATA”, filed Sep. 16, 2004; U.S. patent application Ser. No. 10/944,170, entitled “EFFICIENT QUERY PROCESSING OF XML DATA USING XML INDEX”, filed Sep. 16, 2004; U.S. patent application Ser. No. 10/452,164, entitled “TRANSACTION-AWARE CACHING FOR ACCESS CONTROL METADATA”, filed May 30, 2003; U.S. patent application Ser. No. 10/452,163, entitled “TRANSACTION-AWARE CACHING FOR FOLDER PATH DATA”, filed May 30, 2003; U.S. patent application Ser. No. 09/728,909, entitled “HIERARCHY-BASED SECURED DOCUMENT REPOSITORY”, filed Dec. 1, 2000; and U.S. patent application Ser. No. 11/014,442, entitled “A COMPREHENSIVE FRAMEWORK TO INTEGRATE BUSINESS LOGIC INTO A REPOSITORY”, filed on the same date herewith; the contents of all of which are hereby incorporated by reference in their entirety for all purposes as if fully set forth herein.
The present invention relates to computer file systems, and in particular, to performing an action in response to a file system event.
The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section.
Humans tend to organize information in categories. The categories in which information is organized are themselves typically organized relative to each other in some form of hierarchy. For example, an individual animal belongs to a species, the species belongs to a genus, the genus belongs to a family, the family belongs to an order, and the order belongs to a class.
With the advent of computer systems, techniques for storing electronic information have been developed that largely reflected this human desire for hierarchical organization. Conventional computer file systems, for example, are typically implemented using hierarchy-based organization principles. Specifically, a typical file system has directories arranged in a hierarchy, and documents stored in the directories. Ideally, the hierarchical relationships between the directories reflect some intuitive relationship between the meanings that have been assigned to the directories. Similarly, it is ideal for each document to be stored in a directory based on some intuitive relationship between the contents of the document and the meaning assigned to the directory in which the document is stored.
In the directory hierarchy, directory 116 is a child of directory 114 entitled “Windows”, and directory 114 is a child of directory 110. Similarly, directory 124 is a child of directory 126 entitled “VMS”, and directory 126 is a child of directory 110. Directory 110 is referred to as the “root” directory because it is the directory from which all other directories descend. In many systems, the symbol “/” is used to refer to the root directory. Each of directories 110, 114, 116, 120, 124, 126, and each of documents 118 and 122, is a separate node in the directory hierarchy.
When electronic information is organized in a hierarchy, each item of information may be located by following a “path” through the hierarchy to the entity that contains the item. Within a hierarchical file system, the path to an item begins at the root directory and proceeds down the hierarchy of directories to eventually arrive at the directory that contains the item of interest. For example, the path to file 118 consists of directories 110, 114 and 116, in that order.
Hierarchical storage systems often allow different items to have the same name. For example, in the file system shown in
A convenient way to identify and locate a specific item of information stored in a hierarchical storage system is through the use of a “pathname”. A pathname is a concise way of uniquely identifying an item based on the path through the hierarchy to the item. A pathname is composed of a sequence of names. In the context of a file system, each name in the sequence of names is a “filename”. The term “filename” refers to both the names of directories and the names of documents, since both directories and documents are considered to be “files”.
Within a file system, the sequence of filenames in a given pathname begins with the name of the root directory, includes the names of all directories along the path from the root directory to the item of interest, and terminates in the name of the item of interest. Typically, the list of directories to traverse is concatenated together, with some kind of separator punctuation (e.g., ‘/’, ‘\’, or ‘;’) to make a pathname. Thus, the pathname for document 118 is /Windows/Word/Example.doc, while the pathname for document 122 is /VMS/App4/Example.doc.
The relationship between directories (files) and their contained content varies significantly between different types of hierarchically organized systems. One model, employed by various implementations, such as Windows and DOS file systems, requires each file to have exactly one parent, forming a tree. In a more complicated model, the hierarchy takes the form of a directed graph, where files can have multiple parents, as in the UNIX file system in which hard links are used.
In contrast to hierarchical approaches to organizing electronic information, a relational database stores information in tables comprised of rows and columns. Each row is identified by a unique row ID. Each column represents an attribute of a record, and each row represents a particular record. Data is retrieved from the database by submitting queries to a database management system (DBMS) that manages the database.
Each type of storage system has advantages and limitations. A hierarchically organized storage system is simple, intuitive, and easy to implement, and is a standard model used by most application programs. Unfortunately, the simplicity of the hierarchical organization does not provide the support required for complex data retrieval operations. For example, the contents of every directory may have to be inspected to retrieve all documents created on a particular day that have a particular filename. Since all directories must be searched, the hierarchical organization does nothing to facilitate the retrieval process.
A relational database system is well suited for storing large amounts of information and for accessing data in a very flexible manner. Relative to hierarchically organized systems, data that matches even complex search criteria may be easily and efficiently retrieved from a relational database system. However, the process of formulating and submitting queries to a database server is less intuitive than merely traversing a hierarchy of directories, and is beyond the technical comfort level of many computer users.
In the past, hierarchically organized systems and relationally organized systems have been implemented in different ways that were not compatible. With some additional processing, however, a relationally organized system can emulate a hierarchically organized system. This type of emulation is especially desirable when the storage capability and flexibility of a relational system is needed, but the intuitiveness and ubiquity of the hierarchical system is desired.
Such emulation may be implemented through the use of two relational tables: a “file” table and a “directory links” table. The file table stores information relating to each file in the emulated hierarchical system. For files that are documents, the file table further stores either the body of the file (in the form of a large binary object (BLOB)), or a pointer to the body of the document. The directory links table stores all of the link information that indicates the parent-child relationships between files.
To understand how these two tables may be used to emulate a hierarchical storage system, one may suppose that a file system having the hierarchical structure of
The file ID, also known as the “object ID” or “OID,” is a unique ID assigned to each file by the system. The name is the name assigned to the file, which does not need to be unique. The body is the field in which the contents of a file are stored. The body field may store the actual contents of a file in the form of a binary large object (BLOB), or a pointer to the contents of the file. Where the entry is for a file having no content (e.g. a directory), the body field is null. In the above example, only the two documents entitled Example.doc have content; thus, the body field for all of the other entries is null.
In directory links table 310, an entry is stored for each link between files in the file system of
To illustrate how the information in these two tables may be used to implement the file system of
This query returns the ID of the child file, which in this case is X2 (for Windows directory 114). After obtaining the ID of the child file, the DBMS makes a second scan of the directory links table 310, this time looking for the entry where the parent file is Windows directory 114, and the child file is Word directory 116. This is achieved by executing the following Select statement:
This query returns the ID of Word directory 116, which in this example is X3. With this information, the DBMS makes a third scan of directory links table 310, this time searching for the entry where the parent file is Word directory 116 and the child file is Example.doc document 118. This is achieved with the following Select statement:
At the end of this process, the ID of document 118 will have been determined. Using this ID as the primary key, the proper entry in files table 210 is located, and the contents of document 118 are accessed from the body field. Thus, using this technique, files that are actually stored in a relational structure, such as table 210, may be located and accessed using pathnames just as if they were stored in a hierarchically organized structure. The user submitting the pathname to locate a file need not understand the complexity of a relational system. Conversely, because the files are stored in a relational system, the files may be efficiently accessed in more sophisticated ways by users that are familiar with relational systems.
In a database management system, a trigger is an object that specifies a series of actions to be automatically performed when a specific event occurs. According to industry standards, Data Manipulation (DML) statements—SQL statements that manipulate data in tables—are the events that cause user-defined triggers to be activated (or “fired”). For example, in a relational database, user-defined triggers may be designed to fire when a row of a database table or a table view is updated, inserted, or deleted. Accordingly, each user-defined trigger is typically associated with a single database table. That is, in a conventional database management system, the scope of the user-defined trigger is the table level of the database.
The series of actions specified by a trigger is typically written as instructions in a high-level database language such as SQL or PL/SQL (a procedural language extension of SQL available from Oracle Corporation of Redwood Shores, Calif.). In conformance with industry standards, these instructions must be able to access the data values of table columns corresponding to an affected row before the triggering DML statement was applied (the “old values”) and after the modification was applied (the “new values”).
Since triggers are objects, database customers can define, remove, and store triggers associated with a database table, and the database management system keeps track of which triggers have been defined for which table by storing that information as metadata (information about data) associated with the table in a data dictionary for the database. Consequently, triggers enable database customers to implement additional functionality in their databases for such purposes as enforcement of business rules and security.
As is discussed above, triggers may be associated with database tables, and a hierarchical file system may be represented through multiple tables. Unfortunately, triggers are very often unsuitable for specifying actions that are to be performed in response to events that occur relative to nodes in the file system. Events that occur relative to nodes in a file system do not always have a direct and unique correspondence with events that occur relative to the database tables that represent the file system. As a result, it is sometimes difficult to define a database table event that would correspond to a particular event in the file system. Although some events may occur relative to a database table whenever a particular event occurs relative to a file system, those events also might occur relative to the database table even in the absence of the particular event occurring relative to the file system.
Additionally, one or more of the database tables that represent the file system might not be accessible to users. As a result, users might not be able to associate triggers with the database tables that implement the file system. For example, ordinary users might not have sufficient privileges to associate customized triggers with files table 210 and/or database links table 310. Indeed, ordinary users might not understand how events occurring within the file system affect these tables. Ordinary users might be insulated from these tables to such an extent that they would not even be aware of the existence of these tables.
Ordinary users typically do understand hierarchical file systems, though, as well as the operations that can be performed on nodes within those file systems. Under many circumstances, users might find it useful for specified actions to be performed automatically in response to specified events occurring within a file system. A way of causing specified actions to be performed automatically in response to specified file system events is needed.
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
A method and apparatus are described for performing an action in response to a file system event. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.
According to one embodiment of the invention, sets of “event listeners” may be associated with individual nodes of a file hierarchy, and/or with the entire file hierarchy. Each event listener contains a set of “event handlers.” Each event handler corresponds to a separate type of event that may occur relative to nodes, such as files and directories, in the file hierarchy.
In one embodiment, when an event is going to occur relative to a node in the file hierarchy, all event listeners that are associated with either the entire file hierarchy or the node relative to which the event is going to occur are inspected to determine whether those event listeners contain any event handlers that correspond to the event's type. Those event handlers that correspond to the event's type are placed in a list of event handlers to be invoked.
Each event handler corresponds to a separate programmatic mechanism. As the event handlers in the list are invoked, the programmatic mechanisms that correspond to those event handlers are executed. Such programmatic mechanisms may be custom-created by users, so that custom user-desired actions are performed in response to events occurring relative to nodes in the file system.
The term “file system event” is defined herein as an event that occurs in response to a file system command being received through a file system interface. Examples of file system commands include commands to copy files, move files, delete files, create directories, list directory contents, remove directories, rename files, and rename directories. Other file system commands are well known. According to one embodiment, a file system command is mapped to one or more corresponding database commands. When issued to a database server, database commands cause the database server to perform operations on database objects such as database tables. These database commands are not received through a file system interface.
According to one embodiment, when a file system command is received through a file system interface, the one or more corresponding database commands are issued to a database server, which performs operations on database objects to carry out the file system command. System tables, which are not directly accessible to users, may be among the database objects upon which such operations are performed. Although a file system command may cause a database server to perform a specific operation relative to a specific database object, under some circumstances, the same specific operation may be performed relative to the same specific database object even in the absence of a file system command. Thus, while database events may occur in conjunction with file system events according to one embodiment, the same database events also may occur exclusively of file system events.
In one embodiment, event listeners are associated with a file hierarchy and/or the nodes thereof by associating “resource configurations” with the hierarchy and/or nodes. Each resource configuration contains a list of one or more event listeners. According to one embodiment, each resource configuration is implemented as a separate XML document that conforms to a resource configuration schema.
Shown below is an example resource configuration schema that contains two separate event listeners. Each event listener is bounded by the “<listener>” and “</listener>” opening and closing tags.
In the above example, each “listener” element has a “description” child element that contains a description of the corresponding event listener. This first event listener's description is “Category application” and the second event listener's description is “Check quota”.
Each listener element also has a “source” child element that contains a reference to a programmatic mechanism that implements all of the corresponding event listener's event handling mechanisms. The event handling mechanisms for the “Category application” event listener are implemented by programmatic mechanism “oracle.cm.category”. The event handling mechanisms for the “Check quota” event listener are implemented by programmatic mechanism “oracle.ifs.category”. Such programmatic mechanisms may be instances of Java classes and/or PL/SQL packages, for example.
Each resource configuration may be associated with the entire file hierarchy, or with a specified node of the hierarchy. For example, the resource configuration shown above might be associated with directory 116. If so, then whenever a file system event was going to occur relative to directory 116, the “Category application” and “Check quota” event listeners both would be inspected to determine whether any of those event listeners' event handlers corresponded to the event type of the file system event that was going to occur relative to directory 116. For another example, the resource configuration shown above might be associated with the entire file hierarchy. If so, then whenever a file system event was going to occur relative to any node in the file hierarchy, the “Category application” and “Check quota” event listeners both would be inspected to determine whether any of those event listeners' event handlers corresponded to the event type of the file system event that was going to occur relative to that node.
Each listener element also has an “events” child element. Each such “events” element may contain one or more additional child elements. Each of these child elements corresponds to a separate event handler. For example, in the resource configuration shown above, each event listener has event handlers for “Post-Linkin,” “Post-Unlinkin,” and “Post-Update” file system events; these are bounded by the “<events>” and “</events>” opening and closing tags. Each of these event handlers corresponds to a file system event type.
According to one embodiment, whenever a file system event of a particular file system event type is going to occur relative to a particular node in the file hierarchy, the following steps are performed. First, each of the event listeners in the resource configuration associated with the entire file hierarchy is inspected to determine if any of those event listeners contains an event handler that corresponds to the particular file system event type. Event handlers that correspond to the particular file system event type are added to a list of event handlers that are to be invoked. The event handlers are placed in the list in the same order as the order of their event listeners in the resource configuration. Thus, event listeners that occur earlier in a resource configuration have precedence over event listeners that occur later in a resource configuration.
Next, each of the event listeners in the resource configuration associated with the particular node are inspected to determine if any of those event listeners contains an event handler that corresponds to the particular file system event type. Event handlers that correspond to the particular file system event type are added to the list of event handlers that are to be invoked. The event handlers are placed beneath any other event handlers that are already in the list. Thus, event handlers that occur in a resource configuration that is associated with the entire file hierarchy have precedence over event listeners that occur in a resource configuration that is associated with the particular node.
In one embodiment, the addition of a particular event handler to the list of event handlers that are to be invoked is subject to the satisfaction of a specified pre-condition that is contained in the particular event handler's event listener. Pre-conditions are described further below.
Usually, after the list of event handlers to be invoked has been completely generated, the event handlers in the list are invoked, one at a time, according to the order in which those event handlers occur in the list. However, the placement of a particular event handler within the list does not necessarily guarantee that the particular event handler actually will be invoked, or that the particular event handler will be invoked according to its initial order in the list; event handlers may be removed from the list and/or reordered within the list. Circumstances under which this might occur are described further below.
When an event handler is invoked, a corresponding method or procedure of the event handler's event listener's corresponding programmatic mechanism is called and executed. For example, when the “Post-Linkin” event handler of the “Category application” event listener is invoked, a “Post-Linkin” method or procedure of the “oracle.cm.category” programmatic mechanism is called and executed. For another example, when the “Post-Linkin” event handler of the “Check quota” event listener is invoked, a “Post-Linkin” method or procedure of the “oracle.ifs.category” programmatic mechanism is invoked. For yet another example, when the “Post-Update” event handler of the “Category application” event listener is invoked, a “Post-Update” method or procedure of the “oracle.cm.category” programmatic mechanism is called and executed. Each such method or procedure may perform customized, user-specified actions when invoked.
As is described above, each event handler corresponds to a file system event type. In one embodiment, the following file system event types are among those recognized: render, create, delete, update, lock, unlock, link in, link to, unlink in, unlink from, check in, check out, uncheck out, version control, inconsistent update, and open.
In the resource configuration shown above, both event listeners contain event handlers that correspond to the “link in”, “unlink in”, and “update” file system event types. Event handlers for a particular file system event type may be prefaced by “pre-” or “post-” prefixes. The “pre-” and “post-” prefixes are discussed further below.
A file system event of the “render” file system event type occurs when the contents of a node are dynamically generated.
A file system event of the “create” file system event type occurs when a node is created in the file hierarchy. Conversely, a file system event of the “delete” file system event type occurs when a node is deleted from the file hierarchy.
A file system event of the “lock” file system event type occurs when a node is placed in a state in which one or more entities are prevented from reading from and/or writing to a node. Conversely, a file system event of the “unlock” file system event type occurs when a node that had been placed in such a state is placed in a state in which the entities that were prevented from reading from and/or writing to the node are allowed to read from and/or write to the node.
A file system event of the “link in” file system event type occurs when a symbolic link is created in the file hierarchy. Conversely, a file system event of the “unlink in” file system event type occurs when a symbolic link is removed from the file hierarchy. A symbolic link is a pointer or reference to a node. A symbolic link may occur at a different location in the file hierarchy than the node and may have a different name than the node. For example, referring to
The creation and removal of symbolic links in and from the file hierarchy constitute file system events that are distinct from the association and disassociation of such symbolic link with and from target nodes in the file hierarchy. Thus, a file system event of the “link to” file system event type occurs when an existing, already created, symbolic link is associated with a target node in the file hierarchy. Conversely, a file system event of the “unlink to” file system event type occurs when an existing symbolic link is disassociated from a node with which the symbolic link had been associated. Because a user might want different actions to be performed upon occurrences of each of the “link in,” “link to,” “unlink in,” and “unlink to” file system event types, these file system event types are distinguished and separated accordingly, even though a “link to” type file system event typically accompanies a “link in” type file system event, and an “unlink to” type file system event typically accompanies an “unlink in” type file system event.
A file system event of the “check out” file system event type occurs when an entity causes a modifiable copy of an unchangeable version-controlled node to be created while preserving the original node in its unchangeable state. Conversely, a file system event of the “check in” file system event type occurs when an entity causes such a copy (with some modification) to become a new unchangeable version-controlled node in the file hierarchy—another “version” of the node that is accessible to other entities after being “checked in.” Alternatively, an “uncheck out” file system event type occurs when such a copy is disposed of without ever being “checked in.”
A file system event of the “version control” file system event type occurs when a node is placed under version control and given a version-controlled status, so that the node becomes an unchangeable version-controlled node from which modifiable copies may be made as described above. Some nodes may be under version control, while other nodes might not be.
In some file systems, nodes may be updated transactionally, so that incremental changes made to the node do not become permanent unless and until all of the incremental changes that belong to a transaction have been completed and committed—if any of the incremental changes of a transaction fails, then none of the transaction's changes are made permanent. A file system event of the “inconsistent update” file system event type occurs when such an incremental update is performed, even if the transaction to which the incremental update belongs has not yet been committed.
A file system event of the “open” file system event type occurs when an object handle or buffer for a node is established so that the node can be read from and/or written to via the object handle or buffer. Thus, a file system event of the “open” file system event type may occur prior to the node actually being read from or written to.
As is described above, each event handler may be prefixed by “pre-” or “post-” prefix. In one embodiment, such prefixes affect the programmatic method or procedure to which an event handler corresponds, and also the timing of the calling and execution of the programmatic method or procedure relative to a file system event's occurrence. For example, a particular programmatic mechanism may contain one programmatic method or procedure for the “pre-update” event handler and another programmatic method or procedure for the “post-update” event handler. However, both the “pre-update” event handler and the “post-update” event handler correspond to the “update” file system event type.
As is described above, when a file system event is going to occur relative to a node in a file hierarchy, a list of event handlers to be invoked is been generated. According to one embodiment, those of the list's event handlers that are prefixed by “pre-” are invoked before the actual event occurs. After the file system event occurs, then those of the list's event handlers that are prefixed by “post-” are invoked.
For example, based on the example resource configuration shown above, in response to detecting that a node was going to be updated, the “post-update” method or procedure of the “oracle.cm.category” programmatic mechanism would be called and executed after the node was updated, and then the “post-update” method or procedure of the “oracle.ifs.category” programmatic mechanism would be called and executed. Alternatively, if the event handlers had been prefixed by “pre-” instead of “post-”, then the “pre-update” methods or procedures of both the “oracle.cm.category” and the “oracle.ifs.category” programmatic mechanisms would have been called and executed before the node was updated.
As is discussed above, in one embodiment, the addition of a particular event handler to the list of event handlers that are to be invoked is subject to the satisfaction of a specified pre-condition that is contained in the particular event handler's event listener. In one embodiment, before an event handler is added to the list of event handlers to be invoked, as described above, it is determined whether that event handler's event listener's pre-condition is satisfied. If the pre-condition is not satisfied, then the event handler is not added to the list.
In the example resource configuration shown above, the “Category application” and “Check quota” event listeners both contain pre-conditions, which are bounded by the “<pre-condition>” and “</pre-condition>” opening and closing tags. In the above example, both pre-conditions contain “existsNode” elements. Each “existsNode” element contains an expression that indicates a node or node type. In the above example, the nodes and node types are indicated via an XPath expression. When a pre-condition contains an “existsNode” element, it is determined whether the node or node type indicated within the “existsNode” element exists at the specified location in the file hierarchy. The pre-condition is satisfied only if the node or node type exists at the specified location. This is just one example of many different possible pre-conditions; other pre-conditions may contain expressions that do not involve the existence of a node or node type.
As is discussed above, the placement of a particular event handler within the list does not necessarily guarantee that the particular event handler actually will be invoked, or that the particular event handler will be invoked according to its initial order in the list. In one embodiment, when a file system event is going to occur relative to a node in a file hierarchy, an “event object” is created for that file system event. The event object contains the ordered list of event handlers that are to be invoked, as described above. The event object also comprises an interface of invocable methods or procedures that allow the list contained within the event object to be retrieved and altered.
In one embodiment, when the next event handler in the list is invoked, the event object is passed as a parameter to the event handler's corresponding programmatic method or procedure. The programmatic method or procedure may use the event object's interface to read the list and/or modify the list in accordance with user-specified logic within the programmatic method or procedure. For example, the programmatic method or procedure may re-order the event handlers that remain in the list. For another example, the programmatic method or procedure may remove one or more remaining event handlers from the list. Thus, event handlers may be removed from and/or reordered within the list by preceding event handlers regardless of the list's original ordering and composition.
When the programmatic method or procedure has finished executing, it returns the event object, which may contain a modified list of event handlers to be invoked. The next event handler in the list, if any, is then invoked.
In general, database server 412 creates a database by organizing information in one or more tables. The organization of the table is referred to as a definition. An index is a structure that is used for accessing particular information in the table more quickly. Therefore, a table definition supports any access mechanism to the data (search by name, by ID, by date, etc.), whereas an index is designed for a specific access method. The index itself is generally not the authoritative source of the data, but rather contains pointers to the disk addresses of the tables storing the authoritative data.
Referring first to
In block 506, it is determined whether the next such event listener's pre-condition is satisfied. If so, then control passes to block 508. Otherwise, control passes back to block 504.
In block 508, the event listener's event handler that corresponds to the file system event is added to the list of event handlers that are to be invoked. Control passes back to block 504.
Referring now to
In block 512, it is determined whether the next such event listener's pre-condition is satisfied. If so, then control passes to block 514. Otherwise, control passes back to block 510.
In block 514, the event listener's event handler that corresponds to the file system event is added to the list of event handlers that are to be invoked. Control passes back to block 510.
In block 516, an event object that contains the list of event handlers that are to be invoked is created.
Referring now to
In block 520, the event object is passed as a parameter in a call to a programmatic method or procedure that corresponds to the next such event handler in the list. The programmatic method or procedure called is a programmatic method or procedure of the programmatic mechanism that corresponds to the event handler's event listener. The programmatic method or procedure may perform one or more user-specified actions. Such actions may include modifying the event object's list of event handlers to be invoked.
In block 522, the event object is received from the programmatic method or procedure. Control passes back to block 518.
In block 524, the file system event is allowed to occur.
In block 526, after the occurrence of the file system event, it is determined whether any more event handlers that are prefaced by “post-” are contained in the event object's list of event handlers to be invoked. If so, then control passes to block 528. Otherwise, the execution of technique 500 ends.
In block 528, the event object is passed as a parameter in a call to a programmatic method or procedure that corresponds to the next such event handler in the list. The programmatic method or procedure called is a programmatic method or procedure of the programmatic mechanism that corresponds to the event handler's event listener. The programmatic method or procedure may perform one or more user-specified actions. Such actions may include modifying the event object's list of event handlers to be invoked.
In block 530, the event object is received from the programmatic method or procedure. Control passes back to block 526.
Computer system 600 may be coupled via bus 602 to a display 612, such as a cathode ray tube (CRT), for displaying information to a computer user. An input device 614, including alphanumeric and other keys, is coupled to bus 602 for communicating information and command selections to processor 604. Another type of user input device is cursor control 616, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor 604 and for controlling cursor movement on display 612. This input device typically has two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y), that allows the device to specify positions in a plane.
The invention is related to the use of computer system 600 for implementing the techniques described herein. According to one embodiment of the invention, those techniques are performed by computer system 600 in response to processor 604 executing one or more sequences of one or more instructions contained in main memory 606. Such instructions may be read into main memory 606 from another computer-readable medium, such as storage device 610. Execution of the sequences of instructions contained in main memory 606 causes processor 604 to perform the process steps described herein. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the invention. Thus, embodiments of the invention are not limited to any specific combination of hardware circuitry and software.
The term “computer-readable medium” as used herein refers to any medium that participates in providing instructions to processor 604 for execution. Such a medium may take many forms, including but not limited to, non-volatile media, volatile media, and transmission media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 610. Volatile media includes dynamic memory, such as main memory 606. Transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 602. Transmission media can also take the form of acoustic or light waves, such as those generated during radio-wave and infra-red data communications.
Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, or any other magnetic medium, a CD-ROM, any other optical medium, punchcards, papertape, any other physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave as described hereinafter, or any other medium from which a computer can read.
Various forms of computer readable media may be involved in carrying one or more sequences of one or more instructions to processor 604 for execution. For example, the instructions may initially be carried on a magnetic disk of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 600 can receive the data on the telephone line and use an infra-red transmitter to convert the data to an infra-red signal. An infra-red detector can receive the data carried in the infra-red signal and appropriate circuitry can place the data on bus 602. Bus 602 carries the data to main memory 606, from which processor 604 retrieves and executes the instructions. The instructions received by main memory 606 may optionally be stored on storage device 610 either before or after execution by processor 604.
Computer system 600 also includes a communication interface 618 coupled to bus 602. Communication interface 618 provides a two-way data communication coupling to a network link 620 that is connected to a local network 622. For example, communication interface 618 may be an integrated services digital network (ISDN) card or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, communication interface 618 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, communication interface 618 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
Network link 620 typically provides data communication through one or more networks to other data devices. For example, network link 620 may provide a connection through local network 622 to a host computer 624 or to data equipment operated by an Internet Service Provider (ISP) 626. ISP 626 in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet” 628. Local network 622 and Internet 628 both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on network link 620 and through communication interface 618, which carry the digital data to and from computer system 600, are exemplary forms of carrier waves transporting the information.
Computer system 600 can send messages and receive data, including program code, through the network(s), network link 620 and communication interface 618. In the Internet example, a server 630 might transmit a requested code for an application program through Internet 628, ISP 626, local network 622 and communication interface 618.
The received code may be executed by processor 604 as it is received, and/or stored in storage device 610, or other non-volatile storage for later execution. In this manner, computer system 600 may obtain application code in the form of a carrier wave.
In the foregoing specification, embodiments of the invention have been described with reference to numerous specific details that may vary from implementation to implementation. Thus, the sole and exclusive indicator of what is the invention, and is intended by the applicants to be the invention, is the set of claims that issue from this application, in the specific form in which such claims issue, including any subsequent correction. Any definitions expressly set forth herein for terms contained in such claims shall govern the meaning of such terms as used in the claims. Hence, no limitation, element, property, feature, advantage or attribute that is not expressly recited in a claim should limit the scope of such claim in any way. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Number | Name | Date | Kind |
---|---|---|---|
4558413 | Schmidt et al. | Dec 1985 | A |
5047918 | Schwartz et al. | Sep 1991 | A |
5202982 | Gramlich et al. | Apr 1993 | A |
5210686 | Jernigan | May 1993 | A |
5222242 | Choi et al. | Jun 1993 | A |
5257366 | Adair et al. | Oct 1993 | A |
5295256 | Bapat | Mar 1994 | A |
5307490 | Davidson et al. | Apr 1994 | A |
5313629 | Abraham et al. | May 1994 | A |
5327556 | Mohan et al. | Jul 1994 | A |
5369763 | Biles | Nov 1994 | A |
5388257 | Bauer | Feb 1995 | A |
5410691 | Taylor | Apr 1995 | A |
5454101 | Mackay et al. | Sep 1995 | A |
5463772 | Thompson et al. | Oct 1995 | A |
5467471 | Bader | Nov 1995 | A |
5493682 | Tyra et al. | Feb 1996 | A |
5499358 | Nevarez | Mar 1996 | A |
5499371 | Henninger et al. | Mar 1996 | A |
5504892 | Atsatt et al. | Apr 1996 | A |
5524240 | Barbara et al. | Jun 1996 | A |
5530849 | Hanushevsky et al. | Jun 1996 | A |
5544360 | Lewak et al. | Aug 1996 | A |
5546571 | Shan et al. | Aug 1996 | A |
5561763 | Eto et al. | Oct 1996 | A |
5566331 | Irwin, Jr. et al. | Oct 1996 | A |
5566337 | Szymanski et al. | Oct 1996 | A |
5568640 | Nishiyama et al. | Oct 1996 | A |
5574915 | Lemon et al. | Nov 1996 | A |
5643633 | Telford et al. | Jul 1997 | A |
5649200 | Leblang et al. | Jul 1997 | A |
5675802 | Allen et al. | Oct 1997 | A |
5680614 | Bakuya et al. | Oct 1997 | A |
5682524 | Freund et al. | Oct 1997 | A |
5684990 | Boothby | Nov 1997 | A |
5689706 | Rao et al. | Nov 1997 | A |
5701467 | Freeston | Dec 1997 | A |
5706510 | Burgoon | Jan 1998 | A |
5729689 | Allard et al. | Mar 1998 | A |
5737736 | Chang et al. | Apr 1998 | A |
5758153 | Atsatt et al. | May 1998 | A |
5778179 | Kanai et al. | Jul 1998 | A |
5778354 | Leslie et al. | Jul 1998 | A |
5802518 | Karaev et al. | Sep 1998 | A |
5806078 | Hug et al. | Sep 1998 | A |
5819275 | Badger et al. | Oct 1998 | A |
5822511 | Kashyap et al. | Oct 1998 | A |
5825353 | Will | Oct 1998 | A |
5832526 | Schuyler | Nov 1998 | A |
5838965 | Kavanagh et al. | Nov 1998 | A |
5842212 | Ballurio et al. | Nov 1998 | A |
5848246 | Gish | Dec 1998 | A |
5864870 | Guck | Jan 1999 | A |
5870590 | Kita et al. | Feb 1999 | A |
5878410 | Zbikowski et al. | Mar 1999 | A |
5878415 | Olds | Mar 1999 | A |
5878434 | Draper et al. | Mar 1999 | A |
5890147 | Peltonen et al. | Mar 1999 | A |
5892535 | Allen et al. | Apr 1999 | A |
5897638 | Lasser et al. | Apr 1999 | A |
5915253 | Christiansen | Jun 1999 | A |
5917492 | Bereiter | Jun 1999 | A |
5918225 | White et al. | Jun 1999 | A |
5921582 | Gusack | Jul 1999 | A |
5924088 | Jakobsson et al. | Jul 1999 | A |
5937406 | Balabine et al. | Aug 1999 | A |
5956506 | Cobb et al. | Sep 1999 | A |
5974407 | Sacks | Oct 1999 | A |
5978791 | Farber et al. | Nov 1999 | A |
5983277 | Heile et al. | Nov 1999 | A |
5991771 | Falls et al. | Nov 1999 | A |
6008806 | Nakajima et al. | Dec 1999 | A |
6021414 | Fuller | Feb 2000 | A |
6023706 | Schmuck et al. | Feb 2000 | A |
6026402 | Vossen et al. | Feb 2000 | A |
6029160 | Cabrera et al. | Feb 2000 | A |
6029166 | Mutalik et al. | Feb 2000 | A |
6029175 | Chow et al. | Feb 2000 | A |
6052122 | Sutcliffe et al. | Apr 2000 | A |
6055527 | Badger et al. | Apr 2000 | A |
6088694 | Burns et al. | Jul 2000 | A |
6092086 | Martin et al. | Jul 2000 | A |
6101500 | Lau | Aug 2000 | A |
6111578 | Tesler | Aug 2000 | A |
6112209 | Gusack | Aug 2000 | A |
6115741 | Domenikos et al. | Sep 2000 | A |
6119118 | Kain, III et al. | Sep 2000 | A |
6122645 | Bohannon et al. | Sep 2000 | A |
6128610 | Srinivasan et al. | Oct 2000 | A |
6182121 | Wlaschin | Jan 2001 | B1 |
6185574 | Howard et al. | Feb 2001 | B1 |
6192273 | Igel et al. | Feb 2001 | B1 |
6192373 | Haegele | Feb 2001 | B1 |
6208993 | Shadmon | Mar 2001 | B1 |
6212512 | Barney et al. | Apr 2001 | B1 |
6212557 | Oran | Apr 2001 | B1 |
6230310 | Arrouye et al. | May 2001 | B1 |
6233729 | Campara et al. | May 2001 | B1 |
6236988 | Aldred | May 2001 | B1 |
6236991 | Frauenhofer et al. | May 2001 | B1 |
6247024 | Kincaid | Jun 2001 | B1 |
6279005 | Zellweger | Aug 2001 | B1 |
6279007 | Uppala | Aug 2001 | B1 |
6301592 | Aoyama et al. | Oct 2001 | B1 |
6301605 | Napolitano et al. | Oct 2001 | B1 |
6314408 | Salas et al. | Nov 2001 | B1 |
6321219 | Gainer et al. | Nov 2001 | B1 |
6330573 | Salisbury et al. | Dec 2001 | B1 |
6332200 | Meth et al. | Dec 2001 | B1 |
6339382 | Arbinger et al. | Jan 2002 | B1 |
6349295 | Tedesco et al. | Feb 2002 | B1 |
6366902 | Lyle et al. | Apr 2002 | B1 |
6366921 | Hansen et al. | Apr 2002 | B1 |
6366988 | Skiba et al. | Apr 2002 | B1 |
6370537 | Gilbert et al. | Apr 2002 | B1 |
6370548 | Bauer et al. | Apr 2002 | B1 |
6381607 | Wu et al. | Apr 2002 | B1 |
6389427 | Faulkner | May 2002 | B1 |
6389433 | Bolosky et al. | May 2002 | B1 |
6393435 | Gartner et al. | May 2002 | B1 |
6393456 | Ambler et al. | May 2002 | B1 |
6397231 | Salisbury et al. | May 2002 | B1 |
6421692 | Milne et al. | Jul 2002 | B1 |
6427123 | Sedlar | Jul 2002 | B1 |
6430575 | Dourish et al. | Aug 2002 | B1 |
6438550 | Doyle et al. | Aug 2002 | B1 |
6442548 | Balabine et al. | Aug 2002 | B1 |
6446091 | Noren et al. | Sep 2002 | B1 |
6453325 | Cabrera et al. | Sep 2002 | B1 |
6457007 | Kikuchi et al. | Sep 2002 | B1 |
6457065 | Rich et al. | Sep 2002 | B1 |
6487469 | Formenti | Nov 2002 | B1 |
6487552 | Lei et al. | Nov 2002 | B1 |
6493742 | Holland et al. | Dec 2002 | B1 |
6505212 | Nakano et al. | Jan 2003 | B2 |
6519597 | Cheng et al. | Feb 2003 | B1 |
6532488 | Ciarlante et al. | Mar 2003 | B1 |
6549916 | Sedlar | Apr 2003 | B1 |
6584459 | Chang et al. | Jun 2003 | B1 |
6587873 | Nobakht et al. | Jul 2003 | B1 |
6594675 | Schneider | Jul 2003 | B1 |
6604100 | Fernandez et al. | Aug 2003 | B1 |
6604236 | Draper et al. | Aug 2003 | B1 |
6611843 | Jacobs | Aug 2003 | B1 |
6631366 | Nagavamsi et al. | Oct 2003 | B1 |
6636845 | Chau et al. | Oct 2003 | B2 |
6643633 | Chau et al. | Nov 2003 | B2 |
6654734 | Mani et al. | Nov 2003 | B1 |
6681221 | Jacobs | Jan 2004 | B1 |
6697805 | Choquier et al. | Feb 2004 | B1 |
6711595 | Anantharao | Mar 2004 | B1 |
6725212 | Couch et al. | Apr 2004 | B2 |
6725227 | Li | Apr 2004 | B1 |
6772350 | Belani et al. | Aug 2004 | B1 |
6782380 | Thede | Aug 2004 | B1 |
6889223 | Hattori | May 2005 | B2 |
6959416 | Manning et al. | Oct 2005 | B2 |
6965894 | Leung et al. | Nov 2005 | B2 |
6970975 | Frank | Nov 2005 | B2 |
6973455 | Vahalia et al. | Dec 2005 | B1 |
7031956 | Lee et al. | Apr 2006 | B1 |
7043472 | Aridor et al. | May 2006 | B2 |
7047253 | Murthy et al. | May 2006 | B1 |
7051039 | Murthy et al. | May 2006 | B1 |
7062507 | Wang et al. | Jun 2006 | B2 |
7089239 | Baer et al. | Aug 2006 | B1 |
7096224 | Murthy et al. | Aug 2006 | B2 |
7117216 | Chakraborty | Oct 2006 | B2 |
7139746 | Shin et al. | Nov 2006 | B2 |
7162485 | Gottlob et al. | Jan 2007 | B2 |
7171404 | Lindblad et al. | Jan 2007 | B2 |
7171407 | Barton et al. | Jan 2007 | B2 |
7216127 | Auerbach | May 2007 | B2 |
20010049675 | Mandler et al. | Dec 2001 | A1 |
20010504042 | Watkins et al. | Dec 2001 | |
20020056025 | Qiu et al. | May 2002 | A1 |
20020073056 | Broster et al. | Jun 2002 | A1 |
20020078068 | Krishnaprasad et al. | Jun 2002 | A1 |
20020095421 | Koskas | Jul 2002 | A1 |
20020103829 | Manning et al. | Aug 2002 | A1 |
20020120858 | Porter et al. | Aug 2002 | A1 |
20020133484 | Chau et al. | Sep 2002 | A1 |
20020138617 | Christfort et al. | Sep 2002 | A1 |
20020152267 | Lennon | Oct 2002 | A1 |
20020184401 | Kadel, Jr. et al. | Dec 2002 | A1 |
20020188613 | Chakraborty et al. | Dec 2002 | A1 |
20030004937 | Salmenkaita et al. | Jan 2003 | A1 |
20030033285 | Jalali et al. | Feb 2003 | A1 |
20030065659 | Agarwal et al. | Apr 2003 | A1 |
20030084056 | DeAnna et al. | May 2003 | A1 |
20030101194 | Rys et al. | May 2003 | A1 |
20030131051 | Lection et al. | Jul 2003 | A1 |
20030167456 | Sabharwal | Sep 2003 | A1 |
20030177341 | Devillers | Sep 2003 | A1 |
20030195865 | Long et al. | Oct 2003 | A1 |
20030200197 | Long et al. | Oct 2003 | A1 |
20030212662 | Shin et al. | Nov 2003 | A1 |
20030212664 | Breining et al. | Nov 2003 | A1 |
20030233618 | Wan | Dec 2003 | A1 |
20040010752 | Chan et al. | Jan 2004 | A1 |
20040043758 | Sorvari et al. | Mar 2004 | A1 |
20040044659 | Judd et al. | Mar 2004 | A1 |
20040064466 | Manikutty et al. | Apr 2004 | A1 |
20040073541 | Lindblad et al. | Apr 2004 | A1 |
20040083222 | Pecherer | Apr 2004 | A1 |
20040088320 | Perry | May 2004 | A1 |
20040103105 | Lindblad et al. | May 2004 | A1 |
20040103282 | Meier et al. | May 2004 | A1 |
20040148278 | Milo et al. | Jul 2004 | A1 |
20040167864 | Wang et al. | Aug 2004 | A1 |
20040176958 | Salmenkaita et al. | Sep 2004 | A1 |
20040205551 | Santos | Oct 2004 | A1 |
20040221226 | Lin et al. | Nov 2004 | A1 |
20040225680 | Cameron et al. | Nov 2004 | A1 |
20040267760 | Brundage et al. | Dec 2004 | A1 |
20050038688 | Collins et al. | Feb 2005 | A1 |
20050050016 | Stanoi et al. | Mar 2005 | A1 |
20050091188 | Pal et al. | Apr 2005 | A1 |
20050097084 | Balmin et al. | May 2005 | A1 |
20050097108 | Wang et al. | May 2005 | A1 |
20050102256 | Bordawekar et al. | May 2005 | A1 |
20050108630 | Wasson et al. | May 2005 | A1 |
20050114314 | Fan et al. | May 2005 | A1 |
20050120031 | Ishii | Jun 2005 | A1 |
20050160108 | Charlet et al. | Jul 2005 | A1 |
20050228786 | Murthy et al. | Oct 2005 | A1 |
20050228792 | Chandrasekaran et al. | Oct 2005 | A1 |
20050228818 | Murthy et al. | Oct 2005 | A1 |
20050229158 | Thusoo et al. | Oct 2005 | A1 |
20050257201 | Rose et al. | Nov 2005 | A1 |
20050278354 | Gupta et al. | Dec 2005 | A1 |
20050289125 | Liu et al. | Dec 2005 | A1 |
20050289138 | Cheng et al. | Dec 2005 | A1 |
20060195476 | Nori et al. | Aug 2006 | A1 |
Number | Date | Country |
---|---|---|
0856803 | Aug 1998 | EP |
856803 | Aug 1998 | EP |
2409078 | Jun 2005 | GB |
07-085102 | Mar 1995 | JP |
07085102 | Mar 1995 | JP |
WO 9746956 | Dec 1997 | WO |
WO 9800795 | Jan 1998 | WO |
WO 0014632 | Mar 2000 | WO |
WO 0049533 | Aug 2000 | WO |
WO 0142881 | Jun 2001 | WO |
WO 0142881 | Jun 2001 | WO |
WO 0159602 | Aug 2001 | WO |
WO 0161566 | Aug 2001 | WO |
WO 03027908 | Apr 2003 | WO |
Number | Date | Country | |
---|---|---|---|
20060129584 A1 | Jun 2006 | US |