// Lib methods
void SetResourcesManager( ResourcesManager_cpp* rm ) {_ResManager = rm;}
+ // Used by SALOME_Launcher
+ ResourcesManager_cpp *_ResManager;
protected:
virtual void notifyObservers(const std::string & event_name, const std::string & event_data) {}
#endif
ParserLauncherType ParseXmlFile(std::string xmlExecuteFile);
- ResourcesManager_cpp *_ResManager;
std::map <int, Launcher::Job *> _launcher_job_map;
int _job_cpt; // job number counter
pthread_mutex_t * _job_cpt_mutex; // mutex for job counter
new_job->setState(job_state);
// Step 3: We add the job to the launcher
- ParserResourcesType resource_definition;
- resource_definition.Name = resource_choosed_name;
+ ParserResourcesType resource_definition = _l._ResManager->GetResourcesDescr(resource_choosed_name);
new_job->setResourceDefinition(resource_definition);
_l.addJobDirectlyToMap(new_job, job_reference);
new_job->setState(job_state);
// Step 3: We add the job to the launcher
- ParserResourcesType resource_definition;
- resource_definition.Name = resource_choosed_name;
+ ParserResourcesType resource_definition = _l._ResManager->GetResourcesDescr(resource_choosed_name);
new_job->setResourceDefinition(resource_definition);
_l.addJobDirectlyToMap(new_job, job_reference);