19 #include "RConfigure.h"
37 fProof = proof ? proof :
gProof;
49 if (
Handle(dset, &type) != 0) {
50 Error(
"ReleaseCache",
"problems clearing cache for '%s'", dset);
66 if (
Handle(dset, &type) != 0) {
67 Error(
"RemoveFiles",
"problems removing files for '%s'", dset);
72 Error(
"RemoveFiles",
"problems removing meta-information for dataset '%s'", dset);
86 if (!destdir || (destdir && strlen(destdir) <= 0)) {
87 Error(
"CopyFiles",
"specifying a destination dir is mandatory!");
96 if (
Handle(dset, &type) != 0) {
97 Error(
"CopyFiles",
"problems copying files for '%s'", dset);
113 if (!dset || (dset && strlen(dset) <= 0)) {
114 Error(
"Handle",
"a valid dataset name is mandatory");
120 Error(
"Handle",
"dataset '%s' does not exist", dset);
127 Error(
"Handle",
"TFileCollection object for dataset '%s' could not be retrieved", dset);
132 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,30,0)
138 Error(
"Handle",
"could not create map with per-server info for dataset '%s'", dset);
144 TString selName(
"TSelHandleDataSet");
147 #ifdef R__HAVE_CONFIG
152 Info(
"Handle",
"Uploading '%s' ...", par.
Data());
154 Error(
"Handle",
"problems uploading '%s' - cannot continue", par.
Data());
164 Error(
"Handle",
"failed to load '%s'", selName.
Data());
170 fcmap->
SetName(
"PROOF_FilesToProcess");
Long64_t GetNFiles() const
virtual Bool_t ExistsDataSet(const char *dataset)
Returns kTRUE if 'dataset' exists, kFALSE otherwise.
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.
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)
Enable specified package.
void SetParameter(const char *par, const char *value)
Set input list parameter.
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
virtual TFileCollection * GetDataSet(const char *dataset, const char *optStr="")
Get a list of TFileInfo objects describing the files of the specified dataset.
const char *const kPROOF_BenchParDir
Handle operations on datasets used by ProofBench.
const char * Data() const
static struct mg_connection * fc(struct mg_context *ctx)
Int_t RemoveFiles(const char *dset)
Physically remove the dataset 'dset', i.e.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString...
const char * GetMaster() const
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
TObject * GetParameter(const char *par) const
Get specified parameter.
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
const char *const kPROOF_BenchDataSelPar
virtual TObject * Remove(TObject *obj)
Remove object from the list.
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...
void SetName(const char *name)
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
Int_t Handle(const char *dset, TObject *type)
Physically remove the dataset 'dset', i.e.
TList * GetInputList()
Get input list.
R__EXTERN TProof * gProof
void DeleteParameters(const char *wildcard)
Delete the input list parameters specified by a wildcard (e.g.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
This class controls a Parallel ROOT Facility, PROOF, cluster.
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.
ClassImp(TProofBenchDataSet) TProofBenchDataSet
Constructor.
Mother of all ROOT objects.
const char Int_t const char TProof * proof
Class that contains a list of TFileInfo's and accumulated meta data information about its entries...
virtual Int_t RemoveDataSet(const char *dataset, const char *optStr="")
Remove the specified dataset from the PROOF cluster.
TMap * GetFilesPerServer(const char *exclude=0, Bool_t curronly=kFALSE)
Return a map of TFileCollections with the files on each data server, excluding servers in the comma-s...