www.element4solution.com

e4s.util
Class E4ObjectLifecycleWatcher

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.util.E4ObjectLifecycleWatcher
All Implemented Interfaces:
java.lang.Runnable

public class E4ObjectLifecycleWatcher
extends E4Object
implements java.lang.Runnable

Watchdog for objects, is used on E4HttpServlet to track ingoing/outgoing calls (based on Methods) for detecting endless methods that damage performance.

See Also:
E4ModuleSystem.showMethodActivity, E4HttpServlet

Nested Class Summary
static class E4ObjectLifecycleWatcher.E4HttpServletWatch
           
static class E4ObjectLifecycleWatcher.WatchObject
           
 
Field Summary
static int DEFAULT_TIMEOUT_MS
           
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Method Summary
static E4ObjectLifecycleWatcher getInstance()
           
 E4ObjectLifecycleWatcher.WatchObject[] getStatusActive()
           
 E4ObjectLifecycleWatcher.WatchObject[] getStatusRemoved()
           
 void register(java.lang.Object obj)
           
 void register(java.lang.Object obj, int timeout)
           
 void run()
           
 void stop()
           
static void stopAll()
           
 void unregister(java.lang.Object obj)
           
 
Methods inherited from class e4s.util.E4Object
_getSVNVersionString, Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, toString, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT_MS

public static int DEFAULT_TIMEOUT_MS
Method Detail

getInstance

public static E4ObjectLifecycleWatcher getInstance()

stop

public void stop()

run

public void run()
Specified by:
run in interface java.lang.Runnable

register

public void register(java.lang.Object obj)

register

public void register(java.lang.Object obj,
                     int timeout)

getStatusActive

public E4ObjectLifecycleWatcher.WatchObject[] getStatusActive()

getStatusRemoved

public E4ObjectLifecycleWatcher.WatchObject[] getStatusRemoved()

unregister

public void unregister(java.lang.Object obj)

stopAll

public static void stopAll()

www.element4solution.com