Back to index

salome-kernel  6.5.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes
RESOURCESMANAGER_EXPORT Struct Reference

#include <ResourcesManager.hxx>

Collaboration diagram for RESOURCESMANAGER_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ResourcesException (const std::string m)
 ResourcesManager_cpp (const char *xmlFilePath)
 ResourcesManager_cpp () throw (ResourcesException)
 ~ResourcesManager_cpp ()
std::vector< std::string > GetFittingResources (const resourceParams &params) throw (ResourcesException)
std::string Find (const std::string &policy, const std::vector< std::string > &listOfResources)
void AddResourceInCatalog (const ParserResourcesType &new_resource) throw (ResourcesException)
void DeleteResourceInCatalog (const char *name)
void WriteInXmlFile (std::string xml_file)
const MapOfParserResourcesTypeParseXmlFiles ()
const MapOfParserResourcesTypeGetList () const
ParserResourcesType GetResourcesDescr (const std::string &name)
virtual std::string Find (const std::vector< std::string > &hosts, MapOfParserResourcesType &resList)
virtual std::string Find (const std::vector< std::string > &hosts, MapOfParserResourcesType &resList)
virtual std::string Find (const std::vector< std::string > &hosts, MapOfParserResourcesType &resList)
virtual std::string Find (const std::vector< std::string > &hosts, MapOfParserResourcesType &resList)
 SALOME_ResourcesCatalog_Handler (MapOfParserResourcesType &resources_list)
const MapOfParserResourcesTypeGetResourcesAfterParsing () const
virtual ~SALOME_ResourcesCatalog_Handler ()
void ProcessXmlDocument (xmlDocPtr theDoc)
bool ProcessMachine (xmlNodePtr machine_descr, ParserResourcesType &resource)
bool ProcessCluster (xmlNodePtr cluster_descr, ParserResourcesType &resource)
bool ProcessMember (xmlNodePtr member_descr, ParserResourcesClusterMembersType &resource)
void PrepareDocToXmlFile (xmlDocPtr theDoc)
 ResourceDataToSort ()
 ResourceDataToSort (const std::string &name, unsigned int nbOfNodes, unsigned int nbOfProcPerNode, unsigned int CPUFreqMHz, unsigned int memInMB)
bool operator< (const ResourceDataToSort &other) const
void Print () const
void Print ()
void Clear ()
std::string PrintAccessProtocolType () const
std::string PrintAccessModeType () const
std::string PrintBatchType () const
std::string PrintMpiImplType () const
std::string PrintClusterInternalProtocol () const

Static Public Member Functions

static std::string protocolToString (AccessProtocolType protocol)
static AccessProtocolType stringToProtocol (const std::string &protocolStr)

Public Attributes

const std::string msg
std::string _Name
unsigned int _nbOfNodes
unsigned int _nbOfProcPerNode
unsigned int _CPUFreqMHz
unsigned int _memInMB
std::string HostName
AccessProtocolType Protocol
AccessProtocolType ClusterInternalProtocol
std::string UserName
std::string AppliPath
ResourceDataToSort DataForSort
std::string Name
AccessModeType Mode
BatchType Batch
MpiImplType mpi
std::vector< std::string > ComponentsList
std::vector< std::string > ModulesList
std::string OS
std::string batchQueue
std::string userCommands
std::string use
std::list
< ParserResourcesClusterMembersType > 
ClusterMembersList
unsigned int nbOfProc
bool is_cluster_head
std::string working_directory

Static Public Attributes

static unsigned int _nbOfProcWanted
static unsigned int _nbOfNodesWanted
static unsigned int _nbOfProcPerNodeWanted
static unsigned int _CPUFreqMHzWanted
static unsigned int _memInMBWanted

Protected Member Functions

void SelectOnlyResourcesWithOS (std::vector< std::string > &resources, std::string OS)
void KeepOnlyResourcesWithComponent (std::vector< std::string > &resources, const std::vector< std::string > &componentList)

Protected Attributes

std::list< std::string > _path_resources
 will contain the path to the ressources catalog
