org.gudy.azureus2.core3.util
Class AEDiagnostics

java.lang.Object
  extended by org.gudy.azureus2.core3.util.AEDiagnostics

public class AEDiagnostics
extends Object


Field Summary
static boolean ALWAYS_PASS_HASH_CHECKS
           
static boolean CHECK_DUMMY_FILE_DATA
           
static boolean DEBUG_MONITOR_SEM_USAGE
           
static boolean DEBUG_THREADS
           
protected static boolean loggers_enabled
           
protected static boolean logging_enabled
           
static boolean PRINT_DBB_POOL_USAGE
           
static boolean TRACE_CONNECTION_DROPS
           
static boolean TRACE_DBB_POOL_USAGE
           
static boolean TRACE_DIRECT_BYTE_BUFFERS
           
static boolean TRACE_TCP_TRANSPORT_STATS
           
static boolean USE_DUMMY_FILE_DATA
           
 
Constructor Summary
AEDiagnostics()
           
 
Method Summary
static void addEvidenceGenerator(AEDiagnosticsEvidenceGenerator gen)
           
protected static void analyseDump(File file)
           
static void checkDumpsAndNatives()
           
static void dumpThreads()
           
static void flushPendingLogs()
           
static void generateEvidence(PrintWriter _writer)
           
static File getLogDir()
           
static AEDiagnosticsLogger getLogger(String name)
           
static boolean isDirty()
           
static boolean isStartupComplete()
           
static void log(String logger_name, String str)
           
static void logWithStack(String logger_name, String str)
           
static void markClean()
           
static void markDirty()
           
static void removeEvidenceGenerator(AEDiagnosticsEvidenceGenerator gen)
           
static void startup(boolean _enable_pending)
           
static void waitForDumpChecks(long max_wait)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALWAYS_PASS_HASH_CHECKS

public static final boolean ALWAYS_PASS_HASH_CHECKS
See Also:
Constant Field Values

USE_DUMMY_FILE_DATA

public static final boolean USE_DUMMY_FILE_DATA
See Also:
Constant Field Values

CHECK_DUMMY_FILE_DATA

public static final boolean CHECK_DUMMY_FILE_DATA
See Also:
Constant Field Values

DEBUG_MONITOR_SEM_USAGE

public static final boolean DEBUG_MONITOR_SEM_USAGE
See Also:
Constant Field Values

DEBUG_THREADS

public static final boolean DEBUG_THREADS
See Also:
Constant Field Values

TRACE_DIRECT_BYTE_BUFFERS

public static final boolean TRACE_DIRECT_BYTE_BUFFERS
See Also:
Constant Field Values

TRACE_DBB_POOL_USAGE

public static final boolean TRACE_DBB_POOL_USAGE
See Also:
Constant Field Values

PRINT_DBB_POOL_USAGE

public static final boolean PRINT_DBB_POOL_USAGE
See Also:
Constant Field Values

TRACE_TCP_TRANSPORT_STATS

public static final boolean TRACE_TCP_TRANSPORT_STATS
See Also:
Constant Field Values

TRACE_CONNECTION_DROPS

public static final boolean TRACE_CONNECTION_DROPS
See Also:
Constant Field Values

logging_enabled

protected static boolean logging_enabled

loggers_enabled

protected static boolean loggers_enabled
Constructor Detail

AEDiagnostics

public AEDiagnostics()
Method Detail

startup

public static void startup(boolean _enable_pending)

dumpThreads

public static void dumpThreads()

isStartupComplete

public static boolean isStartupComplete()

getLogDir

public static File getLogDir()

flushPendingLogs

public static void flushPendingLogs()

getLogger

public static AEDiagnosticsLogger getLogger(String name)

logWithStack

public static void logWithStack(String logger_name,
                                String str)

log

public static void log(String logger_name,
                       String str)

markDirty

public static void markDirty()

isDirty

public static boolean isDirty()

markClean

public static void markClean()

checkDumpsAndNatives

public static void checkDumpsAndNatives()

analyseDump

protected static void analyseDump(File file)

waitForDumpChecks

public static void waitForDumpChecks(long max_wait)

addEvidenceGenerator

public static void addEvidenceGenerator(AEDiagnosticsEvidenceGenerator gen)

removeEvidenceGenerator

public static void removeEvidenceGenerator(AEDiagnosticsEvidenceGenerator gen)

generateEvidence

public static void generateEvidence(PrintWriter _writer)