From 587380f66fe182963642b40f5591d6b420d14db6 Mon Sep 17 00:00:00 2001 From: secher Date: Thu, 27 Jan 2011 10:43:52 +0000 Subject: [PATCH] add boolean in importDumpStateFile return function --- src/Core/Batch_BatchManager_eClient.cxx | 5 ++++- src/Core/Batch_BatchManager_eClient.hxx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2