Salome HOME
Merging from V4_1_0_maintainance for porting on Win32 Platform
[modules/kernel.git] / src / Batch / Batch_BatchManager_Local_SH.hxx
1 // Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
2 //           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either 
6 // version 2.1 of the License.
7 // 
8 // This library is distributed in the hope that it will be useful 
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
11 // Lesser General Public License for more details.
12 // 
13 // You should have received a copy of the GNU Lesser General Public  
14 // License along with this library; if not, write to the Free Software 
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 // 
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 // 
19 /*
20  * BatchManager_Local_SH.hxx : 
21  *
22  * Auteur : Ivan DUTKA-MALEN - EDF R&D
23  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
24  * Date   : Thu Nov  6 10:17:22 2003
25  * Projet : Salome 2
26  *
27  */
28
29 #ifndef _BATCHMANAGER_LOCAL_SH_H_
30 #define _BATCHMANAGER_LOCAL_SH_H_
31
32 #include "Batch_Defines.hxx"
33
34 #include <vector>
35 #include <map>
36 #include <queue>
37 #include <deque>
38 #include <pthread.h>
39 #include "Batch_Job.hxx"
40 #include "Batch_JobId.hxx"
41 #include "Batch_JobInfo.hxx"
42 #include "Batch_JobInfo_Local.hxx"
43 #include "Batch_Job_Local.hxx"
44 #include "Batch_InvalidArgumentException.hxx"
45 #include "Batch_ConnexionFailureException.hxx"
46 #include "Batch_APIInternalFailureException.hxx"
47 #include "Batch_NotYetImplementedException.hxx"
48 #include "Batch_BatchManager_Local.hxx"
49
50 namespace Batch {
51
52   class FactBatchManager;
53
54   class BATCH_EXPORT BatchManager_Local_SH : public BatchManager_Local
55   {
56   public:
57     // Constructeur et destructeur
58     BatchManager_Local_SH(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host
59     virtual ~BatchManager_Local_SH();
60
61   protected:
62     // Methode qui renvoie la commande de copie du fichier source en destination
63     virtual std::string copy_command( const std::string & host_source,
64                                       const std::string & source,
65                                       const std::string & host_destination,
66                                       const std::string & destination) const;
67
68     // Methode qui renvoie la commande a executer
69     virtual std::string exec_command(Parametre & param) const;
70
71     // Methode qui renvoie la commande d'effacement du fichier
72     virtual std::string remove_command( const std::string & host_destination,
73                                         const std::string & destination) const;
74
75   };
76
77 }
78
79 #endif