|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--fipaos.util.DIAGNOSTICS
Object which can be used to handles all status and error messages.
All methods are static - this class does not need to be instantiated
Field Summary | |
static int |
LEVEL_2
diagnostic level |
static int |
LEVEL_3
diagnostic level |
static int |
LEVEL_4
diagnostic level |
static int |
LEVEL_MAX
maximum diagnostic level: produces the minimum of information |
static int |
LEVEL_MIN
minimum diagnostic level: produces the maximum of information |
Method Summary | |
static void |
assert(boolean condition)
This does nothing except provide a breakpoint location for debugging Creation date: (9/27/99 10:37:10 AM) |
static void |
assert(boolean condition,
java.lang.String msg)
It outputs message if condition is true This provides a breakpoint location for debugging Creation date: (9/27/99 10:37:10 AM) |
static void |
close()
Flush the buffers and close current output file |
static void |
close(java.lang.String name)
Flush the buffers and close current output file - when a new output file is created use the given name |
static void |
flush()
Flush the contents of the buffers |
static int |
get_file_level()
get the level which filters whether messages are saved to disk Creation date: (3/3/00 3:01:08 AM) |
static int |
get_memory_level()
Insert the method's description here. |
void |
monitorUpdateFile(java.lang.Object o)
Print the given information to a file |
void |
monitorUpdateMemory(java.lang.Object o)
Print the given information to the screen |
void |
openFile(java.lang.String afile)
Set a file (only if it's not already been set) to dump the diagnostic output into N.B. |
static void |
println()
|
static void |
println(java.lang.Object data)
|
static void |
println(java.lang.Object data,
int alevel)
|
static void |
println(java.lang.Object data,
java.lang.Object source)
|
static void |
println(java.lang.Object data,
java.lang.Object source,
int newLevel)
Receive data and output it to any file set and to any process [data sink] that is attached |
static void |
println(java.lang.Object data,
java.lang.Throwable exception)
Receive data including exception & pass it out |
static void |
println(java.lang.Object data,
java.lang.Throwable exception,
int level)
Receive data including exception & pass it out |
static void |
println(java.lang.Object data,
java.lang.Throwable exception,
java.lang.Object source)
Receive data including exception & pass it out |
static void |
println(java.lang.Object data,
java.lang.Throwable exception,
java.lang.Object source,
int level)
Receive data including exception & pass it out |
static void |
printStackTrace(java.lang.String name,
java.lang.String msg)
output all diagnostic messages for name |
void |
set_current_level(int NewLevel)
set the levelfor following messages Creation date: (3/3/00 4:08:27 AM) |
static void |
setDelimiter(java.lang.String delim)
set a delimiter character for seperating fields in output messages |
static void |
setEnabled(boolean on)
Turn DIAGNOSTICS on or off |
static void |
setFileLevel(int alevel)
set a new level to filter which messages are stored on disk Creation date: (3/3/00 3:01:08 AM) |
static void |
setMemoryLevel(int alevel)
set a new level to filter which messages are sent to any attached sinks level must be in the range LEVEL_MIN to LEVEL_MAX otherwise it is ignored Creation date: (3/3/00 3:00:47 AM) |
static void |
TBD(java.lang.String msg)
Notify user of method call which is not yet implemented - it's To Be Done Deprecate this method? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LEVEL_MIN
public static final int LEVEL_2
public static final int LEVEL_3
public static final int LEVEL_4
public static final int LEVEL_MAX
Method Detail |
public static void setEnabled(boolean on)
public static void flush()
public static void close()
public static void close(java.lang.String name)
public static void assert(boolean condition)
condition
- booleanpublic static void assert(boolean condition, java.lang.String msg)
condition
- booleanpublic static int get_file_level()
public static int get_memory_level()
public static void println()
public static void println(java.lang.Object data, java.lang.Throwable exception)
public static void println(java.lang.Object data)
public static void println(java.lang.Object data, java.lang.Throwable exception, int level)
public static void println(java.lang.Object data, int alevel)
public static void println(java.lang.Object data, java.lang.Throwable exception, java.lang.Object source)
public static void println(java.lang.Object data, java.lang.Object source)
public static void println(java.lang.Object data, java.lang.Throwable exception, java.lang.Object source, int level)
public static void println(java.lang.Object data, java.lang.Object source, int newLevel)
data
- Object the data receivedsource
- Object the sender of the datalevel
- int the diagnostics level for this datapublic static void printStackTrace(java.lang.String name, java.lang.String msg)
name
- String the instance or class namemsg
- String the message to be outputpublic void set_current_level(int NewLevel)
NewLevel
- intpublic static void setDelimiter(java.lang.String delim)
delim
- Stringpublic static void setFileLevel(int alevel)
aLevel
- intpublic static void setMemoryLevel(int alevel)
alevel
- intpublic static void TBD(java.lang.String msg)
msg
- String the message to ouputlevel
- intpublic void monitorUpdateMemory(java.lang.Object o)
public void monitorUpdateFile(java.lang.Object o)
public void openFile(java.lang.String afile)
file
- java.lang.String file name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |