wt.util
Class TraceTimingSummaryReporter

java.lang.Object
  extended bywt.util.TraceTimingThreadedRepository
      extended bywt.util.TraceTimingSummaryReporter
All Implemented Interfaces:
Serializable, TraceTimingLogger, TraceTimingRepositoryLogger

public class TraceTimingSummaryReporter
extends TraceTimingThreadedRepository

This class implements a TraceTimingLogger via a TraceTimingRepository and reports statistics at a summary interval.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static long CLEANUP_TIMEOUT
           
private static String RESOURCE
           
private static int TRACE_TIMING_SUMMARY_INTERVAL
           
private static boolean TRACE_TIMING_SUMMARY_THREAD_DISPLAY
           
private static int TRACE_TIMING_SUMMARY_THREAD_INTERVAL
           
private static HashMap USAGE_MAP
           
 
Fields inherited from class wt.util.TraceTimingThreadedRepository
 
Fields inherited from interface wt.util.TraceTimingRepositoryLogger
CALL_COUNT, ENTRY_LIST
 
Fields inherited from interface wt.util.TraceTimingLogger
PROPERTY_MAP
 
Constructor Summary
TraceTimingSummaryReporter()
           
 
Method Summary
 TraceTimingEntry addBreakEntry(String a_className, String a_name, long a_timeMillis, Object a_info, int a_level)
          Adds an break-in-flow, end entry to the log.
 TraceTimingEntry addEndEntry(String a_className, String a_name, long a_timeMillis, Object a_info)
          Adds an end entry to the log.
private  void appendUsage(Map a_usageMap)
           
private  void display(Map a_usageMap, String a_name)
           
private  void processEndEntry(TraceTimingEntry a_entry)
           
private  void processThread(String a_threadName, boolean a_display)
           
 
Methods inherited from class wt.util.TraceTimingThreadedRepository
addBeginEntry, getCallCount, getCallCount, getEntryList, getEntryList, getPropertyMap, getThreadNames, remove, setPropertyMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

USAGE_MAP

private static final HashMap USAGE_MAP

TRACE_TIMING_SUMMARY_THREAD_INTERVAL

private static final int TRACE_TIMING_SUMMARY_THREAD_INTERVAL

TRACE_TIMING_SUMMARY_INTERVAL

private static final int TRACE_TIMING_SUMMARY_INTERVAL

CLEANUP_TIMEOUT

private static final long CLEANUP_TIMEOUT

TRACE_TIMING_SUMMARY_THREAD_DISPLAY

private static final boolean TRACE_TIMING_SUMMARY_THREAD_DISPLAY
Constructor Detail

TraceTimingSummaryReporter

public TraceTimingSummaryReporter()
Method Detail

addEndEntry

public TraceTimingEntry addEndEntry(String a_className,
                                    String a_name,
                                    long a_timeMillis,
                                    Object a_info)
Adds an end entry to the log.

Supported API: false

Specified by:
addEndEntry in interface TraceTimingLogger
Overrides:
addEndEntry in class TraceTimingThreadedRepository
Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_timeMillis - Time in milliseconds. If less than zero, then the current system time is used.
a_info - Informative message associated with this entry.
Returns:
TraceTimingEntry

addBreakEntry

public TraceTimingEntry addBreakEntry(String a_className,
                                      String a_name,
                                      long a_timeMillis,
                                      Object a_info,
                                      int a_level)
Adds an break-in-flow, end entry to the log.

Supported API: false

Specified by:
addBreakEntry in interface TraceTimingLogger
Overrides:
addBreakEntry in class TraceTimingThreadedRepository
Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_timeMillis - Time in milliseconds. If less than zero, then the current system time is used.
a_info - Informative message associated with this entry.
a_level - Indicates the level of the corresponding begin entry.
Returns:
TraceTimingEntry

processEndEntry

private void processEndEntry(TraceTimingEntry a_entry)

processThread

private void processThread(String a_threadName,
                           boolean a_display)

display

private void display(Map a_usageMap,
                     String a_name)

appendUsage

private void appendUsage(Map a_usageMap)