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