Salome HOME
bug on ccrt + eris
[tools/libbatch.git] / src / SSH / Batch_FactBatchManager_eSSH.cxx
index 0c8d153e4e12540ef241231ed161486e1278bbcd..e016473ad66b48fecda4705f86e84445729cf8d6 100644 (file)
@@ -1,4 +1,4 @@
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+//  Copyright (C) 2007-2012  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
@@ -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);
 }