Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGridJob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/net:$Id$
0002 // Author: Jan Fiete Grosse-Oetringhaus  06/10/2004
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGridJob
0013 #define ROOT_TGridJob
0014 
0015 //////////////////////////////////////////////////////////////////////////
0016 //                                                                      //
0017 // TGridJob                                                             //
0018 //                                                                      //
0019 // Abstract base class defining interface to a GRID job.                //
0020 //                                                                      //
0021 // Related classes are TGridJobStatus.                                  //
0022 //                                                                      //
0023 //////////////////////////////////////////////////////////////////////////
0024 
0025 #include "TObject.h"
0026 #include "TString.h"
0027 
0028 
0029 class TGridJobStatus;
0030 
0031 class TGridJob : public TObject {
0032 
0033 protected:
0034    TString  fJobID;  // the job's ID
0035 
0036 public:
0037    TGridJob(TString jobID) : fJobID(jobID) { }
0038    virtual ~TGridJob() { }
0039 
0040    virtual TString GetJobID() { return fJobID; }
0041 
0042    virtual TGridJobStatus *GetJobStatus() const = 0;
0043    virtual Int_t           GetOutputSandbox(const char *localpath, Option_t *opt = nullptr);
0044 
0045    virtual Bool_t          Resubmit() = 0;
0046    virtual Bool_t          Cancel () = 0;
0047    ClassDefOverride(TGridJob,1)  // ABC defining interface to a GRID job
0048 };
0049 
0050 #endif