Logo ROOT   6.10/09
Reference Guide
TProof.h
Go to the documentation of this file.
1 // @(#)root/proof:$Id$
2 // Author: Fons Rademakers 13/02/97
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TProof
13 #define ROOT_TProof
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TProof //
19 // //
20 // This class controls a Parallel ROOT Facility, PROOF, cluster. //
21 // It fires the worker servers, it keeps track of how many workers are //
22 // running, it keeps track of the workers running status, it broadcasts //
23 // messages to all workers, it collects results, etc. //
24 // //
25 //////////////////////////////////////////////////////////////////////////
26 
27 #include "TProofMgr.h"
28 #include "TProofDebug.h"
29 #include "TString.h"
30 #include "TMacro.h"
31 #include "MessageTypes.h"
32 #include "TMD5.h"
33 #include "TRegexp.h"
34 #include "TSysEvtHandler.h"
35 #include "TUrl.h"
36 #include "TProofOutputList.h"
37 #include "TStopwatch.h"
38 #include "TVirtualMutex.h"
39 #include "TPackMgr.h"
40 
41 #include <map>
42 #include <mutex>
43 
44 #ifdef R__GLOBALSTL
45 namespace std { using ::map; }
46 #endif
47 
48 #define CANNOTUSE(x) Info(x,"Not manager: cannot use this method")
49 
50 class TChain;
51 class TCondor;
52 class TCondorSlave;
53 class TDrawFeedback;
54 class TDSet;
55 class TEventList;
56 class THashList;
57 class TList;
58 class TCollection;
59 class TMessage;
60 class TMonitor;
61 class TPluginHandler;
62 class TProof;
63 class TProofInputHandler;
65 class TProofLockPath;
67 class TProofPlayer;
68 class TProofPlayerRemote;
70 class TProofServ;
71 class TQueryResult;
72 class TSignalHandler;
73 class TSlave;
74 class TSocket;
75 class TTree;
76 class TFileCollection;
77 class TMap;
78 class TDataSetManager;
80 class TMacro;
81 class TSelector;
82 
83 // protocol changes:
84 // 1 -> 2: new arguments for Process() command, option added
85 // 2 -> 3: package manager enabling protocol changed
86 // 3 -> 4: introduction of multi-level-master support
87 // 4 -> 5: added friends support
88 // 5 -> 6: drop TFTP, support for asynchronous queries
89 // 6 -> 7: support for multisessions, archieve, retrieve, ...
90 // 7 -> 8: return number of entries in GetNextPacket
91 // 8 -> 9: support for stateless connection via xproofd
92 // 9 -> 10: new features requested, tested at CAF
93 // 10 -> 11: new merging strategy
94 // 11 -> 12: new progress message
95 // 12 -> 13: exchange version/architecture/compiler info
96 // 13 -> 14: new proofserv environment setting
97 // 14 -> 15: add support for entry lists; new version of TFileInfo
98 // 15 -> 16: add support for generic non-data based processing
99 // 16 -> 17: new dataset handling system; support for TFileCollection processing
100 // 17 -> 18: support for reconnection on daemon restarts
101 // 18 -> 19: TProofProgressStatus used in kPROOF_PROGRESS, kPROOF_STOPPROCESS
102 // and kPROOF_GETNEXTPACKET messages in Master - worker communication
103 // 19 -> 20: Fix the asynchronous mode (required changes in some messages)
104 // 20 -> 21: Add support for session queuing
105 // 21 -> 22: Add support for switching from sync to async while running ('Ctrl-Z' functionality)
106 // 22 -> 23: New dataset features (default tree name; classification per fileserver)
107 // 23 -> 24: Merging optimization
108 // 24 -> 25: Handling of 'data' dir; group information
109 // 25 -> 26: Use new TProofProgressInfo class
110 // 26 -> 27: Use new file for updating the session status
111 // 27 -> 28: Support for multi-datasets, fix global pack dirs, fix AskStatistics,
112 // package download, dataset caching
113 // 28 -> 29: Support for config parameters in EnablePackage, idle-timeout
114 // 29 -> 30: Add information about data dir in TSlaveInfo
115 // 30 -> 31: Development cycle 5.29
116 // 31 -> 32: New log path trasmission
117 // 32 -> 33: Development cycle 5.29/04 (fixed worker activation, new startup technology, ...)
118 // 33 -> 34: Development cycle 5.33/02 (fix load issue, ...)
119 // 34 -> 35: Development cycle 5.99/01 (PLite on workers, staging requests in separate dsmgr...)
120 // 35 -> 36: SetParallel in dynamic mode (changes default in GoParallel), cancel staging requests
121 // 36 -> 37: Support for remote (web) PAR packages
122 
123 // PROOF magic constants
124 const Int_t kPROOF_Protocol = 37; // protocol version number
125 const Int_t kPROOF_Port = 1093; // IANA registered PROOF port
126 const char* const kPROOF_ConfFile = "proof.conf"; // default config file
127 const char* const kPROOF_ConfDir = "/usr/local/root"; // default config dir
128 const char* const kPROOF_WorkDir = ".proof"; // default working directory
129 const char* const kPROOF_CacheDir = "cache"; // file cache dir, under WorkDir
130 const char* const kPROOF_PackDir = "packages"; // package dir, under WorkDir
131 const char* const kPROOF_PackDownloadDir = "downloaded"; // subdir with downloaded PARs, under PackDir
132 const char* const kPROOF_QueryDir = "queries"; // query dir, under WorkDir
133 const char* const kPROOF_DataSetDir = "datasets"; // dataset dir, under WorkDir
134 const char* const kPROOF_DataDir = "data"; // dir for produced data, under WorkDir
135 const char* const kPROOF_CacheLockFile = "proof-cache-lock-"; // cache lock file
136 const char* const kPROOF_PackageLockFile = "proof-package-lock-"; // package lock file
137 const char* const kPROOF_QueryLockFile = "proof-query-lock-"; // query lock file
138 const char* const kPROOF_TerminateWorker = "+++ terminating +++"; // signal worker termination in MarkBad
139 const char* const kPROOF_WorkerIdleTO = "+++ idle-timeout +++"; // signal worker idle timeout in MarkBad
140 const char* const kPROOF_InputDataFile = "inputdata.root"; // Default input data file name
141 const char* const kPROOF_MissingFiles = "MissingFiles"; // Missingfile list name
142 const Long64_t kPROOF_DynWrkPollInt_s = 10; // minimum number of seconds between two polls for dyn wrks
143 
144 #ifndef R__WIN32
145 const char* const kCP = "/bin/cp -fp";
146 const char* const kRM = "/bin/rm -rf";
147 const char* const kLS = "/bin/ls -l";
148 const char* const kUNTAR = "%s -c %s/%s | (cd %s; tar xf -)";
149 const char* const kUNTAR2 = "%s -c %s | (cd %s; tar xf -)";
150 const char* const kUNTAR3 = "%s -c %s | (tar xf -)";
151 const char* const kGUNZIP = "gunzip";
152 #else
153 const char* const kCP = "copy";
154 const char* const kRM = "delete";
155 const char* const kLS = "dir";
156 const char* const kUNTAR = "...";
157 const char* const kUNTAR2 = "...";
158 const char* const kUNTAR3 = "...";
159 const char* const kGUNZIP = "gunzip";
160 #endif
161 
162 typedef void (*PrintProgress_t)(Long64_t tot, Long64_t proc, Float_t proctime, Long64_t bytes);
163 
164 // Structure for the progress information
165 class TProofProgressInfo : public TObject {
166 public:
167  Long64_t fTotal; // Total number of events to process
168  Long64_t fProcessed; // Number of events processed
169  Long64_t fBytesRead; // Number of bytes read
170  Float_t fInitTime; // Time for initialization
171  Float_t fProcTime; // Time for processing
172  Float_t fEvtRateI; // Instantaneous event rate
173  Float_t fMBRateI; // Instantaneous byte read rate
174  Int_t fActWorkers; // Numebr of workers still active
175  Int_t fTotSessions; // Numebr of PROOF sessions running currently on the clusters
176  Float_t fEffSessions; // Number of effective sessions running on the machines allocated to this session
177  TProofProgressInfo(Long64_t tot = 0, Long64_t proc = 0, Long64_t bytes = 0,
178  Float_t initt = -1., Float_t proct = -1.,
179  Float_t evts = -1., Float_t mbs = -1.,
180  Int_t actw = 0, Int_t tsess = 0, Float_t esess = 0.) :
181  fTotal(tot), fProcessed(proc), fBytesRead(bytes),
182  fInitTime(initt), fProcTime(proct), fEvtRateI(evts), fMBRateI(mbs),
183  fActWorkers(actw), fTotSessions(tsess), fEffSessions(esess) { }
184  virtual ~TProofProgressInfo() { }
185  ClassDef(TProofProgressInfo, 1); // Progress information
186 };
187 
188 // PROOF Interrupt signal handler
190 private:
192 
193  TProofInterruptHandler(const TProofInterruptHandler&); // Not implemented
194  TProofInterruptHandler& operator=(const TProofInterruptHandler&); // Not implemented
195 public:
197  : TSignalHandler(kSigInterrupt, kFALSE), fProof(p) { }
198  Bool_t Notify();
199 };
200 
201 // Input handler for messages from TProofServ
203 private:
206 
207  TProofInputHandler(const TProofInputHandler&); // Not implemented
208  TProofInputHandler& operator=(const TProofInputHandler&); // Not implemented
209 public:
211  Bool_t Notify();
212  Bool_t ReadNotify() { return Notify(); }
213 };
214 
215 // Slaves info class
216 class TSlaveInfo : public TObject {
217 public:
218  enum ESlaveStatus { kActive, kNotActive, kBad };
219 
220  TString fOrdinal; //slave ordinal
221  TString fHostName; //hostname this slave is running on
222  TString fMsd; //mass storage domain slave is in
223  TString fDataDir; //directory for user data
224  Int_t fPerfIndex; //relative performance of this slave
225  SysInfo_t fSysInfo; //Infomation about its hardware
226  ESlaveStatus fStatus; //slave status
227 
228  TSlaveInfo(const char *ordinal = "", const char *host = "", Int_t perfidx = 0,
229  const char *msd = "", const char *datadir = "") :
230  fOrdinal(ordinal), fHostName(host), fMsd(msd), fDataDir(datadir),
231  fPerfIndex(perfidx), fSysInfo(), fStatus(kNotActive) { }
232 
233  const char *GetDataDir() const { return fDataDir; }
234  const char *GetMsd() const { return fMsd; }
235  const char *GetName() const { return fHostName; }
236  const char *GetOrdinal() const { return fOrdinal; }
237  SysInfo_t GetSysInfo() const { return fSysInfo; }
238  void SetStatus(ESlaveStatus stat) { fStatus = stat; }
239  void SetSysInfo(SysInfo_t si);
240  void SetOrdinal(const char *ord) { fOrdinal = ord; }
241 
242  Int_t Compare(const TObject *obj) const;
243  Bool_t IsSortable() const { return kTRUE; }
244  void Print(Option_t *option="") const;
245  Bool_t IsEqual(const TObject* obj) const;
246 
247  ClassDef(TSlaveInfo,4) //basic info on workers
248 };
249 
250 // Merger info class
251 class TMergerInfo : public TObject {
252 private:
253 
254  TSlave *fMerger; // Slave that acts as merger
255  Int_t fPort; // Port number, on which it accepts outputs from other workers
256  Int_t fMergedObjects; // Total number of objects it must accept from other workers
257  // (-1 == not set yet)
258  Int_t fWorkersToMerge; // Number of workers that are merged on this merger
259  // (does not change during time)
260  Int_t fMergedWorkers; // Current number of already merged workers
261  // (does change during time as workers are being merged)
262 
263  TList *fWorkers; // List of already assigned workers
264  Bool_t fIsActive; // Merger state
265 
266  TMergerInfo(const TMergerInfo&); // Not implemented
267  TMergerInfo& operator=(const TMergerInfo&); // Not implemented
268 
269 public:
270  TMergerInfo(TSlave *t, Int_t port, Int_t forHowManyWorkers) :
271  fMerger(t), fPort(port), fMergedObjects(0), fWorkersToMerge(forHowManyWorkers),
272  fMergedWorkers(0), fWorkers(0), fIsActive(kTRUE) { }
273  virtual ~TMergerInfo();
274 
275  void AddWorker(TSlave *sl);
276  TList *GetWorkers() { return fWorkers; }
277 
278  TSlave *GetMerger() { return fMerger; }
279  Int_t GetPort() { return fPort; }
280 
281  Int_t GetWorkersToMerge() { return fWorkersToMerge; }
282  Int_t GetMergedWorkers() { return fMergedWorkers; }
283  Int_t GetMergedObjects() { return fMergedObjects; }
284 
285  void SetMergedWorker();
286  void AddMergedObjects(Int_t objects) { fMergedObjects += objects; }
287 
288  Bool_t AreAllWorkersAssigned();
289  Bool_t AreAllWorkersMerged();
290 
291  void Deactivate() { fIsActive = kFALSE; }
292  Bool_t IsActive() { return fIsActive; }
293 
294  ClassDef(TMergerInfo,0) // Basic info on merger, i.e. worker serving as merger
295 };
296 
297 // Small auxiliary class for merging progress notification
299 private:
304  static char fgCr[4];
305 public:
306  TProofMergePrg() : fExp(), fIdx(-1), fNWrks(-1), fLastNWrks(-1) { }
307 
308  const char *Export(Bool_t &changed) {
309  fExp.Form("%c (%d workers still sending) ", fgCr[fIdx], fNWrks);
310  changed = (fLastNWrks != fNWrks || fLastNWrks == -1) ? kTRUE : kFALSE;
311  fLastNWrks = fNWrks;
312  return fExp.Data(); }
313  void DecreaseNWrks() { fNWrks--; }
314  void IncreaseNWrks() { fNWrks++; }
315  void IncreaseIdx() { fIdx++; if (fIdx == 4) fIdx = 0; }
316  void Reset(Int_t n = -1) { fIdx = -1; SetNWrks(n); }
317  void SetNWrks(Int_t n) { fNWrks = n; }
318 };
319 
320 class TProof : public TNamed, public TQObject {
321 
322 friend class TPacketizer;
323 friend class TPacketizerDev;
324 friend class TPacketizerAdaptive;
325 friend class TProofLite;
326 friend class TDataSetManager;
327 friend class TProofServ;
328 friend class TProofInputHandler;
330 friend class TProofPlayer;
331 friend class TProofPlayerLite;
332 friend class TProofPlayerRemote;
333 friend class TProofProgressDialog;
334 friend class TSlave;
335 friend class TSlaveLite;
336 friend class TVirtualPacketizer;
337 friend class TXSlave;
338 friend class TXSocket; // to access kPing
339 friend class TXSocketHandler; // to access fCurrentMonitor and CollectInputFrom
340 friend class TXProofMgr; // to access EUrgent
341 friend class TXProofServ; // to access EUrgent
342 
343 public:
344  // PROOF status bits
345  enum EStatusBits {
346  kUsingSessionGui = BIT(14),
347  kNewInputData = BIT(15),
348  kIsClient = BIT(16),
349  kIsMaster = BIT(17),
350  kIsTopMaster = BIT(18),
351  kUseProgressDialog = BIT(19)
352  };
353  enum EQueryMode {
354  kSync = 0,
355  kAsync = 1
356  };
357  enum EUploadOpt {
358  kAppend = 0x1,
359  kOverwriteDataSet = 0x2,
360  kNoOverwriteDataSet = 0x4,
361  kOverwriteAllFiles = 0x8,
362  kOverwriteNoFiles = 0x10,
363  kAskUser = 0x0
364  };
366  kFailIfExists = 0,
367  kOverwriteIfExists = 1,
368  kMergeIfExists = 2
369  };
371  kUntar = 0x0, //Untar over existing dir [default]
372  kRemoveOld = 0x1 //Remove existing dir with same name
373  };
374  enum ERunStatus {
375  kRunning = 0, // Normal status
376  kStopped = 1, // After the stop button has been pressed
377  kAborted = 2 // After the abort button has been pressed
378  };
379 
380  enum ESubMerger {
381  kOutputSize = 1, //Number of objects in worker's output list
382  kSendOutput = 2, //Naster asks worker for its output list
383  kBeMerger = 3, //Master tells worker to be a merger
384  kMergerDown = 4, //Merger cannot serve
385  kStopMerging = 5, //Master tells worker to stop merging (and return output)
386  kOutputSent = 6 //Worker reports sending its output to given worker
387  };
388 
390  kPurge = 0x1,
391  kUnregistered = 0x2,
392  kDataset = 0x4,
393  kForceClear = 0x8
394  };
395 
396 private:
397  enum EUrgent {
398  kLocalInterrupt = -1,
399  kPing = 0,
400  kHardInterrupt = 1,
402  kShutdownInterrupt
403  };
405  kShowCache = 1,
406  kClearCache = 2,
407  kShowPackages = 3,
408  kClearPackages = 4,
409  kClearPackage = 5,
410  kBuildPackage = 6,
411  kLoadPackage = 7,
412  kShowEnabledPackages = 8,
413  kShowSubCache = 9,
414  kClearSubCache = 10,
415  kShowSubPackages = 11,
416  kDisableSubPackages = 12,
417  kDisableSubPackage = 13,
418  kBuildSubPackage = 14,
419  kUnloadPackage = 15,
420  kDisablePackage = 16,
421  kUnloadPackages = 17,
422  kDisablePackages = 18,
423  kListPackages = 19,
424  kListEnabledPackages = 20,
425  kLoadMacro = 21
426  };
428  kUploadDataSet = 1, //Upload a dataset
429  kCheckDataSetName = 2, //Check wheter dataset of this name exists
430  kGetDataSets = 3, //List datasets saved on the master node
431  kRegisterDataSet = 4, //Save a TList object as a dataset
432  kGetDataSet = 5, //Get a TFileCollection of TFileInfo objects
433  kVerifyDataSet = 6, //Try open all files from a dataset and report results
434  kRemoveDataSet = 7, //Remove a dataset but leave files belonging to it
435  kMergeDataSet = 8, //Add new files to an existing dataset
436  kShowDataSets = 9, //Shows datasets, returns formatted output
437  kGetQuota = 10, //Get quota info per group
438  kShowQuota = 11, //Show quotas
439  kSetDefaultTreeName = 12, //Set the default tree name
440  kCache = 13, //Show/clear cache
441  kRequestStaging = 14, //Request staging of a dataset
442  kStagingStatus = 15, //Obtain staging status for the given dataset
443  kCancelStaging = 16 //Cancels dataset staging request
444  };
446  kAscii = 0x0,
447  kBinary = 0x1,
448  kForce = 0x2,
449  kForward = 0x4,
450  kCpBin = 0x8,
451  kCp = 0x10
452  };
454  kActivateWorker = 1,
455  kDeactivateWorker = 2
456  };
458  kDontBuildOnClient = -2,
459  kBuildOnSlavesNoWait = -1,
460  kBuildAll = 0,
461  kCollectBuildResults = 1
462  };
464  kPerGroup = 0x1,
465  kPerUser = 0x2
466  };
467 
468  Bool_t fValid; //is this a valid proof object
469  Bool_t fTty; //TRUE if connected to a terminal
470  TString fMaster; //master server ("" if a master); used in the browser
471  TString fWorkDir; //current work directory on remote servers
472  TString fGroup; //PROOF group of this user
473  Int_t fLogLevel; //server debug logging level
474  Int_t fStatus; //remote return status (part of kPROOF_LOGDONE)
475  Int_t fCheckFileStatus; //remote return status after kPROOF_CHECKFILE
476  TList *fRecvMessages; //Messages received during collect not yet processed
477  TList *fSlaveInfo; //!list returned by kPROOF_GETSLAVEINFO
478  Bool_t fSendGroupView; //if true send new group view
479  Bool_t fIsPollingWorkers; //will be set to kFALSE to prevent recursive dyn workers check in dyn mode
480  Long64_t fLastPollWorkers_s; //timestamp (in seconds) of last poll for workers, -1 if never checked
481  TList *fActiveSlaves; //list of active slaves (subset of all slaves)
482  TString fActiveSlavesSaved;// comma-separated list of active slaves (before last call to
483  // SetParallel or Activate/DeactivateWorkers)
484  TList *fInactiveSlaves; //list of inactive slaves (good but not used for processing)
485  TList *fUniqueSlaves; //list of all active slaves with unique file systems
486  TList *fAllUniqueSlaves; //list of all active slaves with unique file systems, including all submasters
487  TList *fNonUniqueMasters; //list of all active masters with a nonunique file system
488  TMonitor *fActiveMonitor; //monitor activity on all active slave sockets
489  TMonitor *fUniqueMonitor; //monitor activity on all unique slave sockets
490  TMonitor *fAllUniqueMonitor; //monitor activity on all unique slave sockets, including all submasters
491  TMonitor *fCurrentMonitor; //currently active monitor
492  Long64_t fBytesRead; //bytes read by all slaves during the session
493  Float_t fRealTime; //realtime spent by all slaves during the session
494  Float_t fCpuTime; //CPU time spent by all slaves during the session
495  TSignalHandler *fIntHandler; //interrupt signal handler (ctrl-c)
496  TPluginHandler *fProgressDialog; //progress dialog plugin
497  Bool_t fProgressDialogStarted; //indicates if the progress dialog is up
498  TVirtualProofPlayer *fPlayer; //current player
499  TList *fFeedback; //list of names to be returned as feedback
500  TList *fChains; //chains with this proof set
501  struct MD5Mod_t {
502  TMD5 fMD5; //file's md5
503  Long_t fModtime; //file's modification time
504  };
505  typedef std::map<TString, MD5Mod_t> FileMap_t;
506  FileMap_t fFileMap; //map keeping track of a file's md5 and mod time
507  TDSet *fDSet; //current TDSet being validated
508 
509  Int_t fNotIdle; //Number of non-idle sub-nodes
510  Bool_t fSync; //true if type of currently processed query is sync
511  ERunStatus fRunStatus; //run status
512  Bool_t fIsWaiting; //true if queries have been enqueued
513 
514  Bool_t fRedirLog; //redirect received log info
515  TString fLogFileName; //name of the temp file for redirected logs
516  FILE *fLogFileW; //temp file to redirect logs
517  FILE *fLogFileR; //temp file to read redirected logs
518  Bool_t fLogToWindowOnly; //send log to window only
519 
520  Bool_t fSaveLogToMacro; // Whether to save received logs to TMacro fMacroLog (use with care)
521  TMacro fMacroLog; // Macro with the saved (last) log
522 
523  TProofMergePrg fMergePrg; //Merging progress
524 
525  TList *fWaitingSlaves; //stores a TPair of the slaves's TSocket and TMessage
526  TList *fQueries; //list of TProofQuery objects
527  Int_t fOtherQueries; //number of queries in list from previous sessions
528  Int_t fDrawQueries; //number of draw queries during this sessions
529  Int_t fMaxDrawQueries; //max number of draw queries kept
530  Int_t fSeqNum; //Remote sequential # of the last query submitted
531 
532  Int_t fSessionID; //remote ID of the session
533 
534  Bool_t fEndMaster; //true for a master in direct contact only with workers
535 
536  TPackMgr *fPackMgr; // Default package manager
537  TList *fEnabledPackagesOnCluster; //list of enabled packages
538 
539  TList *fInputData; //Input data objects sent over via file
540  TString fInputDataFile; //File with input data objects
541 
542  TProofOutputList fOutputList; // TList implementation filtering ls(...) and Print(...)
543 
544  PrintProgress_t fPrintProgress; //Function function to display progress info in batch mode
545 
546  std::recursive_mutex fCloseMutex; // Avoid crashes in MarkBad or alike while closing
547 
548  TList *fLoadedMacros; // List of loaded macros (just file names)
549  static TList *fgProofEnvList; // List of TNameds defining environment
550  // variables to pass to proofserv
551 
552  Bool_t fMergersSet; // Indicates, if the following variables have been initialized properly
553  Bool_t fMergersByHost; // Mergers assigned by host name
555  Int_t fWorkersToMerge; // Current total number of workers, which have not been yet assigned to any merger
560 
561  TString fPerfTree; // If non-null triggers saving of the performance info into fPerfTree
562 
563  TList *fWrksOutputReady; // List of workers ready to send output (in control output sending mode)
564 
565  static TPluginHandler *fgLogViewer; // Log dialog box plugin
566 
567 protected:
568  enum ESlaves { kAll, kActive, kUnique, kAllUnique };
569 
570  Bool_t fMasterServ; //true if we are a master server
571  TUrl fUrl; //Url of the master
572  TString fConfFile; //file containing config information
573  TString fConfDir; //directory containing cluster config information
574  TString fImage; //master's image name
575  Int_t fProtocol; //remote PROOF server protocol version number
576  TList *fSlaves; //list of all slave servers as in config file
577  TList *fTerminatedSlaveInfos; //list of unique infos of terminated slaves
578  TList *fBadSlaves; //dead slaves (subset of all slaves)
579  TMonitor *fAllMonitor; //monitor activity on all valid slave sockets
580  Bool_t fDataReady; //true if data is ready to be analyzed
581  Long64_t fBytesReady; //number of bytes staged
582  Long64_t fTotalBytes; //number of bytes to be analyzed
583  TList *fAvailablePackages; //list of available packages
584  TList *fEnabledPackages; //list of enabled packages
585  TList *fRunningDSets; // Temporary datasets used for async running
586 
587  Int_t fCollectTimeout; // Timeout for (some) collect actions
588 
589  TString fDataPoolUrl; // default data pool entry point URL
590  TProofMgr::EServType fServType; // type of server: proofd, XrdProofd
591  TProofMgr *fManager; // manager to which this session belongs (if any)
592  EQueryMode fQueryMode; // default query mode
593  Bool_t fDynamicStartup; // are the workers started dynamically?
594 
595  TSelector *fSelector; // Selector to be processed, if any
596 
597  TStopwatch fQuerySTW; // Stopwatch to measure query times
598  Float_t fPrepTime; // Preparation time
599 
600 private:
601  TProof(const TProof &); // not implemented
602  void operator=(const TProof &); // idem
603 
604  void CleanGDirectory(TList *ol);
605 
606  Int_t Exec(const char *cmd, ESlaves list, Bool_t plusMaster);
607  Int_t SendCommand(const char *cmd, ESlaves list = kActive);
608  Int_t SendCurrentState(ESlaves list = kActive);
609  Int_t SendCurrentState(TList *list);
610  Bool_t CheckFile(const char *file, TSlave *sl, Long_t modtime, Int_t cpopt = (kCp | kCpBin));
611  Int_t SendObject(const TObject *obj, ESlaves list = kActive);
612  Int_t SendGroupView();
613  Int_t SendInitialState();
614  Int_t SendPrint(Option_t *option="");
615  Int_t Ping(ESlaves list);
616  void Interrupt(EUrgent type, ESlaves list = kActive);
617  void AskStatistics();
618  void AskParallel();
619  Int_t GoParallel(Int_t nodes, Bool_t accept = kFALSE, Bool_t random = kFALSE);
620  Int_t GoMoreParallel(Int_t nWorkersToAdd);
621  Int_t SetParallelSilent(Int_t nodes, Bool_t random = kFALSE);
622  void RecvLogFile(TSocket *s, Int_t size);
623  void NotifyLogMsg(const char *msg, const char *sfx = "\n");
624 
625  Int_t BuildPackage(const char *package, EBuildPackageOpt opt = kBuildAll, Int_t chkveropt = TPackMgr::kCheckROOT, TList *workers = 0);
626  Int_t LoadPackage(const char *package, Bool_t notOnClient = kFALSE, TList *loadopts = 0, TList *workers = 0);
627  Int_t UnloadPackage(const char *package);
628  Int_t UnloadPackages();
629  Int_t DisablePackage(const char *package);
630  Int_t DisablePackages();
631 
632  void Activate(TList *slaves = 0);
633  Int_t Broadcast(const TMessage &mess, TList *slaves);
634  Int_t Broadcast(const TMessage &mess, ESlaves list = kActive);
635  Int_t Broadcast(const char *mess, Int_t kind, TList *slaves);
636  Int_t Broadcast(const char *mess, Int_t kind = kMESS_STRING, ESlaves list = kActive);
637  Int_t Broadcast(Int_t kind, TList *slaves) { return Broadcast(0, kind, slaves); }
638  Int_t Broadcast(Int_t kind, ESlaves list = kActive) { return Broadcast(0, kind, list); }
639  Int_t BroadcastFile(const char *file, Int_t opt, const char *rfile, TList *wrks);
640  Int_t BroadcastFile(const char *file, Int_t opt, const char *rfile = 0, ESlaves list = kAllUnique);
641  Int_t BroadcastGroupPriority(const char *grp, Int_t priority, ESlaves list = kAllUnique);
642  Int_t BroadcastGroupPriority(const char *grp, Int_t priority, TList *workers);
643  Int_t BroadcastObject(const TObject *obj, Int_t kind, TList *slaves);
644  Int_t BroadcastObject(const TObject *obj, Int_t kind = kMESS_OBJECT, ESlaves list = kActive);
645  Int_t BroadcastRaw(const void *buffer, Int_t length, TList *slaves);
646  Int_t BroadcastRaw(const void *buffer, Int_t length, ESlaves list = kActive);
647  Int_t Collect(const TSlave *sl, Long_t timeout = -1, Int_t endtype = -1, Bool_t deactonfail = kFALSE);
648  Int_t Collect(TMonitor *mon, Long_t timeout = -1, Int_t endtype = -1, Bool_t deactonfail = kFALSE);
649  Int_t CollectInputFrom(TSocket *s, Int_t endtype = -1, Bool_t deactonfail = kFALSE);
650  Int_t HandleInputMessage(TSlave *wrk, TMessage *m, Bool_t deactonfail = kFALSE);
651  void HandleSubmerger(TMessage *mess, TSlave *sl);
652  void SetMonitor(TMonitor *mon = 0, Bool_t on = kTRUE);
653 
654  void ReleaseMonitor(TMonitor *mon);
655 
656  virtual void FindUniqueSlaves();
657  TSlave *FindSlave(TSocket *s) const;
658  TList *GetListOfSlaves() const { return fSlaves; }
659  TList *GetListOfInactiveSlaves() const { return fInactiveSlaves; }
660  TList *GetListOfUniqueSlaves() const { return fUniqueSlaves; }
661  TList *GetListOfBadSlaves() const { return fBadSlaves; }
662  Int_t GetNumberOfSlaves() const;
663  Int_t GetNumberOfActiveSlaves() const;
664  Int_t GetNumberOfInactiveSlaves() const;
665  Int_t GetNumberOfUniqueSlaves() const;
666  Int_t GetNumberOfBadSlaves() const;
667 
668  Bool_t IsEndMaster() const { return fEndMaster; }
669  Int_t ModifyWorkerLists(const char *ord, Bool_t add, Bool_t save);
670  Int_t RestoreActiveList();
671  void SaveActiveList();
672 
673  Bool_t IsSync() const { return fSync; }
674  void InterruptCurrentMonitor();
675 
676  void SetRunStatus(ERunStatus rst) { fRunStatus = rst; }
677 
678  void MarkBad(TSlave *wrk, const char *reason = 0);
679  void MarkBad(TSocket *s, const char *reason = 0);
680  void TerminateWorker(TSlave *wrk);
681  void TerminateWorker(const char *ord);
682 
683  void ActivateAsyncInput();
684  void DeActivateAsyncInput();
685 
686  Int_t GetQueryReference(Int_t qry, TString &ref);
687  void PrintProgress(Long64_t total, Long64_t processed,
688  Float_t procTime = -1., Long64_t bytesread = -1);
689 
690  // Managing mergers
691  Bool_t CreateMerger(TSlave *sl, Int_t port);
692  void RedirectWorker(TSocket *s, TSlave * sl, Int_t output_size);
693  Int_t GetActiveMergersCount();
694  Int_t FindNextFreeMerger();
695  void ResetMergers() { fMergersSet = kFALSE; }
696  void AskForOutput(TSlave *sl);
697 
698  void FinalizationDone() { fFinalizationRunning = kFALSE; }
699 
700  void ResetMergePrg();
701  void ParseConfigField(const char *config);
702 
703  Bool_t Prompt(const char *p);
704  void ClearDataProgress(Int_t r, Int_t t);
705 
706  static TList *GetDataSetSrvMaps(const TString &srvmaps);
707 
708 protected:
709  TProof(); // For derived classes to use
710  void InitMembers();
711  Int_t Init(const char *masterurl, const char *conffile,
712  const char *confdir, Int_t loglevel,
713  const char *alias = 0);
714  virtual Bool_t StartSlaves(Bool_t attach = kFALSE);
715  Int_t AddWorkers(TList *wrks);
716  Int_t RemoveWorkers(TList *wrks);
717  void SetupWorkersEnv(TList *wrks, Bool_t increasingpool = kFALSE);
718 
719  void SetPlayer(TVirtualProofPlayer *player);
720  TVirtualProofPlayer *GetPlayer() const { return fPlayer; }
721  virtual TVirtualProofPlayer *MakePlayer(const char *player = 0, TSocket *s = 0);
722 
723  void UpdateDialog();
724 
725  void HandleLibIncPath(const char *what, Bool_t add, const char *dirs);
726 
727  TList *GetListOfActiveSlaves() const { return fActiveSlaves; }
728  TSlave *CreateSlave(const char *url, const char *ord,
729  Int_t perf, const char *image, const char *workdir);
730  TSlave *CreateSubmaster(const char *url, const char *ord,
731  const char *image, const char *msd, Int_t nwk = 1);
732 
733  virtual Int_t PollForNewWorkers();
734  virtual void SaveWorkerInfo();
735 
736  Int_t Collect(ESlaves list = kActive, Long_t timeout = -1, Int_t endtype = -1, Bool_t deactonfail = kFALSE);
737  Int_t Collect(TList *slaves, Long_t timeout = -1, Int_t endtype = -1, Bool_t deactonfail = kFALSE);
738 
739  TList *GetEnabledPackages() const { return fEnabledPackagesOnCluster; }
740 
741  void SetDSet(TDSet *dset) { fDSet = dset; }
742  virtual void ValidateDSet(TDSet *dset);
743 
744  Int_t VerifyDataSetParallel(const char *uri, const char *optStr);
745 
746  TPluginHandler *GetProgressDialog() const { return fProgressDialog; }
747 
748  Int_t AssertPath(const char *path, Bool_t writable);
749  Int_t GetSandbox(TString &sb, Bool_t assert = kFALSE, const char *rc = 0);
750 
751  void PrepareInputDataFile(TString &dataFile);
752  virtual void SendInputDataFile();
753  Int_t SendFile(const char *file, Int_t opt = (kBinary | kForward | kCp | kCpBin),
754  const char *rfile = 0, TSlave *sl = 0);
755 
756  // Fast enable/disable feedback from Process
757  void SetFeedback(TString &opt, TString &optfb, Int_t action);
758  // Output file handling during Process
759  Int_t HandleOutputOptions(TString &opt, TString &target, Int_t action);
760 
761  static void *SlaveStartupThread(void *arg);
762 
763  static Int_t AssertDataSet(TDSet *dset, TList *input,
764  TDataSetManager *mgr, TString &emsg);
765  static void AssertMacroPath(const char *macro);
766 
767  // Input data handling
768  static Int_t GetInputData(TList *input, const char *cachedir, TString &emsg);
769  static Int_t SaveInputData(TQueryResult *qr, const char *cachedir, TString &emsg);
770  static Int_t SendInputData(TQueryResult *qr, TProof *p, TString &emsg);
771 
772  // Parse CINT commands
773  static Bool_t GetFileInCmd(const char *cmd, TString &fn);
774 
775  // Pipe execution of commands
776  static void SystemCmd(const char *cmd, Int_t fdout);
777 
778 public:
779  TProof(const char *masterurl, const char *conffile = kPROOF_ConfFile,
780  const char *confdir = kPROOF_ConfDir, Int_t loglevel = 0,
781  const char *alias = 0, TProofMgr *mgr = 0);
782  virtual ~TProof();
783 
784  void cd(Int_t id = -1);
785 
786  Int_t Ping();
787  void Touch();
788  Int_t Exec(const char *cmd, Bool_t plusMaster = kFALSE);
789  Int_t Exec(const char *cmd, const char *ord, Bool_t logtomacro = kFALSE);
790 
791  TString Getenv(const char *env, const char *ord = "0");
792  Int_t GetRC(const char *RCenv, Int_t &env, const char *ord = "0");
793  Int_t GetRC(const char *RCenv, Double_t &env, const char *ord = "0");
794  Int_t GetRC(const char *RCenv, TString &env, const char *ord = "0");
795 
796  virtual Long64_t Process(TDSet *dset, const char *selector,
797  Option_t *option = "", Long64_t nentries = -1,
798  Long64_t firstentry = 0);
799  virtual Long64_t Process(TFileCollection *fc, const char *selector,
800  Option_t *option = "", Long64_t nentries = -1,
801  Long64_t firstentry = 0);
802  virtual Long64_t Process(const char *dsetname, const char *selector,
803  Option_t *option = "", Long64_t nentries = -1,
804  Long64_t firstentry = 0, TObject *enl = 0);
805  virtual Long64_t Process(const char *selector, Long64_t nentries,
806  Option_t *option = "");
807  // Process via TSelector
808  virtual Long64_t Process(TDSet *dset, TSelector *selector,
809  Option_t *option = "", Long64_t nentries = -1,
810  Long64_t firstentry = 0);
811  virtual Long64_t Process(TFileCollection *fc, TSelector *selector,
812  Option_t *option = "", Long64_t nentries = -1,
813  Long64_t firstentry = 0);
814  virtual Long64_t Process(const char *dsetname, TSelector *selector,
815  Option_t *option = "", Long64_t nentries = -1,
816  Long64_t firstentry = 0, TObject *enl = 0);
817  virtual Long64_t Process(TSelector *selector, Long64_t nentries,
818  Option_t *option = "");
819 
820  virtual Long64_t DrawSelect(TDSet *dset, const char *varexp,
821  const char *selection = "",
822  Option_t *option = "", Long64_t nentries = -1,
823  Long64_t firstentry = 0);
824  Long64_t DrawSelect(const char *dsetname, const char *varexp,
825  const char *selection = "",
826  Option_t *option = "", Long64_t nentries = -1,
827  Long64_t firstentry = 0, TObject *enl = 0);
828  Int_t Archive(Int_t query, const char *url);
829  Int_t Archive(const char *queryref, const char *url = 0);
830  Int_t CleanupSession(const char *sessiontag);
831  Long64_t Finalize(Int_t query = -1, Bool_t force = kFALSE);
832  Long64_t Finalize(const char *queryref, Bool_t force = kFALSE);
833  Int_t Remove(Int_t query, Bool_t all = kFALSE);
834  Int_t Remove(const char *queryref, Bool_t all = kFALSE);
835  Int_t Retrieve(Int_t query, const char *path = 0);
836  Int_t Retrieve(const char *queryref, const char *path = 0);
837 
838  void DisableGoAsyn();
839  void GoAsynchronous();
840  void StopProcess(Bool_t abort, Int_t timeout = -1);
841  void Browse(TBrowser *b);
842 
843  virtual Int_t Echo(const TObject *obj);
844  virtual Int_t Echo(const char *str);
845 
846  Int_t SetParallel(Int_t nodes = -1, Bool_t random = kFALSE);
847  void SetLogLevel(Int_t level, UInt_t mask = TProofDebug::kAll);
848 
849  void Close(Option_t *option="");
850  virtual void Print(Option_t *option="") const;
851 
852  //-- cache and package management
853  virtual void ShowCache(Bool_t all = kFALSE);
854  virtual void ClearCache(const char *file = 0);
855  TList *GetListOfPackages();
856  TList *GetListOfEnabledPackages();
857  void ShowPackages(Bool_t all = kFALSE, Bool_t redirlog = kFALSE);
858  void ShowEnabledPackages(Bool_t all = kFALSE);
859  Int_t ClearPackages();
860  Int_t ClearPackage(const char *package);
861  Int_t DownloadPackage(const char *par, const char *dstdir = 0);
862  Int_t EnablePackage(const char *package, Bool_t notOnClient = kFALSE, TList *workers = 0);
863  Int_t EnablePackage(const char *package, const char *loadopts,
864  Bool_t notOnClient = kFALSE, TList *workers = 0);
865  Int_t EnablePackage(const char *package, TList *loadopts,
866  Bool_t notOnClient = kFALSE, TList *workers = 0);
867  Int_t UploadPackage(const char *par, EUploadPackageOpt opt = kUntar, TList *workers = 0);
868  virtual Int_t Load(const char *macro, Bool_t notOnClient = kFALSE, Bool_t uniqueOnly = kTRUE,
869  TList *wrks = 0);
870 
871  Int_t AddDynamicPath(const char *libpath, Bool_t onClient = kFALSE, TList *wrks = 0, Bool_t doCollect = kTRUE);
872  Int_t AddIncludePath(const char *incpath, Bool_t onClient = kFALSE, TList *wrks = 0, Bool_t doCollect = kTRUE);
873  Int_t RemoveDynamicPath(const char *libpath, Bool_t onClient = kFALSE);
874  Int_t RemoveIncludePath(const char *incpath, Bool_t onClient = kFALSE);
875 
876  //-- dataset management
877  Int_t UploadDataSet(const char *, TList *, const char * = 0, Int_t = 0, TList * = 0);
878  Int_t UploadDataSet(const char *, const char *, const char * = 0, Int_t = 0, TList * = 0);
879  Int_t UploadDataSetFromFile(const char *, const char *, const char * = 0, Int_t = 0, TList * = 0);
880  virtual Bool_t RegisterDataSet(const char *name,
881  TFileCollection *dataset, const char* optStr = "");
882  virtual TMap *GetDataSets(const char *uri = "", const char* optStr = "");
883  virtual void ShowDataSets(const char *uri = "", const char* optStr = "");
884 
885  TMap *GetDataSetQuota(const char* optStr = "");
886  void ShowDataSetQuota(Option_t* opt = 0);
887 
888  virtual Bool_t ExistsDataSet(const char *dataset);
889  void ShowDataSet(const char *dataset = "", const char* opt = "filter:SsCc");
890  virtual Int_t RemoveDataSet(const char *dataset, const char* optStr = "");
891  virtual Int_t VerifyDataSet(const char *dataset, const char* optStr = "");
892  virtual TFileCollection *GetDataSet(const char *dataset, const char* optStr = "");
893  TList *FindDataSets(const char *searchString, const char* optStr = "");
894  virtual Bool_t RequestStagingDataSet(const char *dataset);
895  virtual TFileCollection *GetStagingStatusDataSet(const char *dataset);
896  virtual void ShowStagingStatusDataSet(const char *dataset, const char *optStr = "filter:SsCc");
897  virtual Bool_t CancelStagingDataSet(const char *dataset);
898 
899  virtual Int_t SetDataSetTreeName( const char *dataset, const char *treename);
900 
901  virtual void ShowDataSetCache(const char *dataset = 0);
902  virtual void ClearDataSetCache(const char *dataset = 0);
903 
904  virtual void ShowData();
905  void ClearData(UInt_t what = kUnregistered, const char *dsname = 0);
906 
907  const char *GetMaster() const { return fMaster; }
908  const char *GetConfDir() const { return fConfDir; }
909  const char *GetConfFile() const { return fConfFile; }
910  const char *GetUser() const { return fUrl.GetUser(); }
911  const char *GetGroup() const { return fGroup; }
912  const char *GetWorkDir() const { return fWorkDir; }
913  const char *GetSessionTag() const { return GetName(); }
914  const char *GetImage() const { return fImage; }
915  const char *GetUrl() { return fUrl.GetUrl(); }
916  Int_t GetPort() const { return fUrl.GetPort(); }
917  Int_t GetRemoteProtocol() const { return fProtocol; }
919  Int_t GetStatus() const { return fStatus; }
920  Int_t GetLogLevel() const { return fLogLevel; }
921  Int_t GetParallel() const;
922  Int_t GetSeqNum() const { return fSeqNum; }
923  Int_t GetSessionID() const { return fSessionID; }
924  TList *GetListOfSlaveInfos();
925  Bool_t UseDynamicStartup() const { return fDynamicStartup; }
926 
927  EQueryMode GetQueryMode(Option_t *mode = 0) const;
928  void SetQueryMode(EQueryMode mode);
929 
930  void SetRealTimeLog(Bool_t on = kTRUE);
931 
932  void GetStatistics(Bool_t verbose = kFALSE);
933  Long64_t GetBytesRead() const { return fBytesRead; }
934  Float_t GetRealTime() const { return fRealTime; }
935  Float_t GetCpuTime() const { return fCpuTime; }
936 
937  Bool_t IsLite() const { return (fServType == TProofMgr::kProofLite) ? kTRUE : kFALSE; }
938  Bool_t IsProofd() const { return (fServType == TProofMgr::kProofd) ? kTRUE : kFALSE; }
939  Bool_t IsFolder() const { return kTRUE; }
940  Bool_t IsMaster() const { return fMasterServ; }
941  Bool_t IsValid() const { return fValid; }
942  Bool_t IsTty() const { return fTty; }
943  Bool_t IsParallel() const { return GetParallel() > 0 ? kTRUE : kFALSE; }
944  Bool_t IsIdle() const { return (fNotIdle <= 0) ? kTRUE : kFALSE; }
945  Bool_t IsWaiting() const { return fIsWaiting; }
946 
947  ERunStatus GetRunStatus() const { return fRunStatus; }
948  TList *GetLoadedMacros() const { return fLoadedMacros; }
949 
950  //-- input list parameter handling
951  void SetParameter(const char *par, const char *value);
952  void SetParameter(const char *par, Int_t value);
953  void SetParameter(const char *par, Long_t value);
954  void SetParameter(const char *par, Long64_t value);
955  void SetParameter(const char *par, Double_t value);
956  TObject *GetParameter(const char *par) const;
957  void DeleteParameters(const char *wildcard);
958  void ShowParameters(const char *wildcard = "PROOF_*") const;
959 
960  void AddInput(TObject *obj);
961  void ClearInput();
962  TList *GetInputList();
963  TObject *GetOutput(const char *name);
964  TList *GetOutputList();
965  static TObject *GetOutput(const char *name, TList *out);
966 
967  void ShowMissingFiles(TQueryResult *qr = 0);
968  TFileCollection *GetMissingFiles(TQueryResult *qr = 0);
969 
970  void AddInputData(TObject *obj, Bool_t push = kFALSE);
971  void SetInputDataFile(const char *datafile);
972  void ClearInputData(TObject *obj = 0);
973  void ClearInputData(const char *name);
974 
975  void AddFeedback(const char *name);
976  void RemoveFeedback(const char *name);
977  void ClearFeedback();
978  void ShowFeedback() const;
979  TList *GetFeedbackList() const;
980 
981  virtual TList *GetListOfQueries(Option_t *opt = "");
982  Int_t GetNumberOfQueries();
983  Int_t GetNumberOfDrawQueries() { return fDrawQueries; }
984  TList *GetQueryResults();
985  TQueryResult *GetQueryResult(const char *ref = 0);
986  void GetMaxQueries();
987  void SetMaxDrawQueries(Int_t max);
988  void ShowQueries(Option_t *opt = "");
989 
990  Bool_t IsDataReady(Long64_t &totalbytes, Long64_t &bytesready);
991 
992  void SetActive(Bool_t /*active*/ = kTRUE) { }
993 
994  void LogMessage(const char *msg, Bool_t all); //*SIGNAL*
995  void Progress(Long64_t total, Long64_t processed); //*SIGNAL*
996  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
997  Float_t initTime, Float_t procTime,
998  Float_t evtrti, Float_t mbrti); // *SIGNAL*
999  void Progress(Long64_t total, Long64_t processed, Long64_t bytesread,
1000  Float_t initTime, Float_t procTime,
1001  Float_t evtrti, Float_t mbrti,
1002  Int_t actw, Int_t tses, Float_t eses); // *SIGNAL*
1003  void Feedback(TList *objs); //*SIGNAL*
1004  void QueryResultReady(const char *ref); //*SIGNAL*
1005  void CloseProgressDialog(); //*SIGNAL*
1006  void ResetProgressDialog(const char *sel, Int_t sz,
1007  Long64_t fst, Long64_t ent); //*SIGNAL*
1008  void StartupMessage(const char *msg, Bool_t status, Int_t done,
1009  Int_t total); //*SIGNAL*
1010  void DataSetStatus(const char *msg, Bool_t status,
1011  Int_t done, Int_t total); //*SIGNAL*
1012 
1013  void SendDataSetStatus(const char *msg, UInt_t n, UInt_t tot, Bool_t st);
1014 
1015  void GetLog(Int_t start = -1, Int_t end = -1);
1016  TMacro *GetLastLog();
1017  void PutLog(TQueryResult *qr);
1018  void ShowLog(Int_t qry = -1);
1019  void ShowLog(const char *queryref);
1020  Bool_t SendingLogToWindow() const { return fLogToWindowOnly; }
1021  void SendLogToWindow(Bool_t mode) { fLogToWindowOnly = mode; }
1022 
1023  TMacro *GetMacroLog() { return &fMacroLog; }
1024 
1025  void ResetProgressDialogStatus() { fProgressDialogStarted = kFALSE; }
1026 
1027  virtual TTree *GetTreeHeader(TDSet *tdset);
1028  TList *GetOutputNames();
1029 
1030  void AddChain(TChain *chain);
1031  void RemoveChain(TChain *chain);
1032 
1033  TDrawFeedback *CreateDrawFeedback();
1034  void SetDrawFeedbackOption(TDrawFeedback *f, Option_t *opt);
1035  void DeleteDrawFeedback(TDrawFeedback *f);
1036 
1037  void Detach(Option_t *opt = "");
1038 
1039  virtual void SetAlias(const char *alias="");
1040 
1041  TProofMgr *GetManager() { return fManager; }
1042  void SetManager(TProofMgr *mgr);
1043 
1044  Int_t ActivateWorker(const char *ord, Bool_t save = kTRUE);
1045  Int_t DeactivateWorker(const char *ord, Bool_t save = kTRUE);
1046 
1047  const char *GetDataPoolUrl() const { return fManager ? fManager->GetMssUrl() : 0; }
1048  void SetDataPoolUrl(const char *url) { if (fManager) fManager->SetMssUrl(url); }
1049 
1050  void SetPrintProgress(PrintProgress_t pp) { fPrintProgress = pp; }
1051 
1052  void SetProgressDialog(Bool_t on = kTRUE);
1053 
1054  // Enable the performance tree
1055  Int_t SavePerfTree(const char *pf = 0, const char *qref = 0);
1056  void SetPerfTree(const char *pf = "perftree.root", Bool_t withWrks = kFALSE);
1057 
1058  // Opening and managing PROOF connections
1059  static TProof *Open(const char *url = 0, const char *conffile = 0,
1060  const char *confdir = 0, Int_t loglevel = 0);
1061  static void LogViewer(const char *url = 0, Int_t sessionidx = 0);
1062  static TProofMgr *Mgr(const char *url);
1063  static void Reset(const char *url, Bool_t hard = kFALSE);
1064 
1065  static void AddEnvVar(const char *name, const char *value);
1066  static void DelEnvVar(const char *name);
1067  static const TList *GetEnvVars();
1068  static void ResetEnvVars();
1069 
1070  // Input/output list utilities
1071  static Int_t GetParameter(TCollection *c, const char *par, TString &value);
1072  static Int_t GetParameter(TCollection *c, const char *par, Int_t &value);
1073  static Int_t GetParameter(TCollection *c, const char *par, Long_t &value);
1074  static Int_t GetParameter(TCollection *c, const char *par, Long64_t &value);
1075  static Int_t GetParameter(TCollection *c, const char *par, Double_t &value);
1076 
1077  ClassDef(TProof,0) //PROOF control class
1078 };
1079 
1080 // Global object with default PROOF session
1082 
1083 #endif
Int_t fTotSessions
Definition: TProof.h:175
std::map< TString, MD5Mod_t > FileMap_t
Definition: TProof.h:505
const Int_t kPROOF_Port
Definition: TProof.h:125
std::string GetName(const std::string &scope_name)
Definition: Cppyy.cxx:145
Long64_t fTotal
Definition: TProof.h:167
void(* PrintProgress_t)(Long64_t tot, Long64_t proc, Float_t proctime, Long64_t bytes)
Definition: TProof.h:162
double par[1]
Definition: unuranDistr.cxx:38
This class starts a PROOF session on the local machine: no daemons, client and master merged...
Definition: TProofLite.h:40
const Long64_t kPROOF_DynWrkPollInt_s
Definition: TProof.h:142
TList * GetListOfBadSlaves() const
Definition: TProof.h:661
The PROOF package manager contains tools to manage packages.
Definition: TPackMgr.h:37
TString fPerfTree
Definition: TProof.h:561
const char *const kGUNZIP
Definition: TProof.h:151
const char * GetName() const
Returns name of object.
Definition: TProof.h:235
Int_t RemoveDataSet(const char *dsname)
RemoveDataSet wrapper.
Long64_t GetBytesRead() const
Definition: TProof.h:933
Bool_t fIsWaiting
Definition: TProof.h:512
EProofDataSetCommands
Definition: TProof.h:427
Internal class steering processing in PROOF.
Definition: TProofPlayer.h:60
TMonitor * fAllUniqueMonitor
Definition: TProof.h:490
long long Long64_t
Definition: RtypesCore.h:69
void FinalizationDone()
Definition: TProof.h:698
TString fConfDir
Definition: TProof.h:573
EUrgent
Definition: TProof.h:397
ERunStatus
Definition: TProof.h:374
Int_t GetPort() const
Definition: TProof.h:916
const char *const kCP
Definition: TProof.h:145
const char *const kLS
Definition: TProof.h:147
Int_t fOtherQueries
Definition: TProof.h:527
float Float_t
Definition: RtypesCore.h:53
Long64_t fBytesRead
Definition: TProof.h:169
Int_t fWorkersToMerge
Definition: TProof.h:555
Float_t fCpuTime
Definition: TProof.h:494
const char Option_t
Definition: RtypesCore.h:62
Bool_t fSync
Definition: TProof.h:510
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TProof.h:939
TList * fWrksOutputReady
Definition: TProof.h:563
This class represents a WWW compatible URL.
Definition: TUrl.h:35
Bool_t fMergersSet
Definition: TProof.h:552
Int_t fMergedWorkers
Definition: TProof.h:260
TList * GetWorkers()
Definition: TProof.h:276
This class implements a data set to be used for PROOF processing.
Definition: TDSet.h:151
TProofMgr * GetManager()
Definition: TProof.h:1041
TFileCollection * GetDataSet(const char *ds, const char *server)
GetDataSet wrapper.
Definition: pq2wrappers.cxx:87
#define BIT(n)
Definition: Rtypes.h:75
TSlave * GetMerger()
Definition: TProof.h:278
Int_t GetStatus() const
Definition: TProof.h:919
The PROOF manager interacts with the PROOF server coordinator to create or destroy a PROOF session...
Definition: TProofMgr.h:43
const char *const kPROOF_WorkDir
Definition: TProof.h:128
TList * fAllUniqueSlaves
Definition: TProof.h:486
TString fImage
Definition: TProof.h:574
Int_t Broadcast(Int_t kind, TList *slaves)
Definition: TProof.h:637
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
Definition: TQObject.h:49
const char * GetOrdinal() const
Definition: TProof.h:236
TString fLogFileName
Definition: TProof.h:515
Int_t fPerfIndex
Definition: TProof.h:224
TList * GetListOfInactiveSlaves() const
Definition: TProof.h:659
Class supporting a collection of lines with C++ code.
Definition: TMacro.h:31
Float_t fEvtRateI
Definition: TProof.h:172
TList * GetListOfSlaves() const
Definition: TProof.h:658
TList * fQueries
Definition: TProof.h:526
Basic string class.
Definition: TString.h:129
void SetDSet(TDSet *dset)
Definition: TProof.h:741
Int_t GetClientProtocol() const
Definition: TProof.h:918
TString fGroup
Definition: TProof.h:472
TString fDataDir
Definition: TProof.h:223
Version of TSlave for local worker servers.
Definition: TSlaveLite.h:31
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
TList * fUniqueSlaves
Definition: TProof.h:485
Bool_t IsMaster() const
Definition: TProof.h:940
TList * fWaitingSlaves
Definition: TProof.h:525
const char *const kRM
Definition: TProof.h:146
const char *const kPROOF_PackageLockFile
Definition: TProof.h:136
TMacro * GetMacroLog()
Definition: TProof.h:1023
TSlave * fMerger
Definition: TProof.h:254
const char * GetConfFile() const
Definition: TProof.h:909
STL namespace.
void ResetMergers()
Definition: TProof.h:695
static TPluginHandler * fgLogViewer
Definition: TProof.h:565
Float_t fRealTime
Definition: TProof.h:493
TString fHostName
Definition: TProof.h:221
This is the version of TSlave for workers servers based on XProofD.
Definition: TXSlave.h:32
Bool_t UseDynamicStartup() const
Definition: TProof.h:925
Int_t fWorkersToMerge
Definition: TProof.h:258
Int_t GetWorkersToMerge()
Definition: TProof.h:281
Int_t RegisterDataSet(const char *dsname, TFileCollection *fc, const char *opt)
RegisterDataSet wrapper.
const char * GetDataPoolUrl() const
Definition: TProof.h:1047
TDSet * fDSet
Definition: TProof.h:507
Int_t fActWorkers
Definition: TProof.h:174
TList * fInputData
Definition: TProof.h:539
const char *const kPROOF_PackDownloadDir
Definition: TProof.h:131
void Reset(Int_t n=-1)
Definition: TProof.h:316
TVirtualProofPlayer * fPlayer
Definition: TProof.h:498
Bool_t IsLite() const
Definition: TProof.h:937
TList * fWorkers
Definition: TProof.h:263
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
Definition: TUrl.cxx:387
Int_t GetSessionID() const
Definition: TProof.h:923
EQueryMode
Definition: TProof.h:353
EUploadPackageOpt
Definition: TProof.h:370
Bool_t fMasterServ
Definition: TProof.h:570
Bool_t fFinalizationRunning
Definition: TProof.h:558
This class generates packets to be processed on PROOF worker servers.
Definition: TPacketizer.h:39
const char * GetConfDir() const
Definition: TProof.h:908
Int_t GetMergedObjects()
Definition: TProof.h:283
TSignalHandler * fIntHandler
Definition: TProof.h:495
Int_t fDrawQueries
Definition: TProof.h:528
TString fDataPoolUrl
Definition: TProof.h:589
void AddMergedObjects(Int_t objects)
Definition: TProof.h:286
TList * fChains
Definition: TProof.h:500
static struct mg_connection * fc(struct mg_context *ctx)
Definition: civetweb.c:1956
Bool_t SendingLogToWindow() const
Definition: TProof.h:1020
TPluginHandler * fProgressDialog
Definition: TProof.h:496
TList * fBadSlaves
Definition: TProof.h:578
Int_t fLastAssignedMerger
Definition: TProof.h:556
Bool_t fSendGroupView
list returned by kPROOF_GETSLAVEINFO
Definition: TProof.h:478
const char * Export(Bool_t &changed)
Definition: TProof.h:308
EProofWrkListAction
Definition: TProof.h:453
#define ClassDef(name, id)
Definition: Rtypes.h:297
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Definition: THashList.h:34
EProofCacheCommands
Definition: TProof.h:404
This code implements the MD5 message-digest algorithm.
Definition: TMD5.h:44
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
Int_t GetLogLevel() const
Definition: TProof.h:920
const char *const kPROOF_QueryDir
Definition: TProof.h:132
TString fOrdinal
Definition: TProof.h:220
Int_t fRedirectNext
Definition: TProof.h:559
Bool_t IsEndMaster() const
Definition: TProof.h:668
const char *const kPROOF_WorkerIdleTO
Definition: TProof.h:139
const char * GetGroup() const
Definition: TProof.h:911
TProofInterruptHandler(TProof *p)
Definition: TProof.h:196
const char * GetWorkDir() const
Definition: TProof.h:912
Bool_t IsSync() const
Definition: TProof.h:673
void Deactivate()
Definition: TProof.h:291
EProofShowQuotaOpt
Definition: TProof.h:463
TString fConfFile
Definition: TProof.h:572
ESlaveStatus fStatus
Definition: TProof.h:226
const char * GetSessionTag() const
Definition: TProof.h:913
TList * fSlaves
Definition: TProof.h:576
Int_t fNotIdle
Definition: TProof.h:509
TProofMergePrg()
Definition: TProof.h:306
Int_t fMergedObjects
Definition: TProof.h:256
TList * GetEnabledPackages() const
Definition: TProof.h:739
Int_t fNWrks
Definition: TProof.h:302
const char * GetDataDir() const
Definition: TProof.h:233
TList * fInactiveSlaves
Definition: TProof.h:484
Version of TProofPlayerRemote merges the functionality needed by clients and masters.
A container class for query results.
Definition: TQueryResult.h:36
PrintProgress_t fPrintProgress
Definition: TProof.h:544
TList * GetLoadedMacros() const
Definition: TProof.h:948
Int_t fCollectTimeout
Definition: TProof.h:587
Long_t fModtime
Definition: TProof.h:503
const char *const kPROOF_DataDir
Definition: TProof.h:134
TProofMergePrg fMergePrg
Definition: TProof.h:523
static TList * fgProofEnvList
Definition: TProof.h:549
virtual const char * GetMssUrl(Bool_t=kFALSE)
Definition: TProofMgr.h:87
Float_t GetRealTime() const
Definition: TProof.h:934
std::recursive_mutex fCloseMutex
Definition: TProof.h:546
This packetizer is based on TPacketizer but uses different load-balancing algorithms and data structu...
Float_t fProcTime
Definition: TProof.h:171
Bool_t fIsPollingWorkers
Definition: TProof.h:479
A doubly linked list.
Definition: TList.h:43
Bool_t fIsActive
Definition: TProof.h:264
void SetDataPoolUrl(const char *url)
Definition: TProof.h:1048
const char * GetUser() const
Definition: TUrl.h:68
This class implements the XProofD version of TProofServ, with respect to which it differs only for th...
Definition: TXProofServ.h:30
Bool_t fRedirLog
Definition: TProof.h:514
virtual void SetMssUrl(const char *mss)
Definition: TProofMgr.h:105
TMonitor * fUniqueMonitor
Definition: TProof.h:489
Bool_t IsSortable() const
Definition: TProof.h:243
const char *const kPROOF_ConfFile
Definition: TProof.h:126
FileMap_t fFileMap
Definition: TProof.h:506
const char *const kPROOF_QueryLockFile
Definition: TProof.h:137
TMonitor * fAllMonitor
Definition: TProof.h:579
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
Int_t fLogLevel
Definition: TProof.h:473
TProofMgr * fManager
Definition: TProof.h:591
const char *const kPROOF_TerminateWorker
Definition: TProof.h:138
TList * fActiveSlaves
Definition: TProof.h:481
Bool_t fSaveLogToMacro
Definition: TProof.h:520
Bool_t fValid
Definition: TProof.h:468
Bool_t fDataReady
Definition: TProof.h:580
Float_t fInitTime
Definition: TProof.h:170
void DecreaseNWrks()
Definition: TProof.h:313
TRandom2 r(17)
SysInfo_t fSysInfo
Definition: TProof.h:225
Class providing the PROOF server.
Definition: TProofServ.h:66
TString fWorkDir
Definition: TProof.h:471
void SetPrintProgress(PrintProgress_t pp)
Definition: TProof.h:1050
ERunStatus fRunStatus
Definition: TProof.h:511
const char *const kPROOF_DataSetDir
Definition: TProof.h:133
TMonitor * fCurrentMonitor
Definition: TProof.h:491
Input handler for XProofD sockets.
const char *const kPROOF_ConfDir
Definition: TProof.h:127
High level handler of connections to XProofD.
Definition: TXSocket.h:59
static int push(struct mg_context *ctx, FILE *fp, SOCKET sock, SSL *ssl, const char *buf, int len, double timeout)
Definition: civetweb.c:3754
Int_t fSeqNum
Definition: TProof.h:530
Collection abstract base class.
Definition: TCollection.h:42
void SetActive(Bool_t=kTRUE)
Definition: TProof.h:992
Bool_t ExistsDataSet(const char *dsname)
ExistsDataSet wrapper.
void Form(const char *fmt,...)
Formats a string using a printf style format descriptor.
Definition: TString.cxx:2332
TList * fSlaveInfo
Definition: TProof.h:477
unsigned int UInt_t
Definition: RtypesCore.h:42
TMarker * m
Definition: textangle.C:8
const char *const kPROOF_CacheLockFile
Definition: TProof.h:135
TMacro fMacroLog
Definition: TProof.h:521
ERunStatus GetRunStatus() const
Definition: TProof.h:947
bool verbose
Int_t GetPort()
Definition: TProof.h:279
void IncreaseIdx()
Definition: TProof.h:315
A TEventList object is a list of selected events (entries) in a TTree.
Definition: TEventList.h:31
const char *const kUNTAR2
Definition: TProof.h:149
Long64_t fProcessed
Definition: TProof.h:168
EProofClearData
Definition: TProof.h:389
Bool_t fProgressDialogStarted
Definition: TProof.h:497
const Int_t kPROOF_Protocol
Definition: TProof.h:124
TStopwatch fQuerySTW
Definition: TProof.h:597
TMergerInfo(TSlave *t, Int_t port, Int_t forHowManyWorkers)
Definition: TProof.h:270
Bool_t fMergersByHost
Definition: TProof.h:553
TString fInputDataFile
Definition: TProof.h:540
void SetStatus(ESlaveStatus stat)
Definition: TProof.h:238
FILE * fLogFileR
Definition: TProof.h:517
Int_t fProtocol
Definition: TProof.h:575
void Reset(Detail::TBranchProxy *x)
const char * GetUrl()
Definition: TProof.h:915
Float_t fEffSessions
Definition: TProof.h:176
TString fExp
Definition: TProof.h:300
Bool_t fLogToWindowOnly
Definition: TProof.h:518
TMap * GetDataSets(const char *owner, const char *server, const char *opt)
GetDataSets wrapper.
Implementation of the functionality provided by TProofMgr in the case of a xproofd-based session...
Definition: TXProofMgr.h:40
TList * fFeedback
Definition: TProof.h:499
Bool_t IsIdle() const
Definition: TProof.h:944
TSlaveInfo(const char *ordinal="", const char *host="", Int_t perfidx=0, const char *msd="", const char *datadir="")
Definition: TProof.h:228
TString fMsd
Definition: TProof.h:222
Float_t fPrepTime
Definition: TProof.h:598
TList * fRunningDSets
Definition: TProof.h:585
const Bool_t kFALSE
Definition: RtypesCore.h:92
Bool_t fDynamicStartup
Definition: TProof.h:593
static unsigned int total
long Long_t
Definition: RtypesCore.h:50
The packetizer is a load balancing object created for each query.
R__EXTERN TProof * gProof
Definition: TProof.h:1081
void SendLogToWindow(Bool_t mode)
Definition: TProof.h:1021
Bool_t fEndMaster
Definition: TProof.h:534
double f(double x)
void Print(std::ostream &os, const OptionType &opt)
const char *const kPROOF_InputDataFile
Definition: TProof.h:140
Bool_t IsProofd() const
Definition: TProof.h:938
ERegisterOpt
Definition: TProof.h:365
TVirtualProofPlayer * GetPlayer() const
Definition: TProof.h:720
Long64_t fBytesRead
Definition: TProof.h:492
Int_t fMergersCount
Definition: TProof.h:554
double Double_t
Definition: RtypesCore.h:55
ESlaves
Definition: TProof.h:568
Int_t fPort
Definition: TProof.h:255
const char * GetMaster() const
Definition: TProof.h:907
TList * fEnabledPackages
Definition: TProof.h:584
EStatusBits
Definition: TObject.h:57
Int_t GetNumberOfDrawQueries()
Definition: TProof.h:983
TList * fNonUniqueMasters
Definition: TProof.h:487
TMap implements an associative array of (key,value) pairs using a THashTable for efficient retrieval ...
Definition: TMap.h:40
int type
Definition: TGX11.cxx:120
TList * fRecvMessages
Definition: TProof.h:476
TList * fEnabledPackagesOnCluster
Definition: TProof.h:537
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:320
TPluginHandler * GetProgressDialog() const
Definition: TProof.h:746
int nentries
Definition: THbookFile.cxx:89
const char *const kPROOF_MissingFiles
Definition: TProof.h:141
void SetNWrks(Int_t n)
Definition: TProof.h:317
EBuildPackageOpt
Definition: TProof.h:457
Int_t VerifyDataSet(const char *dsname, const char *opt, const char *redir)
VerifyDataSet wrapper.
void SetRunStatus(ERunStatus rst)
Definition: TProof.h:676
bool IsEqual(const Transform &t1, const Transform &t2, unsigned int size)
Int_t GetPort() const
Definition: TUrl.h:81
EQueryMode fQueryMode
Definition: TProof.h:592
Bool_t IsTty() const
Definition: TProof.h:942
Binding & operator=(OUT(*fun)(void))
EUploadOpt
Definition: TProof.h:357
FILE * fLogFileW
Definition: TProof.h:516
Mother of all ROOT objects.
Definition: TObject.h:37
#define R__EXTERN
Definition: DllImport.h:27
TPackMgr * fPackMgr
Definition: TProof.h:536
typedef void((*Func_t)())
TSelector * fSelector
Definition: TProof.h:595
void ResetProgressDialogStatus()
Definition: TProof.h:1025
TString fActiveSlavesSaved
Definition: TProof.h:482
Float_t GetCpuTime() const
Definition: TProof.h:935
ESlaveStatus
Definition: TProof.h:218
Int_t fLastNWrks
Definition: TProof.h:303
Class that contains a list of TFileInfo&#39;s and accumulated meta data information about its entries...
Definition: file.py:1
Utility class to draw objects in the feedback list during queries.
Definition: TDrawFeedback.h:35
TProofOutputList fOutputList
Definition: TProof.h:542
SysInfo_t GetSysInfo() const
Definition: TProof.h:237
Int_t Compare(const void *item1, const void *item2)
Int_t fSessionID
Definition: TProof.h:532
A chain is a collection of files containing TTree objects.
Definition: TChain.h:33
ESubMerger
Definition: TProof.h:380
const char * GetImage() const
Definition: TProof.h:914
const char *const kUNTAR
Definition: TProof.h:148
TList * GetListOfUniqueSlaves() const
Definition: TProof.h:660
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Definition: TRolke.cxx:630
const char *const kUNTAR3
Definition: TProof.h:150
Int_t GetRemoteProtocol() const
Definition: TProof.h:917
Int_t fStatus
Definition: TProof.h:474
Bool_t IsParallel() const
Definition: TProof.h:943
const char * GetUser() const
Definition: TProof.h:910
Bool_t IsActive()
Definition: TProof.h:292
void ShowDataSets(const char *ds, const char *opt)
ShowDataSets wrapper.
Definition: pq2wrappers.cxx:70
TList * fAvailablePackages
Definition: TProof.h:583
Int_t fCheckFileStatus
Definition: TProof.h:475
A TTree object has a header with a name and a title.
Definition: TTree.h:78
Long64_t fTotalBytes
Definition: TProof.h:582
Float_t fMBRateI
Definition: TProof.h:173
Bool_t IsWaiting() const
Definition: TProof.h:945
TProofMgr::EServType fServType
Definition: TProof.h:590
Bool_t IsValid() const
Definition: TProof.h:941
Int_t GetSeqNum() const
Definition: TProof.h:922
TList * fTerminatedSlaveInfos
Definition: TProof.h:577
Abstract interface for the PROOF player.
const char * GetMsd() const
Definition: TProof.h:234
TProof * fProof
Definition: TProof.h:205
TList * fLoadedMacros
Definition: TProof.h:548
Class describing a PROOF worker server.
Definition: TSlave.h:46
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Definition: TSelector.h:33
Long64_t fBytesReady
Definition: TProof.h:581
TString fMaster
Definition: TProof.h:470
Bool_t fTty
Definition: TProof.h:469
TList * fMergers
Definition: TProof.h:557
TList * GetListOfActiveSlaves() const
Definition: TProof.h:727
TUrl fUrl
Definition: TProof.h:571
const Bool_t kTRUE
Definition: RtypesCore.h:91
TProofProgressInfo(Long64_t tot=0, Long64_t proc=0, Long64_t bytes=0, Float_t initt=-1., Float_t proct=-1., Float_t evts=-1., Float_t mbs=-1., Int_t actw=0, Int_t tsess=0, Float_t esess=0.)
Definition: TProof.h:177
Int_t GetMergedWorkers()
Definition: TProof.h:282
const Int_t n
Definition: legend1.C:16
TMonitor * fActiveMonitor
Definition: TProof.h:488
Int_t fIdx
Definition: TProof.h:301
TSocket * fSocket
Definition: TProof.h:204
virtual ~TProofProgressInfo()
Definition: TProof.h:184
Derivation of TList with an overload of ls() and Print() allowing to filter out some of the variables...
ESendFileOpt
Definition: TProof.h:445
Long64_t fLastPollWorkers_s
Definition: TProof.h:480
Int_t fMaxDrawQueries
Definition: TProof.h:529
Int_t Broadcast(Int_t kind, ESlaves list=kActive)
Definition: TProof.h:638
void IncreaseNWrks()
Definition: TProof.h:314
const char *const kPROOF_CacheDir
Definition: TProof.h:129
const char * Data() const
Definition: TString.h:347
void SetOrdinal(const char *ord)
Definition: TProof.h:240
const char *const kPROOF_PackDir
Definition: TProof.h:130
Stopwatch class.
Definition: TStopwatch.h:28
Bool_t ReadNotify()
Notify when something can be read from the descriptor associated with this handler.
Definition: TProof.h:212