sky.common.session
Interface Tracker

All Known Implementing Classes:
BaseTracker

public interface Tracker

Monitors various end-user sessions and activites. The tracker can also persist sessions to a database or a file.

$RCSfile: Tracker.java,v $
$Revision: 1.4 $, $Date: 2005/04/24 03:14:00 $


Method Summary
 void activate()
          Start session tracking.
 void deactivate()
          Stops session tracking.
 int getSessionCount()
          Gets number of sessions that are currently being tracked.
 java.util.Enumeration getSessionIds()
          Gets the ids of all sessions that are being tracked.
 java.util.Enumeration getSessionObj()
          Gets all the sessions that are being tracked.
 Session getSessionObj(java.lang.String id)
          Gets a session object with given id.
 boolean isActive()
          Checks if tracker is active.
 void reset()
          Resets the tracker and clears all state information.
 void track(java.lang.String id, java.lang.String ip, Event event)
           
 

Method Detail

activate

public void activate()
Start session tracking.


deactivate

public void deactivate()
Stops session tracking.


isActive

public boolean isActive()
Checks if tracker is active.

Returns:
true if tracker is active; otherwise, false.

reset

public void reset()
Resets the tracker and clears all state information.


getSessionIds

public java.util.Enumeration getSessionIds()
Gets the ids of all sessions that are being tracked.

Returns:
Enumeration of session id strings.

getSessionObj

public java.util.Enumeration getSessionObj()
Gets all the sessions that are being tracked.

Returns:
Enumeration of all session objects.

getSessionObj

public Session getSessionObj(java.lang.String id)
Gets a session object with given id.

Returns:
session object.

getSessionCount

public int getSessionCount()
Gets number of sessions that are currently being tracked.

Returns:
session count.

track

public void track(java.lang.String id,
                  java.lang.String ip,
                  Event event)