Salome HOME
Moved username initialization to the constructor in BatchManager_eClients
[tools/libbatch.git] / src / SSH / Batch_FactBatchManager_eSSH.cxx
index f60c9619efa3c576d1f79de3722d2da585b13ebe..4a6ef35cb7588fd86ccc76b6cb5065f5ad733bde 100644 (file)
@@ -30,6 +30,9 @@
 #include "Batch_BatchManager_eSSH.hxx"
 #include "Batch_FactBatchManager_eSSH.hxx"
 
+// Automatic register in the catalogue...
+static Batch::FactBatchManager_eSSH sFBM_eSSH;
+
 Batch::FactBatchManager_eSSH::FactBatchManager_eSSH() : FactBatchManager_eClient("eSSH") {}
 
 Batch::FactBatchManager_eSSH::~FactBatchManager_eSSH() {}
@@ -42,6 +45,7 @@ Batch::FactBatchManager_eSSH::operator() (const char * hostname) const
 
 Batch::BatchManager_eClient * 
 Batch::FactBatchManager_eSSH::operator() (const char * hostname,
+                                          const char * username,
                                   CommunicationProtocolType protocolType,
                                   const char * mpiImpl,
                                   int nb_proc_per_node) const
@@ -49,5 +53,5 @@ Batch::FactBatchManager_eSSH::operator() (const char * hostname,
   //protocolType and mpiImpl are ignored.
   std::cerr << "[Batch::FactBatchManager_eSSH] creating new Batch::BatchManager_eSSH with hostname = " << hostname << std::endl;
 
-  return new Batch::BatchManager_eSSH(this, hostname);
+  return new Batch::BatchManager_eSSH(this, hostname, username);
 }