com.ibm.jtopenlite
Class Trace

java.lang.Object
  extended by com.ibm.jtopenlite.Trace

public class Trace
extends Object

Class representing the Tracing provided by JTOpenLite.

Trace can be enabled by setting the JVM property com.ibm.jtopenlite.Trace.category to ALL or TRUE.

The trace output can be directed to a file by setting com.ibm.jtopenlite.Trace.file.

The trace currently consists only of the datastream information.


Field Summary
static int CATEGORY_ALL
           
static int CATEGORY_DATASTREAM
           
static int CATEGORY_NONE
           
 
Constructor Summary
Trace()
           
 
Method Summary
static void dumpException(Exception e)
           
static PrintStream getPrintStream()
           
static int getTraceCategory()
           
static boolean isStreamTracingEnabled()
           
static void setPrintFile(File file)
           
static void setTraceCategory(int traceCategory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CATEGORY_NONE

public static final int CATEGORY_NONE
See Also:
Constant Field Values

CATEGORY_DATASTREAM

public static final int CATEGORY_DATASTREAM
See Also:
Constant Field Values

CATEGORY_ALL

public static final int CATEGORY_ALL
See Also:
Constant Field Values
Constructor Detail

Trace

public Trace()
Method Detail

setTraceCategory

public static void setTraceCategory(int traceCategory)

getTraceCategory

public static int getTraceCategory()

setPrintFile

public static void setPrintFile(File file)

getPrintStream

public static PrintStream getPrintStream()

isStreamTracingEnabled

public static boolean isStreamTracingEnabled()

dumpException

public static void dumpException(Exception e)