

We use analytics cookies to understand how you use our websites so we can make them better, e. We use essential cookies to perform essential website functions, e. For more information, see our Privacy Statement. You can always update your selection by clicking Cookie Preferences at the bottom of the page. We use optional third-party analytics cookies to understand how you use GitHub. If nothing happens, download the GitHub extension for Visual Studio and try again. If nothing happens, download Xcode and try again. If nothing happens, download GitHub Desktop and try again. Event Listener Presto supports custom event listeners that are invoked for the following events: Query creation Query completion success or failure Split completion success or failure This functionality enables development of custom logging, debugging and performance analysis plugins.Įxample configuration file: event-listener.GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Multiple instances of the same, or different event listeners can be installed and configured by setting event-listener. The remaining properties are passed as a map to EventListenerFactory.

All of the properties other than event-listener. The implementation of EventListener and EventListenerFactory must be wrapped as a plugin and installed on the Presto cluster.

Implementations of EventListener implement methods for the event types they are interested in handling. It also defines an EventListener name which is used by the administrator in a Presto configuration. EventListenerFactory is responsible for creating an EventListener instance. In a Presto cluster, only a single event listener plugin can be active at a time. This functionality enables development of custom logging, debugging and performance analysis plugins.
