Logo ROOT   6.12/07
Reference Guide
TGridJob.h
Go to the documentation of this file.
1 // @(#)root/net:$Id$
2 // Author: Jan Fiete Grosse-Oetringhaus 06/10/2004
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TGridJob
13 #define ROOT_TGridJob
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TGridJob //
18 // //
19 // Abstract base class defining interface to a GRID job. //
20 // //
21 // Related classes are TGridJobStatus. //
22 // //
23 //////////////////////////////////////////////////////////////////////////
24 
25 #include "TObject.h"
26 #include "TString.h"
27 
28 
29 class TGridJobStatus;
30 
31 class TGridJob : public TObject {
32 
33 protected:
34  TString fJobID; // the job's ID
35 
36 public:
37  TGridJob(TString jobID) : fJobID(jobID) { }
38  virtual ~TGridJob() { }
39 
40  virtual TString GetJobID() { return fJobID; }
41 
42  virtual TGridJobStatus *GetJobStatus() const = 0;
43  virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt = 0);
44 
45  virtual Bool_t Resubmit() = 0;
46  virtual Bool_t Cancel () = 0;
47  ClassDef(TGridJob,1) // ABC defining interface to a GRID job
48 };
49 
50 #endif
virtual ~TGridJob()
Definition: TGridJob.h:38
const char Option_t
Definition: RtypesCore.h:62
virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt=0)
Must be implemented by actual GRID job implementation.
Definition: TGridJob.cxx:31
virtual Bool_t Cancel()=0
virtual TString GetJobID()
Definition: TGridJob.h:40
Basic string class.
Definition: TString.h:125
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual TGridJobStatus * GetJobStatus() const =0
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual Bool_t Resubmit()=0
Mother of all ROOT objects.
Definition: TObject.h:37
TGridJob(TString jobID)
Definition: TGridJob.h:37
TString fJobID
Definition: TGridJob.h:34