std::list< std::string >::iterator _path_resources_it
MapOfParserResourcesType _resourcesList
 will contain the informations on the data type catalog(after parsing)
std::map< std::string,
LoadRateManager * > 
_resourceManagerMap
 a map that contains all the available load rate managers (the key is the name)
time_t _lasttime
 contain the time where resourcesList was created
std::map< std::string, int > _numberOfUses

Private Member Functions

unsigned int GetNumberOfPoints () const

Private Attributes

std::string previous_component_name
ParserResourcesType _resource
MapOfParserResourcesType_resources_list
const char * test_machine
const char * test_cluster
const char * test_name
const char * test_hostname
const char * test_protocol
const char * test_cluster_internal_protocol
const char * test_mode
const char * test_batch
const char * test_mpi
const char * test_user_name
const char * test_appli_path
const char * test_modules
const char * test_module_name
const char * test_components
const char * test_component_name
const char * test_os
const char * test_mem_in_mb
const char * test_cpu_freq_mhz
const char * test_nb_of_nodes
const char * test_nb_of_proc
const char * test_nb_of_proc_per_node
const char * test_batch_queue
const char * test_user_commands
const char * test_use
const char * test_members
const char * test_is_cluster_head
const char * test_working_directory

Detailed Description

Definition at line 66 of file ResourcesManager.hxx.


Constructor & Destructor Documentation


Member Function Documentation

void RESOURCESMANAGER_EXPORT::AddResourceInCatalog ( const ParserResourcesType &  new_resource) throw (ResourcesException)
virtual std::string RESOURCESMANAGER_EXPORT::Find ( const std::vector< std::string > &  hosts,
MapOfParserResourcesType resList 
) [inline, virtual]

Definition at line 34 of file SALOME_LoadRateManager.hxx.

                                                               {return "";};
virtual std::string RESOURCESMANAGER_EXPORT::Find ( const std::vector< std::string > &  hosts,
MapOfParserResourcesType resList 
) [virtual]
virtual std::string RESOURCESMANAGER_EXPORT::Find ( const std::vector< std::string > &  hosts,
MapOfParserResourcesType resList 
) [virtual]
virtual std::string RESOURCESMANAGER_EXPORT::Find ( const std::vector< std::string > &  hosts,
MapOfParserResourcesType resList 
) [virtual]
std::string RESOURCESMANAGER_EXPORT::Find ( const std::string &  policy,
const std::vector< std::string > &  listOfResources 
)
std::vector<std::string> RESOURCESMANAGER_EXPORT::GetFittingResources ( const resourceParams params) throw (ResourcesException)
unsigned int RESOURCESMANAGER_EXPORT::GetNumberOfPoints ( ) const [private]
ParserResourcesType RESOURCESMANAGER_EXPORT::GetResourcesDescr ( const std::string &  name)
void RESOURCESMANAGER_EXPORT::KeepOnlyResourcesWithComponent ( std::vector< std::string > &  resources,
const std::vector< std::string > &  componentList 
) [protected]
bool RESOURCESMANAGER_EXPORT::operator< ( const ResourceDataToSort other) const
bool RESOURCESMANAGER_EXPORT::ProcessCluster ( xmlNodePtr  cluster_descr,
ParserResourcesType &  resource 
)
bool RESOURCESMANAGER_EXPORT::ProcessMachine ( xmlNodePtr  machine_descr,
ParserResourcesType &  resource 
)
bool RESOURCESMANAGER_EXPORT::ProcessMember ( xmlNodePtr  member_descr,
ParserResourcesClusterMembersType &  resource 
)
void RESOURCESMANAGER_EXPORT::ProcessXmlDocument ( xmlDocPtr  theDoc)
static std::string RESOURCESMANAGER_EXPORT::protocolToString ( AccessProtocolType  protocol) [static]
RESOURCESMANAGER_EXPORT::ResourceDataToSort ( const std::string &  name,
unsigned int  nbOfNodes,
unsigned int  nbOfProcPerNode,
unsigned int  CPUFreqMHz,
unsigned int  memInMB 
)
RESOURCESMANAGER_EXPORT::ResourcesException ( const std::string  m) [inline]

