#include <SALOME_ResourcesCatalog_Parser.hxx>
Public Member Functions | |
ParserResourcesType () | |
virtual | ~ParserResourcesType () |
std::string | getAccessProtocolTypeStr () const |
std::string | getResourceTypeStr () const |
std::string | getBatchTypeStr () const |
std::string | getMpiImplTypeStr () const |
std::string | getClusterInternalProtocolStr () const |
std::string | getCanLaunchBatchJobsStr () const |
std::string | getCanRunContainersStr () const |
void | setAccessProtocolTypeStr (const std::string &protocolTypeStr) |
void | setResourceTypeStr (const std::string &resourceTypeStr) |
void | setBatchTypeStr (const std::string &batchTypeStr) |
void | setMpiImplTypeStr (const std::string &mpiImplTypeStr) |
void | setClusterInternalProtocolStr (const std::string &internalProtocolTypeStr) |
void | setCanLaunchBatchJobsStr (const std::string &canLaunchBatchJobsStr) |
void | setCanRunContainersStr (const std::string &canRunContainersStr) |
Data Fields | |
ResourceDataToSort | DataForSort |
std::string | Name |
std::string | HostName |
AccessProtocolType | Protocol |
AccessProtocolType | ClusterInternalProtocol |
ResourceType | type |
BatchType | Batch |
MpiImplType | mpi |
std::string | UserName |
std::string | AppliPath |
std::vector< std::string > | ComponentsList |
std::vector< std::string > | ModulesList |
std::string | OS |
std::string | batchQueue |
std::string | userCommands |
std::string | use |
std::list< ParserResourcesType > | ClusterMembersList |
unsigned int | nbOfProc |
bool | can_launch_batch_jobs |
bool | can_run_containers |
std::string | working_directory |
Static Protected Member Functions | |
static std::string | protocolToString (AccessProtocolType protocol) |
static AccessProtocolType | stringToProtocol (const std::string &protocolStr) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ParserResourcesType &rt) |
ParserResourcesType::ParserResourcesType | ( | ) |
|
virtual |
std::string ParserResourcesType::getAccessProtocolTypeStr | ( | ) | const |
References Protocol, and protocolToString().
Referenced by SALOME_ContainerManager::checkPaCOParameters(), operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CPPtoCORBA().
std::string ParserResourcesType::getBatchTypeStr | ( | ) | const |
References Batch, ccc, coorm, ll, lsf, none, oar, pbs, sge, slurm, and vishnu.
Referenced by operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CPPtoCORBA().
string ParserResourcesType::getCanLaunchBatchJobsStr | ( | ) | const |
References can_launch_batch_jobs.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine().
string ParserResourcesType::getCanRunContainersStr | ( | ) | const |
References can_run_containers.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine().
std::string ParserResourcesType::getClusterInternalProtocolStr | ( | ) | const |
References ClusterInternalProtocol, and protocolToString().
Referenced by operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CPPtoCORBA().
std::string ParserResourcesType::getMpiImplTypeStr | ( | ) | const |
References lam, mpi, mpich1, mpich2, nompi, ompi, openmpi, prun, and slurmmpi.
Referenced by operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CPPtoCORBA().
std::string ParserResourcesType::getResourceTypeStr | ( | ) | const |
References cluster, single_machine, and type.
Referenced by operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CPPtoCORBA().
|
staticprotected |
References blaunch, pbsdsh, rsh, sh, srun, and ssh.
Referenced by getAccessProtocolTypeStr(), and getClusterInternalProtocolStr().
void ParserResourcesType::setAccessProtocolTypeStr | ( | const std::string & | protocolTypeStr | ) |
References Protocol, and stringToProtocol().
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessMember(), and resourceDefinition_CORBAtoCPP().
void ParserResourcesType::setBatchTypeStr | ( | const std::string & | batchTypeStr | ) |
void ParserResourcesType::setCanLaunchBatchJobsStr | ( | const std::string & | canLaunchBatchJobsStr | ) |
References can_launch_batch_jobs.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine().
void ParserResourcesType::setCanRunContainersStr | ( | const std::string & | canRunContainersStr | ) |
References can_run_containers.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine().
void ParserResourcesType::setClusterInternalProtocolStr | ( | const std::string & | internalProtocolTypeStr | ) |
void ParserResourcesType::setMpiImplTypeStr | ( | const std::string & | mpiImplTypeStr | ) |
References lam, mpi, mpich1, mpich2, nompi, ompi, openmpi, prun, and slurmmpi.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessCluster(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CORBAtoCPP().
void ParserResourcesType::setResourceTypeStr | ( | const std::string & | resourceTypeStr | ) |
References cluster, single_machine, and type.
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine(), and resourceDefinition_CORBAtoCPP().
|
staticprotected |
References blaunch, pbsdsh, rsh, sh, srun, and ssh.
Referenced by setAccessProtocolTypeStr(), and setClusterInternalProtocolStr().
|
friend |
std::string ParserResourcesType::AppliPath |
Referenced by ResourcesManager_cpp::AddDefaultResourceInCatalog(), SALOME_ContainerManager::checkPaCOParameters(), SALOME_ResourcesManager::getMachineFile(), operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessMember(), resourceDefinition_CORBAtoCPP(), resourceDefinition_CPPtoCORBA(), and Launcher::Job_SALOME::setResourceDefinition().
BatchType ParserResourcesType::Batch |
Referenced by ResourcesManager_cpp::AddDefaultResourceInCatalog(), getBatchTypeStr(), and setBatchTypeStr().
std::string ParserResourcesType::batchQueue |
Referenced by operator<<(), and SALOME_ResourcesCatalog_Handler::ProcessMachine().
bool ParserResourcesType::can_launch_batch_jobs |
bool ParserResourcesType::can_run_containers |
AccessProtocolType ParserResourcesType::ClusterInternalProtocol |
std::list<ParserResourcesType> ParserResourcesType::ClusterMembersList |
std::vector<std::string> ParserResourcesType::ComponentsList |
ResourceDataToSort ParserResourcesType::DataForSort |
Referenced by ResourcesManager_cpp::AddDefaultResourceInCatalog(), LoadRateManagerCycl::Find(), SALOME_ResourcesManager::getMachineFile(), SALOME_ResourcesManager::ListAllAvailableResources(), operator<<(), ParserResourcesType(), ResourcesManager_cpp::ParseXmlFiles(), SALOME_ResourcesCatalog_Handler::ProcessCluster(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessMember(), resourceDefinition_CORBAtoCPP(), and resourceDefinition_CPPtoCORBA().
std::string ParserResourcesType::HostName |
Referenced by ResourcesManager_cpp::AddDefaultResourceInCatalog(), SALOME_ContainerManager::checkPaCOParameters(), SALOME_ContainerManager::FindContainer(), SALOME_ResourcesManager::getMachineFile(), SALOME_ContainerManager::GetMPIZeroNode(), SALOME_ContainerManager::GiveContainer(), SALOME_ResourcesManager::ListAllAvailableResources(), operator<<(), SALOME_ResourcesCatalog_Handler::ProcessCluster(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessMember(), SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(), resourceDefinition_CORBAtoCPP(), and resourceDefinition_CPPtoCORBA().
std::vector<std::string> ParserResourcesType::ModulesList |
Referenced by SALOME_ResourcesCatalog_Handler::ProcessMachine().
MpiImplType ParserResourcesType::mpi |
Referenced by SALOME_ResourcesManager::getMachineFile(), getMpiImplTypeStr(), and setMpiImplTypeStr().
std::string ParserResourcesType::Name |
Referenced by ResourcesManager_cpp::AddDefaultResourceInCatalog(), ResourcesManager_cpp::AddResourceInCatalog(), SALOME_ContainerManager::checkPaCOParameters(), operator<<(), SALOME_ResourcesCatalog_Handler::ProcessCluster(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessXmlDocument(), resourceDefinition_CORBAtoCPP(), resourceDefinition_CPPtoCORBA(), and Launcher::Job_SALOME::setResourceDefinition().
unsigned int ParserResourcesType::nbOfProc |
Referenced by operator<<(), and SALOME_ResourcesCatalog_Handler::ProcessCluster().
std::string ParserResourcesType::OS |
AccessProtocolType ParserResourcesType::Protocol |
ResourceType ParserResourcesType::type |
Referenced by getResourceTypeStr(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), and setResourceTypeStr().
std::string ParserResourcesType::use |
Referenced by operator<<(), and SALOME_ResourcesCatalog_Handler::ProcessCluster().
std::string ParserResourcesType::userCommands |
Referenced by operator<<(), and SALOME_ResourcesCatalog_Handler::ProcessMachine().
std::string ParserResourcesType::UserName |
Referenced by SALOME_ContainerManager::checkPaCOParameters(), SALOME_ResourcesManager::getMachineFile(), operator<<(), SALOME_ResourcesCatalog_Handler::ProcessMachine(), SALOME_ResourcesCatalog_Handler::ProcessMember(), resourceDefinition_CORBAtoCPP(), resourceDefinition_CPPtoCORBA(), and Launcher::Job::setResourceDefinition().
std::string ParserResourcesType::working_directory |