public final class ECTracingProvider extends java.lang.Object implements ITracingService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ECTracingProvider() |
Modifier and Type | Method and Description |
---|---|
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 |
entry(long componentId,
java.lang.String className,
java.lang.String methodName,
java.lang.Object[] param)
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
|
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.
|
public static final java.lang.String COPYRIGHT
public void disable()
public void disable(long componentId)
disable
in interface ITracingService
component
- tracing componentpublic void disableTracing()
disableTracing
in interface ITracingService
public void enable()
public void enable(long componentId)
enable
in interface ITracingService
component
- tracing componentpublic 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 entry(long componentId, java.lang.String className, java.lang.String methodName, java.lang.Object[] param)
entry
in interface ITracingService
componentId
- tracing componentclassName
- class namemethodName
- method nameparam
- the entry parameters to the method.public 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 valuepublic 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
componentName
- the name of the component to which the class to be traced belongsclassname
- the name of the class to be tracedmethodName
- the name of the method to be tracedtext
- the text to be recordedpublic void setClientInfoEnabled(boolean value)
setClientInfoEnabled
in interface ITracingService
value
- client tracing information enablement value