RGLITE: A ROOT GRID interface
RGLite plug-in - a ROOT plug-in module, which implements the ROOT Grid
interface and offers to ROOT users possibilities to perform a number of
operations using gLite middleware from within ROOT.
Supported features:
- Workload Management System operations:
- job submission – normal, DAG and parametric jobs (gLite
WMProxy API),
- smart look-up algorithm for WMP-Endpoints,
- job status querying (gLite LB API),
- job output retrieving (Globus GridFTP).
- File Catalog operations (gLite/LCG LFC API):
- smart session manager,
- set/query the current working catalog directory,
- list files, directories and their stats,
- add/remove files in a catalog namespace,
- add/remove directories,
- add/remove replicas from a given file.
- An executive logging.
- Support of an external XML configuration file with according XML
schema.
Usage examples:
Job operations
// loading RGLite plug-in
TGrid::Connect("glite");
// submitting Grid job
TGridJob *job = gGrid->Submit("JDLs/simple.jdl");
// getting status object
TGridJobStatus *status = job->GetJobStatus();
// getting status of the job.
TGridJobStatus::EGridJobStatus st( status->GetStatus() );
// when the st is TGridJobStatus::kDONE you can
retrieve job's output
job->GetOutputSandbox("/tmp");
File Catalog operations
// loading RGLite plug-in
TGrid::Connect("glite");
// changing the current directory to "/grid/dech"
gGrid->Cd("/grid/dech");
// using Mkdir to create a new directory
Bool_t b = gGrid->Mkdir("root_test2");
// listing the current directory
TGridResult* result = gGrid->Ls();
// full file information
result->Print("all");
// removing the directory
b = gGrid->Rmdir("root_test2");
Documentation:
http://www-linux.gsi.de/%7Emanafov/D-Grid/docz/RGLite/html/
and
http://www-linux.gsi.de/~manafov/D-Grid/docz/