LogCabin
|
Asks statsDumper thread to dumps stats to the debug log (NOTICE level) on SIGUSR1 signal. More...
Public Member Functions | |
SignalHandler (ServerStats &serverStats) | |
Constructor. Registers itself as SIGUSR1 handler. | |
void | handleSignalEvent () |
Fires when SIGUSR1 is received. Prints the stats to the log. | |
Public Attributes | |
ServerStats & | serverStats |
Handle to containing class. |
Asks statsDumper thread to dumps stats to the debug log (NOTICE level) on SIGUSR1 signal.
(We don't ever want to collect stats from the Event Loop thread, since that might stall the event loop for too long and/or acquire mutexes in incorrect orders, opening up the possibility for deadlock.)
Definition at line 118 of file ServerStats.h.
LogCabin::Server::ServerStats::SignalHandler::SignalHandler | ( | ServerStats & | serverStats | ) | [explicit] |
Constructor. Registers itself as SIGUSR1 handler.
Definition at line 56 of file ServerStats.cc.
void LogCabin::Server::ServerStats::SignalHandler::handleSignalEvent | ( | ) | [virtual] |
Fires when SIGUSR1 is received. Prints the stats to the log.
Implements LogCabin::Event::Signal.
Definition at line 63 of file ServerStats.cc.
Handle to containing class.
Definition at line 125 of file ServerStats.h.