public final class ECTrace
extends java.lang.Object
ECTrace
writes are configured in an XML file. In this case, this is found in the
$INSTALLROOT/instances/$INSTANCE_NAME/xml/$INSTANCE_NAME.xml
file,
under the "LogSystem" XML element.
This class exposes static methods. The user will call the methods exposed by this class without instantiating any objects of this type.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static void |
disable(long componentName)
This method disables a specific tracing component.
|
static void |
disableTracing()
This method disables the tracing subsystem.
|
static void |
enable(long componentName)
This method enables a specific tracing component.
|
static void |
enableTracing()
This method enables the tracing subsystem.
|
static void |
entry(long componentName,
java.lang.String className,
java.lang.String methodName)
This method writes an entry in the trace file to record the entrance to a method.
|
static void |
entry(long componentName,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] params)
This method writes an entry in the trace file to record the entrance to a method.
|
static void |
exit(long componentName,
java.lang.String className,
java.lang.String methodName)
This method writes an exit in the trace file to record the exit from a method.
|
static void |
exit(long componentName,
java.lang.String className,
java.lang.String methodName,
java.lang.Object retValue)
This method writes an exit in the trace file to record the exit from a method.
|
static boolean |
isClientInfoEnabled()
This method determines whether the client tracing info option is enabled.
|
static boolean |
isTraceEnabled()
This method determines whether tracing is enabled.
|
static void |
setClientInfoEnabled(boolean value)
This method sets the client information option.
|
static void |
trace(long componentName,
java.lang.String className,
java.lang.String methodName,
java.lang.String text)
This method writes an entry in the trace file to record a trace point in a method.
|
static boolean |
traceEnabled(long componentName)
This method determines whether the a specific tracing component is enabled.
|
public static final java.lang.String COPYRIGHT
public static void disable(long componentName)
component
- This is the tracing component.public static void disableTracing()
public static void enable(long componentName)
component
- This is the tracing component.public static void enableTracing()
public static void entry(long componentName, java.lang.String className, java.lang.String methodName)
componentName
- This is the name of the component to which the class to be traced belongs.classname
- This is the name of the class to be traced.methodName
- This is the name of the method to be traced.public static void entry(long componentName, java.lang.String className, java.lang.String methodName, java.lang.Object[] params)
componentName
- This is the name of the component to which the class to be traced belongs.classname
- This is the name of the class to be traced.methodName
- This is the name of the method to be traced.param
- This contains the entry parameters to the method.public static void exit(long componentName, java.lang.String className, java.lang.String methodName)
componentName
- This is the name of the component to which the class to be traced belongs.classname
- This is the name of the class to be traced.methodName
- This is the name of the method to be traced.public static void exit(long componentName, java.lang.String className, java.lang.String methodName, java.lang.Object retValue)
componentName
- This is the name of the component to which the class to be traced belongs.classname
- This is the name of the class to be traced.methodName
- This is the name of the method to be traced.retValue
- This is the return value of the method.public static boolean isClientInfoEnabled()
true
if client tracing information is enabled and
false
otherwise.public static boolean isTraceEnabled()
true
if the tracing subsystem is enabled and false
otherwise.public static void trace(long componentName, java.lang.String className, java.lang.String methodName, java.lang.String text)
componentName
- This is the name of the component to which the class to be traced belongs.classname
- This is the name of the class to be traced.methodName
- This is the name of the method to be traced.text
- This is the text to be recorded.public static boolean traceEnabled(long componentName)
componentName
- This is the name of the component.true
if the tracing is enabled and false
otherwise.public static void setClientInfoEnabled(boolean value)
value
- This is the client information enablement value.