12#ifndef ROOT_TProofLite
13#define ROOT_TProofLite
89 Int_t Init(
const char *masterurl,
const char *conffile,
90 const char *confdir,
Int_t loglevel,
91 const char *alias = 0);
105 const char *alias = 0,
TProofMgr *mgr = 0);
111 const char *selection =
"",
139 void ClearCache(
const char *file = 0)
override;
141 TList *wrks = 0)
override;
154 void ShowDataSets(
const char *uri =
"",
const char * = 0)
override;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t sel
const char *const kPROOF_ConfFile
const char *const kPROOF_ConfDir
This class implements a data set to be used for PROOF processing.
Class that contains a list of TFileInfo's and accumulated meta data information about its entries.
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Mother of all ROOT objects.
Wrapper for PCRE library (Perl Compatible Regular Expressions).
This class starts a PROOF session on the local machine: no daemons, client and master merged,...
void FindUniqueSlaves() override
Add to the fUniqueSlave list the active slaves that have a unique (user) file system image.
TProofLite(const TProofLite &)
Int_t VerifyDataSet(const char *uri, const char *=0) override
Verify if all files in the specified dataset are available.
TProofLockPath * fQueryLock
Long64_t Process(TDSet *dset, const char *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0) override
Process a data set (TDSet) using the specified selector (.C) file.
static Int_t GetNumberOfWorkers(const char *url=0)
Static method to determine the number of workers giving priority to users request.
Int_t PollForNewWorkers() override
Simulate dynamic addition, for test purposes.
TFileCollection * GetDataSet(const char *uri, const char *=0) override
Get a list of TFileInfo objects describing the files of the specified dataset.
Int_t SetDataSetTreeName(const char *dataset, const char *treename) override
Set/Change the name of the default tree.
Int_t CreateSandbox()
Create the sandbox for this session.
Int_t Load(const char *macro, Bool_t notOnClient=kFALSE, Bool_t uniqueOnly=kTRUE, TList *wrks=0) override
Copy the specified macro in the cache directory.
TQueryResultManager * fQMgr
Int_t InitDataSetManager()
Initialize the dataset manager from directives or from defaults Return 0 on success,...
TServerSocket * fServSock
TDataSetManagerFile * fDataSetStgRepo
Int_t SetProofServEnv(const char *ord)
Create environment files for worker 'ord'.
void ClearDataSetCache(const char *dataset=0) override
Clear the content of the dataset cache, if any (matching 'dataset', if defined).
Int_t RemoveDataSet(const char *uri, const char *=0) override
Remove the specified dataset from the PROOF cluster.
void ShowData() override
List contents of the data directory in the sandbox.
void NotifyStartUp(const char *action, Int_t done, Int_t tot)
Notify setting-up operation message.
void ShowDataSets(const char *uri="", const char *=0) override
Shows datasets in locations that match the uri By default shows the user's datasets and global ones.
void SetQueryRunning(TProofQueryResult *pq)
Set query in running state.
Int_t CleanupSandbox()
Remove old sessions dirs keep at most 'Proof.MaxOldSessions' (default 10)
Long64_t Process(const char *dsname, TSelector *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0, TObject *enl=0) override
Process with name of dataset and TSelector object.
Long64_t Process(TDSet *dset, TSelector *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0) override
Process a data set (TDSet) using the specified selector object.
Long64_t Process(TFileCollection *fc, const char *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0) override
Process a data set (TFileCollection) using the specified selector (.C) file or TSelector object.
TDataSetManager * fDataSetManager
void ClearCache(const char *file=0) override
Remove files from all file caches.
Int_t Remove(const char *ref, Bool_t all)
Handle remove request.
Int_t Init(const char *masterurl, const char *conffile, const char *confdir, Int_t loglevel, const char *alias=0)
Start the PROOF environment.
Long64_t Process(TSelector *sel, Long64_t nent, Option_t *o="") override
Generic (non-data based) selector processing: the Process() method of the specified selector is calle...
void operator=(const TProofLite &)
void ShowCache(Bool_t all=kFALSE) override
List contents of file cache.
Bool_t RequestStagingDataSet(const char *dataset) override
Allows users to request staging of a particular dataset.
TList * GetListOfQueries(Option_t *opt="") override
Get the list of queries.
void ShowDataDir(const char *dirname)
List contents of the data directory 'dirname'.
void ResolveKeywords(TString &s, const char *ord, const char *logfile)
Resolve some keywords in 's' <logfilewrk>, <user>, <rootsys>, <cpupin>
TTree * GetTreeHeader(TDSet *tdset) override
Creates a tree header (a tree with nonexisting files) object for the DataSet.
void Print(Option_t *option="") const override
Print status of PROOF-Lite cluster.
TMap * GetDataSets(const char *uri="", const char *=0) override
lists all datasets that match given uri
Bool_t CancelStagingDataSet(const char *dataset) override
Cancels a dataset staging request.
Long64_t Process(const char *dsname, const char *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0, TObject *enl=0) override
Process a dataset which is stored on the master with name 'dsetname'.
Int_t fDynamicStartupNMax
void SendInputDataFile() override
Make sure that the input data objects are available to the workers in a dedicated file in the cache; ...
Int_t CopyMacroToCache(const char *macro, Int_t headerRequired=0, TSelector **selector=0, Int_t opt=0, TList *wrks=0)
Copy a macro, and its possible associated .h[h] file, to the cache directory, from where the workers ...
Long64_t Process(TFileCollection *fc, TSelector *sel, Option_t *o="", Long64_t nent=-1, Long64_t fst=0) override
Process a data set (TFileCollection) using the specified selector object The default tree is analyzed...
Int_t fDynamicStartupStep
Bool_t RegisterDataSet(const char *dsName, TFileCollection *ds, const char *opt="") override
Register the 'dataSet' on the cluster under the current user, group and the given 'dataSetName'.
Bool_t ExistsDataSet(const char *uri) override
Returns kTRUE if 'dataset' described by 'uri' exists, kFALSE otherwise.
Long64_t Process(const char *sel, Long64_t nent, Option_t *o="") override
Generic (non-data based) selector processing: the Process() method of the specified selector (....
TProofQueryResult * MakeQueryResult(Long64_t nent, const char *opt, Long64_t fst, TDSet *dset, const char *selec)
Create a TProofQueryResult instance for this query.
TFileCollection * GetStagingStatusDataSet(const char *dataset) override
Obtains a TFileCollection showing the staging status of the specified dataset.
~TProofLite() override
Destructor.
Int_t SetupWorkers(Int_t opt=0, TList *wrks=0)
Start up PROOF workers.
Long64_t DrawSelect(TDSet *dset, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0) override
Execute the specified drawing action on a data set (TDSet).
TProofLockPath * fCacheLock
void ShowDataSetCache(const char *dataset=0) override
Display the content of the dataset cache, if any (matching 'dataset', if defined).
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session,...
Version of TProofPlayerRemote merges the functionality needed by clients and masters.
TQueryResult version adapted to PROOF neeeds.
This class controls a Parallel ROOT Facility, PROOF, cluster.
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...
Class managing the query-result area.
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
A TTree represents a columnar dataset.