Overview | Package | Class | Tree | Index | Help NetCharts Pro (Applets) 7.0
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

netcharts.util
Class NFDebug

java.lang.Object
  |
  +--netcharts.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 long PROCESSMODULE
          PROCESSMODULE
static long REMOTE
          REMOTE
static long SECURITY
          SECURITY
static long SERVER
          SERVER
static long SYMBOL
          SYMBOL
static long THREAD
          THREAD
static long WINDOW
          WINDOW
 
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/or printWriter 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.io.PrintWriter pw, java.lang.String summary, java.lang.Exception e)
          Print the exception to the given printWriter and notify observers.
static void exception(java.lang.String summary, java.lang.Exception e)
          Print the exception to the default printStream and/or printWriter 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/or printWriter 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 information(java.io.PrintWriter pw, java.lang.Object information)
          Print the exception to the given printWriter and notify observers.
static void print(long mask, java.io.PrintStream ps, java.lang.String str)
          Print the categorized message on the given printStream.
static void print(long mask, java.io.PrintWriter pw, java.lang.String str)
          Print the categorized message on the given printWriter.
static void print(long type, java.lang.String msg)
          Print the message on the current printStream and/or printWriter, 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.io.PrintWriter pw, java.lang.String str)
          Print the message on the given printWriter.
static void print(java.lang.String msg)
          Print the message on the current printStream and/or printWriter, 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 warning(java.lang.Object warning)
          Print the exception to the default printStream and/or printWriter and notify observers.
static void warning(java.io.PrintStream ps, java.lang.Object warning)
          Print the exception to the given printStream and notify observers.
static void warning(java.io.PrintWriter pw, java.lang.Object warning)
          Print the exception to the given printWriter and notify observers.
 

Field Detail

ALL

public static final long ALL
ALL

LICENSE

public static final long LICENSE
LICENSE

PARAM

public static final long PARAM
PARAM

SERVER

public static final long SERVER
SERVER

JDBC

public static final long JDBC
JDBC

DWELL

public static final long DWELL
DWELL

SYMBOL

public static final long SYMBOL
SYMBOL

FILE

public static final long FILE
FILE

BEANS

public static final long BEANS
BEANS

AXIS

public static final long AXIS
AXIS

GRAPH

public static final long GRAPH
GRAPH

LEGEND

public static final long LEGEND
LEGEND

WINDOW

public static final long WINDOW
WINDOW

ACTION

public static final long ACTION
ACTION

NOTES

public static final long NOTES
NOTES

THREAD

public static final long THREAD
THREAD

CACHE

public static final long CACHE
CACHE

IMAGE

public static final long IMAGE
IMAGE

AGENT

public static final long AGENT
AGENT

HTTP

public static final long HTTP
HTTP

SECURITY

public static final long SECURITY
SECURITY

REMOTE

public static final long REMOTE
REMOTE

PROCESSMODULE

public static final long PROCESSMODULE
PROCESSMODULE
Method Detail

getOptions

public 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.
Returns:
The options.

set

public static void set(long type)
Enable the given type(s) for subsequent output. The type may be composed of OR'd type values to set multiple types at one time.
Parameters:
type - The debug option to set.

set

public static void set(java.lang.String list)
Enable the given options for subsequent output as defined in the comma separated list of option names.
Parameters:
list - A list of debug options.

set

public static void set(java.util.Vector v)
Enable all of the types defined in the given vector. The vector should contain Number objects, which will be converted to a long value to determine the bit setting. This method is generally used in conjunction with the defineDebug() method.
Parameters:
v - The list of debug options to set.

clear

public static void clear(long type)
Disable the given type(s) for subsequent output. The type may be composed of OR'd type values to clear multiple types.
Parameters:
type - The debug option to unset.

clear

public static void clear(java.lang.String list)
Clear the given options for subsequent output as defined in the comma separated list of option names.
Parameters:
list - A list of debug options.

clear

public static void clear(java.util.Vector v)
Clear all of the types defined in the given vector. The vector should contain Number objects, which will be converted to a long value to determine the bit setting.
Parameters:
v - The debug options to unset.

enabled

public static boolean enabled(long type)
Returns true if one or more of the types specified by the OR'd type parameter are currently set.
Parameters:
type - The debug option to check.

print

public static void print(java.lang.String msg)
Print the message on the current printStream and/or printWriter, without checking for type settings.
Parameters:
msg - The message to print.

print

public static void print(long type,
                         java.lang.String msg)
Print the message on the current printStream and/or printWriter, if the given type(s) is set.
Parameters:
type - The option.
msg - The message to print.

print

public static void print(java.io.PrintStream ps,
                         java.lang.String str)
Print the message on the given printStream.
Parameters:
ps - The stream.
str - The message to print.

print

public static void print(java.io.PrintWriter pw,
                         java.lang.String str)
Print the message on the given printWriter.
Parameters:
pw - The writer.
str - The message to print.

print

public static void print(long mask,
                         java.io.PrintStream ps,
                         java.lang.String str)
Print the categorized message on the given printStream.
Parameters:
mask - The category.
ps - The stream.
str - The message to print.

print

public static void print(long mask,
                         java.io.PrintWriter pw,
                         java.lang.String str)
Print the categorized message on the given printWriter.
Parameters:
mask - The category.
pw - The writer.
str - The message to print.

exception

public static void exception(java.lang.Exception e)
Print the exception to the default printStream and/or printWriter and notify observers.
Parameters:
e - The exception.

exception

public static void exception(java.lang.String summary,
                             java.lang.Exception e)
Print the exception to the default printStream and/or printWriter and notify observers.
Parameters:
summary - Text to summarize the exception.
e - The exception.

exception

public 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.
Parameters:
ps - The stream.
summary - Text to summarize the exception.
e - The exception.

exception

public static void exception(java.io.PrintWriter pw,
                             java.lang.String summary,
                             java.lang.Exception e)
Print the exception to the given printWriter and notify observers.
Parameters:
pw - The writer.
summary - Text to summarize the exception.
e - The exception.

warning

public static void warning(java.lang.Object warning)
Print the exception to the default printStream and/or printWriter and notify observers.
Parameters:
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 observers

warning

public static void warning(java.io.PrintStream ps,
                           java.lang.Object warning)
Print the exception to the given printStream and notify observers.
Parameters:
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 observers

warning

public static void warning(java.io.PrintWriter pw,
                           java.lang.Object warning)
Print the exception to the given printWriter and notify observers.
Parameters:
pw - The writer.
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 observers

information

public static void information(java.lang.Object information)
Print the exception to the default printStream and/or printWriter and notify observers.
Parameters:
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 observers

information

public static void information(java.io.PrintStream ps,
                               java.lang.Object information)
Print the exception to the given printStream and notify observers.
Parameters:
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 observers

information

public static void information(java.io.PrintWriter pw,
                               java.lang.Object information)
Print the exception to the given printWriter and notify observers.
Parameters:
pw - The writer.
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 observers

addObserver

public static void addObserver(NFDebugObserver observer)
Add the given observer
Parameters:
observer - The observer to add.

removeObserver

public static void removeObserver(NFDebugObserver observer)
Remove the given observer
Parameters:
observer - The observer to remove.

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD


Visual Mining, Inc.
2099 Gaither Grove Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2010
All Rights Reserved.

NetCharts ProTM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders.

Last Modified: Jun 29, 2010