Kieker 1.2

kieker.monitoring.core
Class SessionRegistry

java.lang.Object
  extended by kieker.monitoring.core.SessionRegistry

public class SessionRegistry
extends Object

Author:
Andre van Hoorn

Method Summary
static SessionRegistry getInstance()
           
 String recallThreadLocalSessionId()
          This method returns the thread-local traceid previously registered using the method registerTraceId(curTraceId).
 void storeThreadLocalSessionId(String sessionId)
          Used by the spring aspect to explicitly register a sessionid that is to be collected within a servlet method (that knows the request object).
 void unsetThreadLocalSessionId()
          This method unsets a previously registered sessionid.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final SessionRegistry getInstance()

storeThreadLocalSessionId

public final void storeThreadLocalSessionId(String sessionId)
Used by the spring aspect to explicitly register a sessionid that is to be collected within a servlet method (that knows the request object). The thread is responsible for invalidating the stored curTraceId using the method unsetThreadLocalSessionId()!


recallThreadLocalSessionId

public final String recallThreadLocalSessionId()
This method returns the thread-local traceid previously registered using the method registerTraceId(curTraceId).

Returns:
the sessionid. null if no session registered.

unsetThreadLocalSessionId

public final void unsetThreadLocalSessionId()
This method unsets a previously registered sessionid.


Kieker 1.2

Copyright 2010 the Kieker Project, http://kieker.sourceforge.net