Performing an action in response to a file system event
First Claim
1. A method comprising:
- storing a first event handler that specifies a first method to be performed prior to an occurrence of a file system event of a first event type relative to one or more nodes in a file system, wherein execution of the first method causes a first action to be performed on a first database object;
storing a second event handler that specifies a second method to be performed after an occurrence of a file system event of the first event type relative to the one or more nodes in the file system, wherein execution of the second method causes a second action to be performed on a second database object;
storing one or more event handlers other than the first event handler and the second event handler, wherein the one or more other event handlers correspond to one or more event types other than the first event type;
a server detecting that execution of a received file system command will cause a particular file system event of the first event type relative to the one or more nodes in the file system;
in response to the server detecting that the received file system command will cause the particular file system event of the first event type relative to the one or more nodes in the file system;
(a) the server adding the particular file system event to a list of file system events to occur, and (b) the server invoking the first method prior to the occurrence of the particular file system event; and
in response to and after the occurrence of the particular file system event, the server invoking the second method;
wherein the first and second actions differ from the particular file system event;
wherein the first event handler, the second event handler, and the one or more other event handlers are stored in a configuration file, and wherein the configuration file contains an indication of whether a method corresponding to an event identifier is to be performed before or after the occurrence of a file system event;
wherein the method is performed by one or more computing devices.
0 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for performing an action in response to a file system event is provided. According to one aspect, sets of “event listeners” are associated with a file hierarchy and/or the nodes thereof. Each event listener contains a set of “event handlers.” Each event handler corresponds to a separate type of event that may occur relative to the file hierarchy'"'"'s nodes. When an event is going to occur relative to the hierarchy or a node thereof, all event listeners that are associated with that hierarchy/node 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 an ordered list of event handlers to be invoked. As the event handlers in the list are invoked, programmatic mechanisms that correspond to those event handlers are executed to perform customized user-specified actions.
235 Citations
20 Claims
-
1. A method comprising:
-
storing a first event handler that specifies a first method to be performed prior to an occurrence of a file system event of a first event type relative to one or more nodes in a file system, wherein execution of the first method causes a first action to be performed on a first database object; storing a second event handler that specifies a second method to be performed after an occurrence of a file system event of the first event type relative to the one or more nodes in the file system, wherein execution of the second method causes a second action to be performed on a second database object; storing one or more event handlers other than the first event handler and the second event handler, wherein the one or more other event handlers correspond to one or more event types other than the first event type; a server detecting that execution of a received file system command will cause a particular file system event of the first event type relative to the one or more nodes in the file system; in response to the server detecting that the received file system command will cause the particular file system event of the first event type relative to the one or more nodes in the file system;
(a) the server adding the particular file system event to a list of file system events to occur, and (b) the server invoking the first method prior to the occurrence of the particular file system event; andin response to and after the occurrence of the particular file system event, the server invoking the second method; wherein the first and second actions differ from the particular file system event; wherein the first event handler, the second event handler, and the one or more other event handlers are stored in a configuration file, and wherein the configuration file contains an indication of whether a method corresponding to an event identifier is to be performed before or after the occurrence of a file system event; wherein the method is performed by one or more computing devices. - View Dependent Claims (2, 3, 7, 8, 9, 10, 11, 17, 18)
-
-
4. One or more non-transitory computer-readable storage media storing instructions which, when executed by one or more processors, cause the one of more processors to perform the steps of:
-
storing a first event handler that specifies a first method to be performed prior to an occurrence of a file system event of a first event type relative to one or more nodes in a file system, wherein execution of the first method causes a first action to be performed on a first database object; storing a second event handler that specifies a second method to be performed after an occurrence of a file system event of the first event type relative to the one or more nodes in the file system, wherein execution of the second method causes a second action to be performed on a second database object; storing one or more event handlers other than the first event handler and the second event handler, wherein the one or more other event handlers correspond to one or more event types other than the first event type; a server detecting that execution of a received file system command will cause a particular file system event of the first event type relative to the one or more nodes in the file system; in response to the server detecting that the received file system command will cause the particular file system event of the first event type relative to the one or more nodes in the file system;
(a) the server adding the particular file system event to a list of file system events to occur, and (b) the server invoking the first method prior to the occurrence of the particular file system event; andin response to and after the occurrence of the particular file system event, the server invoking the second method; wherein the first event handler, the second event handler, and the one or more other event handlers are stored in a configuration file, and wherein the configuration file contains an indication of whether a method corresponding to an event identifier is to be performed before or after the occurrence of a file system event; wherein the first and second actions differ from the particular file system event. - View Dependent Claims (5, 6, 12, 13, 14, 15, 16, 19, 20)
-
Specification