| 
    MySQL 5.6.14 Source Code Document
    
   | 
 
Starts and stops processes as needed. More...
#include <CPCD.hpp>
Public Member Functions | |
| Monitor (CPCD *cpcd, int poll=CPCD_DEFAULT_POLLING_INTERVAL) | |
| ~Monitor () | |
| void | run () | 
| void | signal () | 
Starts and stops processes as needed.
At a specified interval (default 5 seconds) calls the monitor function of all the processes in the CPCDs list, causing the to start or stop, depending on the configuration.
| CPCD::Monitor::Monitor | ( | CPCD * | cpcd, | 
| int | poll = CPCD_DEFAULT_POLLING_INTERVAL  | 
        ||
| ) | 
Creates a new CPCD::Monitor object, connected to the specified CPCD. A new thread will be created, which will poll the processes of the CPCD at the specifed interval.
Definition at line 35 of file Monitor.cpp.
| CPCD::Monitor::~Monitor | ( | ) | 
Stops the monitor, but does not stop the processes
Definition at line 48 of file Monitor.cpp.
| void CPCD::Monitor::run | ( | ) | 
Runs the monitor thread.
Definition at line 55 of file Monitor.cpp.
| void CPCD::Monitor::signal | ( | ) | 
Signals configuration changes to the monitor thread, causing it to do the check without waiting for the timeout
Definition at line 77 of file Monitor.cpp.
