Salome HOME
PR: merge from branch BR_auto_V310 tag mergefrom_OCC_development_for_3_2_0a2_10mar06
[modules/kernel.git] / src / Batch / Batch_BatchManager_Local_RSH.hxx
1 /*
2  * BatchManager_Local_RSH.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
6  * Date   : Thu Nov  6 10:17:22 2003
7  * Projet : Salome 2
8  *
9  */
10
11 #ifndef _BATCHMANAGER_LOCAL_RSH_H_
12 #define _BATCHMANAGER_LOCAL_RSH_H_
13
14
15 #include <vector>
16 #include <map>
17 #include <queue>
18 #include <deque>
19 #include <pthread.h>
20 #include "Batch_Job.hxx"
21 #include "Batch_JobId.hxx"
22 #include "Batch_JobInfo.hxx"
23 #include "Batch_JobInfo_Local.hxx"
24 #include "Batch_Job_Local.hxx"
25 #include "Batch_InvalidArgumentException.hxx"
26 #include "Batch_ConnexionFailureException.hxx"
27 #include "Batch_APIInternalFailureException.hxx"
28 #include "Batch_NotYetImplementedException.hxx"
29 #include "Batch_BatchManager_Local.hxx"
30
31 namespace Batch {
32
33   class FactBatchManager;
34
35   class BatchManager_Local_RSH : public BatchManager_Local
36   {
37   public:
38     // Constructeur et destructeur
39     BatchManager_Local_RSH(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host
40     virtual ~BatchManager_Local_RSH();
41
42   protected:
43     // Methode abstraite qui renvoie la commande de copie du fichier source en destination
44     virtual string copy_command(const string & host_source, const string & source, const string & host_destination, const string & destination) const;
45
46     // Methode abstraite qui renvoie la commande a executer
47     virtual string exec_command(Parametre & param) const;
48
49     // Methode qui renvoie la commande d'effacement du fichier
50     virtual string remove_command(const string & host_destination, const string & destination) const;
51
52   };
53
54 }
55
56 #endif