|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.base.Trace
This class is used to write the results of a trace to a window, to a disk, or to both using the static trace method of this class.
Field Summary | |
static int |
All
|
static int |
AllLevels
The constants that represents all levels. |
static int |
AllTypes
The constants that represents all types. |
protected static TraceBuffer |
buffer
The buffer where the trace lines are stored. |
static int |
Debug
The Debug type. |
protected static java.lang.String |
Default_CP
The code page for trace file. |
static int |
Display
The Display type. |
static boolean |
enableTraces
The flag to indicate if the trace to display facility is activated. |
static int |
Error
The Error type. |
static int |
High
The High level. |
static int |
Information
The Information type. |
static int |
Low
The Low level. |
static int |
Medium
The Medium level. |
static int |
Severe
The Severe type. |
static boolean |
showStack
The flag to indicate if the show originator option is activated. |
protected static com.ibm.dse.base.TracesWindow |
tracesWindow
The tracesWindow instance. |
static boolean |
traceToFile
The flag to indicate if the trace to file facility is activated. |
protected static boolean |
useLog
The flag to indicate if the web server log facilities are used instead of trace to display or disk facilities. |
static int |
VTF
Deprecated. |
static int |
Warning
The Warning type. |
Constructor Summary | |
Trace()
This constructor creates a Trace object. |
Method Summary | |
static void |
closeDisplay()
Closes and disables the trace to display facility. |
static boolean |
doTrace(java.lang.String component,
int level,
int type)
Returns true if the specified level and the specified type are enabled for the specified component. |
static java.util.Enumeration |
getComponents()
Returns the name of all the components that are registered in traces system. |
static boolean |
getEnableToDisplay()
Returns true if the trace to display facility is enabled. |
static boolean |
getEnableToFile()
Returns true if the trace to file facility is enabled. |
static boolean |
getEnableTrace(java.lang.String component)
Returns true if the trace facility is enabled for the specified component. |
static boolean |
getLockScrolling()
Returns true if the lock-scrolling attribute is enabled in the viewer tool's trace window. |
static boolean |
getOriginator()
Returns true if the showOriginator setting is enabled. |
static boolean |
getShowWarning()
Returns true if the trace object will show a warning message in case of security exception. |
static boolean |
getTraceLevel(int level)
Returns true if the specified trace level is enabled in the generic trace. |
static boolean |
getTraceLevel(java.lang.String component,
int level)
Returns true if the specified trace level is enabled in the specified component. |
static boolean |
getTraceType(int type)
Returns true if the specified trace type is enabled in generic trace. |
static boolean |
getTraceType(java.lang.String component,
int type)
Returns true if the specified trace type is enabled in the specified component. |
static void |
reset()
Resets and initializes trace facility with original configuration. |
static void |
resetNextLine()
Sets the number of the next line to write to 1. |
void |
run()
Main Trace thread process |
static void |
setClearList()
Clears the content of the viewer tool's trace window. |
static void |
setEnableToDisplay(boolean ena)
Enables or disables the trace to display facility according to the specified boolean value. |
static void |
setEnableToFile(boolean ena)
Enables or disables the trace to file facility according to the specified boolean value. |
static void |
setEnableTrace(java.lang.String component,
boolean newStatus)
Enables or disables the trace facility for the specified component according to the specified boolean value. |
static void |
setLockScrolling(boolean state)
Enables or disables the lock-scrolling attribute in the trace window according to the specified boolean value. |
static void |
setOriginator(boolean state)
Enables or disables the originator information in the trace record according to the specified boolean value. |
static void |
setTraceLevel(int level)
Deprecated. |
static void |
setTraceLevel(int level,
boolean state)
Enables or disables the specified level in the generic trace levels according tot he specified boolean value. |
static void |
setTraceLevel(java.lang.String component,
int level,
boolean newStatus)
Enables or disables the specified level for the specified component according to the specified boolean value. |
static void |
setTraceType(int type,
boolean state)
Enables or disables the specified type in the generic trace types according to the specified boolean value. |
static void |
setTraceType(java.lang.String component,
int type,
boolean newStatus)
Enables or disables the specified type for the specified component according to the specified boolean value. |
static void |
trace(boolean check,
java.lang.String component,
int level,
int type,
java.lang.String TID,
java.lang.Exception anException)
Builds a trace record with the contents of the specified component, level, type, terminal identifier and exception. |
static void |
trace(boolean check,
java.lang.String component,
int level,
int type,
java.lang.String TID,
java.lang.String message)
Builds a trace record with the contents of the specified component, level, type, terminal identifier and message. |
static void |
trace(int inf,
java.lang.String str)
Deprecated. |
static void |
trace(int inf,
java.lang.String TID,
java.lang.String str)
Deprecated. |
static void |
trace(java.lang.String component,
int level,
int type,
java.lang.String TID,
java.lang.Exception anException)
Builds a trace record with the contents of the specified component, level, type, terminal identifier, and exception. |
static void |
trace(java.lang.String component,
int level,
int inf,
java.lang.String TID,
java.lang.String str)
Builds a trace record with the contents of the specified component, level, type, terminal identifier, and message. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int Display
public static final int Information
public static final int Warning
public static final int Error
public static final int Severe
public static final int Debug
public static final int VTF
public static final int All
public static final int AllTypes
public static final int High
public static final int Medium
public static final int Low
public static final int AllLevels
protected static java.lang.String Default_CP
protected static boolean useLog
protected static com.ibm.dse.base.TracesWindow tracesWindow
protected static TraceBuffer buffer
public static boolean traceToFile
public static boolean enableTraces
public static boolean showStack
Constructor Detail |
public Trace()
Method Detail |
public static void closeDisplay()
public static final boolean doTrace(java.lang.String component, int level, int type)
component
- java.lang.String The name of the componentlevel
- int The level of tracetype
- int The type of tracepublic static java.util.Enumeration getComponents()
public static boolean getEnableToDisplay()
public static boolean getEnableToFile()
public static boolean getEnableTrace(java.lang.String component)
component
- java.lang.String The name of the component.public static boolean getLockScrolling()
public static boolean getOriginator()
public static boolean getShowWarning()
public static boolean getTraceLevel(int level)
level
- int The level of trace.public static boolean getTraceLevel(java.lang.String component, int level)
component
- java.lang.String The name of the component.level
- int The level of trace.public static boolean getTraceType(int type)
type
- int The type of trace.public static boolean getTraceType(java.lang.String component, int type)
component
- java.lang.String The name of the component.type
- int The type of trace.public static final void reset()
public static final void resetNextLine()
public void run()
public static void setClearList()
public static void setEnableToDisplay(boolean ena)
ena
- boolean The new statuspublic static void setEnableToFile(boolean ena)
ena
- boolean The new statuspublic static void setEnableTrace(java.lang.String component, boolean newStatus)
component
- java.lang.String The name of the component.newStatus
- boolean The new status value.public static void setLockScrolling(boolean state)
state
- boolean The new state for the lock scrolling optionpublic static void setOriginator(boolean state)
state
- boolean The new state for the originator optionpublic static void setTraceLevel(int level)
level
- int the level.public static void setTraceLevel(int level, boolean state)
level
- int The level of tracestate
- boolean The new state for the generic level of tracepublic static void setTraceLevel(java.lang.String component, int level, boolean newStatus)
component
- java.lang.String The name of the componentlevel
- int The level of tracenewStatus
- boolean The new state for the level of tracepublic static void setTraceType(int type, boolean state)
type
- int The type of tracestate
- boolean The new state for the generic type of tracepublic static void setTraceType(java.lang.String component, int type, boolean newStatus)
component
- java.lang.String The name of the componenttype
- int The type of tracenewStatus
- boolean The new state for the type of trace.public static final void trace(int inf, java.lang.String str)
inf
- int The typestr
- java.lang.String The message of trace recordpublic static final void trace(int inf, java.lang.String TID, java.lang.String str)
inf
- int The typeid
- java.lang.String The TIDstr
- java.lang.String The message of trace recordpublic static final void trace(java.lang.String component, int level, int type, java.lang.String TID, java.lang.Exception anException)
component
- java.lang.String The name of the componentlevel
- int The level of trace.type
- int The type of trace.TID
- java.lang.String The terminal identificationanException
- java.lang.Exception The exception from where is extracted the contents of trace record.public static final void trace(java.lang.String component, int level, int inf, java.lang.String TID, java.lang.String str)
component
- java.lang.String The name of the componentlevel
- int The level of trace.inf
- int The type of trace.TID
- java.lang.String The terminal identificationstr
- java.lang.String The message of trace record.public static final void trace(boolean check, java.lang.String component, int level, int type, java.lang.String TID, java.lang.Exception anException)
check
- booleancomponent
- java.lang.String The name of the componentlevel
- int The level of tracetype
- int The type of traceTID
- java.lang.String The terminal identificationaException
- java.lang.Exception The exception from where is extracted the message of trace record.public static final void trace(boolean check, java.lang.String component, int level, int type, java.lang.String TID, java.lang.String message)
check
- booleancomponent
- java.lang.String The name of the componentlevel
- int The level of tracetype
- int The type of traceTID
- java.lang.String The terminal identificationmessage
- java.lang.String The message of trace record
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |