Salome HOME
Fix regression in Launcher with ForEach-like batch jobs
[modules/yacs.git] / src / Launcher / Launcher_Job.hxx
index 02b9d538ac8bc7ea9e8dccd667d81ba539394889..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
@@ -57,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();
@@ -77,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();
@@ -90,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,
@@ -120,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;
 
@@ -141,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: