[
https://issues.apache.org/jira/browse/LENS-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14265675#comment-14265675
]
Jaideep Dhok commented on LENS-186:
-----------------------------------
We can create an abstract SessionEvent class analogous to the QueryEvent class.
{code}
SessionEvent extends LensEvent {
private final LensSessionHandle sessionHandle;
}
SessionOpened extends SessionEvent {
private final String user;
}
SessionClosed extends SessionEvent {
}
// session expired event could be sent in the thread that closes expired
session see // HiveSessionService.SessionExpiryRunnable.runInternal
SessionExpired extends SessionEvent {
}
SessionRestored extends SessionEvent {
}
{code}
> Session lifecycle events
> ------------------------
>
> Key: LENS-186
> URL: https://issues.apache.org/jira/browse/LENS-186
> Project: Apache Lens
> Issue Type: Improvement
> Reporter: Jaideep Dhok
> Assignee: Raju Bairishetti
>
> If a service is maintaining some session specific data events like session
> started or session closed would be useful for init/cleanup of resources.
> This would be also useful in maintaining session history.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)