ROOT  6.06/09
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 #ifndef ROOT_TObject
26 #include "TObject.h"
27 #endif
28 #ifndef ROOT_TString
29 #include "TString.h"
30 #endif
31 
32 
33 class TGridJobStatus;
34 
35 class TGridJob : public TObject {
36 
37 protected:
38  TString fJobID; // the job's ID
39 
40 public:
41  TGridJob(TString jobID) : fJobID(jobID) { }
42  virtual ~TGridJob() { }
43 
44  virtual TString GetJobID() { return fJobID; }
45 
46  virtual TGridJobStatus *GetJobStatus() const = 0;
47  virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt = 0);
48 
49  virtual Bool_t Resubmit() = 0;
50  virtual Bool_t Cancel () = 0;
51  ClassDef(TGridJob,1) // ABC defining interface to a GRID job
52 };
53 
54 #endif
ClassImp(TAlienJob) TGridJobStatus *TAlienJob jobID
Queries the job for its status and returns a TGridJobStatus object.
Definition: TAlienJob.cxx:38
virtual ~TGridJob()
Definition: TGridJob.h:42
const char Option_t
Definition: RtypesCore.h:62
virtual Bool_t Cancel()=0
virtual TString GetJobID()
Definition: TGridJob.h:44
Basic string class.
Definition: TString.h:137
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:254
virtual Bool_t Resubmit()=0
Mother of all ROOT objects.
Definition: TObject.h:58
TGridJob(TString jobID)
Definition: TGridJob.h:41
virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt=0)
TString fJobID
Definition: TGridJob.h:38