de.pannenleiter.util
Class Trace

java.lang.Object
  |
  +--de.pannenleiter.util.Trace

public class Trace
extends java.lang.Object

Trace -- collects the trace of the requests


Field Summary
protected  boolean doTrace
           
protected  java.util.Vector items
           
protected  int maxItems
           
protected  java.util.Hashtable tracePoints
           
 
Constructor Summary
Trace()
           
 
Method Summary
 LogSink getCurrent()
           
static Trace getInstance()
           
 LogSink getItem(int id)
           
 LogSink[] getItems()
           
 boolean getTrace()
           
 boolean getTracePoint(java.lang.String name)
           
 void setCurrent(LogSink sink)
           
 void setTrace(boolean on)
           
 void setTracePoint(java.lang.String name, boolean on)
           
 void toXML(org.xml.sax.DocumentHandler dh)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doTrace

protected boolean doTrace

tracePoints

protected java.util.Hashtable tracePoints

maxItems

protected int maxItems

items

protected java.util.Vector items
Constructor Detail

Trace

public Trace()
Method Detail

getInstance

public static Trace getInstance()

setTrace

public void setTrace(boolean on)

getTrace

public boolean getTrace()

setTracePoint

public void setTracePoint(java.lang.String name,
                          boolean on)

getTracePoint

public boolean getTracePoint(java.lang.String name)

setCurrent

public void setCurrent(LogSink sink)

getItems

public LogSink[] getItems()

getItem

public LogSink getItem(int id)

toXML

public void toXML(org.xml.sax.DocumentHandler dh)
           throws org.xml.sax.SAXException

getCurrent

public LogSink getCurrent()