}
}
+void
+SALOME_Launcher::stopJob(CORBA::Long job_id)
+{
+ try
+ {
+ _l.stopJob(job_id);
+ std::ostringstream job_id_str;
+ job_id_str << job_id;
+ notifyObservers("UPDATE_JOB_STATE", job_id_str.str());
+ }
+ catch(const LauncherException &ex)
+ {
+ INFOS(ex.msg.c_str());
+ THROW_SALOME_CORBA_EXCEPTION(ex.msg.c_str(),SALOME::BAD_PARAM);
+ }
+}
+
//=============================================================================
/*! CORBA Method:
* Create a job in the launcher with a file
try
{
_l.createJob(new_job);
-
std::ostringstream job_id;
job_id << new_job->getNumber();
notifyObservers("NEW_JOB", job_id.str());
{
try
{
- // Step 1: Add the resource to the launcher C++ map
- _l.checkFactoryForResource(resource_choosed_name);
-
- // Step 2: We add run_part informations
new_job->setState(job_state);
-
- // Step 3: We add the job to the launcher
- ParserResourcesType resource_definition = _l._ResManager->GetResourcesDescr(resource_choosed_name);
- new_job->setResourceDefinition(resource_definition);
_l.addJobDirectlyToMap(new_job, job_reference);
// Step 4: We check that the BatchManager could resume
{
try
{
- // Step 1: Add the resource to the launcher C++ map
- _l.checkFactoryForResource(resource_choosed_name);
-
// Step 2: We add run_part informations
new_job->setState(job_state);
-
- // Step 3: We add the job to the launcher
- ParserResourcesType resource_definition = _l._ResManager->GetResourcesDescr(resource_choosed_name);
- new_job->setResourceDefinition(resource_definition);
_l.addJobDirectlyToMap(new_job, job_reference);
-
std::ostringstream job_id;
job_id << new_job->getNumber();
notifyObservers("NEW_JOB", job_id.str());