TGrid


class description - source file - inheritance tree

class TGrid : public TObject


    public:
virtual void ~TGrid() virtual Int_t AddAttribute(const char* lfn, const char* attrname, const char* attrval) virtual Int_t AddFile(const char* lfn, const char* pfn, Int_t size) virtual void Browse(TBrowser* b) virtual Int_t Cd(const char* dir = "0") const void cd(const char* dir = "0") const static TClass* Class() virtual void Close(Option_t* option) static TGrid* Connect(const char* grid, const char* uid = "0", const char* pw = "0", const char* options = "0") virtual Int_t DeleteAttribute(const char* lfn, const char* attrname) virtual Int_t DeleteFile(const char* lfn) virtual TGridResult* GetAttributes(const char* lfn) const char* GetGrid() const const char* GetHost() const virtual const char* GetInfo() const virtual Int_t GetPathInfo(const char* lfn, Long_t* size, Long_t* flags, Long_t* modtime) virtual char* GetPhysicalFileName(const char* lfn) virtual TGridResult* GetPhysicalFileNames(const char* lfn) Int_t GetPort() const virtual TClass* IsA() const Bool_t IsConnected() const virtual TGridResult* Ls(const char* dir = "0", const char* options = "0") const void ls(const char* dir, const char* options) const virtual void ls(const char* dir = "0") const virtual Int_t Mkdir(const char* dir, const char* options = "0") virtual const char* Pwd() const void pwd() const virtual TGridResult* Query(const char* wildcard) virtual Int_t Rmdir(const char* dir, const char* options = "0") virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members


    protected:
TString fGrid type of GRID (AliEn, Globus, ...) TString fHost GRID portal to which we are connected Int_t fPort port to which we are connected

Class Description

                                                                      
 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.                                     
                                                                      


TGrid* Connect(const char *grid, const char *uid, const char *pw, const char *options)
 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"

void pwd() const
 Print current working directory.

void cd(const char *dir) const
 Change working directory.

void ls(const char *dir, const char *options) const
 List content of current directory.
 Supported options:
  "l": long listing format
  "a": list all entries
  "d": list only directories



Inline Functions


                void Close(Option_t* option)
        TGridResult* Query(const char* wildcard)
               Int_t AddFile(const char* lfn, const char* pfn, Int_t size)
               Int_t DeleteFile(const char* lfn)
               Int_t Mkdir(const char* dir, const char* options = "0")
               Int_t Rmdir(const char* dir, const char* options = "0")
               char* GetPhysicalFileName(const char* lfn)
        TGridResult* GetPhysicalFileNames(const char* lfn)
               Int_t GetPathInfo(const char* lfn, Long_t* size, Long_t* flags, Long_t* modtime)
               Int_t AddAttribute(const char* lfn, const char* attrname, const char* attrval)
               Int_t DeleteAttribute(const char* lfn, const char* attrname)
        TGridResult* GetAttributes(const char* lfn)
         const char* Pwd() const
               Int_t Cd(const char* dir = "0") const
        TGridResult* Ls(const char* dir = "0", const char* options = "0") const
                void Browse(TBrowser* b)
                void ls(const char* dir = "0") const
         const char* GetInfo() const
         const char* GetGrid() const
         const char* GetHost() const
               Int_t GetPort() const
              Bool_t IsConnected() const
             TClass* Class()
             TClass* IsA() const
                void ShowMembers(TMemberInspector& insp, char* parent)
                void Streamer(TBuffer& b)
                void StreamerNVirtual(TBuffer& b)
                void ~TGrid()


Author: Fons Rademakers 3/1/2002
Last update: root/net:$Name: $:$Id: TGrid.cxx,v 1.5 2002/07/16 13:59:19 rdm Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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.