MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CPCD::Monitor Class Reference

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 ()

Detailed Description

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.

Definition at line 265 of file CPCD.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: