| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
marf.util.BaseThread
marf.util.Logger
marf.util.Debug
public class Debug
Simple MARF Debugging Facility.
$Id: Debug.java,v 1.18 2007/12/23 06:29:46 mokhov Exp $
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class marf.util.Logger | 
|---|
Logger.LogPrintStream | 
| Nested classes/interfaces inherited from class java.lang.Thread | 
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler | 
| Field Summary | |
|---|---|
static java.lang.String | 
DEFAULT_DEBUG_LOG_FILENAME
Default filename to log the debug output to.  | 
static boolean | 
sbDebugOn
Public debug flag.  | 
| Fields inherited from class marf.util.Logger | 
|---|
bAvailable, bNoTimestamp, iLogDirection, LOG_STDERR_TO_FILE, LOG_STDOUT_STDERR_TO_FILE, LOG_STDOUT_TO_FILE, LOG_TO_FILE_STDOUT_STDERR, oLog, strFilename, strLogMessage | 
| Fields inherited from class marf.util.BaseThread | 
|---|
iTID, oTarget, siNextTID | 
| Fields inherited from class java.lang.Thread | 
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY | 
| Constructor Summary | |
|---|---|
protected  | 
Debug()
Needed for logger.  | 
| Method Summary | |
|---|---|
static void | 
debug()
Issues an empty debug message if the flag is on with a trailing EOL.  | 
static void | 
debug(java.lang.Class poClass,
      java.lang.Object poMsgObject)
Issues a debug message if the flag is on with a trailing EOL preceded by the class name.  | 
static void | 
debug(java.lang.Class poClass,
      java.lang.String pstrMsgString)
Issues a debug message if the flag is on with a trailing EOL preceded by the class name.  | 
static void | 
debug(java.lang.Object poObject)
Issues a debug message if the flag is on with a trailing EOL by calling toString() of the parameter. | 
static void | 
debug(java.lang.String pstrMsgString)
Issues a debug message if the flag is on with a trailing EOL.  | 
static void | 
debug(java.lang.String pstrMsgString,
      boolean pbEOLNeeded)
Issues a debug message if the flag is on.  | 
static boolean | 
enableDebug()
Enables debugging.  | 
static boolean | 
enableDebug(boolean pbEnable)
Enables or disables debugging based on the parameter.  | 
static java.lang.String | 
getMARFSourceCodeRevision()
Retrieves class' revision.  | 
static boolean | 
isDebugOn()
Allows to atomically query the debug flag.  | 
| Methods inherited from class marf.util.Logger | 
|---|
enableTimestamp, getLogDirection, getLogFilename, getLogPrintStream, isTimestampEnabled, setLogDirection, setLogFilename, setLogPrintStream | 
| Methods inherited from class marf.util.BaseThread | 
|---|
getNextTID, getTarget, getTID | 
| Methods inherited from class java.lang.Thread | 
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String DEFAULT_DEBUG_LOG_FILENAME
public static boolean sbDebugOn
| Constructor Detail | 
|---|
protected Debug()
         throws java.lang.Exception
java.lang.Exception - if parent does| Method Detail | 
|---|
public static final boolean enableDebug(boolean pbEnable)
pbEnable - to set the debug flag to
public static final boolean enableDebug()
public static final boolean isDebugOn()
public static final void debug(java.lang.String pstrMsgString,
                               boolean pbEOLNeeded)
pstrMsgString - desired debug message to be issuedpbEOLNeeded - true if the trailing EOL is desired.public static final void debug(java.lang.String pstrMsgString)
pstrMsgString - desired debug message to be issuedpublic static final void debug(java.lang.Object poObject)
toString() of the parameter.
 This method is properly synchronized.
poObject - object to dump to the debug output
public static final void debug(java.lang.Class poClass,
                               java.lang.String pstrMsgString)
poClass - add class to extract the name from as a prefixpstrMsgString - desired debug message to be issued
public static final void debug(java.lang.Class poClass,
                               java.lang.Object poMsgObject)
poClass - add class to extract the name from as a prefixpoMsgObject - the object, whose string representation to be used as messagepublic static final void debug()
public static java.lang.String getMARFSourceCodeRevision()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||