|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
Constructor Summary | |
ECTracingProvider()
|
Method Summary | |
void |
disable()
This method is used to disable Tracing. |
void |
disable(long componentId)
This method is called to disable a specific tracing component |
void |
disableTracing()
This method is used to disable Tracing. |
void |
enable()
This method is used to enable Tracing. |
void |
enable(long componentId)
This method is called to enable a specific tracing component |
void |
enableTracing()
This method is used to enable Tracing. |
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()
This method is used to close the file output for cleanup. |
static long |
getComponent(java.lang.Object comp)
This method is called to get the component id |
static java.lang.String |
getComponentName(long componentId)
This method is called to get the component name |
int |
getSizeOfComponent()
This method returns the number of tracing components. |
static ECTracingProvider |
getUniqueInstance()
This method is called to return an unique instance of ECTracingProvider. |
boolean |
isClientInfoEnabled()
This method is used to check if Client Tracing information is enabled. |
boolean |
isTraceable(long componentId)
This method is used to check if a particular component is tracable. |
boolean |
isTraceEnabled()
This method is used to check if Tracing is enabled. |
void |
overrideMask(int[] componentMask)
This method updates the status of the tracing components. |
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
component
- longpublic void disableTracing()
disableTracing
in interface ITracingService
public void enable()
public void enable(long componentId)
enable
in interface ITracingService
component
- longpublic void enableTracing()
enableTracing
in interface ITracingService
public void entry(long componentId, java.lang.String className, java.lang.String methodName)
entry
in interface ITracingService
componentId
- longclass
- name Stringmethod
- name Stringpublic void exit(long componentId, java.lang.String className, java.lang.String methodName)
componentId
- longclass
- name Stringmethod
- name Stringpublic void exit(long componentId, java.lang.String className, java.lang.String methodName, java.lang.Object retValue)
exit
in interface ITracingService
componentId
- longclass
- name Stringmethod
- name Stringreturn
- object value Objectprotected void finalize()
finalize
in class java.lang.Object
public static long getComponent(java.lang.Object comp)
component
- Objectpublic static java.lang.String getComponentName(long componentId)
componentId
- longpublic int getSizeOfComponent()
public static ECTracingProvider getUniqueInstance()
public boolean isClientInfoEnabled()
isClientInfoEnabled
in interface ITracingService
public boolean isTraceable(long componentId)
isTraceable
in interface ITracingService
componentId
- longpublic 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
componentName
- The name of the component to which the class to be traced belongs.classname
- The name of the class to be traced.methodName
- The name of the method to be traced.text
- The text to be recorded.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |