19 #include "RConfigure.h" 50 if (
Handle(dset, &type) != 0) {
51 Error(
"ReleaseCache",
"problems clearing cache for '%s'", dset);
67 if (
Handle(dset, &type) != 0) {
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!");
97 if (
Handle(dset, &type) != 0) {
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");
virtual void Info(const char *method, const char *msgfmt,...) const
Issue info message.
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.
TObject * GetParameter(const char *par) const
Get specified parameter.
void SetParameter(const char *par, const char *value)
Set input list parameter.
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.
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...
TProofBenchDataSet(TProof *proof=0)
Constructor.
Int_t ReleaseCache(const char *dset)
Release memory cache for dataset 'dset' Return 0 on success, -1 on error.
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
const char *const kPROOF_BenchDataSelPar
Long64_t GetNFiles() const
virtual TObject * Remove(TObject *obj)
Remove object from the list.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
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()).
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.
const char * GetMaster() const
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
static const TString & GetEtcDir()
Get the sysconfig directory in the installation. Static utility function.
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.
Mother of all ROOT objects.
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.
virtual void Print(Option_t *option="") const
Default print for collections, calls Print(option, 1).
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...
const char * Data() const