Version: 8.3.0
Launcher::Job Class Referenceabstract

#include <Launcher_Job.hxx>

Inheritance diagram for Launcher::Job:

Public Member Functions

 Job ()
 
virtual ~Job ()
 
void setState (const std::string &state)
 
std::string getState () const
 
std::string getAssignedHostnames ()
 
void setNumber (const int &number)
 
int getNumber ()
 
virtual void setResourceDefinition (const ParserResourcesType &resource_definition)
 
ParserResourcesType getResourceDefinition () const
 
void setJobName (const std::string &job_name)
 
virtual void setJobFile (const std::string &job_file)
 
void setWorkDirectory (const std::string &work_directory)
 
void setLocalDirectory (const std::string &local_directory)
 
void setResultDirectory (const std::string &result_directory)
 
void add_in_file (const std::string &file)
 
void add_out_file (const std::string &file)
 
void setMaximumDuration (const std::string &maximum_duration)
 
void setResourceRequiredParams (const resourceParams &resource_required_params)
 
void setQueue (const std::string &queue)
 
void setEnvFile (const std::string &env_file)
 
void setExclusive (bool exclusive)
 
void setExclusiveStr (const std::string &exclusiveStr)
 
void setMemPerCpu (unsigned long mem_per_cpu)
 
void setWCKey (const std::string &wckey)
 
void setExtraParams (const std::string &extra_params)
 
void setReference (const std::string &reference)
 
void setLauncherFile (const std::string &launcher_file)
 
void setLauncherArgs (const std::string &launcher_args)
 
std::string getJobName () const
 
std::string getJobFile () const
 
std::string getWorkDirectory () const
 
std::string getLocalDirectory () const
 
std::string getResultDirectory () const
 
const std::list< std::string > & get_in_files () const
 
const std::list< std::string > & get_out_files () const
 
std::string getMaximumDuration () const
 
resourceParams getResourceRequiredParams () const
 
std::string getQueue () const
 
std::string getEnvFile () const
 
std::string getJobType () const
 
bool getExclusive () const
 
std::string getExclusiveStr () const
 
unsigned long getMemPerCpu () const
 
std::string getWCKey () const
 
std::string getExtraParams () const
 
std::string getReference () const
 
std::string getLauncherFile () const
 
std::string getLauncherArgs () const
 
std::string updateJobState ()
 
void addSpecificParameter (const std::string &name, const std::string &value)
 
const std::map< std::string,
std::string > & 
getSpecificParameters () const
 
virtual void checkSpecificParameters ()
 
void checkMaximumDuration (const std::string &maximum_duration)
 
void checkResourceRequiredParams (const resourceParams &resource_required_params)
 
long convertMaximumDuration (const std::string &maximum_duration)
 
std::string getLaunchDate () const
 
void stopJob ()
 
void removeJob ()
 
virtual void update_job ()=0
 

Protected Attributes

int _number
 
std::string _job_type
 
std::string _state
 
std::string _assigned_hostnames
 
std::string _launch_date
 
std::string _env_file
 
ParserResourcesType _resource_definition
 
std::string _job_name
 
std::string _job_file
 
std::string _job_file_name
 
std::string _job_file_name_complete
 
std::string _work_directory
 
std::string _local_directory
 
std::string _result_directory
 
std::list< std::string > _in_files
 
std::list< std::string > _out_files
 
std::map< std::string,
std::string > 
_specific_parameters
 
std::string _maximum_duration
 
long _maximum_duration_in_second
 
resourceParams _resource_required_params
 
std::string _queue
 
bool _exclusive
 
unsigned long _mem_per_cpu
 
std::string _wckey
 
std::string _extra_params
 
std::string _reference
 
std::string _launcher_file
 Reference of the job for the batch manager. More...
 
std::string _launcher_args
 

Constructor & Destructor Documentation

Launcher::Job::Job ( )
Launcher::Job::~Job ( )
virtual

References LAUNCHER_MESSAGE.

Member Function Documentation

void Launcher::Job::add_in_file ( const std::string &  file)
void Launcher::Job::add_out_file ( const std::string &  file)
void Launcher::Job::addSpecificParameter ( const std::string &  name,
const std::string &  value 
)
void Launcher::Job::checkMaximumDuration ( const std::string &  maximum_duration)
void Launcher::Job::checkResourceRequiredParams ( const resourceParams resource_required_params)
void Launcher::Job::checkSpecificParameters ( )
virtual

Reimplemented in Launcher::Job_YACSFile.

Referenced by SALOME_Launcher::createJob().

