gemfire::SignalHandler Class Reference


Detailed Description

Represents a signal handler used for dumping stacks and attaching a debugger.

Static Public Member Functions

static void dumpStack (char *dumpFile, size_t maxLen)
 Dump an image of the current process (core in UNIX, minidump in Windows) and filling the path of dump in provided buffer of given max size.
static void installBacktraceHandler ()
 Register the GemFire backtrace signal handler for signals that would otherwise core dump.
static void removeBacktraceHandler ()
 Remove the GemFire backtrace signal handler for signals that were previously registered.
static void waitForDebugger ()
 wait in a loop to allow a debugger to be manuallly attached and done is set to 1.

Member Function Documentation

static void gemfire::SignalHandler::dumpStack ( char *  dumpFile,
size_t  maxLen 
) [static]

Dump an image of the current process (core in UNIX, minidump in Windows) and filling the path of dump in provided buffer of given max size.

static void gemfire::SignalHandler::installBacktraceHandler (  )  [static]

Register the GemFire backtrace signal handler for signals that would otherwise core dump.

static void gemfire::SignalHandler::removeBacktraceHandler (  )  [static]

Remove the GemFire backtrace signal handler for signals that were previously registered.

static void gemfire::SignalHandler::waitForDebugger (  )  [static]

wait in a loop to allow a debugger to be manuallly attached and done is set to 1.


GemFire C++ Cache API Documentation