23 #include <Properties.hpp>
25 #include <NdbThread.h>
26 #include <NdbCondition.h>
27 #include <BaseString.hpp>
32 const pid_t bad_pid = -1;
34 inline bool is_bad_pid(pid_t pid)
37 return pid == bad_pid;
43 #define CPCD_DEFAULT_PROC_FILE "ndb_cpcd.conf"
44 #define CPCD_DEFAULT_TCP_PORT 1234
45 #define CPCD_DEFAULT_POLLING_INTERVAL 5
47 #define CPCD_DEFAULT_WORK_DIR "/var/run/ndb_cpcd"
48 #define CPCD_DEFAULT_CONFIG_FILE "/etc/ndb_cpcd.conf"
51 #define CPCD_DEFAULT_WORK_DIR "c:\\ndb_cpcd"
52 #define CPCD_DEFAULT_CONFIG_FILE "c:\\ndb_cpcd\\ndb_cpcd.conf"
69 enum RequestStatusCode {
92 void err(
enum RequestStatusCode,
const char *);
98 enum RequestStatusCode
getStatus() {
return m_status; };
100 enum RequestStatusCode m_status;
101 char m_errorstring[256];
199 ProcessType m_processType;
272 Monitor(
CPCD *cpcd,
int poll = CPCD_DEFAULT_POLLING_INTERVAL);
286 bool m_monitorThreadQuitFlag;
288 NdbMutex *m_changeMutex;
289 int m_pollingInterval;
376 bool notifyChanges();