/usr/include/root/TGrid.h is in libroot-net-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | // @(#)root/net:$Id$
// Author: Fons Rademakers 3/1/2002
/*************************************************************************
* Copyright (C) 1995-2002, 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_TGrid
#define ROOT_TGrid
//////////////////////////////////////////////////////////////////////////
// //
// TGrid //
// //
// Abstract base class defining interface to common GRID services. //
// //
// To open a connection to a GRID use the static method Connect(). //
// The argument of Connect() is of the form: //
// <grid>://<host>[:<port>], e.g. //
// alien://alice.cern.ch, globus://glsvr1.cern.ch, ... //
// Depending on the <grid> specified an appropriate plugin library //
// will be loaded which will provide the real interface. //
// //
// Related classes are TGridResult. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_TString
#include "TString.h"
#endif
#ifndef ROOT_TGridJob
#include "TGridJob.h"
#endif
class TGridResult;
class TGridJDL;
class TGridJob;
class TGridCollection;
class TGridJobStatusList;
class TGrid : public TObject {
protected:
TString fGridUrl; // the GRID url used to create the grid connection
TString fGrid; // type of GRID (AliEn, Globus, ...)
TString fHost; // GRID portal to which we are connected
TString fUser; // user name
TString fPw; // user passwd
TString fOptions; // options specified
Int_t fPort; // port to which we are connected
public:
TGrid() : fGridUrl(), fGrid(), fHost(), fUser(), fPw(), fOptions(), fPort(-1) { }
virtual ~TGrid() { }
const char *GridUrl() const { return fGridUrl; }
const char *GetGrid() const { return fGrid; }
const char *GetHost() const { return fHost; }
const char *GetUser() const { return fUser; }
const char *GetPw() const { return fPw; }
const char *GetOptions() const { return fOptions; }
Int_t GetPort() const { return fPort; }
virtual Bool_t IsConnected() const { return fPort == -1 ? kFALSE : kTRUE; }
virtual void Shell() { MayNotUse("Shell"); }
virtual void Stdout() { MayNotUse("Stdout"); }
virtual void Stderr() { MayNotUse("Stderr"); }
virtual TGridResult *Command(const char * /*command*/,
Bool_t /*interactive*/ = kFALSE,
UInt_t /*stream*/ = 2)
{ MayNotUse("Command"); return 0; }
virtual TGridResult *Query(const char * /*path*/, const char * /*pattern*/,
const char * /*conditions*/ = "", const char * /*options*/ = "")
{ MayNotUse("Query"); return 0; }
virtual TGridResult *LocateSites() { MayNotUse("LocalSites"); return 0; }
//--- Catalogue Interface
virtual TGridResult *Ls(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Ls"); return 0; }
virtual const char *Pwd(Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Pwd"); return 0; }
virtual const char *GetHomeDirectory()
{ MayNotUse("GetHomeDirectory"); return 0; }
virtual Bool_t Cd(const char* /*ldn*/ ="",Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Cd"); return kFALSE; }
virtual Int_t Mkdir(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
virtual Bool_t Rmdir(const char* /*ldn*/ ="", Option_t* /*options*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
virtual Bool_t Register(const char* /*lfn*/ , const char* /*turl*/ , Long_t /*size*/ =-1, const char* /*se*/ =0, const char* /*guid*/ =0, Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
virtual Bool_t Rm(const char* /*lfn*/ , Option_t* /*option*/ ="", Bool_t /*verbose*/ =kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
//--- Job Submission Interface
virtual TGridJob *Submit(const char * /*jdl*/)
{ MayNotUse("Submit"); return 0; }
virtual TGridJDL *GetJDLGenerator()
{ MayNotUse("GetJDLGenerator"); return 0; }
virtual TGridCollection *OpenCollection(const char *, UInt_t /*maxentries*/ = 1000000)
{ MayNotUse("OpenCollection"); return 0; }
virtual TGridCollection *OpenCollectionQuery(TGridResult * /*queryresult*/,Bool_t /*nogrouping*/ = kFALSE)
{ MayNotUse("OpenCollection"); return 0; }
virtual TGridJobStatusList* Ps(const char* /*options*/, Bool_t /*verbose*/ = kTRUE)
{ MayNotUse("Ps"); return 0; }
virtual Bool_t KillById(TString /*jobid*/)
{ MayNotUse("KillById"); return kFALSE; }
virtual Bool_t ResubmitById(TString /*jobid*/)
{ MayNotUse("ResubmitById"); return 0; }
virtual Bool_t Kill(TGridJob *gridjob)
{ return ((gridjob)?KillById(gridjob->GetJobID()):kFALSE); }
virtual Bool_t Resubmit(TGridJob* gridjob)
{ return ((gridjob)?ResubmitById(gridjob->GetJobID()):kFALSE); }
//--- Load desired plugin and setup conection to GRID
static TGrid *Connect(const char *grid, const char *uid = 0,
const char *pw = 0, const char *options = 0);
ClassDef(TGrid,0) // ABC defining interface to GRID services
};
R__EXTERN TGrid *gGrid;
#endif
|