General KERNEL Documentation     End User KERNEL Services  


src/Batch/Batch_BatchManager_Local_RSH.hxx

Go to the documentation of this file.
00001 // Copyright (C) 2005  OPEN CASCADE, CEA, EDF R&D, LEG
00002 //           PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either 
00006 // version 2.1 of the License.
00007 // 
00008 // This library is distributed in the hope that it will be useful 
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00011 // Lesser General Public License for more details.
00012 // 
00013 // You should have received a copy of the GNU Lesser General Public  
00014 // License along with this library; if not, write to the Free Software 
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 // 
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 // 
00019 /*
00020  * BatchManager_Local_RSH.hxx : 
00021  *
00022  * Auteur : Ivan DUTKA-MALEN - EDF R&D
00023  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
00024  * Date   : Thu Nov  6 10:17:22 2003
00025  * Projet : Salome 2
00026  *
00027  */
00028 
00029 #ifndef _BATCHMANAGER_LOCAL_RSH_H_
00030 #define _BATCHMANAGER_LOCAL_RSH_H_
00031 
00032 
00033 #include <vector>
00034 #include <map>
00035 #include <queue>
00036 #include <deque>
00037 #include <pthread.h>
00038 #include "Batch_Job.hxx"
00039 #include "Batch_JobId.hxx"
00040 #include "Batch_JobInfo.hxx"
00041 #include "Batch_JobInfo_Local.hxx"
00042 #include "Batch_Job_Local.hxx"
00043 #include "Batch_InvalidArgumentException.hxx"
00044 #include "Batch_ConnexionFailureException.hxx"
00045 #include "Batch_APIInternalFailureException.hxx"
00046 #include "Batch_NotYetImplementedException.hxx"
00047 #include "Batch_BatchManager_Local.hxx"
00048 
00049 namespace Batch {
00050 
00051   class FactBatchManager;
00052 
00053   class BatchManager_Local_RSH : public BatchManager_Local
00054   {
00055   public:
00056     // Constructeur et destructeur
00057     BatchManager_Local_RSH(const FactBatchManager * parent, const char * host="localhost") throw(InvalidArgumentException,ConnexionFailureException); // connexion a la machine host
00058     virtual ~BatchManager_Local_RSH();
00059 
00060   protected:
00061     // Methode abstraite qui renvoie la commande de copie du fichier source en destination
00062     virtual string copy_command(const string & host_source, const string & source, const string & host_destination, const string & destination) const;
00063 
00064     // Methode abstraite qui renvoie la commande a executer
00065     virtual string exec_command(Parametre & param) const;
00066 
00067     // Methode qui renvoie la commande d'effacement du fichier
00068     virtual string remove_command(const string & host_destination, const string & destination) const;
00069 
00070   };
00071 
00072 }
00073 
00074 #endif