// @(#)root/net:$Id$
// Author: Jan Fiete Grosse-Oetringhaus  06/10/2004

/*************************************************************************
 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGridJob
#define ROOT_TGridJob

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TGridJob                                                             //
//                                                                      //
// Abstract base class defining interface to a GRID job.                //
//                                                                      //
// Related classes are TGridJobStatus.                                  //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif


class TGridJobStatus;

class TGridJob : public TObject {

protected:
   TString  fJobID;  // the job's ID

public:
   TGridJob(TString jobID) : fJobID(jobID) { }
   virtual ~TGridJob() { }

   virtual TString GetJobID() { return fJobID; }

   virtual TGridJobStatus *GetJobStatus() const = 0;
   virtual Int_t           GetOutputSandbox(const char *localpath, Option_t *opt = 0);

   virtual Bool_t          Resubmit() = 0;
   virtual Bool_t          Cancel () = 0;
   ClassDef(TGridJob,1)  // ABC defining interface to a GRID job
};

#endif
 TGridJob.h:1
 TGridJob.h:2
 TGridJob.h:3
 TGridJob.h:4
 TGridJob.h:5
 TGridJob.h:6
 TGridJob.h:7
 TGridJob.h:8
 TGridJob.h:9
 TGridJob.h:10
 TGridJob.h:11
 TGridJob.h:12
 TGridJob.h:13
 TGridJob.h:14
 TGridJob.h:15
 TGridJob.h:16
 TGridJob.h:17
 TGridJob.h:18
 TGridJob.h:19
 TGridJob.h:20
 TGridJob.h:21
 TGridJob.h:22
 TGridJob.h:23
 TGridJob.h:24
 TGridJob.h:25
 TGridJob.h:26
 TGridJob.h:27
 TGridJob.h:28
 TGridJob.h:29
 TGridJob.h:30
 TGridJob.h:31
 TGridJob.h:32
 TGridJob.h:33
 TGridJob.h:34
 TGridJob.h:35
 TGridJob.h:36
 TGridJob.h:37
 TGridJob.h:38
 TGridJob.h:39
 TGridJob.h:40
 TGridJob.h:41
 TGridJob.h:42
 TGridJob.h:43
 TGridJob.h:44
 TGridJob.h:45
 TGridJob.h:46
 TGridJob.h:47
 TGridJob.h:48
 TGridJob.h:49
 TGridJob.h:50
 TGridJob.h:51
 TGridJob.h:52
 TGridJob.h:53
 TGridJob.h:54