Logo ROOT  
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
Option_t
const char Option_t
Definition: RtypesCore.h:66
TGridJob::GetOutputSandbox
virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt=0)
Must be implemented by actual GRID job implementation.
Definition: TGridJob.cxx:31
TGridJob::fJobID
TString fJobID
Definition: TGridJob.h:34
TGridJob::~TGridJob
virtual ~TGridJob()
Definition: TGridJob.h:38
TString
Basic string class.
Definition: TString.h:136
TGridJobStatus
Definition: TGridJobStatus.h:26
TGridJob::Cancel
virtual Bool_t Cancel()=0
TString.h
bool
TGridJob
Definition: TGridJob.h:31
TGridJob::Resubmit
virtual Bool_t Resubmit()=0
TGridJob::TGridJob
TGridJob(TString jobID)
Definition: TGridJob.h:37
TObject.h
TGridJob::GetJobID
virtual TString GetJobID()
Definition: TGridJob.h:40
TObject
Mother of all ROOT objects.
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TGridJob::GetJobStatus
virtual TGridJobStatus * GetJobStatus() const =0
int