_batch_params.nb_proc = 0;
_files_params.result_directory = "";
_machine_choosed = "";
+ _batch_queue = "";
_state = BL::Job::CREATED;
_thread_state = BL::Job::NOTHING;
_salome_launcher_id = -1;
_batch_params.nb_proc = 0;
_files_params.result_directory = "";
_machine_choosed = "";
+ _batch_queue = "";
_state = BL::Job::CREATED;
_thread_state = BL::Job::NOTHING;
_salome_launcher_id = -1;
return _machine_choosed;
}
+void
+BL::Job::setBatchQueue(std::string & queue)
+{
+ _batch_queue = queue;
+}
+
+std::string &
+BL::Job::getBatchQueue()
+{
+ return _batch_queue;
+}
+
void
BL::Job::setState(BL::Job::State state)
{
void setMachine(std::string & machine);
std::string & getMachine();
+ void setBatchQueue(std::string & queue);
+ std::string & getBatchQueue();
+
enum State {CREATED, IN_PROCESS, QUEUED, RUNNING, PAUSED, FINISHED, ERROR};
void setState(BL::Job::State state);
BL::Job::State getState();
BL::Job::BatchParam _batch_params;
BL::Job::FilesParam _files_params;
std::string _machine_choosed;
+ std::string _batch_queue;
int _salome_launcher_id;
};
job_parameters->maximum_during_time = CORBA::string_dup(cpp_batch_params.maximum_during_time.c_str());
job_parameters->resource_required.hostname = CORBA::string_dup(job->getMachine().c_str());
job_parameters->resource_required.nb_node = cpp_batch_params.nb_proc;
+ job_parameters->queue = CORBA::string_dup(job->getBatchQueue().c_str());
// Memory
CORBA::Long memory;
result_directory = "";
machine_choosed = "";
+ batch_queue = "";
start_job = false;
QString f_machine_choosed = field("machine_choosed").toString();
machine_choosed = f_machine_choosed.toStdString();
+ // Batch Queue
+ QString f_batch_queue = field("batch_queue").toString();
+ batch_queue = f_batch_queue.toStdString();
+
start_job = field("start_job").toBool();
}
}
_machine_choosed->setReadOnly(true);
registerField("machine_choosed", _machine_choosed);
+ QLabel * bqLabel = new QLabel("Batch Queue (optional):");
+ QLineEdit * _bqLineEdit = new QLineEdit(this);
+ registerField("batch_queue", _bqLineEdit);
+
QGridLayout * main_layout = new QGridLayout;
main_layout->addWidget(machine_group_box, 0, 0, 1, -1);
main_layout->addWidget(machine_label, 1, 0);
main_layout->addWidget(_machine_choosed, 1, 1);
+ main_layout->addWidget(bqLabel, 2, 0);
+ main_layout->addWidget(_bqLineEdit, 2, 1);
setLayout(main_layout);
};
std::list<std::string> output_files_list;
std::string machine_choosed;
+ std::string batch_queue;
bool start_job;
files_params.output_files_list = wizard.output_files_list;
new_job->setFilesParameters(files_params);
new_job->setMachine(wizard.machine_choosed);
+ new_job->setBatchQueue(wizard.batch_queue);
}
else
{
files_params.output_files_list = wizard.output_files_list;
new_job->setFilesParameters(files_params);
new_job->setMachine(wizard.machine_choosed);
+ new_job->setBatchQueue(wizard.batch_queue);
}
addJobToLauncher(wizard.job_name);
emit new_job_added(QString::fromStdString(wizard.job_name));