wt.util
Class TraceTimingThreadedRepository

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

public class TraceTimingThreadedRepository
extends Object
implements TraceTimingRepositoryLogger, Serializable

This class implements a repository of Trace Timing entries on a per Thread basis.

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private  HashMap entryLists
           
private  Map propertyMap
           
private static String RESOURCE
           
 
Fields inherited from interface wt.util.TraceTimingRepositoryLogger
CALL_COUNT, ENTRY_LIST
 
Fields inherited from interface wt.util.TraceTimingLogger
PROPERTY_MAP
 
Constructor Summary
TraceTimingThreadedRepository()
           
 
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.
 int getCallCount()
          Gets the value of the attribute: callCount; The top level call count.
 int getCallCount(String a_threadName)
          Call count for the specified thread.
 List getEntryList()
          Gets the value of the attribute: entryList; The list of all entries.
 List getEntryList(String a_threadName)
          List of TraceTimingEntries for the specified thread.
 Map getPropertyMap()
          Gets the value of the attribute: propertyMap; Property map used to control the behavior of the Logger.
private  TraceTimingRepository getRepository(String a_threadName)
           
 Set getThreadNames()
          Gets the value of the attribute: threadNames; List of all Thread names that have associated repositories.
 TraceTimingRepository remove(String a_threadName)
          Removes the repository for the specified thread.
 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

entryLists

private HashMap entryLists

propertyMap

private Map propertyMap
Constructor Detail

TraceTimingThreadedRepository

public TraceTimingThreadedRepository()
Method Detail

getThreadNames

public Set getThreadNames()
Gets the value of the attribute: threadNames; List of all Thread names that have associated repositories.

Supported API: false

Returns:
Set

getEntryList

public List getEntryList(String a_threadName)
List of TraceTimingEntries for the specified thread.

Supported API: false

Parameters:
a_threadName - Thread name to return the entry list for
Returns:
List

getCallCount

public int getCallCount(String a_threadName)
Call count for the specified thread.

Supported API: false

Parameters:
a_threadName - Thread name to return the entry list for
Returns:
int

remove

public TraceTimingRepository remove(String a_threadName)
Removes the repository for the specified thread.

Supported API: false

Parameters:
a_threadName - Thread name to remove
Returns:
TraceTimingRepository

getEntryList

public List getEntryList()
Gets the value of the attribute: entryList; The list of all entries.

Supported API: false

Specified by:
getEntryList in interface TraceTimingRepositoryLogger
Returns:
List

getCallCount

public int getCallCount()
Gets the value of the attribute: callCount; The top level call count.

Supported API: false

Specified by:
getCallCount in interface TraceTimingRepositoryLogger
Returns:
int

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

getRepository

private TraceTimingRepository getRepository(String a_threadName)