conga/ricci/modules/cluster ClusterModule.cpp ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-28 04:47:56
Modified files:
ricci/modules/cluster: ClusterModule.cpp ClusterStatus.cpp
ClusterStatus.h
Log message:
add parameters for start_node and stop_node that allow whether cluster services will be respectively enabled or disabled at boot.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterModule.cpp.diff?cvsroot=cluster&r1=1.9&r2=1.10
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterStatus.cpp.diff?cvsroot=cluster&r1=1.22&r2=1.23
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterStatus.h.diff?cvsroot=cluster&r1=1.7&r2=1.8
ricci/modules/cluster/ClusterModule.cpp +14 -4
@@ -333,16 +333,21 @@ start_node(const VarMap& args) { bool cluster_startup = false; + bool enable_services = true; try { VarMap::const_iterator iter = args.find("cluster_startup"); if (iter != args.end()) cluster_startup = iter->second.get_bool(); - } catch ( String e ) { - throw APIerror(e); + + iter = args.find("enable_services"); + if (iter != args.end()) + enable_services = iter->second.get_bool(); + } catch ( String e ) { + throw APIerror(e); } - Cluster::start_node(cluster_startup); + Cluster::start_node(cluster_startup, enable_services); VarMap ret; return ret;
@@ -353,6 +358,7 @@ { bool cluster_shutdown = false; bool purge_conf = false; + bool disable_services = true; try { VarMap::const_iterator iter = args.find("cluster_shutdown");
@@ -362,11 +368,15 @@ iter = args.find("purge_conf"); if (iter != args.end()) purge_conf = iter->second.get_bool(); + + iter = args.find("disable_services"); + if (iter != args.end()) + disable_services = iter->second.get_bool(); } catch ( String e ) { throw APIerror(e); } - Cluster::stop_node(cluster_shutdown, purge_conf); + Cluster::stop_node(cluster_shutdown, purge_conf, disable_services); VarMap ret; return ret; }
ricci/modules/cluster/ClusterStatus.cpp +56 -46
139 lines not on this page · raw message
ricci/modules/cluster/ClusterStatus.h +5 -2
@@ -29,9 +29,12 @@ { public:static XMLObject status (); - static void start_node(bool cluster_startup = false); + static void start_node( bool cluster_startup = false, + bool enable_services = true); + static void stop_node( bool cluster_shutdown = false, - bool purge_conf = false); + bool purge_conf = false, + bool disable_services = true); };#endif