Definition at line 71 of file ResourcesManager.hxx.

: msg(m) {}
RESOURCESMANAGER_EXPORT::ResourcesManager_cpp ( const char *  xmlFilePath)
void RESOURCESMANAGER_EXPORT::SelectOnlyResourcesWithOS ( std::vector< std::string > &  resources,
std::string  OS 
) [protected]
static AccessProtocolType RESOURCESMANAGER_EXPORT::stringToProtocol ( const std::string &  protocolStr) [static]
void RESOURCESMANAGER_EXPORT::WriteInXmlFile ( std::string  xml_file)

Member Data Documentation

Definition at line 59 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 64 of file SALOME_ResourcesCatalog_Parser.hxx.

contain the time where resourcesList was created

Definition at line 120 of file ResourcesManager.hxx.

Definition at line 60 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 65 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 56 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 57 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 62 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 58 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 63 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 61 of file SALOME_ResourcesCatalog_Parser.hxx.

std::map<std::string,int> RESOURCESMANAGER_EXPORT::_numberOfUses [protected]

Definition at line 58 of file SALOME_LoadRateManager.hxx.

std::list<std::string> RESOURCESMANAGER_EXPORT::_path_resources [protected]

will contain the path to the ressources catalog

Definition at line 110 of file ResourcesManager.hxx.

std::list<std::string>::iterator RESOURCESMANAGER_EXPORT::_path_resources_it [protected]

Definition at line 111 of file ResourcesManager.hxx.

ParserResourcesType RESOURCESMANAGER_EXPORT::_resource [private]

Definition at line 63 of file SALOME_ResourcesCatalog_Handler.hxx.

std::map<std::string , LoadRateManager*> RESOURCESMANAGER_EXPORT::_resourceManagerMap [protected]

a map that contains all the available load rate managers (the key is the name)

Definition at line 117 of file ResourcesManager.hxx.

Definition at line 64 of file SALOME_ResourcesCatalog_Handler.hxx.

will contain the informations on the data type catalog(after parsing)

Definition at line 114 of file ResourcesManager.hxx.

Definition at line 87 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 99 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 106 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 85 of file SALOME_ResourcesCatalog_Parser.hxx.

std::list<ParserResourcesClusterMembersType> RESOURCESMANAGER_EXPORT::ClusterMembersList

Definition at line 109 of file SALOME_ResourcesCatalog_Parser.hxx.

std::vector<std::string> RESOURCESMANAGER_EXPORT::ComponentsList

Definition at line 103 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 88 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 83 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 111 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 98 of file SALOME_ResourcesCatalog_Parser.hxx.

std::vector<std::string> RESOURCESMANAGER_EXPORT::ModulesList

Definition at line 104 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 100 of file SALOME_ResourcesCatalog_Parser.hxx.

const std::string RESOURCESMANAGER_EXPORT::msg

Definition at line 69 of file ResourcesManager.hxx.

Definition at line 94 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 110 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 105 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 61 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 84 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 76 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_batch [private]

Definition at line 73 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 88 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 67 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 71 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 81 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 80 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 84 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 69 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 92 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 66 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 83 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 91 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_mode [private]

Definition at line 72 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 79 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 78 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_mpi [private]

Definition at line 74 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_name [private]

Definition at line 68 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 85 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 86 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 87 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_os [private]

Definition at line 82 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 70 of file SALOME_ResourcesCatalog_Handler.hxx.

const char* RESOURCESMANAGER_EXPORT::test_use [private]

Definition at line 90 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 89 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 75 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 93 of file SALOME_ResourcesCatalog_Handler.hxx.

Definition at line 108 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 107 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 86 of file SALOME_ResourcesCatalog_Parser.hxx.

Definition at line 112 of file SALOME_ResourcesCatalog_Parser.hxx.


The documentation for this struct was generated from the following files: