string work_directory;
string local_directory;
string result_directory;
+
/*! Time for the batch (has to be like this : hh:mm) - Could be empty, in
this case, default value of the selected resource will be used.
*/
- string expected_during_time;
+ string maximum_during_time;
MachineParameters resource_required;
- // This two values are defined into MachineParameters
- // Memory is expressed in megabytes
- //long proc_nb;
- //! Minimum of memory needed (has to be like : 32gb or 512mb)
- //string mem;
-
+ // Memory is expressed in megabytes -> mem_mb
+ // Number of Processors -> nb_node
};
/*! \brief Interface of the %salomelauncher
_work_directory = "";
_local_directory = "";
_result_directory = "";
- _expected_during_time = "";
- _expected_during_time_in_second = -1;
+ _maximum_during_time = "";
+ _maximum_during_time_in_second = -1;
_machine_required_params.hostname = "";
_machine_required_params.OS = "";
_machine_required_params.nb_node = -1;
}
void
-Launcher::Job::setExpectedDuringTime(const std::string & expected_during_time)
+Launcher::Job::setMaximumDuringTime(const std::string & maximum_during_time)
{
- checkExpectedDuringTime(expected_during_time);
- _expected_during_time_in_second = convertExpectedDuringTime(expected_during_time);
- _expected_during_time = expected_during_time;
+ checkMaximumDuringTime(maximum_during_time);
+ _maximum_during_time_in_second = convertMaximumDuringTime(maximum_during_time);
+ _maximum_during_time = maximum_during_time;
}
void
}
std::string
-Launcher::Job::getExpectedDuringTime()
+Launcher::Job::getMaximumDuringTime()
{
- return _expected_during_time;
+ return _maximum_during_time;
}
machineParams
}
void
-Launcher::Job::checkExpectedDuringTime(const std::string & expected_during_time)
+Launcher::Job::checkMaximumDuringTime(const std::string & maximum_during_time)
{
std::string result("");
- std::string edt_value = expected_during_time;
+ std::string edt_value = maximum_during_time;
if (edt_value != "") {
std::string begin_edt_value = edt_value.substr(0, 2);
std::string mid_edt_value = edt_value.substr(2, 1);
}
long
-Launcher::Job::convertExpectedDuringTime(const std::string & edt)
+Launcher::Job::convertMaximumDuringTime(const std::string & edt)
{
long hh, mm, ret;
}
// Time
- if (_expected_during_time_in_second != -1)
- params[MAXWALLTIME] = _expected_during_time_in_second;
+ if (_maximum_during_time_in_second != -1)
+ params[MAXWALLTIME] = _maximum_during_time_in_second;
return params;
}
void setResultDirectory(const std::string & result_directory);
void add_in_file(const std::string & file);
void add_out_file(const std::string & file);
- void setExpectedDuringTime(const std::string & expected_during_time);
+ void setMaximumDuringTime(const std::string & maximum_during_time);
void setMachineRequiredParams(const machineParams & machine_required_params);
std::string getWorkDirectory();
std::string getResultDirectory();
const std::list<std::string> & get_in_files();
const std::list<std::string> & get_out_files();
- std::string getExpectedDuringTime();
+ std::string getMaximumDuringTime();
machineParams getMachineRequiredParams();
std::string updateJobState();
// Checks
- void checkExpectedDuringTime(const std::string & expected_during_time);
+ void checkMaximumDuringTime(const std::string & maximum_during_time);
void checkMachineRequiredParams(const machineParams & machine_required_params);
// Helps
- long convertExpectedDuringTime(const std::string & expected_during_time);
+ long convertMaximumDuringTime(const std::string & maximum_during_time);
// Abstract class
virtual void update_job() = 0;
std::string _result_directory;
std::list<std::string> _in_files;
std::list<std::string> _out_files;
- std::string _expected_during_time;
- long _expected_during_time_in_second;
+ std::string _maximum_during_time;
+ long _maximum_during_time_in_second;
machineParams _machine_required_params;
#ifdef WITH_LIBBATCH
// Expected During Time
try
{
- std::string expected_during_time = job_parameters.expected_during_time.in();
- new_job->setExpectedDuringTime(expected_during_time);
+ std::string maximum_during_time = job_parameters.maximum_during_time.in();
+ new_job->setMaximumDuringTime(maximum_during_time);
}
catch(const LauncherException &ex){
INFOS(ex.msg.c_str());