Version: 6.5.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Engines::ResourcesManager Interface Reference

Interface of the resourcesManager This interface is used for interaction with the unique instance of ResourcesManager. More...

Public Member Functions

string FindFirst (in ResourceList possibleResources)
 Find first available resource in a resources list. More...
 
string Find (in string policy, in ResourceList possibleResources)
 Find best available computer according to policy in a computers list. More...
 
ResourceList GetFittingResources (in ResourceParameters params) raises (SALOME::SALOME_Exception)
 Get a list of resources that are best suited to launch a container given constraints. More...
 
ResourceDefinition GetResourceDefinition (in string name)
 Get definition of a resource. More...
 
void AddResource (in ResourceDefinition new_resource, in boolean write, in string xml_file) raises (SALOME::SALOME_Exception)
 Add a new resource to the resource_manager. More...
 
void RemoveResource (in string resource_name, in boolean write, in string xml_file) raises (SALOME::SALOME_Exception)
 Remove a new resource to the resource_manager. More...
 

Detailed Description

Interface of the resourcesManager This interface is used for interaction with the unique instance of ResourcesManager.

Member Function Documentation

string Engines::ResourcesManager::FindFirst ( in ResourceList  possibleResources)

Find first available resource in a resources list.

string Engines::ResourcesManager::Find ( in string  policy,
in ResourceList  possibleResources 
)

Find best available computer according to policy in a computers list.

ResourceList Engines::ResourcesManager::GetFittingResources ( in ResourceParameters  params)
raises (SALOME::SALOME_Exception
)

Get a list of resources that are best suited to launch a container given constraints.

The constraints are resource constraints (params) and components constraints (componentList)

ResourceDefinition Engines::ResourcesManager::GetResourceDefinition ( in string  name)

Get definition of a resource.

void Engines::ResourcesManager::AddResource ( in ResourceDefinition  new_resource,
in boolean  write,
in string  xml_file 
)
raises (SALOME::SALOME_Exception
)

Add a new resource to the resource_manager.

write -> true, resource manager will add it into a xml_file xml_file -> could be empty, in this case if write is true, resource manager will write the resource in its first ResourceCatalog file

void Engines::ResourcesManager::RemoveResource ( in string  resource_name,
in boolean  write,
in string  xml_file 
)
raises (SALOME::SALOME_Exception
)

Remove a new resource to the resource_manager.

write -> true, resource manager will write a new xml_file xml_file -> could be empty, in this case if write is true, resource manager will write the resource in its first ResourceCatalog file

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS