#include <libgen.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_eCCC.hxx"
#include "Batch_JobInfo_eCCC.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
# include <netdb.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_Job.hxx"
#include "Batch_JobId.hxx"
#include "Batch_JobInfo.hxx"
// Forbid the use of copy constructor and assignment operator
BatchManagerCatalog(const BatchManagerCatalog & orig) {}
- BatchManagerCatalog& operator=(const BatchManagerCatalog & orig) { return *this; }
+ void operator=(const BatchManagerCatalog & orig) {}
};
#include <Batch_config.h>
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_eClient.hxx"
#include "Batch_RunTimeException.hxx"
#include <iostream>
#include <string>
#include <sstream>
-//#include "MEDMEM_STRING.hxx"
+
+#include "Batch_Constants.hxx"
#include "Batch_JobInfo.hxx"
using namespace std;
+++ /dev/null
-// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-/*
- * MapKey.cxx :
- *
- * Auteur : Ivan DUTKA-MALEN - EDF R&D
- * Mail : mailto:ivan.dutka-malen@der.edf.fr
- * Date : Tue Oct 14 14:00:30 2003
- * Projet : Salome 2
- *
- */
-
-#include <string>
-#include "Batch_MapKey.hxx"
-using namespace std;
-
-namespace Batch {
-
-
-}
-
-
-// COMMENTS
+++ /dev/null
-// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
-//
-/*
- * MapKey.hxx :
- *
- * Auteur : Ivan DUTKA-MALEN - EDF R&D
- * Mail : mailto:ivan.dutka-malen@der.edf.fr
- * Date : Tue Oct 14 14:00:29 2003
- * Projet : Salome 2
- *
- */
-
-#ifndef _MAPKEY_H_
-#define _MAPKEY_H_
-
-#include "Batch_Defines.hxx"
-
-
-#include <string>
-
-namespace Batch {
-
- // une classe privee pour les differents types
- // ces types ne peuvent pas etre redefinis
- class BATCH_EXPORT MapKey : public std::string
- {
- private:
- friend class Parametre; // seule la classe Parametre peut creer des MapKey
- MapKey() : std::string() {}
- MapKey(const MapKey & mk, size_type pos, size_type npos) : std::string(mk, pos, npos) {}
- MapKey(const char * s, size_type n) : std::string(s, n) {}
- MapKey(const char * s) : std::string(s) {}
- MapKey(size_type n, char c) : std::string(n, c) {}
-#ifdef __STL_MEMBER_TEMPLATES
- template<class InputIterator>
- MapKey(InputIterator __begin, InputIterator __end) : std::string(__begin, __end) {}
-#else
- MapKey(const_iterator __begin, const_iterator __end) : std::string(__begin, __end) {}
-#endif
-
- public:
- MapKey(const MapKey & mk) : std::string(mk) {}
-
- };
-
-}
-
-#endif
-
-// COMMENTS
--- /dev/null
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+/*
+ * Batch_ParameterTypeMap.cxx :
+ *
+ * Auteur : Renaud Barate - EDF R&D
+ * Date : Mars 2011
+ *
+ */
+
+#include <string>
+#include <map>
+
+#include "Batch_Constants.hxx"
+#include "Batch_InvalidKeyException.hxx"
+#include "Batch_ParameterTypeMap.hxx"
+
+using namespace std;
+
+namespace Batch {
+
+ /*!
+ * The values of this type map contain the type of the parameters and the maximum
+ * number of items in the corresponding Versatile object (0 means any number).
+ */
+ ParameterTypeMap::ParameterTypeMap()
+ {
+ // Don't use the string constants in this constructor because they might be uninitialized
+ addParameter("ACCOUNT", STRING, 1);
+ addParameter("ARGUMENTS", STRING, 0);
+ addParameter("CHECKPOINT", LONG, 1);
+ addParameter("CKPTINTERVAL", LONG, 1);
+ addParameter("CREATIONTIME", LONG, 1);
+ addParameter("EGROUP", STRING, 1);
+ addParameter("ELIGIBLETIME", LONG, 1);
+ addParameter("ENDTIME", LONG, 1);
+ addParameter("EUSER", STRING, 1);
+ addParameter("EXECUTABLE", STRING, 1);
+ addParameter("EXECUTIONHOST", STRING, 0);
+ addParameter("EXITCODE", LONG, 1);
+ addParameter("HOLD", LONG, 1);
+ addParameter("ID", STRING, 1);
+ addParameter("INFILE", COUPLE, 0);
+ addParameter("MAIL", STRING, 1);
+ addParameter("MAXCPUTIME", LONG, 1);
+ addParameter("MAXDISKSIZE", LONG, 1);
+ addParameter("MAXRAMSIZE", LONG, 1);
+ addParameter("MAXWALLTIME", LONG, 1);
+ addParameter("MODIFICATIONTIME", LONG, 1);
+ addParameter("NAME", STRING, 1);
+ addParameter("NBPROC", LONG, 1);
+ addParameter("OUTFILE", COUPLE, 0);
+ addParameter("PID", LONG, 1);
+ addParameter("QUEUE", STRING, 1);
+ addParameter("QUEUEDTIME", LONG, 1);
+ addParameter("SERVER", STRING, 1);
+ addParameter("STARTTIME", LONG, 1);
+ addParameter("STATE", STRING, 1);
+ addParameter("TEXT", STRING, 1);
+ addParameter("TMPDIR", STRING, 1);
+ addParameter("USEDCPUTIME", LONG, 1);
+ addParameter("USEDDISKSIZE", LONG, 1);
+ addParameter("USEDRAMSIZE", LONG, 1);
+ addParameter("USEDWALLTIME", LONG, 1);
+ addParameter("USER", STRING, 1);
+ addParameter("WORKDIR", STRING, 1);
+ addParameter("HOMEDIR", STRING, 1);
+ }
+
+ ParameterTypeMap::~ParameterTypeMap()
+ {
+ }
+
+ /*!
+ * Returns the ParameterTypeMap singleton.
+ * We use the construct-on-first-use idiom here because otherwise there could be a problem with
+ * the initialization order between the factory singletons and this type map. Note that since the
+ * destructors do not depend on the other objects, the order is not important for destruction.
+ */
+ ParameterTypeMap& ParameterTypeMap::getInstance () {
+ static ParameterTypeMap instance;
+ return instance;
+ }
+
+ bool ParameterTypeMap::hasKey(const string & key) const
+ {
+ return (_map.find(key) != _map.end());
+ }
+
+ const ParameterType & ParameterTypeMap::operator[](const string & key) const
+ {
+ map<string, ParameterType>::const_iterator it = _map.find(key);
+ if (it == _map.end()) throw InvalidKeyException(key);
+ return it->second;
+ }
+
+ void ParameterTypeMap::addParameter(const std::string & key, DiscriminatorType type, int maxelem)
+ {
+ if (hasKey(key)) throw InvalidKeyException(key + " is already present in type map");
+ _map[key].type = type;
+ _map[key].maxelem = maxelem;
+ }
+
+}
--- /dev/null
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+/*
+ * Batch_ParameterTypeMap.hxx :
+ *
+ * Auteur : Renaud Barate - EDF R&D
+ * Date : Mars 2011
+ *
+ */
+
+#ifndef _PARAMETERTYPEMAP_H_
+#define _PARAMETERTYPEMAP_H_
+
+#include "Batch_Defines.hxx"
+#include "Batch_Versatile.hxx"
+
+#include <string>
+#include <map>
+
+namespace Batch {
+
+ typedef struct {
+ DiscriminatorType type;
+ int maxelem;
+ } ParameterType;
+
+
+ /*!
+ * This class is used to control the type of the values associated with a parameter.
+ * It's a singleton that can be get only through the static method getInstance().
+ */
+ class BATCH_EXPORT ParameterTypeMap
+ {
+ public:
+ static ParameterTypeMap& getInstance();
+
+ bool hasKey(const std::string & key) const;
+ const ParameterType & operator[](const std::string & key) const;
+
+ void addParameter(const std::string & key, DiscriminatorType type, int maxelem);
+
+ protected:
+
+ ParameterTypeMap();
+ virtual ~ParameterTypeMap();
+
+ std::map<std::string, ParameterType> _map;
+
+ private:
+
+ // Forbid the use of copy constructor and assignment operator
+ ParameterTypeMap(const ParameterTypeMap & orig) {}
+ void operator=(const ParameterTypeMap & orig) {}
+
+ };
+
+}
+
+#endif
#include "Batch_Versatile.hxx"
#include "Batch_InvalidKeyException.hxx"
+#include "Batch_ParameterTypeMap.hxx"
#include "Batch_Parametre.hxx"
using namespace std;
namespace Batch {
// Constructeur standard
- // La map interne TypeMap possede les memes clefs que la map principale, mais les
- // valeurs associees contiennent le type des clefs de la map principale ainsi que
- // le nombre de valeurs autorisees dans l'objet Versatile (0=nombre quelconque,
- // sinon valeur precisee)
Parametre::Parametre() : map< string, Versatile >()
{
- TypeMap[ACCOUNT].type = STRING;
- TypeMap[ACCOUNT].maxelem = 1;
-
- TypeMap[ARGUMENTS].type = STRING;
- TypeMap[ARGUMENTS].maxelem = 0;
-
- TypeMap[CHECKPOINT].type = LONG;
- TypeMap[CHECKPOINT].maxelem = 1;
-
- TypeMap[CKPTINTERVAL].type = LONG;
- TypeMap[CKPTINTERVAL].maxelem = 1;
-
- TypeMap[CREATIONTIME].type = LONG;
- TypeMap[CREATIONTIME].maxelem = 1;
-
- TypeMap[EGROUP].type = STRING;
- TypeMap[EGROUP].maxelem = 1;
-
- TypeMap[ELIGIBLETIME].type = LONG;
- TypeMap[ELIGIBLETIME].maxelem = 1;
-
- TypeMap[ENDTIME].type = LONG;
- TypeMap[ENDTIME].maxelem = 1;
-
- TypeMap[EUSER].type = STRING;
- TypeMap[EUSER].maxelem = 1;
-
- TypeMap[EXECUTABLE].type = STRING;
- TypeMap[EXECUTABLE].maxelem = 1;
-
- TypeMap[EXECUTIONHOST].type = STRING;
- TypeMap[EXECUTIONHOST].maxelem = 0;
-
- TypeMap[EXITCODE].type = LONG;
- TypeMap[EXITCODE].maxelem = 1;
-
- TypeMap[HOLD].type = LONG;
- TypeMap[HOLD].maxelem = 1;
-
- TypeMap[ID].type = STRING;
- TypeMap[ID].maxelem = 1;
-
- TypeMap[INFILE].type = COUPLE;
- TypeMap[INFILE].maxelem = 0;
-
- TypeMap[MAIL].type = STRING;
- TypeMap[MAIL].maxelem = 1;
-
- TypeMap[MAXCPUTIME].type = LONG;
- TypeMap[MAXCPUTIME].maxelem = 1;
-
- TypeMap[MAXDISKSIZE].type = LONG;
- TypeMap[MAXDISKSIZE].maxelem = 1;
-
- TypeMap[MAXRAMSIZE].type = LONG;
- TypeMap[MAXRAMSIZE].maxelem = 1;
-
- TypeMap[MAXWALLTIME].type = LONG;
- TypeMap[MAXWALLTIME].maxelem = 1;
-
- TypeMap[MODIFICATIONTIME].type = LONG;
- TypeMap[MODIFICATIONTIME].maxelem = 1;
-
- TypeMap[NAME].type = STRING;
- TypeMap[NAME].maxelem = 1;
-
- TypeMap[NBPROC].type = LONG;
- TypeMap[NBPROC].maxelem = 1;
-
- TypeMap[OUTFILE].type = COUPLE;
- TypeMap[OUTFILE].maxelem = 0;
-
- TypeMap[PID].type = LONG;
- TypeMap[PID].maxelem = 1;
-
- TypeMap[QUEUE].type = STRING;
- TypeMap[QUEUE].maxelem = 1;
-
- TypeMap[QUEUEDTIME].type = LONG;
- TypeMap[QUEUEDTIME].maxelem = 1;
-
- TypeMap[SERVER].type = STRING;
- TypeMap[SERVER].maxelem = 1;
-
- TypeMap[STARTTIME].type = LONG;
- TypeMap[STARTTIME].maxelem = 1;
-
- TypeMap[STATE].type = STRING;
- TypeMap[STATE].maxelem = 1;
-
- TypeMap[TEXT].type = STRING;
- TypeMap[TEXT].maxelem = 1;
-
- TypeMap[TMPDIR].type = STRING;
- TypeMap[TMPDIR].maxelem = 1;
-
- TypeMap[USEDCPUTIME].type = LONG;
- TypeMap[USEDCPUTIME].maxelem = 1;
-
- TypeMap[USEDDISKSIZE].type = LONG;
- TypeMap[USEDDISKSIZE].maxelem = 1;
-
- TypeMap[USEDRAMSIZE].type = LONG;
- TypeMap[USEDRAMSIZE].maxelem = 1;
-
- TypeMap[USEDWALLTIME].type = LONG;
- TypeMap[USEDWALLTIME].maxelem = 1;
-
- TypeMap[USER].type = STRING;
- TypeMap[USER].maxelem = 1;
-
- TypeMap[WORKDIR].type = STRING;
- TypeMap[WORKDIR].maxelem = 1;
-
- TypeMap[HOMEDIR].type = STRING;
- TypeMap[HOMEDIR].maxelem = 1;
}
// Operateur de recherche dans la map
Versatile & Parametre::operator [] (const string & mk)
{
// On controle que la clef est valide
- if (TypeMap.find(mk) == TypeMap.end()) throw InvalidKeyException(mk.c_str());
+ if (!ParameterTypeMap::getInstance().hasKey(mk)) throw InvalidKeyException(mk);
// On recherche la valeur associee...
Versatile & V = map< string, Versatile >::operator [] (mk);
// different de celui inscrit dans TypeMap) une exception TypeMismatchException est
// levee
V.setName(mk);
- V.setType(TypeMap[mk].type);
- V.setMaxSize(TypeMap[mk].maxelem);
+ V.setType(ParameterTypeMap::getInstance()[mk].type);
+ V.setMaxSize(ParameterTypeMap::getInstance()[mk].maxelem);
return V;
}
const Versatile & Parametre::operator [] (const string & mk) const
{
// On controle que la clef est valide
- if (TypeMap.find(mk) == TypeMap.end()) throw InvalidKeyException(mk.c_str());
+ if (!ParameterTypeMap::getInstance().hasKey(mk)) throw InvalidKeyException(mk);
// On recherche la valeur associee
Parametre::const_iterator it = find(mk);
- if (it == end()) throw InvalidKeyException(mk.c_str());
+ if (it == end()) throw InvalidKeyException(mk);
const Versatile & V = (*it).second;
return V;
// On efface toute la map
erase(begin(), end());
- // On recopie la map interne
- // Meme si cela ne sert a rien pour le moment car les maps internes sont identiques,
- // il n'est pas exclu que dans un avenir proche elles puissent etre differentes
- (*this).TypeMap = PM.TypeMap;
-
// On recree la structure interne de la map avec les valeurs de celle passee en argument
Parametre::const_iterator it;
for(it=PM.begin(); it!=PM.end(); it++)
- insert(make_pair( (*it).first ,
- Versatile( (*it).second)
- ) );
+ insert(make_pair((*it).first, Versatile((*it).second)));
return *this;
}
// Constructeur par recopie
Parametre::Parametre(const Parametre & PM) : map< string, Versatile >()
{
- // inutile car l'objet est vierge : il vient d'etre cree
- // On efface toute la map
- // erase(begin(), end());
-
- // On recopie la map interne
- (*this).TypeMap = PM.TypeMap;
-
// On cree la structure interne de la map avec les valeurs de celle passee en argument
Parametre::const_iterator it;
- for(it=PM.begin();
- it!=PM.end();
- it++)
- insert(
- make_pair(
- (*it).first ,
- Versatile( (*it).second)
- ) );
+ for(it=PM.begin(); it!=PM.end(); it++)
+ insert(make_pair((*it).first, Versatile((*it).second)));
}
- // map< string, TypeParam > Parametre::getTypeMap() const
- // {
- // return TypeMap;
- // }
-
}
#include <string>
#include "Batch_Defines.hxx"
-#include "Batch_Constants.hxx"
#include "Batch_Versatile.hxx"
namespace Batch {
// Operateur d'affectation
Parametre & operator =(const Parametre & PM);
- protected:
- std::map< std::string, TypeParam > TypeMap; // map interne servant a controler le type de la valeur associee a chaque clef
-
- private:
-
};
}
// enum DiscriminatorType { UNDEFINED, BOOL, CHAR, INT, LONG, STRING};
enum DiscriminatorType { UNDEFINED, LONG, STRING, COUPLE };
- typedef struct {
- DiscriminatorType type; // le type de l'element interne
- int maxelem; // le nombre d'elements autorises
- } TypeParam;
-
class BATCH_EXPORT Versatile : public std::list< GenericType * >
{
public:
Core/Batch_JobInfo
Core/Batch_ListIsFullException
Core/Batch_LongType
- Core/Batch_MapKey
Core/Batch_MpiImpl
Core/Batch_NotYetImplementedException
+ Core/Batch_ParameterTypeMap
Core/Batch_Parametre
Core/Batch_RunTimeException
Core/Batch_StringType
TEST_ELL_USER = "username" # Login for the LoadLeveler server
TEST_ELL_HOMEDIR = "/home/username" # Home directory on LoadLeveler server
TEST_ELL_QUEUE = "classname" # Class for the test job test job on LoadLeveler server
+TEST_ELL_JOBTYPE = "serial" # Job type for LoadLeveler
TEST_ELL_TIMEOUT = 120 # Execution timeout (in seconds) for LoadLeveler Batch test
#include <libgen.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_eLSF.hxx"
#include "Batch_JobInfo_eLSF.hxx"
#include <cstdio>
#include <sstream>
#include <string>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
#include <unistd.h>
#include <string>
#include <vector>
+
+#include "Batch_Constants.hxx"
#include "Batch_Job_LSF.hxx"
using namespace std;
#include <fstream>
#include <Batch_NotYetImplementedException.hxx>
+#include <Batch_Constants.hxx>
+#include "Batch_FactBatchManager_eLL.hxx"
#include "Batch_BatchManager_eLL.hxx"
#include "Batch_JobInfo_eLL.hxx"
int nbproc = 1;
if (params.find(NBPROC) != params.end())
nbproc = params[NBPROC];
- //if (nbproc == 1)
- // tempOutputFile << "# @ job_type = serial" << endl;
- //else {
- // tempOutputFile << "# @ job_type = parallel" << endl;
+
+ // If job type is not specified, try to guess it from number of procs
+ string job_type;
+ if (params.find(LL_JOBTYPE) != params.end())
+ job_type = params[LL_JOBTYPE].str();
+ else if (nbproc == 1)
+ job_type = "serial";
+ else
+ job_type = "mpich";
+
+ tempOutputFile << "# @ job_type = " << job_type << endl;
+
+ if (job_type != "serial") {
int nodes_requested = (nbproc + _nb_proc_per_node -1) / _nb_proc_per_node;
- tempOutputFile << "# @ job_type = mpich" << endl;
tempOutputFile << "# @ node = " << nodes_requested << endl;
tempOutputFile << "# @ tasks_per_node = " << _nb_proc_per_node << endl;
- //}
- //tempOutputFile << "# @ job_type = bluegene" << endl;
+ }
if (params.find(MAXWALLTIME) != params.end())
tempOutputFile << "# @ wall_clock_limit = " << params[MAXWALLTIME] << ":00" << endl;
* Author : Renaud BARATE - EDF R&D
*/
+#include "Batch_ParameterTypeMap.hxx"
#include "Batch_BatchManager_eLL.hxx"
#include "Batch_FactBatchManager_eLL.hxx"
namespace Batch {
+ def_Constant(LL_JOBTYPE);
+
static FactBatchManager_eLL sFBM_eLL;
FactBatchManager_eLL::FactBatchManager_eLL() : FactBatchManager_eClient("eLL")
{
- // Nothing to do
+ // Add specific parameters
+ ParameterTypeMap::getInstance().addParameter(LL_JOBTYPE, STRING, 1);
}
FactBatchManager_eLL::~FactBatchManager_eLL()
#ifndef _FACTBATCHMANAGER_ELL_H_
#define _FACTBATCHMANAGER_ELL_H_
-#include "Batch_Defines.hxx"
+#include <Batch_Defines.hxx>
+#include <Batch_Constants.hxx>
#include "Batch_BatchManager_eClient.hxx"
#include "Batch_FactBatchManager_eClient.hxx"
namespace Batch {
-
+
+ decl_extern_Constant(LL_JOBTYPE);
+
class BatchManager_eLL;
class BATCH_EXPORT FactBatchManager_eLL : public FactBatchManager_eClient
#include <sstream>
#include <Batch_RunTimeException.hxx>
+#include <Batch_Constants.hxx>
#include "Batch_JobInfo_eLL.hxx"
#include <fstream>
#include <cstring>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
#include <Batch_FactBatchManager_eClient.hxx>
+#include <Batch_FactBatchManager_eLL.hxx>
#include <Batch_BatchManager.hxx>
#include <Batch_BatchManager_eClient.hxx>
const string & host = parser.getValue("TEST_ELL_HOST");
const string & user = parser.getValue("TEST_ELL_USER");
const string & queue = parser.getValue("TEST_ELL_QUEUE");
+ const string & jobType = parser.getValue("TEST_ELL_JOBTYPE");
int timeout = parser.getValueAsInt("TEST_ELL_TIMEOUT");
// Define the job...
p[TMPDIR] = "tmp/Batch/";
p[NBPROC] = 1;
p[MAXWALLTIME] = 1;
- p[MAXRAMSIZE] = 10;
+ p[MAXRAMSIZE] = 50;
p[HOMEDIR] = homedir;
p[QUEUE] = queue;
+ p[LL_JOBTYPE] = jobType;
job.setParametre(p);
// ... and its environment
Environnement e;
#include <signal.h>
#include <errno.h>
#include <string.h>
+
+#include "Batch_Constants.hxx"
#include "Batch_IOMutex.hxx"
#include "Batch_BatchManager_Local.hxx"
#include "Batch_RunTimeException.hxx"
#ifndef WIN32
#include <unistd.h>
#endif
+
+#include "Batch_Constants.hxx"
#include "Batch_Job_Local.hxx"
using namespace std;
#include <iostream>
#include <fstream>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
#include <iostream>
#include <fstream>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
#include <fstream>
#include <cstdlib>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
#include <libgen.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_ePBS.hxx"
#include "Batch_JobInfo_ePBS.hxx"
#include <sstream>
#include <string.h>
#include <stdlib.h>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
#include <stdlib.h>
#include <unistd.h>
#include <cstring>
+
+#include "Batch_Constants.hxx"
#include "Batch_Job_PBS.hxx"
using namespace std;
#include <iostream>
#include <fstream>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
#include <fstream>
#include <cstring>
+#include <Batch_Constants.hxx>
#include <Batch_Job.hxx>
#include <Batch_BatchManagerCatalog.hxx>
#include <Batch_FactBatchManager.hxx>
%{
#include "Batch_Defines.hxx"
+#include "Batch_Constants.hxx"
#include "Batch_Job.hxx"
#include "Batch_JobId.hxx"
#include "Batch_JobInfo.hxx"
#include <libgen.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_eSGE.hxx"
#include "Batch_JobInfo_eSGE.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"
#include <libgen.h>
#endif
+#include "Batch_Constants.hxx"
#include "Batch_BatchManager_eSSH.hxx"
#include "Batch_JobInfo_eSSH.hxx"
#include <iostream>
#include <fstream>
#include <sstream>
+
+#include "Batch_Constants.hxx"
#include "Batch_Parametre.hxx"
#include "Batch_Environnement.hxx"
#include "Batch_RunTimeException.hxx"