#include <Launcher.hxx>
Public Member Functions | |
Launcher_cpp () | |
Constructor. More... | |
virtual | ~Launcher_cpp () |
destructor More... | |
void | createJob (Launcher::Job *new_job) |
void | launchJob (int job_id) |
const char * | getJobState (int job_id) |
const char * | getAssignedHostnames (int job_id) |
void | getJobResults (int job_id, std::string directory) |
bool | getJobDumpState (int job_id, std::string directory) |
bool | getJobWorkFile (int job_id, std::string work_file, std::string directory) |
void | stopJob (int job_id) |
void | removeJob (int job_id) |
std::list< int > | loadJobs (const char *jobs_file) |
Load the jobs from the file "jobs_file" and add them to the Launcher. More... | |
void | saveJobs (const char *jobs_file) |
Save the jobs of the Launcher to the file "jobs_file". More... | |
long | createJobWithFile (std::string xmlExecuteFile, std::string clusterName) |
std::map< int, Launcher::Job * > | getJobs () |
void | createBatchManagerForJob (Launcher::Job *job) |
void | addJobDirectlyToMap (Launcher::Job *new_job) |
void | SetResourcesManager (ResourcesManager_cpp *rm) |
Data Fields | |
ResourcesManager_cpp * | _ResManager |
Protected Member Functions | |
virtual void | notifyObservers (const std::string &event_name, const std::string &event_data) |
ParserLauncherType | ParseXmlFile (std::string xmlExecuteFile) |
Protected Attributes | |
std::map< int, Launcher::Job * > | _launcher_job_map |
int | _job_cpt |
pthread_mutex_t * | _job_cpt_mutex |
Launcher_cpp::Launcher_cpp | ( | ) |
Constructor.
orb | Define a CORBA single thread policy for the server, which avoid to deal with non thread-safe usage like Change_Directory in SALOME naming service |
References LAUNCHER_MESSAGE.
|
virtual |
destructor
References LAUNCHER_MESSAGE.
void Launcher_cpp::addJobDirectlyToMap | ( | Launcher::Job * | new_job | ) |
void Launcher_cpp::createBatchManagerForJob | ( | Launcher::Job * | job | ) |
void Launcher_cpp::createJob | ( | Launcher::Job * | new_job | ) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::createJob().
long Launcher_cpp::createJobWithFile | ( | std::string | xmlExecuteFile, |
std::string | clusterName | ||
) |
Referenced by SALOME_Launcher::createJobWithFile(), and main().
const char * Launcher_cpp::getAssignedHostnames | ( | int | job_id | ) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::getAssignedHostnames().
bool Launcher_cpp::getJobDumpState | ( | int | job_id, |
std::string | directory | ||
) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::getJobDumpState().
void Launcher_cpp::getJobResults | ( | int | job_id, |
std::string | directory | ||
) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::getJobResults().
std::map< int, Launcher::Job * > Launcher_cpp::getJobs | ( | ) |
const char * Launcher_cpp::getJobState | ( | int | job_id | ) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::getJobState().
bool Launcher_cpp::getJobWorkFile | ( | int | job_id, |
std::string | work_file, | ||
std::string | directory | ||
) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::getJobWorkFile().
void Launcher_cpp::launchJob | ( | int | job_id | ) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::launchJob(), and main().
list< int > Launcher_cpp::loadJobs | ( | const char * | jobs_file | ) |
Load the jobs from the file "jobs_file" and add them to the Launcher.
Return a list with the IDs of the jobs that were successfully loaded.
References Launcher::Job::getNumber(), Launcher::Job::getReference(), Launcher::Job::getState(), LAUNCHER_INFOS, Launcher::XML_Persistence::loadJobs(), LauncherException::msg, and Launcher::Job::setState().
Referenced by SALOME_Launcher::loadJobs().
|
protectedvirtual |
|
protected |
References LAUNCHER_MESSAGE, and SALOME_Launcher_Handler::ProcessXmlDocument().
void Launcher_cpp::removeJob | ( | int | job_id | ) |
References LAUNCHER_INFOS.
Referenced by SALOME_Launcher::removeJob().
void Launcher_cpp::saveJobs | ( | const char * | jobs_file | ) |
Save the jobs of the Launcher to the file "jobs_file".
References Launcher::XML_Persistence::saveJobs().
Referenced by SALOME_Launcher::saveJobs().
void Launcher_cpp::SetResourcesManager | ( | ResourcesManager_cpp * | rm | ) |
Referenced by main(), and SALOME_Launcher::SALOME_Launcher().
void Launcher_cpp::stopJob | ( | int | job_id | ) |
Referenced by SALOME_Launcher::stopJob().
|
protected |
|
protected |
|
protected |
ResourcesManager_cpp* Launcher_cpp::_ResManager |