#include <SALOME_ResourcesManager.hxx>
Public Member Functions | |
SALOME_ResourcesManager (CORBA::ORB_ptr orb, PortableServer::POA_var poa, SALOME_NamingService *ns, const char *xmlFilePath) | |
just for test More... | |
SALOME_ResourcesManager (CORBA::ORB_ptr orb, PortableServer::POA_var poa, SALOME_NamingService *ns) | |
Standard constructor, parse resource file. More... | |
~SALOME_ResourcesManager () | |
Standard Destructor. More... | |
Engines::ResourceList * | GetFittingResources (const Engines::ResourceParameters ¶ms) |
get the name of resources fitting the specified constraints (params) More... | |
char * | FindFirst (const Engines::ResourceList &listOfResources) |
dynamically obtains the first machines More... | |
char * | Find (const char *policy, const Engines::ResourceList &listOfResources) |
Engines::ResourceDefinition * | GetResourceDefinition (const char *name) |
void | AddResource (const Engines::ResourceDefinition &new_resource, CORBA::Boolean write, const char *xml_file) |
void | RemoveResource (const char *resource_name, CORBA::Boolean write, const char *xml_file) |
char * | getMachineFile (const char *resource_name, CORBA::Long nb_procs, const char *parallelLib) |
void | ListAllAvailableResources (Engines::ResourceList_out machines, Engines::IntegerList_out nbProcsOfMachines) |
Return list of resources available (regarding containt of CatalogResources.xml). More... | |
void | Shutdown () |
CORBA method: shutdown all the containers, then the ContainerManager servant. More... | |
ResourcesManager_cpp * | GetImpl () |
Static Public Attributes | |
static const char * | _ResourcesManagerNameInNS = "/ResourcesManager" |
Protected Attributes | |
SALOME_NamingService * | _NS |
CORBA::ORB_var | _orb |
PortableServer::POA_var | _poa |
ResourcesManager_cpp | _rm |
SALOME_ResourcesManager::SALOME_ResourcesManager | ( | CORBA::ORB_ptr | orb, |
PortableServer::POA_var | poa, | ||
SALOME_NamingService * | ns, | ||
const char * | xmlFilePath | ||
) |
just for test
References _NS, _orb, _poa, _ResourcesManagerNameInNS, MESSAGE, and SALOME_NamingService::Register().
SALOME_ResourcesManager::SALOME_ResourcesManager | ( | CORBA::ORB_ptr | orb, |
PortableServer::POA_var | poa, | ||
SALOME_NamingService * | ns | ||
) |
Standard constructor, parse resource file.
References _NS, _orb, _poa, _ResourcesManagerNameInNS, MESSAGE, and SALOME_NamingService::Register().
SALOME_ResourcesManager::~SALOME_ResourcesManager | ( | ) |
Standard Destructor.
References MESSAGE.
void SALOME_ResourcesManager::AddResource | ( | const Engines::ResourceDefinition & | new_resource, |
CORBA::Boolean | write, | ||
const char * | xml_file | ||
) |
char * SALOME_ResourcesManager::Find | ( | const char * | policy, |
const Engines::ResourceList & | listOfResources | ||
) |
References _rm, ResourcesManager_cpp::Find(), and resourceList_CORBAtoCPP().
char * SALOME_ResourcesManager::FindFirst | ( | const Engines::ResourceList & | listOfResources | ) |
dynamically obtains the first machines
References _rm, ResourcesManager_cpp::Find(), and resourceList_CORBAtoCPP().
Engines::ResourceList * SALOME_ResourcesManager::GetFittingResources | ( | const Engines::ResourceParameters & | params | ) |
get the name of resources fitting the specified constraints (params)
If hostname specified, check it is local or known in resources catalog.
Else
References _rm, SALOME::BAD_PARAM, ResourcesManager_cpp::GetFittingResources(), INFOS, MESSAGE, ResourcesException::msg, resourceList_CPPtoCORBA(), resourceParameters_CORBAtoCPP(), and THROW_SALOME_CORBA_EXCEPTION.
Referenced by SALOME_Launcher::testBatch().
ResourcesManager_cpp* SALOME_ResourcesManager::GetImpl | ( | ) |
Referenced by SALOME_Launcher::SALOME_Launcher().
char * SALOME_ResourcesManager::getMachineFile | ( | const char * | resource_name, |
CORBA::Long | nb_procs, | ||
const char * | parallelLib | ||
) |
References _rm, ParserResourcesType::AppliPath, ParserResourcesType::ClusterInternalProtocol, ParserResourcesType::ClusterMembersList, ParserResourcesType::DataForSort, ResourcesManager_cpp::GetList(), ParserResourcesType::HostName, INFOS, lam, MESSAGE, ParserResourcesType::mpi, nompi, ompi, openmpi, out, ParserResourcesType::Protocol, and ParserResourcesType::UserName.
Engines::ResourceDefinition * SALOME_ResourcesManager::GetResourceDefinition | ( | const char * | name | ) |
References _rm, SALOME::BAD_PARAM, ResourcesManager_cpp::GetResourcesDescr(), INFOS, resourceDefinition_CPPtoCORBA(), and THROW_SALOME_CORBA_EXCEPTION.
Referenced by SALOME_Launcher::testBatch().
void SALOME_ResourcesManager::ListAllAvailableResources | ( | Engines::ResourceList_out | machines, |
Engines::IntegerList_out | nbProcsOfMachines | ||
) |
Return list of resources available (regarding containt of CatalogResources.xml).
And for each resource the number of proc available of it.
References ResourceDataToSort::_nbOfNodes, ResourceDataToSort::_nbOfProcPerNode, _rm, ParserResourcesType::DataForSort, ResourcesManager_cpp::GetList(), and ParserResourcesType::HostName.
void SALOME_ResourcesManager::Shutdown | ( | ) |
CORBA method: shutdown all the containers, then the ContainerManager servant.
References _NS, _poa, _ResourcesManagerNameInNS, SALOME_NamingService::Destroy_Name(), and MESSAGE.
Referenced by SALOME_Launcher::Shutdown().
|
protected |
Referenced by SALOME_ResourcesManager(), and Shutdown().
|
protected |
Referenced by SALOME_ResourcesManager().
|
protected |
Referenced by SALOME_ResourcesManager(), and Shutdown().
|
static |
|
protected |