|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.driver.xds.util.DriverTrace
A DSTrace wrapper that allows buffering of trace messages before outputting them. NOTE: indenting is per object (i.e., per thread if one instance per thread)
Field Summary | |
static int |
LEVEL_NONE
Don't trace |
Constructor Summary | |
DriverTrace()
Creates a new instance. |
|
DriverTrace(com.novell.nds.dirxml.driver.Trace someTrace)
Creates a new DriverTrace object. |
Method Summary | |
DriverTrace |
buffer(boolean b)
Buffers a boolean to be traced. |
DriverTrace |
buffer(double d)
Buffers a double to be traced. |
DriverTrace |
buffer(int i)
Buffers an int to be traced. |
DriverTrace |
buffer(long l)
Buffers a long to be traced. |
DriverTrace |
buffer(Object object)
Buffers an Object to be traced. |
DriverTrace |
buffer(String string)
Buffers a String to be traced. |
void |
clear()
Clears the internal buffer. |
String |
flush()
Flushes the buffer. |
StringBuffer |
getBuffer()
Returns the internal buffer. |
com.novell.nds.dirxml.driver.Trace |
getImpl()
Returns the trace implementation. |
void |
indent()
Increments the number of indentations by 1. |
void |
indent(int noOfTabs)
Sets the number of indentations to the passed value. |
void |
outdent()
Decrements the number of indentations by 1. |
void |
resetIndent()
Sets the number of indentations to 0. |
void |
setBufferLevel(int someLevel)
Sets the trace level for the internal trace buffer. |
void |
sleepInterval(long interval,
int level)
Traces a sleep interval. |
void |
trace(String aMessage)
Traces a message. |
void |
trace(String aMessage,
int aLevel)
Traces a message at the specified trace level. |
void |
trace(Throwable t,
int aLevel)
Traces a Throwable . |
void |
trace(com.novell.nds.dirxml.driver.XmlDocument xml,
int level)
Traces a XmlDocument . |
boolean |
willTrace(int level)
Will messages at the specififed level be traced? |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEVEL_NONE
Constructor Detail |
public DriverTrace()
public DriverTrace(com.novell.nds.dirxml.driver.Trace someTrace)
someTrace
- the trace implementation; must not be null
Method Detail |
public com.novell.nds.dirxml.driver.Trace getImpl()
null
public void resetIndent()
public void indent(int noOfTabs)
noOfTabs
- the number of indentationspublic void indent()
public void outdent()
public boolean willTrace(int level)
level
- the level in question
true
if it will; false
otherwisepublic void trace(String aMessage, int aLevel)
aMessage
- the message to traceaLevel
- the trace levelpublic void trace(String aMessage)
aMessage
- the message to tracepublic void trace(Throwable t, int aLevel)
Throwable
.
t
- the Throwable
;aLevel
- the trace levelpublic void trace(com.novell.nds.dirxml.driver.XmlDocument xml, int level)
XmlDocument
.
xml
- the XmlDocument
level
- the trace levelpublic void sleepInterval(long interval, int level)
interval
- the intervallevel
- the trace levelpublic void setBufferLevel(int someLevel)
someLevel
- the trace levelpublic DriverTrace buffer(String string)
String
to be traced.
string
- the String
to buffer
public DriverTrace buffer(Object object)
Object
to be traced.
object
- the Object
to buffer
public DriverTrace buffer(double d)
double
to be traced.
d
- the double
to buffer
public DriverTrace buffer(long l)
long
to be traced.
l
- the long
to buffer
public DriverTrace buffer(int i)
int
to be traced.
i
- the int
to buffer
public DriverTrace buffer(boolean b)
boolean
to be traced.
b
- the boolean
to buffer
public String flush()
String
that was tracedpublic StringBuffer getBuffer()
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |