-// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
const std::string& resource);
std::string BuildCommandToLaunchRemoteContainer(const std::string & resource_name,
- const Engines::ContainerParameters& params,
+ const Engines::ContainerParameters& params,
const std::string& container_exe="SALOME_Container") const;
std::string BuildCommandToLaunchLocalContainer(const Engines::ContainerParameters& params,
void AddOmninamesParams(std::string& command) const;
- void AddOmninamesParams(std::ostringstream& oss) const;
-
- void AddOmninamesParams(std::ofstream& fileStream) const;
+ void AddOmninamesParams(std::ostream& fileStream) const;
static std::string BuildTemporaryFileName();
SALOME_ResourcesManager_Client *_resManager;
SALOME_NamingService *_NS;
- //! different behaviour if $APPLI exists (SALOME Application)
+ //! different behaviour if $APPLI exists (SALOME Application)
bool _isAppliSalomeDefined;
//! attribute that contains the number of processes used in batch mode by MPI containers
bool checkPaCOParameters(Engines::ContainerParameters & params, std::string resource_selected);
- Engines::Container_ptr
+ Engines::Container_ptr
StartPaCOPPContainer(const Engines::ContainerParameters& params, std::string resource_selected);
std::string BuildCommandToLaunchPaCONodeContainer(const Engines::ContainerParameters& params,
const std::string & machine_file_name,
- SALOME_ContainerManager::actual_launch_machine_t & vect_machine,
- const std::string & proxy_hostname);
+ SALOME_ContainerManager::actual_launch_machine_t & vect_machine,
+ const std::string & proxy_hostname);
void LogConfiguration(const std::string & log_type,
const std::string & exe_type,
const std::string & container_name,
const std::string & hostname,
- std::string & begin,
+ std::string & begin,
std::string & end);
- CORBA::Object_ptr
- LaunchPaCOProxyContainer(const std::string& command,
+ CORBA::Object_ptr
+ LaunchPaCOProxyContainer(const std::string& command,
const Engines::ContainerParameters& params,
const std::string& hostname);
- bool
- LaunchPaCONodeContainer(const std::string& command,
+ bool
+ LaunchPaCONodeContainer(const std::string& command,
const Engines::ContainerParameters& params,
const std::string& name,
SALOME_ContainerManager::actual_launch_machine_t & vect_machine);
// End of PaCO++ Parallel extension
public:
static char *GetenvThreadSafe(const char *name);
+ static std::string GetenvThreadSafeAsString(const char *name);
static int SystemThreadSafe(const char *command);
-private:
+ static void AddOmninamesParams(std::ostream& fileStream, SALOME_NamingService *ns);
+ static void MakeTheCommandToBeLaunchedASync(std::string& command);
+ static int GetTimeOutToLoaunchServer();
+ static void SleepInSecond(int ellapseTimeInSecond);
+ private:
+ static const int TIME_OUT_TO_LAUNCH_CONT;
static Utils_Mutex _getenvMutex;
static Utils_Mutex _systemMutex;
};