Kieker 1.3

kieker.monitoring.core.registry
Class SessionRegistry

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

public final 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()
Returns:
the singleton instance of SessionRegistry

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.3

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