You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Rajat Khandelwal (JIRA)" <ji...@apache.org> on 2014/12/18 12:54:13 UTC

[jira] [Comment Edited] (LENS-133) Add alerting in lens

    [ https://issues.apache.org/jira/browse/LENS-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251565#comment-14251565 ] 

Rajat Khandelwal edited comment on LENS-133 at 12/18/14 11:53 AM:
------------------------------------------------------------------

Yes, the idea is to create an Alertable Interface that can be implemented by Events. Again there's a base handler class AlertHandler that can be subclassed and registered as a handler to such events. When event is triggered and handler class is processing the event, Alerthandler(event handler) will ask Alertable(the event) its alert message and "alert" it. "Alerting" here can mean either logging to console and/or alerting via mail. 

The QueryEndNotifier class now just becomes a trivial subclass of Alertable. 


was (Author: prongs):
Yes, the idea is to create an Alertable Interface that can be implemented by Events. Again there's a base handler class AlertHandler that can be subclassed and registered as a handler to such events. When event is triggered and handler class is processing the event, Alerthandler(event handler) will ask Alertable(the event) its alert message and "alert" it. "Alerting" here can mean either logging to console and/or alerting via mail. 

The QueryEndNotifier class not just becomes a trivial subclass of Alertable. 

> Add alerting in lens
> --------------------
>
>                 Key: LENS-133
>                 URL: https://issues.apache.org/jira/browse/LENS-133
>             Project: Apache Lens
>          Issue Type: New Feature
>          Components: server
>            Reporter: Rajat Khandelwal
>            Assignee: Rajat Khandelwal
>
> Create a maintenance system where any critical failures e.g. db failure etc. can be alerted to the maintenance team. 
> This will be implemented via the event service. On detection, an event will be raised and in the handler the details will be logged and/or a detailed mail message will be sent to the maintenance team so they can take care. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)