|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.base.TracesWindow
This class controls where the trace lines will be written; to window, to disk or to both.
Field Summary | |
---|---|
(package private) TraceFile |
traceFile
The trace file object. |
(package private) TraceFrame |
traceFrame
The display window. |
(package private) TraceWAS |
traceWAS
The trace WAS object. |
int |
WR_ALL
All elements in trace line mask |
int |
WR_COMPONENT
The component in trace line mask |
int |
WR_DATE
The date in trace line mask |
int |
WR_LEVEL
The level in trace line mask |
int |
WR_NUMBER
The line number in trace line mask |
int |
WR_ThID
The thread ID in trace line mask |
int |
WR_TID
The terminal ID in trace line mask |
int |
WR_TIME
The time in trace line mask |
int |
WR_TYPE
The type in trace line mask |
Constructor Summary | |
---|---|
TracesWindow()
The constructor of the class. |
Method Summary | |
---|---|
void |
closeFrame()
Close the frame. |
void |
deleteTraceFrame()
Deletes the trace frame. |
static void |
freezeList()
To stop the list. |
Hashtable |
getComponents()
This method was created in VisualAge. |
boolean |
getEnableLockScrolling()
Returns the state of the lock scrolling option if traces to display is activated. |
int |
getLevel()
Return the value of the attribute level (level). |
int |
getShowTraceLevels()
Gets the trace levels to trace. |
int |
getType()
This method was created in VisualAge. |
int |
getWrite()
Insert the method's description here. |
boolean |
isLevelEnabled(int aLevel)
This method was created in VisualAge. |
boolean |
isTypeEnabled(int aType)
This method was created in VisualAge. |
boolean |
readSettings()
Initializes all the attributes of the class, reading the parameters from Settings. |
void |
reset()
Frees all the resources used by the class. |
void |
resetCount()
Sets the number of the next line to write to 1. |
void |
setCharLevel(int ndx,
char newchar)
Sets the value of the position ndx of the array levels with the value newchar. |
void |
setCharType(int ndx,
char newchar)
This method was created in VisualAge. |
void |
setEnableClearList()
Clears the list of traces, if traces to display option is activated. |
void |
setEnableLockScrolling(boolean state)
Enables or disables vertical scrolling, if traces to display option is activated. |
void |
setEnableOriginator(boolean state)
Refreshs the originator option menu, if traces to display option is activated. |
void |
setEnableToDisplay(boolean ena)
Enable/Disable the trace to display. |
void |
setEnableToFile(boolean ena)
Enable/Disable the trace to file. |
void |
setFieldsToWrite(int w)
Sets the value of the attribute write. |
void |
setFieldToWrite(int field,
boolean state)
Enables or disables, depending on state, or the field field in the trace record. |
void |
setLevel(int l)
Sets the value of the attribute level. |
static void |
setLine(long l)
|
void |
setLineLength(int w)
Sets the value of the attribute lineLength. |
void |
setNumberOfLines(long l)
Sets the value of the attribute numberOfLines. |
void |
setType(int aType)
This method was created in VisualAge. |
void |
setWrite(int fields)
Insert the method's description here. |
static void |
unfreezeList()
|
protected void |
writeTrace(java.lang.String component,
int level,
int inf,
java.lang.String str,
java.lang.String th,
java.lang.String stack,
java.lang.String id,
java.util.Calendar moment)
Writes the string "str" to the trace file, writing first the number of the line, the component,the level indicate by "inf", the type, the date and the time, the thread ID and the terminal ID if they are necessary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final int WR_DATE
public final int WR_TIME
public final int WR_LEVEL
public final int WR_NUMBER
public final int WR_ThID
public final int WR_TYPE
public final int WR_TID
public final int WR_COMPONENT
public final int WR_ALL
TraceFrame traceFrame
TraceFile traceFile
TraceWAS traceWAS
Constructor Detail |
public TracesWindow() throws java.lang.Exception
Method Detail |
public void closeFrame()
public void deleteTraceFrame()
public static void freezeList()
public final Hashtable getComponents()
public boolean getEnableLockScrolling()
public final int getLevel()
public int getShowTraceLevels()
public final int getType()
public int getWrite()
public boolean isLevelEnabled(int aLevel)
aLevel
- int
public boolean isTypeEnabled(int aType)
aType
- int
public boolean readSettings()
public void reset()
public void resetCount()
public final void setCharLevel(int ndx, char newchar)
public final void setCharType(int ndx, char newchar)
ndx
- intnewchar
- charpublic void setEnableClearList()
public void setEnableLockScrolling(boolean state)
state
- boolean - If its value is true then vertical scrolling is enabled, and if the value is false then vertical
scrolling is disabled.public void setEnableOriginator(boolean state)
state
- boolean - The state for the originator option menupublic void setEnableToDisplay(boolean ena)
ena
- booleanpublic void setEnableToFile(boolean ena)
ena
- booleanpublic final void setFieldsToWrite(int w)
public void setFieldToWrite(int field, boolean state)
field
- int - The fieldstate
- boolean - The new state for the fieldpublic final void setLevel(int l)
public static void setLine(long l)
l
- longpublic final void setLineLength(int w)
public final void setNumberOfLines(long l)
public final void setType(int aType)
aType
- intpublic void setWrite(int fields)
fields
- intpublic static void unfreezeList()
protected final void writeTrace(java.lang.String component, int level, int inf, java.lang.String str, java.lang.String th, java.lang.String stack, java.lang.String id, java.util.Calendar moment)
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |