Logo ROOT   6.14/05
Reference Guide
TGLite.h
Go to the documentation of this file.
1 // @(#) root/glite:$Id$
2 // Author: Anar Manafov <A.Manafov@gsi.de> 2006-03-20
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 /************************************************************************/
13 /*! \file TGLite.h
14 Interface of the class which
15 defines interface to gLite GRID services. *//*
16 
17  version number: $LastChangedRevision: 1678 $
18  created by: Anar Manafov
19  2006-03-20
20  last changed by: $LastChangedBy: manafov $ $LastChangedDate: 2008-01-21 18:22:14 +0100 (Mon, 21 Jan 2008) $
21 
22  Copyright (c) 2006-2008 GSI GridTeam. All rights reserved.
23 *************************************************************************/
24 
25 #ifndef ROOT_TGLite
26 #define ROOT_TGLite
27 
28 //////////////////////////////////////////////////////////////////////////
29 // //
30 // TGLite //
31 // //
32 // Class defining interface to gLite GRID services. //
33 // //
34 //////////////////////////////////////////////////////////////////////////
35 
36 #include "TGrid.h"
37 
38 class TGLite: public TGrid
39 {
40 public:
41  TGLite(const char *_gridurl, const char* /*_uid*/ = NULL, const char* /*_passwd*/ = NULL, const char* /*_options*/ = NULL);
42  virtual ~TGLite();
43 
44 public:
45  virtual Bool_t IsConnected() const;
46 
47  virtual void Shell();
48  virtual void Stdout();
49  virtual void Stderr();
50 
51  virtual TGridResult* Command(const char* /*command*/, Bool_t /*interactive*/ = kFALSE, UInt_t /*stream*/ = 2);
52  virtual TGridResult* Query(const char *_path, const char *_pattern = NULL, const char* /*conditions*/ = "", const char* /*options*/ = "");
53  virtual TGridResult* LocateSites();
54 
55  //--- Catalog Interface
56  virtual TGridResult* Ls(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
57  virtual const char* Pwd(Bool_t /*verbose*/ = kFALSE);
58  virtual Bool_t Cd(const char *_ldn = "", Bool_t /*verbose*/ = kFALSE);
59  virtual Int_t Mkdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
60  virtual Bool_t Rmdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
61  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);
62  virtual Bool_t Rm(const char *_lfn, Option_t* /*option*/ = "", Bool_t /*verbose*/ = kFALSE);
63 
64  //--- Job Submission Interface
65  virtual TGridJob* Submit(const char *_jdl);
66  virtual TGridJDL* GetJDLGenerator();
67  virtual Bool_t Kill(TGridJob *_gridjob);
68  virtual Bool_t KillById(TString _id);
69 
70 private:
71  std::string fFileCatalog_WrkDir;
72 
73  ClassDef(TGLite, 1) // Interface to gLite Grid services
74 };
75 
76 #endif
virtual TGridResult * LocateSites()
Not implemented for RGLite.
Definition: TGLite.cxx:333
virtual TGridJob * Submit(const char *_jdl)
Definition: TGLite.cxx:577
Definition: TGLite.h:38
virtual Bool_t IsConnected() const
Use this method to find out whether the RGLite plug-in is connected to gLite UI or not...
Definition: TGLite.cxx:245
const char Option_t
Definition: RtypesCore.h:62
virtual TGridJDL * GetJDLGenerator()
Not implemented for RGLite.
Definition: TGLite.cxx:611
virtual void Stdout()
Not implemented for RGLite.
Definition: TGLite.cxx:263
virtual Bool_t KillById(TString _id)
A Grid Job operations method, it cancels a gLite job by the given id.
Definition: TGLite.cxx:641
virtual Int_t Mkdir(const char *_ldn="", Option_t *="", Bool_t=kFALSE)
A File Catalog method.
Definition: TGLite.cxx:447
virtual Bool_t Rm(const char *_lfn, Option_t *="", Bool_t=kFALSE)
A File Catalog method, it removes an LFC file entry from the name server.
Definition: TGLite.cxx:549
Basic string class.
Definition: TString.h:131
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Bool_t Kill(TGridJob *_gridjob)
A Grid Job operations method, it cancels a given gLite job.
Definition: TGLite.cxx:625
virtual Bool_t Rmdir(const char *_ldn="", Option_t *="", Bool_t=kFALSE)
A File Catalog method, it removes a directory from the name server if it is an empty one...
Definition: TGLite.cxx:480
virtual Bool_t Cd(const char *_ldn="", Bool_t=kFALSE)
A File Catalog method.
Definition: TGLite.cxx:414
virtual void Stderr()
Not implemented for RGLite.
Definition: TGLite.cxx:272
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual ~TGLite()
Destructor.
Definition: TGLite.cxx:235
virtual const char * Pwd(Bool_t=kFALSE)
A File Catalog method.
Definition: TGLite.cxx:385
virtual TGridResult * Ls(const char *_ldn="", Option_t *="", Bool_t=kFALSE)
Definition: TGLite.cxx:341
TGLite(const char *_gridurl, const char *=NULL, const char *=NULL, const char *=NULL)
Initializing the RGLite plug-in and making a connection to gLite UI.
Definition: TGLite.cxx:219
unsigned int UInt_t
Definition: RtypesCore.h:42
virtual void Shell()
Not implemented for RGLite.
Definition: TGLite.cxx:254
const Bool_t kFALSE
Definition: RtypesCore.h:88
long Long_t
Definition: RtypesCore.h:50
std::string fFileCatalog_WrkDir
Definition: TGLite.h:71
virtual Bool_t Register(const char *_lfn, const char *_turl, Long_t=-1, const char *_se=0, const char *_guid=0, Bool_t=kFALSE)
A File Catalog method, it creates a new LFC file in the name server and registering a replication...
Definition: TGLite.cxx:516
virtual TGridResult * Query(const char *_path, const char *_pattern=NULL, const char *="", const char *="")
A File Catalog method.
Definition: TGLite.cxx:300
Definition: TGrid.h:45
virtual TGridResult * Command(const char *, Bool_t=kFALSE, UInt_t=2)
Not implemented for RGLite.
Definition: TGLite.cxx:281