19#include "RConfigure.h"
51 Error(
"ReleaseCache",
"problems clearing cache for '%s'", dset);
68 Error(
"RemoveFiles",
"problems removing files for '%s'", dset);
73 Error(
"RemoveFiles",
"problems removing meta-information for dataset '%s'", dset);
87 if (!destdir || (destdir && strlen(destdir) <= 0)) {
88 Error(
"CopyFiles",
"specifying a destination dir is mandatory!");
98 Error(
"CopyFiles",
"problems copying files for '%s'", dset);
114 if (!dset || (dset && strlen(dset) <= 0)) {
115 Error(
"Handle",
"a valid dataset name is mandatory");
121 Error(
"Handle",
"dataset '%s' does not exist", dset);
128 Error(
"Handle",
"TFileCollection object for dataset '%s' could not be retrieved", dset);
133#if ROOT_VERSION_CODE >= ROOT_VERSION(5,30,0)
139 Error(
"Handle",
"could not create map with per-server info for dataset '%s'", dset);
145 TString selName(
"TSelHandleDataSet");
149 Info(
"Handle",
"Uploading '%s' ...", par.
Data());
151 Error(
"Handle",
"problems uploading '%s' - cannot continue", par.
Data());
161 Error(
"Handle",
"failed to load '%s'", selName.
Data());
167 fcmap->
SetName(
"PROOF_FilesToProcess");
const char *const kPROOF_BenchDataSelPar
const char *const kPROOF_BenchParDir
R__EXTERN TProof * gProof
static struct mg_connection * fc(struct mg_context *ctx)
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
void SetName(const char *name)
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
virtual TObject * Remove(TObject *obj)
Remove object from the list.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
Handle operations on datasets used by ProofBench.
Int_t Handle(const char *dset, TObject *type)
Physically remove the dataset 'dset', i.e.
Int_t CopyFiles(const char *dset, const char *destdir)
Copy the files of dataset 'dset' to another directory Return 0 on success, -1 on error.
TProofBenchDataSet(TProof *proof=0)
Constructor.
Int_t RemoveFiles(const char *dset)
Physically remove the dataset 'dset', i.e.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
This class controls a Parallel ROOT Facility, PROOF, cluster.
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
TObject * GetParameter(const char *par) const
Get specified parameter.
void DeleteParameters(const char *wildcard)
Delete the input list parameters specified by a wildcard (e.g.
void SetParameter(const char *par, const char *value)
Set input list parameter.
virtual Int_t RemoveDataSet(const char *dataset, const char *optStr="")
Remove the specified dataset from the PROOF cluster.
virtual TFileCollection * GetDataSet(const char *dataset, const char *optStr="")
Get a list of TFileInfo objects describing the files of the specified dataset.
virtual Long64_t Process(TDSet *dset, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file or Tselector object Entry- or event...
virtual Bool_t ExistsDataSet(const char *dataset)
Returns kTRUE if 'dataset' exists, kFALSE otherwise.
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
TList * GetInputList()
Get input list.
const char * GetMaster() const
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)
Enable specified package.
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.