From 85825d340ade79566219a102a951e8a647202be5 Mon Sep 17 00:00:00 2001 From: Konstantin Leontev Date: Tue, 1 Aug 2023 15:20:28 +0100 Subject: [PATCH] [bos #35138][EDF] (2023-T1) Specialization of resources in KERNEL. --- src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx index 73264d69f..7aed80bbd 100644 --- a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx +++ b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx @@ -451,9 +451,9 @@ CORBA::Long MeshJobManager_i::initialize(const MESHJOB::MeshJobFileList & meshJo //const char * resourceName = "nepal@nepal"; const char * resourceName = _configMap[configId].resname; - Engines::ResourceDefinition * resourceDefinition; + Engines::ResourceDefinitionContainer* resourceDefinition; try { - resourceDefinition = _resourcesManager->GetResourceDefinition(resourceName); + resourceDefinition = _resourcesManager->GetResourceDefinitionContainer(resourceName); } catch (const CORBA::SystemException& ex) { _lastErrorMessage = std::string("We can not access the resource ") + std::string(resourceName); @@ -664,11 +664,8 @@ std::vector * MeshJobManager_i::_getResourceNames() { // // These part is just to control the available resources // - Engines::ResourceParameters params; - KERNEL::getLifeCycleCORBA()->preSet(params); - - Engines::ResourceList * resourceList = _resourcesManager->GetFittingResources(params); - Engines::ResourceDefinition * resourceDefinition = NULL; + Engines::ResourceList* resourceList = _resourcesManager->ListAllResourcesInCatalogContainer(); + Engines::ResourceDefinitionContainer* resourceDefinition = nullptr; LOG("### resource list:"); std::vector* resourceNames = new std::vector(); if (resourceList) { @@ -676,7 +673,7 @@ std::vector * MeshJobManager_i::_getResourceNames() { const char* aResourceName = (*resourceList)[i]; resourceNames->push_back(std::string(aResourceName)); LOG("resource["<GetResourceDefinition(aResourceName); + resourceDefinition = _resourcesManager->GetResourceDefinitionContainer(aResourceName); LOG("protocol["<protocol); (void)resourceDefinition; // unused in release mode } -- 2.39.2