library: libCore #include "TGrid.h"

# TGrid

class description - source file - inheritance tree (.pdf)

## class TGrid : public TObject

| Inheritance Chart:
`TObject`
| <- | `TGrid` |

        public:

                               TGrid()
                               TGrid(const TGrid&)
                       virtual ~TGrid()
                static TClass* Class()
          virtual TGridResult* Command(const char*, Bool_t = kFALSE)
                 static TGrid* Connect(const char* grid, const char* uid = "0", const char* pw = "0", const char* options = "0")
                   const char* GetGrid() const
                   const char* GetHost() const
             virtual TGridJDL* GetJDLGenerator()
                   const char* GetOptions() const
                         Int_t GetPort() const
                   const char* GetPw() const
                   const char* GetUser() const
                   const char* GridUrl() const
               virtual TClass* IsA() const
                virtual Bool_t IsConnected() const
          virtual TGridResult* LocateSites()
                        TGrid& operator=(const TGrid&)
          virtual TGridResult* Query(const char*, const char*, const char*, const char*)
                virtual Bool_t Query2Dataset(TDSet*, const char*, const char*, const char*, const char*)
                  virtual void Shell()
                  virtual void ShowMembers(TMemberInspector& insp, char* parent)
                  virtual void Stderr()
                  virtual void Stdout()
                  virtual void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)
             virtual TGridJob* Submit(const char*)

### Data Members

        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

## 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"

### Inline Functions

                    void ~TGrid()
                   TGrid TGrid()
             const char* GridUrl() const
             const char* GetGrid() const
             const char* GetHost() const
             const char* GetUser() const
             const char* GetPw() const
             const char* GetOptions() const
                   Int_t GetPort() const
                  Bool_t IsConnected() const
                    void Shell()
                    void Stdout()
                    void Stderr()
            TGridResult* Command(const char*, Bool_t = kFALSE)
            TGridResult* Query(const char*, const char*, const char*, const char*)
            TGridResult* LocateSites()
                  Bool_t Query2Dataset(TDSet*, const char*, const char*, const char*, const char*)
               TGridJob* Submit(const char*)
               TGridJDL* GetJDLGenerator()
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
                   TGrid TGrid(const TGrid&)
                  TGrid& operator=(const TGrid&)

Author: Fons Rademakers 3/1/2002
Last update: root/net:$Name: $:$Id: TGrid.cxx,v 1.12 2005/05/27 13:47:37 rdm Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *