+ //! different behaviour if $APPLI exists (SALOME Application)
+ bool _isAppliSalomeDefined;
+
+ //! attribute that contains the number of processes used in batch mode by MPI containers
+ int _nbprocUsed;
+
+ static omni_mutex _numInstanceMutex ; // lib and instance protection
+
+ //! attributes to allow concurrency for // GiveContainer
+ Utils_Mutex _giveContainerMutex1;
+
+ pid_t _pid_mpiServer;
+
+ // Begin of PacO++ Parallel extension
+ typedef std::vector<std::string> actual_launch_machine_t;
+
+ bool checkPaCOParameters(Engines::ContainerParameters & params, std::string resource_selected);
+
+ Engines::Container_ptr
+ StartPaCOPPContainer(const Engines::ContainerParameters& params, std::string resource_selected);
+
+
+
+ std::string BuildCommandToLaunchPaCOProxyContainer(const Engines::ContainerParameters& params,
+ std::string machine_file_name,
+ std::string & proxy_hostname);
+
+ 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);
+
+ 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 & end);
+
+ CORBA::Object_ptr
+ LaunchPaCOProxyContainer(const std::string& command,
+ const Engines::ContainerParameters& params,
+ const std::string& hostname);
+
+ 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);
+ 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;
+};