19#ifndef MS_CLUSTERPARAMS_HPP
20#define MS_CLUSTERPARAMS_HPP
26namespace matrix_science {
84 NUM_PROCESSORS_AUTO_DETECT = -1
107 bool isSectionAvailable()
const;
110 void setSectionAvailable(
const bool value);
113 bool isEnabled()
const;
116 void setEnabled(
const bool flag);
131 std::string getDefaultNodeHomeDir()
const;
134 void setDefaultNodeHomeDir(
const char* str);
137 int getDefaultPort()
const;
140 void setDefaultPort(
const int value);
143 std::string getDefaultNodeHomeDirFromMaster()
const;
146 void setDefaultNodeHomeDirFromMaster(
const char* str);
149 std::string getMascotNodeScript()
const;
152 void setMascotNodeScript(
const char* str);
155 std::string getMascotNodeRebootScript()
const;
158 void setMascotNodeRebootScript(
const char* str);
161 int getNumberOfSubClusters()
const;
164 void clearSubClusters();
167 int getSubClusterID(
const int index)
const;
170 int getSubClusterMaxCPU(
const int index)
const;
173 void appendSubCluster(
const int id,
const int maxCPUs);
176 int getThisSubClusterID()
const;
179 void setThisSubClusterID(
const int id);
182 int getIPCTimeout()
const;
185 void setIPCTimeout(
const int value);
188 int getIPCLogging()
const;
191 void setIPCLogging(
const int value);
194 std::string getIPCLogfile()
const;
197 void setIPCLogfile(
const char* str);
200 int getCheckNodesAliveFreq()
const;
203 void setCheckNodesAliveFreq(
const int value);
206 int getSecsToWaitForNodeAtStartup()
const;
209 void setSecsToWaitForNodeAtStartup(
const int value);
212 std::string getNodeSequenceDatabaseDir()
const;
215 void setNodeSequenceDatabaseDir(
const char* str);
217#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
218#include "suppress_ms_customproperty.hpp"
222 bool sectionAvailable_;
228 std::string szDefaultNodeHomeDir_;
230 std::string szDefaultNodeHomeDirFromMaster_;
231 std::string szMascotNodeScript_;
232 std::string szMascotNodeRebootScript_;
234 std::vector<int> subClusterIDs_;
235 std::vector<int> maxCpusPerSubCluster_;
242 std::string IPCLogfile_;
243 int checkNodesAliveFreq_;
244 int secsToWaitForNodeAtStartup_;
246 std::string szNodeSequenceDatabaseDir_;
An instance of this class represents all the parameters specified in the Cluster section of mascot....
Definition: ms_clusterparams.hpp:72
The class serves as a container for computer address parameters for cluster mode.
Definition: ms_computeraddress.hpp:34
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
Encapsulates the mascot.dat file that contains the most important parameters.
Definition: ms_datfile.hpp:47
OPERATING_SYS
Definition: ms_clusterparams.hpp:41
@ _OS_NUM_OPERATING_SYS
Placeholder.
Definition: ms_clusterparams.hpp:45
@ _OS_WINDOWS_NT
WindowsXXX.
Definition: ms_clusterparams.hpp:43
@ _OS_LINUX
Linux.
Definition: ms_clusterparams.hpp:44
@ _OS_UNKNOWN
Unknown OS.
Definition: ms_clusterparams.hpp:42