[
https://issues.apache.org/jira/browse/LENS-133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14251565#comment-14251565
]
Rajat Khandelwal commented on LENS-133:
---------------------------------------
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)