conga/ricci/modules/cluster ClusterConf.h Clus ...
CVSROOT: /cvs/cluster
Module name: conga
Changes by: rmccabe at sourceware.org 2007-09-04 18:28:40
Modified files:
ricci/modules/cluster: ClusterConf.h ClusterModule.h
ClusterStatus.h Clusvcadm.h Fence.h NoServiceManager.h
ricci/modules/cluster/clumon/src/common: Cluster.cpp
ClusterMonitor.cpp Node.cpp Service.cpp
ricci/modules/cluster/clumon/src/daemon: Communicator.cpp
Communicator.h Monitor.cpp Monitor.h Peer.cpp Peer.h main.cpp
ricci/modules/cluster/clumon/src/include: Cluster.h
ClusterMonitor.h clumond_globals.h
Log message:
More cleanup and fixes for mostly minor issues
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterConf.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterModule.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/ClusterStatus.h.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Clusvcadm.h.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/Fence.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/NoServiceManager.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Cluster.cpp.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/ClusterMonitor.cpp.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Node.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/common/Service.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.cpp.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Monitor.cpp.diff?cvsroot=cluster&r1=1.15&r2=1.16
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Monitor.h.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Peer.cpp.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Peer.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/main.cpp.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/Cluster.h.diff?cvsroot=cluster&r1=1.6&r2=1.7
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/ClusterMonitor.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/include/clumond_globals.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
ricci/modules/cluster/ClusterConf.h +3 -3
@@ -21,8 +21,8 @@*/ -#ifndef ClusterConf_h -#define ClusterConf_h +#ifndef __CONGA_CLUSTERCONF_H +#define __CONGA_CLUSTERCONF_H#include "XML.h"
@@ -37,4 +37,4 @@ static bool is_cman(const XMLObject& cluster_conf); }; -#endif // ClusterConf_h +#endif
ricci/modules/cluster/ClusterModule.h +3 -3
@@ -21,8 +21,8 @@*/ -#ifndef ClusterModule_h -#define ClusterModule_h +#ifndef __CONGA_CLUSTERMODULE_H +#define __CONGA_CLUSTERMODULE_H#include "Module.h"
@@ -35,4 +35,4 @@ private: }; -#endif // ClusterModule_h +#endif
ricci/modules/cluster/ClusterStatus.h +3 -3
@@ -21,8 +21,8 @@*/ -#ifndef ClusterStatus_h -#define ClusterStatus_h +#ifndef __CONGA_CLUSTERSTATUS_H +#define __CONGA_CLUSTERSTATUS_H#include "XML.h"
@@ -35,4 +35,4 @@ bool purge_conf = false); }; -#endif // ClusterStatus_h +#endif
ricci/modules/cluster/Clusvcadm.h +3 -3
@@ -20,8 +20,8 @@* Author: Stanko Kupcevic <[email protected]> */ -#ifndef Clusvcadm_h -#define Clusvcadm_h +#ifndef __CONGA_CLUSVCADM_H +#define __CONGA_CLUSVCADM_H#include "String.h"
@@ -34,4 +34,4 @@ static void stop(const String& servicename); }; -#endif // Clusvcadm_h +#endif
ricci/modules/cluster/Fence.h +3 -4
@@ -21,16 +21,15 @@*/ -#ifndef Fence_h -#define Fence_h +#ifndef __CONGA_FENCE_H +#define __CONGA_FENCE_H#include "String.h" -class Fence { public: static void fence_node(const String& nodename); }; -#endif // Fence_h +#endif
ricci/modules/cluster/NoServiceManager.h +3 -3
@@ -21,8 +21,8 @@*/ -#ifndef NoServiceManager_h -#define NoServiceManager_h +#ifndef __CONGA_NOSERVICEMANAGER_H +#define __CONGA_NOSERVICEMANAGER_H#include "Except.h"
@@ -34,4 +34,4 @@ virtual ~NoServiceManager() {} }; -#endif // NoServiceManager_h +#endif
ricci/modules/cluster/clumon/src/common/Cluster.cpp +331 -291
703 lines not on this page · raw message
ricci/modules/cluster/clumon/src/common/ClusterMonitor.cpp +45 -42
103 lines not on this page · raw message
ricci/modules/cluster/clumon/src/common/Node.cpp +43 -41
136 lines not on this page · raw message
ricci/modules/cluster/clumon/src/common/Service.cpp +19 -20
@@ -1,5 +1,5 @@ /* - Copyright Red Hat, Inc. 2005 + Copyright Red Hat, Inc. 2005-2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
@@ -13,7 +13,7 @@ You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 675 Mass Ave, Cambridge, + Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /*
@@ -33,57 +33,56 @@ const Node& node, bool failed, bool autostart, - const String& time_since_transition) : - _name(name), - _clustername(clustername), - _nodename(node.name()), - _autostart(autostart), - _failed(failed), - _time_since_transition(time_since_transition) + const String& time_since_transition) : + _name(name), + _clustername(clustername), + _nodename(node.name()), + _autostart(autostart), + _failed(failed), + _time_since_transition(time_since_transition) {} Service::~Service(void) {} - String Service::name() const { - return _name; + return _name; } String Service::clustername() const { - return _clustername; + return _clustername; } -bool +bool Service::running() const { - return _nodename.size(); + return _nodename.size(); } String Service::nodename() const { - return _nodename; + return _nodename; } -bool +bool Service::failed() const { - return _failed; + return _failed; } -bool +bool Service::autostart() const { - return _autostart; + return _autostart; } String Service::time_since_transition() const { - return _time_since_transition; + return _time_since_transition; }
ricci/modules/cluster/clumon/src/daemon/Communicator.cpp +205 -184
440 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/Communicator.h +40 -45
119 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/Monitor.cpp +806 -695
1,317 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/Monitor.h +49 -58
107 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/Peer.cpp +46 -45
91 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/Peer.h +31 -34
65 lines not on this page · raw message
ricci/modules/cluster/clumon/src/daemon/main.cpp +174 -159
333 lines not on this page · raw message
ricci/modules/cluster/clumon/src/include/Cluster.h +102 -110
212 lines not on this page · raw message
ricci/modules/cluster/clumon/src/include/ClusterMonitor.h +14 -17
Lines of this file are not shown. View the raw message.
ricci/modules/cluster/clumon/src/include/clumond_globals.h +5 -7
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.