|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.e2etrace.trace.AbstractTraceSessionManager org.e2etrace.trace.DefaultTraceSessionManager
public class DefaultTraceSessionManager
Default implementation of a trace session manager.
This simple trace session manager maintains a single trace session. Hence, it is only suitable for monitoring sequential service execution in an application. This approach does not work in application server environments!
This class implements the singleton pattern.
Method Summary | |
---|---|
protected void |
assignCurrentSession(ITraceSession session)
CALL-BACK: Forward a newly assigned current trace session to sub-classes. |
static DefaultTraceSessionManager |
getInstance()
Returns the singleton instance of the session manager. |
void |
releaseCurrentSession()
Release current session. |
protected ITraceSession |
requestCurrentSession()
CALL-BACK: Request the current trace session from sub-classes. |
Methods inherited from class org.e2etrace.trace.AbstractTraceSessionManager |
---|
getConfig, getCurrentSession, setConfig, setCurrentSession |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DefaultTraceSessionManager getInstance()
protected ITraceSession requestCurrentSession()
This call-back is triggered for every invokation of
getCurrentSession
.
requestCurrentSession
in class AbstractTraceSessionManager
protected void assignCurrentSession(ITraceSession session)
This call-back is triggered for every invokation of
setCurrentSession
.
assignCurrentSession
in class AbstractTraceSessionManager
session
- new current (active) trace sessionpublic void releaseCurrentSession()
This call releases the reference to the current trace session. It should be called in when all trace data for the current trace session has been collected and the session is no longer needed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |