-// Copyright (C) 2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2019-2021 CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
SALOME_ExternalServerLauncher(const SALOME_CPythonHelper *pyHelper, CORBA::ORB_ptr orb, PortableServer::POA_var poa);
virtual ~SALOME_ExternalServerLauncher();
public:
- SALOME::ExternalServerHandler_ptr launchServer(const char *server_name, const SALOME::CmdList& command_list ) override;
+ SALOME::ExternalServerHandler_ptr launchServer(const char *server_name, const char *working_dir, const SALOME::CmdList& command_list ) override;
void registerToKill(const char *server_name, CORBA::Long PID) override;
void cleanServersInNS() override;
void shutdownServers() override;
SALOME::StringVec *listServersInNS() override;
SALOME::ExternalServerHandler_ptr retrieveServerRefGivenNSEntry( const char *ns_entry ) override;
char *gethostname() override;
+ SALOME::ByteVec *fetchContentOfFileAndRm(const char *file_name) override;
const SALOME_CPythonHelper *getPyHelper() const { return _pyHelper; }
private:
static std::string CreateAbsNameInNSFromServerName(const std::string& scopeName);
SALOME_NamingService *_NS = nullptr;
PortableServer::POA_var _poa;
static unsigned CNT;
+ std::vector<long> _list_of_pids_to_kill;
+ public:
+ static const char NAME_IN_NS[];
};