Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
29class TGridJobStatus;
30
31class TGridJob : public TObject {
32
33protected:
34 TString fJobID; // the job's ID
35
36public:
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 = nullptr);
44
45 virtual Bool_t Resubmit() = 0;
46 virtual Bool_t Cancel () = 0;
47 ClassDefOverride(TGridJob,1) // ABC defining interface to a GRID job
48};
49
50#endif
const char Option_t
Definition RtypesCore.h:66
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
TString fJobID
Definition TGridJob.h:34
TGridJob(TString jobID)
Definition TGridJob.h:37
virtual ~TGridJob()
Definition TGridJob.h:38
virtual TGridJobStatus * GetJobStatus() const =0
virtual TString GetJobID()
Definition TGridJob.h:40
virtual Bool_t Cancel()=0
virtual Int_t GetOutputSandbox(const char *localpath, Option_t *opt=nullptr)
Must be implemented by actual GRID job implementation.
Definition TGridJob.cxx:31
virtual Bool_t Resubmit()=0
Mother of all ROOT objects.
Definition TObject.h:41
Basic string class.
Definition TString.h:139