TGLite.h

Go to the documentation of this file.
00001 // @(#) root/glite:$Id: TGLite.h 31993 2010-01-12 14:34:41Z rdm $
00002 // Author: Anar Manafov <A.Manafov@gsi.de> 2006-03-20
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 /************************************************************************/
00013 /*! \file TGLite.h
00014 Interface of the class which
00015 defines interface to gLite GRID services. *//*
00016 
00017          version number:    $LastChangedRevision: 1678 $
00018          created by:        Anar Manafov
00019                             2006-03-20
00020          last changed by:   $LastChangedBy: manafov $ $LastChangedDate: 2008-01-21 18:22:14 +0100 (Mon, 21 Jan 2008) $
00021 
00022          Copyright (c) 2006-2008 GSI GridTeam. All rights reserved.
00023 *************************************************************************/
00024 
00025 #ifndef ROOT_TGLite
00026 #define ROOT_TGLite
00027 
00028 //////////////////////////////////////////////////////////////////////////
00029 //                                                                      //
00030 // TGLite                                                               //
00031 //                                                                      //
00032 // Class defining interface to gLite GRID services.                     //
00033 //                                                                      //
00034 //////////////////////////////////////////////////////////////////////////
00035 
00036 #ifndef ROOT_TGrid
00037 #include "TGrid.h"
00038 #endif
00039 
00040 class TGLite: public TGrid
00041 {
00042 public:
00043    TGLite(const char *_gridurl, const char* /*_uid*/ = NULL, const char* /*_passwd*/ = NULL, const char* /*_options*/ = NULL);
00044    virtual ~TGLite();
00045 
00046 public:
00047    virtual Bool_t IsConnected() const;
00048 
00049    virtual void Shell();
00050    virtual void Stdout();
00051    virtual void Stderr();
00052 
00053    virtual TGridResult* Command(const char* /*command*/, Bool_t /*interactive*/ = kFALSE, UInt_t /*stream*/ = 2);
00054    virtual TGridResult* Query(const char *_path, const char *_pattern = NULL, const char* /*conditions*/ = "", const char* /*options*/ = "");
00055    virtual TGridResult* LocateSites();
00056 
00057    //--- Catalog Interface
00058    virtual TGridResult* Ls(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
00059    virtual const char* Pwd(Bool_t /*verbose*/ = kFALSE);
00060    virtual Bool_t Cd(const char *_ldn = "", Bool_t /*verbose*/ = kFALSE);
00061    virtual Int_t  Mkdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
00062    virtual Bool_t Rmdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
00063    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);
00064    virtual Bool_t Rm(const char *_lfn, Option_t* /*option*/ = "", Bool_t /*verbose*/ = kFALSE);
00065 
00066    //--- Job Submission Interface
00067    virtual TGridJob* Submit(const char *_jdl);
00068    virtual TGridJDL* GetJDLGenerator();
00069    virtual Bool_t Kill(TGridJob *_gridjob);
00070    virtual Bool_t KillById(TString _id);
00071 
00072 private:
00073    std::string fFileCatalog_WrkDir;
00074 
00075    ClassDef(TGLite, 1) // Interface to gLite Grid services
00076 };
00077 
00078 #endif

Generated on Tue Jul 5 14:45:39 2011 for ROOT_528-00b_version by  doxygen 1.5.1