23 #ifndef __RESOURCESMANAGER_HXX__
24 #define __RESOURCESMANAGER_HXX__
34 #include <sys/types.h>
42 #pragma warning(disable:4251)
79 std::vector<std::string>
82 std::string Find(
const std::string& policy,
const std::vector<std::string>& listOfResources)
const;
88 void DeleteAllResourcesInCatalog();
90 void DeleteResourceInCatalog(
const char *
name);
92 void WriteInXmlFile(std::string xml_file);
103 void SelectOnlyResourcesWithOS(std::vector<std::string>& resources, std::string OS);
105 void KeepOnlyResourcesWithComponent(std::vector<std::string>& resources,
106 const std::vector<std::string>& componentList);
111 void AddDefaultResourceInCatalog();
124 time_t _lasttime = 0;
#define RESOURCESMANAGER_EXPORT
Definition: ResourcesManager_Defs.hxx:33
std::map< std::string, ParserResourcesType > MapOfParserResourcesType
Definition: SALOME_ResourcesCatalog_Parser.hxx:144
Definition: SALOME_ResourcesCatalog_Parser.hxx:90
Definition: ResourcesManager.hxx:70
std::list< std::string > _path_resources
will contain the path to the resources catalog
Definition: ResourcesManager.hxx:114
std::list< std::string >::iterator _path_resources_it
Definition: ResourcesManager.hxx:115
static const std::string DEFAULT_RESOURCE_NAME
the name of the default local resource
Definition: ResourcesManager.hxx:127
std::map< std::string, LoadRateManager * > _resourceManagerMap
a map that contains all the available load rate managers (the key is the name)
Definition: ResourcesManager.hxx:121
MapOfParserResourcesType _resourcesList
will contain the information on the data type catalog(after parsing)
Definition: ResourcesManager.hxx:118
string name
Definition: pythfilter.py:56
Definition: ResourcesManager.hxx:52
std::vector< std::string > resourceList
Definition: ResourcesManager.hxx:66
long mem_mb
Definition: ResourcesManager.hxx:64
std::string OS
Definition: ResourcesManager.hxx:59
long nb_node
Definition: ResourcesManager.hxx:61
long nb_proc
Definition: ResourcesManager.hxx:60
long cpu_clock
Definition: ResourcesManager.hxx:63
std::string name
Definition: ResourcesManager.hxx:55
bool can_launch_batch_jobs
Definition: ResourcesManager.hxx:57
std::vector< std::string > componentList
Definition: ResourcesManager.hxx:65
std::string hostname
Definition: ResourcesManager.hxx:56
long nb_proc_per_node
Definition: ResourcesManager.hxx:62
bool can_run_containers
Definition: ResourcesManager.hxx:58