|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetcharts.util.NFDebug
public class NFDebug
This class is used to print out debug messages, based on the type of the message and the types currently enabled. Note: All methods and variables are STATIC to make it easier to print debug messages from anywhere.
Field Summary | |
---|---|
static long |
ACTION
ACTION |
static long |
AGENT
AGENT |
static long |
ALL
ALL |
static long |
AXIS
AXIS |
static long |
BEANS
BEANS |
static long |
CACHE
CACHE |
static long |
DWELL
DWELL |
static long |
FILE
FILE |
static long |
GRAPH
GRAPH |
static long |
HTTP
HTTP |
static long |
IMAGE
IMAGE |
static long |
JDBC
JDBC |
static long |
LEGEND
LEGEND |
static long |
LICENSE
LICENSE |
static long |
NOTES
NOTES |
static long |
PARAM
PARAM |
static java.io.PrintStream |
printStream
|
static long |
REMOTE
REMOTE |
static long |
SECURITY
SECURITY |
static long |
SERVER
SERVER |
static long |
SYMBOL
SYMBOL |
static long |
THREAD
THREAD |
static long |
WINDOW
WINDOW |
Constructor Summary | |
---|---|
NFDebug()
|
Method Summary | |
---|---|
static void |
addObserver(NFDebugObserver observer)
Add the given observer |
static void |
clear(long type)
Disable the given type(s) for subsequent output. |
static void |
clear(java.lang.String list)
Clear the given options for subsequent output as defined in the comma separated list of option names. |
static void |
clear(java.util.Vector v)
Clear all of the types defined in the given vector. |
static boolean |
enabled(long type)
Returns true if one or more of the types specified by the OR'd type parameter are currently set. |
static void |
exception(java.lang.Exception e)
Print the exception to the default printStream and notify observers. |
static void |
exception(java.io.PrintStream ps,
java.lang.String summary,
java.lang.Exception e)
Print the exception to the given printStream and notify observers. |
static void |
exception(java.lang.String summary,
java.lang.Exception e)
Print the exception to the default printStream and notify observers. |
static java.util.Hashtable |
getOptions()
Returns a static hashtable containing the String names of all debug options as the key, and the numeric id as the value. |
static void |
information(java.lang.Object information)
Print the exception to the default printStream and notify observers. |
static void |
information(java.io.PrintStream ps,
java.lang.Object information)
Print the exception to the given printStream and notify observers. |
static void |
memCheck(java.lang.String tag,
boolean runGC)
|
static void |
print(long type,
java.lang.String msg)
Print the message on the current printStream, if the given type(s) is set. |
static void |
print(java.io.PrintStream ps,
java.lang.String str)
Print the message on the given printStream. |
static void |
print(java.lang.String msg)
Print the message on the current printStream, without checking for type settings. |
static void |
removeObserver(NFDebugObserver observer)
Remove the given observer |
static void |
set(long type)
Enable the given type(s) for subsequent output. |
static void |
set(java.lang.String list)
Enable the given options for subsequent output as defined in the comma separated list of option names. |
static void |
set(java.util.Vector v)
Enable all of the types defined in the given vector. |
static void |
timerReset()
|
static void |
timerSplit(java.lang.String str)
|
static void |
warning(java.lang.Object warning)
Print the exception to the default printStream and notify observers. |
static void |
warning(java.io.PrintStream ps,
java.lang.Object warning)
Print the exception to the given printStream and notify observers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long ALL
public static final long LICENSE
public static final long PARAM
public static final long SERVER
public static final long JDBC
public static final long DWELL
public static final long SYMBOL
public static final long FILE
public static final long BEANS
public static final long AXIS
public static final long GRAPH
public static final long LEGEND
public static final long WINDOW
public static final long ACTION
public static final long NOTES
public static final long THREAD
public static final long CACHE
public static final long IMAGE
public static final long AGENT
public static final long HTTP
public static final long SECURITY
public static final long REMOTE
public static java.io.PrintStream printStream
Constructor Detail |
---|
public NFDebug()
Method Detail |
---|
public static java.util.Hashtable getOptions()
public static void set(long type)
type
- The debug option to set.public static void set(java.lang.String list)
list
- A list of debug options.public static void set(java.util.Vector v)
v
- The list of debug options to set.public static void clear(long type)
type
- The debug option to unset.public static void clear(java.lang.String list)
list
- A list of debug options.public static void clear(java.util.Vector v)
v
- The debug options to unset.public static boolean enabled(long type)
type
- The debug option to check.public static void print(java.lang.String msg)
msg
- The message to print.public static void print(long type, java.lang.String msg)
type
- The option.msg
- The message to print.public static void print(java.io.PrintStream ps, java.lang.String str)
ps
- The stream.str
- The message to print.public static void exception(java.lang.Exception e)
e
- The exception.public static void exception(java.lang.String summary, java.lang.Exception e)
summary
- Text to summarize the exception.e
- The exception.public static void exception(java.io.PrintStream ps, java.lang.String summary, java.lang.Exception e)
ps
- The stream.summary
- Text to summarize the exception.e
- The exception.public static void warning(java.lang.Object warning)
warning
- The warning. Note that the warning's "toString"
method will be called to write to the print stream. This allows
custom objects to be passed along to observerspublic static void warning(java.io.PrintStream ps, java.lang.Object warning)
ps
- The stream.warning
- The warning. Note that the warning's "toString"
method will be called to write to the print stream. This allows
custom objects to be passed along to observerspublic static void information(java.lang.Object information)
information
- The information. Note that the information's "toString"
method will be called to write to the print stream. This allows
custom objects to be passed along to observerspublic static void information(java.io.PrintStream ps, java.lang.Object information)
ps
- The stream.information
- The information. Note that the information's "toString"
method will be called to write to the print stream. This allows
custom objects to be passed along to observerspublic static void addObserver(NFDebugObserver observer)
observer
- The observer to add.public static void removeObserver(NFDebugObserver observer)
observer
- The observer to remove.public static void timerReset()
public static void timerSplit(java.lang.String str)
public static void memCheck(java.lang.String tag, boolean runGC)
|
NetCharts Pro | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Visual Mining, Inc. | Copyright © Visual Mining, Inc. 1996 - 2011 |
Last Modified: Jun 28, 2011 |