library: libCore #include "TGrid.h" |
TGrid
class description - source file - inheritance tree (.ps)
This is an abstract class, constructors will not be documented.
Look at the header to check for available constructors.
public:
virtual ~TGrid()
virtual Int_t AddAttribute(const char* lfn, const char* tagName, const char* attrname, const char* attrval)
virtual Int_t AddAttributes(const char* lfn, const char* tagName, Int_t inargs)
virtual Int_t AddFile(const char* newlfn, const char* pfn, Int_t size = -1, const char* msn = "0", char* guid = "0")
virtual Int_t AddFileMirror(const char* lfn, const char* pfn, const char* msn)
virtual Int_t AddTag(const char* ldn, const char* tagName)
virtual Int_t Chmod(const char* lfn, UInt_t mode)
virtual Int_t Chown(const char* lfn, const char* owner, const char* group)
static TClass* Class()
virtual void CloseResult(Grid_ResultHandle_t hResult)
static TGrid* Connect(const char* grid, const char* uid = "0", const char* pw = "0", const char* options = "0")
virtual Int_t Cp(const char* sourcelfn, const char* targetlfn)
virtual TGridProof* CreateGridProof()
virtual TGridResult* CreateGridResult(Grid_ResultHandle_t handle)
virtual Int_t DeleteAttribute(const char* lfn, const char* tagName, const char* attrname)
virtual Grid_ResultHandle_t Find(const char* path, const char* file, const char* conditions = "0")
virtual Grid_ResultHandle_t FindEx(const char* path, const char* file, const char* conditions = "0")
virtual Grid_AccessPath_t* GetAccessPath(const char* lfn, Bool_t mode = kFALSE, const char* msn = "0")
virtual Grid_ResultHandle_t GetAttributes(const char* lfn, const char* tagName)
virtual char* GetFile(const char* lfn, const char* localdest = "0")
virtual char* GetFileUrl(const char* msn, const char* path)
const char* GetGrid() const
virtual TGridProof* GetGridProof() const
const char* GetHost() const
virtual Grid_JobStatus_t* GetJobStatus(Grid_JobId_t jobId)
virtual Grid_ResultHandle_t GetPhysicalFileNames(const char* lfn)
Int_t GetPort() const
virtual Grid_ProofSessionStatus_t GetProofSessionStatus(Grid_ProofSession_t* proofSession)
virtual Grid_ResultHandle_t GetTags(const char* ldn)
virtual const char* GetUser() const
virtual Int_t GridClose(Grid_FileHandle_t handle)
virtual Int_t GridClosedir(Grid_FileHandle_t handle)
virtual Int_t GridFchmod(Grid_FileHandle_t handle, UInt_t mode)
virtual Int_t GridFchown(Grid_FileHandle_t handle, UInt_t owner, UInt_t group)
virtual Int_t GridFstat(Grid_FileHandle_t handle, TGrid::gridstat_t* statbuf)
virtual Int_t GridFsync(Grid_FileHandle_t handle)
virtual Int_t GridLink(const char* source, const char* target)
virtual Int_t GridLstat(const char* lfn, TGrid::gridstat_t* statbuf)
virtual Grid_FileHandle_t GridOpen(const char* lfn, Int_t flags, UInt_t mode = 0)
virtual Grid_FileHandle_t GridOpendir(const char* dir)
virtual Int_t GridRead(Grid_FileHandle_t handle, void* buffer, Long_t size, Long64_t offset)
virtual const Grid_Result_t* GridReaddir(Grid_FileHandle_t handle) const
virtual Int_t GridReadlink(const char* lfn, char* buf, unsigned int bufsize)
virtual Int_t GridStat(const char* lfn, TGrid::gridstat_t* statbuf)
virtual Int_t GridSymlink(const char* source, const char* target)
virtual Int_t GridWrite(Grid_FileHandle_t handle, void* buffer, Long_t size, Long64_t offset)
virtual TClass* IsA() const
virtual Bool_t IsConnected() const
virtual Int_t KillJob(Grid_JobId_t jobId)
virtual Bool_t KillProofSession(Int_t sessionId)
virtual Bool_t KillProofSession(Grid_ProofSession_t* proofSession)
virtual void ListProofDaemons()
virtual void ListProofSessions(Int_t sessionId = 0)
virtual Int_t Mkdir(const char* ldn, Bool_t recursive = kFALSE)
virtual Int_t Mv(const char* sourcelfn, const char* targetlfn)
virtual Grid_ResultHandle_t OpenDir(const char* ldn)
TGrid& operator=(const TGrid&)
virtual Grid_Result_t* ReadResult(Grid_ResultHandle_t hResult)
virtual Int_t RegisterFile(const char* lfn, const char* pfn, const char* msn)
virtual Int_t RemoveTag(const char* ldn, const char* tagName)
virtual Grid_ProofSession_t* RequestProofSession(const char* user, Int_t nsites, void** sites, void** ntimes, long starttime, long duration)
virtual void ResetResult(Grid_ResultHandle_t hResult)
virtual Grid_JobId_t ResubmitJob(Grid_JobId_t jobId)
virtual Int_t Rm(const char* lfn, Bool_t recursive = kFALSE)
virtual Int_t Rmdir(const char* dir, Bool_t recursive = kFALSE)
virtual void SetGridProof(TGridProof* proof)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual Grid_JobId_t SubmitJob(const char* jdlFile)
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
TGridProof* fProof PROOF pointer
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()
const char* GetGrid() const
const char* GetHost() const
Int_t GetPort() const
Bool_t IsConnected() const
const char* GetUser() const
Grid_ResultHandle_t OpenDir(const char* ldn)
Grid_Result_t* ReadResult(Grid_ResultHandle_t hResult)
void CloseResult(Grid_ResultHandle_t hResult)
void ResetResult(Grid_ResultHandle_t hResult)
Int_t Mkdir(const char* ldn, Bool_t recursive = kFALSE)
Int_t Rmdir(const char* dir, Bool_t recursive = kFALSE)
Int_t Rm(const char* lfn, Bool_t recursive = kFALSE)
Int_t Cp(const char* sourcelfn, const char* targetlfn)
Int_t Mv(const char* sourcelfn, const char* targetlfn)
Int_t Chmod(const char* lfn, UInt_t mode)
Int_t Chown(const char* lfn, const char* owner, const char* group)
Int_t AddFile(const char* newlfn, const char* pfn, Int_t size = -1, const char* msn = "0", char* guid = "0")
Int_t AddFileMirror(const char* lfn, const char* pfn, const char* msn)
Int_t RegisterFile(const char* lfn, const char* pfn, const char* msn)
char* GetFile(const char* lfn, const char* localdest = "0")
Grid_ResultHandle_t GetPhysicalFileNames(const char* lfn)
Grid_ResultHandle_t Find(const char* path, const char* file, const char* conditions = "0")
Grid_ResultHandle_t FindEx(const char* path, const char* file, const char* conditions = "0")
Int_t AddTag(const char* ldn, const char* tagName)
Int_t RemoveTag(const char* ldn, const char* tagName)
Grid_ResultHandle_t GetTags(const char* ldn)
Int_t AddAttributes(const char* lfn, const char* tagName, Int_t inargs)
Int_t AddAttribute(const char* lfn, const char* tagName, const char* attrname, const char* attrval)
Int_t DeleteAttribute(const char* lfn, const char* tagName, const char* attrname)
Grid_ResultHandle_t GetAttributes(const char* lfn, const char* tagName)
Grid_JobId_t SubmitJob(const char* jdlFile)
Grid_JobStatus_t* GetJobStatus(Grid_JobId_t jobId)
Int_t KillJob(Grid_JobId_t jobId)
Grid_JobId_t ResubmitJob(Grid_JobId_t jobId)
Grid_AccessPath_t* GetAccessPath(const char* lfn, Bool_t mode = kFALSE, const char* msn = "0")
char* GetFileUrl(const char* msn, const char* path)
Grid_FileHandle_t GridOpen(const char* lfn, Int_t flags, UInt_t mode = 0)
Int_t GridClose(Grid_FileHandle_t handle)
Int_t GridRead(Grid_FileHandle_t handle, void* buffer, Long_t size, Long64_t offset)
Int_t GridWrite(Grid_FileHandle_t handle, void* buffer, Long_t size, Long64_t offset)
Int_t GridFstat(Grid_FileHandle_t handle, TGrid::gridstat_t* statbuf)
Int_t GridFsync(Grid_FileHandle_t handle)
Int_t GridFchmod(Grid_FileHandle_t handle, UInt_t mode)
Int_t GridFchown(Grid_FileHandle_t handle, UInt_t owner, UInt_t group)
Int_t GridLink(const char* source, const char* target)
Int_t GridSymlink(const char* source, const char* target)
Int_t GridReadlink(const char* lfn, char* buf, unsigned int bufsize)
Int_t GridStat(const char* lfn, TGrid::gridstat_t* statbuf)
Int_t GridLstat(const char* lfn, TGrid::gridstat_t* statbuf)
Grid_FileHandle_t GridOpendir(const char* dir)
const Grid_Result_t* GridReaddir(Grid_FileHandle_t handle) const
Int_t GridClosedir(Grid_FileHandle_t handle)
void SetGridProof(TGridProof* proof)
TGridProof* GetGridProof() const
Grid_ProofSession_t* RequestProofSession(const char* user, Int_t nsites, void** sites, void** ntimes, long starttime, long duration)
Grid_ProofSessionStatus_t GetProofSessionStatus(Grid_ProofSession_t* proofSession)
void ListProofDaemons()
void ListProofSessions(Int_t sessionId = 0)
Bool_t KillProofSession(Int_t sessionId)
Bool_t KillProofSession(Grid_ProofSession_t* proofSession)
TGridResult* CreateGridResult(Grid_ResultHandle_t handle)
TGridProof* CreateGridProof()
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGrid& operator=(const TGrid&)
Author: Fons Rademakers 3/1/2002
Last update: root/net:$Name: $:$Id: TGrid.cxx,v 1.6 2003/11/13 15:15:11 rdm Exp $
Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - 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.