-// 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>
// 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();
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();
std::string getEnvFile();
std::string getJobType();
+ // For COORM
+ std::string getLauncherFile();
+ std::string getLauncherArgs();
+
std::string updateJobState();
void addSpecificParameter(const std::string & name,
std::string _job_type;
std::string _state;
+ std::string _assigned_hostnames; // Assigned hostnames
std::string _launch_date;
std::string _env_file;
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: