ROOT » NET » NET » TGrid

class TGrid: public TObject


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, 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.


Function Members (Methods)

public:
virtual~TGrid()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Bool_tCd(const char* = "", Bool_t = kFALSE)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual TGridResult*Command(const char*, Bool_t = kFALSE, UInt_t = 2)
virtual Int_tTObject::Compare(const TObject* obj) const
static TGrid*Connect(const char* grid, const char* uid = 0, const char* pw = 0, const char* options = 0)
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const char*GetGrid() const
virtual const char*GetHomeDirectory()
const char*GetHost() const
virtual const char*TObject::GetIconName() const
virtual TGridJDL*GetJDLGenerator()
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const char*GetOptions() const
Int_tGetPort() const
const char*GetPw() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
const char*GetUser() const
const char*GridUrl() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsConnected() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual Bool_tKill(TGridJob* gridjob)
virtual Bool_tKillById(TString)
virtual TGridResult*LocateSites()
virtual voidTObject::ls(Option_t* option = "") const
virtual TGridResult*Ls(const char* = "", Option_t* = "", Bool_t = kFALSE)
voidTObject::MayNotUse(const char* method) const
virtual Int_tMkdir(const char* = "", Option_t* = "", Bool_t = kFALSE)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
virtual TGridCollection*OpenCollection(const char*, UInt_t = 1000000)
virtual TGridCollection*OpenCollectionQuery(TGridResult*, Bool_t = kFALSE)
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TGrid&operator=(const TGrid&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual TGridJobStatusList*Ps(const char*, Bool_t = kTRUE)
virtual const char*Pwd(Bool_t = kFALSE)
virtual TGridResult*Query(const char*, const char*, const char* = "", const char* = "")
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual Bool_tRegister(const char*, const char*, Long_t = -1, const char* = 0, const char* = 0, Bool_t = kFALSE)
voidTObject::ResetBit(UInt_t f)
virtual Bool_tResubmit(TGridJob* gridjob)
virtual Bool_tResubmitById(TString)
virtual Bool_tRm(const char*, Option_t* = "", Bool_t = kFALSE)
virtual Bool_tRmdir(const char* = "", Option_t* = "", Bool_t = kFALSE)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShell()
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStderr()
virtual voidStdout()
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual TGridJob*Submit(const char*)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TGrid()
TGrid(const TGrid&)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
TStringfGridtype of GRID (AliEn, Globus, ...)
TStringfGridUrlthe GRID url used to create the grid connection
TStringfHostGRID portal to which we are connected
TStringfOptionsoptions specified
Int_tfPortport to which we are connected
TStringfPwuser passwd
TStringfUseruser name

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGrid * Connect(const char* grid, const char* uid = 0, const char* pw = 0, const char* options = 0)
 The grid should be of the form:  <grid>://<host>[:<port>],
 e.g.:  alien://alice.cern.ch, globus://glsrv1.cern.ch, ...
 The uid is the username and pw the password that should be used for
 the connection. Depending on the <grid> the shared library (plugin)
 for the selected system will be loaded. When the connection could not
 be opened 0 is returned. For AliEn the supported options are:
 -domain=<domain name>
 -debug=<debug level from 1 to 10>
 Example: "-domain=cern.ch -debug=5"
TGrid()
{ }
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; }
Bool_t IsConnected() const
{ return fPort == -1 ? kFALSE : kTRUE; }
void Shell()
{ MayNotUse("Shell"); }
void Stdout()
{ MayNotUse("Stdout"); }
void Stderr()
{ MayNotUse("Stderr"); }
TGridResult * Command(const char* , Bool_t = kFALSE, UInt_t = 2)
{ MayNotUse("Command"); return 0; }
TGridResult * Query(const char* , const char* , const char* = "", const char* = "")
{ MayNotUse("Query"); return 0; }
TGridResult * LocateSites()
{ MayNotUse("LocalSites"); return 0; }
TGridResult * Ls(const char* = "", Option_t* = "", Bool_t = kFALSE)
--- Catalogue Interface
{ MayNotUse("Ls"); return 0; }
const char * Pwd(Bool_t = kFALSE)
{ MayNotUse("Pwd"); return 0; }
const char * GetHomeDirectory()
{ MayNotUse("GetHomeDirectory"); return 0; }
Bool_t Cd(const char* = "", Bool_t = kFALSE)
{ MayNotUse("Cd"); return kFALSE; }
Int_t Mkdir(const char* = "", Option_t* = "", Bool_t = kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
Bool_t Rmdir(const char* = "", Option_t* = "", Bool_t = kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
Bool_t Register(const char* , const char* , Long_t = -1, const char* = 0, const char* = 0, Bool_t = kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
Bool_t Rm(const char* , Option_t* = "", Bool_t = kFALSE)
{ MayNotUse("Mkdir"); return kFALSE; }
TGridJob * Submit(const char* )
--- Job Submission Interface
{ MayNotUse("Submit"); return 0; }
TGridJDL * GetJDLGenerator()
{ MayNotUse("GetJDLGenerator"); return 0; }
TGridCollection * OpenCollection(const char* , UInt_t = 1000000)
{ MayNotUse("OpenCollection"); return 0; }
TGridCollection * OpenCollectionQuery(TGridResult* , Bool_t = kFALSE)
{ MayNotUse("OpenCollection"); return 0; }
TGridJobStatusList* Ps(const char* , Bool_t = kTRUE)
{ MayNotUse("Ps"); return 0; }
Bool_t KillById(TString )
{ MayNotUse("KillById"); return kFALSE; }
Bool_t ResubmitById(TString )
{ MayNotUse("ResubmitById"); return 0; }
Bool_t Kill(TGridJob* gridjob)
{ return ((gridjob)?KillById(gridjob->GetJobID()):kFALSE); }
Bool_t Resubmit(TGridJob* gridjob)
{ return ((gridjob)?ResubmitById(gridjob->GetJobID()):kFALSE); }