TGridJob.h

Go to the documentation of this file.
00001 // @(#)root/net:$Id: TGridJob.h 23091 2008-04-09 15:04:27Z rdm $
00002 // Author: Jan Fiete Grosse-Oetringhaus  06/10/2004
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TGridJob
00013 #define ROOT_TGridJob
00014 
00015 //////////////////////////////////////////////////////////////////////////
00016 //                                                                      //
00017 // TGridJob                                                             //
00018 //                                                                      //
00019 // Abstract base class defining interface to a GRID job.                //
00020 //                                                                      //
00021 // Related classes are TGridJobStatus.                                  //
00022 //                                                                      //
00023 //////////////////////////////////////////////////////////////////////////
00024 
00025 #ifndef ROOT_TObject
00026 #include "TObject.h"
00027 #endif
00028 #ifndef ROOT_TString
00029 #include "TString.h"
00030 #endif
00031 
00032 
00033 class TGridJobStatus;
00034 
00035 class TGridJob : public TObject {
00036 
00037 protected:
00038    TString  fJobID;  // the job's ID
00039 
00040 public:
00041    TGridJob(TString jobID) : fJobID(jobID) { }
00042    virtual ~TGridJob() { }
00043 
00044    virtual TString GetJobID() { return fJobID; }
00045 
00046    virtual TGridJobStatus *GetJobStatus() const = 0;
00047    virtual Int_t           GetOutputSandbox(const char *localpath, Option_t *opt = 0);
00048 
00049    virtual Bool_t          Resubmit() = 0;
00050    virtual Bool_t          Cancel () = 0;
00051    ClassDef(TGridJob,1)  // ABC defining interface to a GRID job
00052 };
00053 
00054 #endif

Generated on Tue Jul 5 14:26:57 2011 for ROOT_528-00b_version by  doxygen 1.5.1