java.lang.Object | +--com.ibm.commerce.ras.ECTracingProvider
ECTracingProvider is used to configure tracing and write the tracing information to output.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Constructor Summary | |
---|---|
ECTracingProvider() |
Method Summary | |
---|---|
void |
disable() Disables tracing subsystem. |
void |
disable(long componentId) Disables a specific tracing component. |
void |
disableTracing() Disables tracing subsystem. |
void |
enable() Enables tracing subsystem. |
void |
enable(long componentId) Enables a specific tracing component. |
void |
enableTracing() Enables tracing subsystem. |
void |
entry(long componentId, java.lang.String className,
java.lang.String methodName) Writes an entry in the trace file to record the entry from a method. |
void |
exit(long componentId, java.lang.String className,
java.lang.String methodName) Writes an entry in the trace file to record the exit from a method |
void |
exit(long componentId, 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 |
protected
void |
finalize() Closes the file output for cleanup. |
static long |
getComponent(java.lang.Object comp) Gets the component id |
static java.lang.String |
getComponentName(long componentId) Gets the component name. |
int |
getSizeOfComponent() Returns the number of tracing components. |
static
ECTracingProvider |
getUniqueInstance() Gets an unique instance of ECTracingProvider. |
boolean |
isClientInfoEnabled() Checks if client tracing information is enabled. |
boolean |
isTraceable(long componentId) This method is used to check if a particular component is tracable. |
boolean |
isTraceEnabled() Checks if tracing is enabled. |
void |
overrideMask(int[] componentMask) Updates the status of the tracing components. |
void |
setClientInfoEnabled(boolean value) Sets the Client Tracing information option. |
void |
trace(long componentId, 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. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public ECTracingProvider()
Method Detail |
---|
public void disable()
public void disable(long componentId)
disable
in interface
ITracingService
public void disableTracing()
disableTracing
in interface
ITracingService
public void enable()
public void enable(long componentId)
enable
in interface
ITracingService
public void enableTracing()
enableTracing
in interface
ITracingService
public void entry(long componentId, java.lang.String className, java.lang.String methodName)
entry
in interface
ITracingService
componentId
- tracing componentclassName
- class namemethodName
- method namepublic void exit(long componentId, java.lang.String className, java.lang.String methodName)
exit
in interface
ITracingService
componentId
- tracing componentclassName
- class namemethodName
- method namepublic void exit(long componentId, java.lang.String className, java.lang.String methodName, java.lang.Object retValue)
exit
in interface
ITracingService
componentId
- tracing componentclassName
- class namemethodName
- method nameretValue
- return object valueprotected void finalize()
finalize
in class
java.lang.Object
public static long getComponent(java.lang.Object comp)
comp
- component Objectpublic static java.lang.String getComponentName(long componentId)
componentId
- tracing component Idpublic int getSizeOfComponent()
public static ECTracingProvider getUniqueInstance()
public boolean isClientInfoEnabled()
isClientInfoEnabled
in interface
ITracingService
public boolean isTraceable(long componentId)
isTraceable
in interface
ITracingService
componentId
- tracing component Idpublic boolean isTraceEnabled()
isTraceEnabled
in interface
ITracingService
public void overrideMask(int[] componentMask)
public void trace(long componentId, java.lang.String className, java.lang.String methodName, java.lang.String text)
trace
in interface
ITracingService
methodName
- the name of the method to be tracedtext
- the text to be recordedcomponentId
- The name of the component to which the class to
be traced belongspublic void setClientInfoEnabled(boolean value)
setClientInfoEnabled
in interface
ITracingService
value
- client tracing information enablement
value