Salome HOME
Fix regression in Launcher with ForEach-like batch jobs
[modules/yacs.git] / src / Launcher / Launcher_Job.hxx
index bbff80f54a2a2f1d48085d95a21806130a5731a2..f1f9732540fd418171aa55efc1feb19e53bae0e9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2009-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2009-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 #include <exception>
 
 #ifdef WITH_LIBBATCH
-#include <Batch/Batch_Job.hxx>
-#include <Batch/Batch_Date.hxx>
-#include <Batch/Batch_JobId.hxx>
-#include <Batch/Batch_EmulationException.hxx>
+#include <libbatch/Job.hxx>
+#include <libbatch/JobId.hxx>
+#include <libbatch/GenericException.hxx>
 #endif
 
 #include <libxml/parser.h>
@@ -58,6 +57,8 @@ namespace Launcher
       // State of a Job: CREATED, IN_PROCESS, QUEUED, RUNNING, PAUSED, FINISHED, ERROR
       void setState(const std::string & state);
       std::string getState();
+         // Get names or ids of hosts assigned to the job
+      std::string getAssignedHostnames();
 
       void setNumber(const int & number);
       int getNumber();
@@ -78,6 +79,10 @@ namespace Launcher
       void setQueue(const std::string & queue);
       void setEnvFile(const std::string & env_file);
 
+         // For COORM
+         void setLauncherFile(const std::string & launcher_file);
+         void setLauncherArgs(const std::string & launcher_args);
+
       std::string getJobName();
       std::string getJobFile();
       std::string getWorkDirectory();
@@ -91,6 +96,10 @@ namespace Launcher
       std::string getEnvFile();
       std::string getJobType();
 
+         // For COORM
+         std::string getLauncherFile();
+         std::string getLauncherArgs();
+
       std::string updateJobState();
 
       void addSpecificParameter(const std::string & name,
@@ -121,6 +130,7 @@ namespace Launcher
       std::string _job_type;
 
       std::string _state;
+      std::string _assigned_hostnames; // Assigned hostnames
       std::string _launch_date;
       std::string _env_file;
 
@@ -142,6 +152,10 @@ namespace Launcher
       resourceParams _resource_required_params;
       std::string _queue;
 
+         // Parameters for COORM
+         std::string _launcher_file;
+         std::string _launcher_args;
+
 #ifdef WITH_LIBBATCH
     // Connection with LIBBATCH
     public: