com.atlassian.jira.web.session.currentusers
Class JiraUserSessionTracker

java.lang.Object
  extended by com.atlassian.jira.web.session.currentusers.JiraUserSessionTracker

public class JiraUserSessionTracker
extends java.lang.Object

The JiraUserSessionTracker keeps track of the "users" that have a "session" with JIRA.

Since:
v4.0

Field Summary
static java.util.Comparator<JiraUserSession> BY_LAST_ACCESS_TIME
          A Comparator that sorts by last access time ascending
 
Constructor Summary
JiraUserSessionTracker()
           
 
Method Summary
static JiraUserSessionTracker getInstance()
          Hooks into the ComponentManager to get a singelton instance of JiraUserSessionTracker
 java.util.List<JiraUserSession> getSnapshot()
          This returns a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending
static void recordInteraction(javax.servlet.http.HttpServletRequest httpServletRequest)
          This method (in partnership with AccessLogFilter) decides what type of request has occurred and record the appropriate information
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BY_LAST_ACCESS_TIME

public static java.util.Comparator<JiraUserSession> BY_LAST_ACCESS_TIME
A Comparator that sorts by last access time ascending

Constructor Detail

JiraUserSessionTracker

public JiraUserSessionTracker()
Method Detail

getInstance

public static JiraUserSessionTracker getInstance()
Hooks into the ComponentManager to get a singelton instance of JiraUserSessionTracker

Returns:
an singleton instance of JiraUserSessionTracker

recordInteraction

public static void recordInteraction(javax.servlet.http.HttpServletRequest httpServletRequest)
This method (in partnership with AccessLogFilter) decides what type of request has occurred and record the appropriate information

Parameters:
httpServletRequest - the http request in play

getSnapshot

public java.util.List<JiraUserSession> getSnapshot()
This returns a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending

Returns:
a "snapshot" list of sessions that are currently in JIRA, sorted by last access time descending


Copyright © 2002-2010 Atlassian. All Rights Reserved.