long Launcher::Job::convertMaximumDuration ( const std::string &  maximum_duration)
const std::list< std::string > & Launcher::Job::get_in_files ( ) const
const std::list< std::string > & Launcher::Job::get_out_files ( ) const
std::string Launcher::Job::getAssignedHostnames ( )
std::string Launcher::Job::getEnvFile ( ) const
bool Launcher::Job::getExclusive ( ) const
std::string Launcher::Job::getExclusiveStr ( ) const
std::string Launcher::Job::getExtraParams ( ) const
std::string Launcher::Job::getJobFile ( ) const
std::string Launcher::Job::getJobName ( ) const
std::string Launcher::Job::getJobType ( ) const
std::string Launcher::Job::getLaunchDate ( ) const
std::string Launcher::Job::getLauncherArgs ( ) const
std::string Launcher::Job::getLauncherFile ( ) const
std::string Launcher::Job::getLocalDirectory ( ) const
std::string Launcher::Job::getMaximumDuration ( ) const
unsigned long Launcher::Job::getMemPerCpu ( ) const
std::string Launcher::Job::getQueue ( ) const
std::string Launcher::Job::getReference ( ) const
ParserResourcesType Launcher::Job::getResourceDefinition ( ) const
std::string Launcher::Job::getResultDirectory ( ) const
const std::map< std::string, std::string > & Launcher::Job::getSpecificParameters ( ) const
std::string Launcher::Job::getState ( ) const
std::string Launcher::Job::getWCKey ( ) const
std::string Launcher::Job::getWorkDirectory ( ) const
void Launcher::Job::removeJob ( )

References LAUNCHER_INFOS, and LAUNCHER_MESSAGE.

void Launcher::Job::setEnvFile ( const std::string &  env_file)
void Launcher::Job::setExclusive ( bool  exclusive)
void Launcher::Job::setExclusiveStr ( const std::string &  exclusiveStr)
void Launcher::Job::setExtraParams ( const std::string &  extra_params)
void Launcher::Job::setJobName ( const std::string &  job_name)
void Launcher::Job::setLauncherArgs ( const std::string &  launcher_args)
void Launcher::Job::setLauncherFile ( const std::string &  launcher_file)
void Launcher::Job::setLocalDirectory ( const std::string &  local_directory)
void Launcher::Job::setMaximumDuration ( const std::string &  maximum_duration)
void Launcher::Job::setMemPerCpu ( unsigned long  mem_per_cpu)
void Launcher::Job::setNumber ( const int &  number)
void Launcher::Job::setQueue ( const std::string &  queue)
void Launcher::Job::setReference ( const std::string &  reference)
void Launcher::Job::setResourceDefinition ( const ParserResourcesType resource_definition)
virtual
void Launcher::Job::setResourceRequiredParams ( const resourceParams resource_required_params)
void Launcher::Job::setResultDirectory ( const std::string &  result_directory)
void Launcher::Job::setState ( const std::string &  state)
void Launcher::Job::setWCKey ( const std::string &  wckey)
void Launcher::Job::setWorkDirectory ( const std::string &  work_directory)
void Launcher::Job::stopJob ( )

References LAUNCHER_INFOS, and LAUNCHER_MESSAGE.

virtual void Launcher::Job::update_job ( )
pure virtual
std::string Launcher::Job::updateJobState ( )

References LAUNCHER_MESSAGE.

Field Documentation

std::string Launcher::Job::_assigned_hostnames
protected
std::string Launcher::Job::_env_file
protected
bool Launcher::Job::_exclusive
protected
std::string Launcher::Job::_extra_params
protected
std::list<std::string> Launcher::Job::_in_files
protected
std::string Launcher::Job::_job_file
protected
std::string Launcher::Job::_job_file_name
protected
std::string Launcher::Job::_job_file_name_complete
protected
std::string Launcher::Job::_job_name
protected
std::string Launcher::Job::_launch_date
protected
std::string Launcher::Job::_launcher_args
protected
std::string Launcher::Job::_launcher_file
protected

Reference of the job for the batch manager.

std::string Launcher::Job::_local_directory
protected
std::string Launcher::Job::_maximum_duration
protected
long Launcher::Job::_maximum_duration_in_second
protected
unsigned long Launcher::Job::_mem_per_cpu
protected
int Launcher::Job::_number
protected
std::list<std::string> Launcher::Job::_out_files
protected
std::string Launcher::Job::_queue
protected
std::string Launcher::Job::_reference
protected
ParserResourcesType Launcher::Job::_resource_definition
protected
resourceParams Launcher::Job::_resource_required_params
protected
std::string Launcher::Job::_result_directory
protected
std::map<std::string, std::string> Launcher::Job::_specific_parameters
protected
std::string Launcher::Job::_state
protected
std::string Launcher::Job::_wckey
protected
std::string Launcher::Job::_work_directory
protected