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:
TGrid()
TGrid(const TGrid&)
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 Bool_tMkdir(const char* = "", Option_t* = "", Bool_t = kFALSE)
virtual Bool_tTObject::Notify()
virtual TGridCollection*OpenCollection(const char*, UInt_t = 1000000)
virtual TGridCollection*OpenCollectionQuery(TGridResult*, Bool_t = kFALSE)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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(basic_ostream<char,char_traits<char> >& 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, char* parent)
virtual voidStderr()
virtual voidStdout()
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
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:
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
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(const TGrid& )
{ }
virtual ~TGrid()
{ }
const char * GridUrl()
{ return fGridUrl; }
const char * GetGrid()
{ return fGrid; }
const char * GetHost()
{ return fHost; }
const char * GetUser()
{ return fUser; }
const char * GetPw()
{ return fPw; }
const char * GetOptions()
{ return fOptions; }
Int_t GetPort()
{ return fPort; }
Bool_t IsConnected()
{ 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; }
Bool_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); }

Author: Fons Rademakers 3/1/2002
Last change: root/net:$Id: TGrid.h 23091 2008-04-09 15:04:27Z rdm $
Last generated: 2008-06-25 08:46
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.