wt.util
Class TraceTimingThreadedLogger

java.lang.Object
  extended bywt.util.TraceTimingThreadedLogger
All Implemented Interfaces:
TraceTimingLogger

public class TraceTimingThreadedLogger
extends Object
implements TraceTimingLogger

This class implements a logger for managing multi-threaded access to a logger type.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private  Class loggerClass
           
private  Map propertyMap
           
private static String RESOURCE
           
private  HashMap threadMap
           
 
Fields inherited from interface wt.util.TraceTimingLogger
PROPERTY_MAP
 
Constructor Summary
TraceTimingThreadedLogger()
           
 
Method Summary
 TraceTimingEntry addBeginEntry(String a_className, String a_name, long a_timeMillis, Object a_info)
          Adds a begin entry to the log.
 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  TraceTimingLogger getLogger()
           
 Class getLoggerClass()
          Gets the value of the attribute: loggerClass; The logger type to manage.
 Map getPropertyMap()
          Gets the value of the attribute: propertyMap; Property map used to control the behavior of the Logger.
 Set getThreads()
          Gets the value of the attribute: threads; List of all Threads that have associated loggers.
private  void removeInactive()
           
 void setLoggerClass(Class a_LoggerClass)
          Sets the value of the attribute: loggerClass; The logger type to manage.
 void setPropertyMap(Map a_PropertyMap)
          Sets the value of the attribute: propertyMap; Property map used to control the behavior of the 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

loggerClass

private Class loggerClass

propertyMap

private Map propertyMap

threadMap

private HashMap threadMap
Constructor Detail

TraceTimingThreadedLogger

public TraceTimingThreadedLogger()
Method Detail

getLoggerClass

public Class getLoggerClass()
Gets the value of the attribute: loggerClass; The logger type to manage.

Supported API: false

Returns:
Class

setLoggerClass

public void setLoggerClass(Class a_LoggerClass)
                    throws WTPropertyVetoException
Sets the value of the attribute: loggerClass; The logger type to manage.

Supported API: false

Parameters:
a_LoggerClass -
Throws:
WTPropertyVetoException

getThreads

public Set getThreads()
Gets the value of the attribute: threads; List of all Threads that have associated loggers.

Supported API: false

Returns:
Set

getPropertyMap

public Map getPropertyMap()
Gets the value of the attribute: propertyMap; Property map used to control the behavior of the Logger.

Supported API: false

Specified by:
getPropertyMap in interface TraceTimingLogger
Returns:
Map

setPropertyMap

public void setPropertyMap(Map a_PropertyMap)
                    throws WTPropertyVetoException
Sets the value of the attribute: propertyMap; Property map used to control the behavior of the Logger.

Supported API: false

Specified by:
setPropertyMap in interface TraceTimingLogger
Parameters:
a_PropertyMap -
Throws:
WTPropertyVetoException

addBeginEntry

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

Supported API: false

Specified by:
addBeginEntry in interface TraceTimingLogger
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

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

getLogger

private TraceTimingLogger getLogger()

removeInactive

private void removeInactive()