wt.util
Class TraceTimingHelper

java.lang.Object
  extended bywt.util.TraceTimingHelper

public class TraceTimingHelper
extends Object

This class implements static methods for TraceTiming logging.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
TraceTimingHelper()
           
 
Method Summary
static TraceTimingEntry addBeginEntry(String a_className, String a_name, boolean a_includeStackTrace, TraceTimingLogger a_logger)
          Adds a begin entry to the log.
static TraceTimingEntry addBeginEntry(String a_className, String a_name, long a_timeMillis, Object a_info, TraceTimingLogger a_logger)
          Adds a begin entry to the log.
static TraceTimingEntry addBeginEntry(String a_className, String a_name, Object a_info, TraceTimingLogger a_logger)
          Adds a begin entry to the log.
static TraceTimingEntry addBreakEntry(String a_className, String a_name, long a_timeMillis, Object a_info, int a_level, TraceTimingLogger a_logger)
          Adds a bbreak-in-flow end entry to the log.
static TraceTimingEntry addBreakEntry(String a_className, String a_name, Object a_info, int a_level, TraceTimingLogger a_logger)
          Adds a break-in-flow end entry to the log.
static TraceTimingEntry addEndEntry(String a_className, String a_name, long a_timeMillis, Object a_info, TraceTimingLogger a_logger)
          Adds an end entry to the log.
static TraceTimingEntry addEndEntry(String a_className, String a_name, Object a_info, TraceTimingLogger a_logger)
          Adds an end entry to the log.
static int getEntryCount(TraceTimingRepositoryLogger a_repositoryLogger)
          Retruns the current entry count for the specified Repository Logger.
 
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
Constructor Detail

TraceTimingHelper

public TraceTimingHelper()
Method Detail

addBeginEntry

public static TraceTimingEntry addBeginEntry(String a_className,
                                             String a_name,
                                             long a_timeMillis,
                                             Object a_info,
                                             TraceTimingLogger a_logger)
Adds a begin entry to the log.

Supported API: false

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_logger - The logger to log to.
Returns:
TraceTimingEntry

addBeginEntry

public static TraceTimingEntry addBeginEntry(String a_className,
                                             String a_name,
                                             Object a_info,
                                             TraceTimingLogger a_logger)
Adds a begin entry to the log.

Supported API: false

Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_info - Informative message associated with this entry.
a_logger - The logger to log to.
Returns:
TraceTimingEntry

addEndEntry

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

Supported API: false

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_logger - The logger to log to.
Returns:
TraceTimingEntry

addEndEntry

public static TraceTimingEntry addEndEntry(String a_className,
                                           String a_name,
                                           Object a_info,
                                           TraceTimingLogger a_logger)
Adds an end entry to the log.

Supported API: false

Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_info - Informative message associated with this entry.
a_logger - The logger to log to.
Returns:
TraceTimingEntry

addBeginEntry

public static TraceTimingEntry addBeginEntry(String a_className,
                                             String a_name,
                                             boolean a_includeStackTrace,
                                             TraceTimingLogger a_logger)
Adds a begin entry to the log.

Supported API: false

Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_includeStackTrace - Indicates whether the current stack trace should be added as an informative message associated with this entry.
a_logger - The logger to log to.
Returns:
TraceTimingEntry

addBreakEntry

public static TraceTimingEntry addBreakEntry(String a_className,
                                             String a_name,
                                             long a_timeMillis,
                                             Object a_info,
                                             int a_level,
                                             TraceTimingLogger a_logger)
Adds a bbreak-in-flow end entry to the log.

Supported API: false

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 - Level of associated begin enty.
a_logger - The logger to log to.
Returns:
TraceTimingEntry

addBreakEntry

public static TraceTimingEntry addBreakEntry(String a_className,
                                             String a_name,
                                             Object a_info,
                                             int a_level,
                                             TraceTimingLogger a_logger)
Adds a break-in-flow end entry to the log.

Supported API: false

Parameters:
a_className - The name of the class associated with this entry.
a_name - The name associated with this entry.
a_info - Informative message associated with this entry.
a_level - Level of associated begin enty.
a_logger - The logger to log to.
Returns:
TraceTimingEntry

getEntryCount

public static int getEntryCount(TraceTimingRepositoryLogger a_repositoryLogger)
Retruns the current entry count for the specified Repository Logger.

Supported API: false

Parameters:
a_repositoryLogger - Repository Logger instance to use.
Returns:
int