Query-based event routing
First Claim
1. A method comprising:
- obtaining a selector string and information that represents one or more actions associated with the selector string;
wherein the selector string represents one of (a) a query only on event targets that is satisfied by any event target of a particular type specified by the selector string or (b) a query only on event targets that is satisfied by any event target having an attribute with a particular name specified by the selector string;
in response to obtaining an event, obtaining an event target that is a subject of the event;
in response to determining that the event target matches the selector string, using the information to cause the one or more actions associated with the selector string;
wherein determining that the event target matches the selector string includes performing one of (a) determining a type of the event target and determining that the type of the event target is the same as the particular type specified by the selector string or (b) determining that the event target has an attribute with the particular name specified by the selector string;
wherein the method is performed by a computing device.
1 Assignment
0 Petitions
Accused Products
Abstract
Techniques are described herein to allow a query and one or more associated actions to be registered as an “event selector”, and to have the one or more actions of the event selector invoked when an event occurs on a target that matches the query. According to one aspect, a selector string representing the query and one or more actions associated with the selector string are obtained. In response to obtaining an event, a target of the event is obtained and it is determined whether the target matches the selector string. If the target matches the selector string, then the one or more actions associated with the selector string are invoked. By doing so, events may be indirectly routed to actions through queries on event targets.
19 Citations
10 Claims
-
1. A method comprising:
-
obtaining a selector string and information that represents one or more actions associated with the selector string; wherein the selector string represents one of (a) a query only on event targets that is satisfied by any event target of a particular type specified by the selector string or (b) a query only on event targets that is satisfied by any event target having an attribute with a particular name specified by the selector string; in response to obtaining an event, obtaining an event target that is a subject of the event; in response to determining that the event target matches the selector string, using the information to cause the one or more actions associated with the selector string; wherein determining that the event target matches the selector string includes performing one of (a) determining a type of the event target and determining that the type of the event target is the same as the particular type specified by the selector string or (b) determining that the event target has an attribute with the particular name specified by the selector string; wherein the method is performed by a computing device. - View Dependent Claims (2, 3, 4)
-
-
5. A method comprising:
-
obtaining a selector string, first information that represents one or more actions associated with the selector string, and second information that represents a first event type associated with the selector string; wherein the selector string represents one of (a) a query only on event targets that is satisfied by any event target of a particular type specified by the selector string or (b) a query only on event targets that is satisfied by any event target having an attribute with a particular name specified by the selector string; in response to obtaining an event, obtaining an event target that is a subject of the event and obtaining third information that represents a second event type associated with the event; using the second information and the third information to determine whether the first event type associated with the selector string is the same as the second event type associated with the event; in response to determining that the first event type is the same as the second event type, using the selector string and the event target to determine whether the event target matches the selector string; in response to determining that the event target matches the selector string, using the first information to cause the one or more actions associated with the selector string; wherein determining that the event target matches the selector string includes performing one of (a) determining a type of the event target and determining that the type of the event target is the same as the particular type specified by the selector string or (b) determining that the event target has an attribute with the particular name specified by the selector string; wherein the method is performed by a computing device.
-
-
6. One or more non-transitory computer-readable media comprising one or more stored sequences of instructions which, when executed by one or more processors, cause performance of a method comprising:
-
obtaining a selector string and information that represents one or more actions associated with the selector string; wherein the selector string represents one of (a) a query only on event targets that is satisfied by any event target of a particular type specified by the selector string or (b) a query only on event targets that is satisfied by any event target having an attribute with a particular name specified by the selector string; in response to obtaining an event, obtaining an event target that is a subject of the event; in response to determining that the event target matches the selector string, using the information to cause the one or more actions associated with the selector string; wherein determining that the event target matches the selector string includes performing one of (a) determining a type of the event target and determining that the type of the event target is the same as the particular type specified by the selector string or (b) determining that the event target has an attribute with the particular name specified by the selector string. - View Dependent Claims (7, 8, 9)
-
-
10. One or more non-transitory computer-readable media comprising one or more stored sequences of instructions which, when executed by one or more processors, cause performance of a method comprising:
-
obtaining a selector string, first information that represents one or more actions associated with the selector string, and second information that represents a first event type associated with the selector string; wherein the selector string represents one of (a) a query only on event targets that is satisfied by any event target of a particular type specified by the selector string or (b) a query only on event targets that is satisfied by any event target having an attribute with a particular name specified by the selector string; in response to obtaining an event, obtaining an event target that is a subject of the event and obtaining third information that represents a second event type associated with the event; using the second information and the third information to determine whether the first event type associated with the selector string is the same as the second event type associated with the event; in response to determining that the first event type is the same as the second event type, using the selector string and the event target to determine whether the event target matches the selector string; in response to determining that the event target matches the selector string, using the first information to cause the one or more actions associated with the selector string; wherein determining that the event target matches the selector string includes performing one of (a) determining a type of the event target and determining that the type of the event target is the same as the particular type specified by the selector string or (b) determining that the event target has an attribute with the particular name specified by the selector string.
-
Specification