ROOT  6.06/09
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 #ifndef ROOT_TGrid
37 #include "TGrid.h"
38 #endif
39 
40 class TGLite: public TGrid
41 {
42 public:
43  TGLite(const char *_gridurl, const char* /*_uid*/ = NULL, const char* /*_passwd*/ = NULL, const char* /*_options*/ = NULL);
44  virtual ~TGLite();
45 
46 public:
47  virtual Bool_t IsConnected() const;
48 
49  virtual void Shell();
50  virtual void Stdout();
51  virtual void Stderr();
52 
53  virtual TGridResult* Command(const char* /*command*/, Bool_t /*interactive*/ = kFALSE, UInt_t /*stream*/ = 2);
54  virtual TGridResult* Query(const char *_path, const char *_pattern = NULL, const char* /*conditions*/ = "", const char* /*options*/ = "");
55  virtual TGridResult* LocateSites();
56 
57  //--- Catalog Interface
58  virtual TGridResult* Ls(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
59  virtual const char* Pwd(Bool_t /*verbose*/ = kFALSE);
60  virtual Bool_t Cd(const char *_ldn = "", Bool_t /*verbose*/ = kFALSE);
61  virtual Int_t Mkdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
62  virtual Bool_t Rmdir(const char *_ldn = "", Option_t* /*options*/ = "", Bool_t /*verbose*/ = kFALSE);
63  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);
64  virtual Bool_t Rm(const char *_lfn, Option_t* /*option*/ = "", Bool_t /*verbose*/ = kFALSE);
65 
66  //--- Job Submission Interface
67  virtual TGridJob* Submit(const char *_jdl);
68  virtual TGridJDL* GetJDLGenerator();
69  virtual Bool_t Kill(TGridJob *_gridjob);
70  virtual Bool_t KillById(TString _id);
71 
72 private:
73  std::string fFileCatalog_WrkDir;
74 
75  ClassDef(TGLite, 1) // Interface to gLite Grid services
76 };
77 
78 #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:40
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:137
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
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
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:254
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
long Long_t
Definition: RtypesCore.h:50
std::string fFileCatalog_WrkDir
Definition: TGLite.h:73
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
#define NULL
Definition: Rtypes.h:82
Definition: TGrid.h:51
virtual TGridResult * Command(const char *, Bool_t=kFALSE, UInt_t=2)
Not implemented for RGLite.
Definition: TGLite.cxx:281