java.lang.Object | +--com.ibm.commerce.ras.ECTrace
ECTrace is the class used for tracing the execution flow of the WebSphere Commerce Application Server. The names of the components that are traceable and the name of the file that ECTrace writes to are determined by the configuration found in the $INSTALLROOT/instances/$INSTANCE_NAME/xml/$INSTANCE_NAME.xml file, under "LogSystem" XML element.
This class expose static methods. The user will call the methods exposed by this class without instantiating any object of this type.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Method Summary | |
---|---|
static void |
disable(long componentName) Disables a specific tracing component. |
static void |
disableTracing() Disables tracing subsystem. |
static void |
enable(long componentName) Enables a specific tracing component. |
static void |
enableTracing() Enable tracing subsystem. |
static void |
entry(long componentName, java.lang.String className,
java.lang.String methodName) 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) 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) Writes an entry in the trace file to record the exit from a method. |
static boolean |
isClientInfoEnabled() Checks if the client tracing info option is enabled. |
static boolean |
isTraceEnabled() Checks if the Tracing is enabled. |
static void |
setClientInfoEnabled(boolean value) Sets client information option. |
static void |
trace(long componentName, java.lang.String className,
java.lang.String methodName, java.lang.String text) Writes an entry in the trace file to record a trace point in a method. |
static boolean |
traceEnabled(long componentName) Check if the a specific tracing component is enabled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Method Detail |
---|
public static void disable(long componentName)
public static void disableTracing()
public static void enable(long componentName)
public static void enableTracing()
public static void entry(long componentName, java.lang.String className, java.lang.String methodName)
componentName
- the name of the component to which the class
to be traced belongsmethodName
- the name of the method to be
tracedpublic static void exit(long componentName, java.lang.String className, java.lang.String methodName)
componentName
- the name of the component to which the class
to be traced belongsmethodName
- the name of the method to be
tracedpublic static void exit(long componentName, java.lang.String className, java.lang.String methodName, java.lang.Object retValue)
componentName
- the name of the component to which the class
to be traced belongsmethodName
- the name of the method to be tracedretValue
- the return value of the methodpublic static boolean isClientInfoEnabled()
public static boolean isTraceEnabled()
public static void trace(long componentName, java.lang.String className, java.lang.String methodName, java.lang.String text)
componentName
- the name of the component to which the class
to be traced belongsmethodName
- the name of the method to be tracedtext
- the text to be recordedpublic static boolean traceEnabled(long componentName)
componentName
- component namepublic static void setClientInfoEnabled(boolean value)
value
- client information enablement
value