From: secher Date: Thu, 27 Jan 2011 10:43:52 +0000 (+0000) Subject: add boolean in importDumpStateFile return function X-Git-Tag: V1_3_0rc1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=587380f66fe182963642b40f5591d6b420d14db6;p=tools%2Flibbatch.git add boolean in importDumpStateFile return function --- diff --git a/src/Core/Batch_BatchManager_eClient.cxx b/src/Core/Batch_BatchManager_eClient.cxx index b434471..a96d8a7 100644 --- a/src/Core/Batch_BatchManager_eClient.cxx +++ b/src/Core/Batch_BatchManager_eClient.cxx @@ -188,7 +188,7 @@ namespace Batch { } - void BatchManager_eClient::importDumpStateFile( const Job & job, const string directory ) + bool BatchManager_eClient::importDumpStateFile( const Job & job, const string directory ) { Parametre params = job.getParametre(); @@ -202,6 +202,7 @@ namespace Batch { cerr << mess << endl; } + bool ret = true; status = _protocol.copyFile(string(params[TMPDIR]) + string("/dumpState*.xml"), _hostname, _username, directory, "", ""); if (status) { @@ -212,7 +213,9 @@ namespace Batch { status_str << status; mess += status_str.str(); cerr << mess << endl; + ret = false; } + return ret; } MpiImpl *BatchManager_eClient::FactoryMpiImpl(string mpiImpl) diff --git a/src/Core/Batch_BatchManager_eClient.hxx b/src/Core/Batch_BatchManager_eClient.hxx index 55f299a..3c6e494 100644 --- a/src/Core/Batch_BatchManager_eClient.hxx +++ b/src/Core/Batch_BatchManager_eClient.hxx @@ -53,7 +53,7 @@ namespace Batch { CommunicationProtocolType protocolType = SSH, const char* mpiImpl="mpich1"); virtual ~BatchManager_eClient(); void importOutputFiles( const Job & job, const std::string directory ); - void importDumpStateFile( const Job & job, const std::string directory ); + bool importDumpStateFile( const Job & job, const std::string directory ); protected: const CommunicationProtocol & _protocol; // protocol to access _hostname