Version: 9.12.0
SALOME_ContainerManager.cxx File Reference
#include "SALOME_ContainerManager.hxx"
#include "SALOME_ResourcesManager.hxx"
#include "SALOME_LoadRateManager.hxx"
#include "SALOME_NamingService.hxx"
#include "SALOME_ResourcesManager_Client.hxx"
#include "SALOME_Embedded_NamingService.hxx"
#include "SALOME_ModuleCatalog.hh"
#include "Basics_Utils.hxx"
#include "Basics_DirUtils.hxx"
#include "PythonCppUtils.hxx"
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <unistd.h>
#include <vector>
#include "Utils_CorbaException.hxx"
#include <sstream>
#include <string>
#include <queue>
#include <thread>
#include <chrono>
#include <SALOMEconfig.h>
#include <CORBA_CLIENT_HEADER(SALOME_Session)>
Include dependency graph for SALOME_ContainerManager.cxx:

Functions

bool isPythonContainer (const char *ContainerName)
 This is no longer valid (C++ container are also python containers) More...
 
std::string getScriptTemplateFilePath ()
 Return a path to the directory with scripts templates. More...
 
std::string GetCommandFromTemplate (const std::string &theScriptName, std::queue< std::string > &theScriptParameters)
 Return a command line constructed based on Python scripts templates. More...
 

Function Documentation

◆ GetCommandFromTemplate()

std::string GetCommandFromTemplate ( const std::string &  theScriptName,
std::queue< std::string > &  theScriptParameters 
)

Return a command line constructed based on Python scripts templates.

Parameters
theScriptNamethe name of Python script template
theScriptParametersthe queue of parameter values
Returns
the command line constructed according to the given parameters

References pythfilter::args, TestKernelHelpers::command, getScriptTemplateFilePath(), MESSAGE, and test::res.

Referenced by SALOME_ContainerManager::BuildCommandToLaunchLocalContainer(), and SALOME_ContainerManager::getCommandToRunRemoteProcessCommon().

◆ getScriptTemplateFilePath()

std::string getScriptTemplateFilePath ( )

Return a path to the directory with scripts templates.

Returns
the path pointed by SALOME_KERNEL_SCRIPTS_DIR environment variable, if it is defined, ${KERNEL_ROOT_DIR}/share/salome/resources/separator/kernel/ScriptsTemplate - otherwise

References SALOME_ContainerManager::GetenvThreadSafeAsString().

Referenced by GetCommandFromTemplate().

◆ isPythonContainer()

bool isPythonContainer ( const char *  ContainerName)

This is no longer valid (C++ container are also python containers)

References TestKernelHelpers::ret.

Referenced by SALOME_ContainerManager::BuildCommandToLaunchLocalContainer(), and SALOME_ContainerManager::BuildTempFileToLaunchRemoteContainer().