LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::Server::ServerStats::SignalHandler Class Reference

Asks statsDumper thread to dumps stats to the debug log (NOTICE level) on SIGUSR1 signal. More...

Inheritance diagram for LogCabin::Server::ServerStats::SignalHandler:
LogCabin::Event::Signal LogCabin::Event::File

List of all members.

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

ServerStatsserverStats
 Handle to containing class.

Detailed Description

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.


Constructor & Destructor Documentation

Constructor. Registers itself as SIGUSR1 handler.

Definition at line 56 of file ServerStats.cc.


Member Function Documentation

Fires when SIGUSR1 is received. Prints the stats to the log.

Implements LogCabin::Event::Signal.

Definition at line 63 of file ServerStats.cc.


Member Data Documentation

Handle to containing class.

Definition at line 125 of file ServerStats.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines