Logo ROOT   6.10/00
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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:
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:
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),
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 
284 
285  void SetMergedWorker();
286  void AddMergedObjects(Int_t objects) { fMergedObjects += objects; }
287 
290 
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 {
348  kIsClient = BIT(16),
349  kIsMaster = BIT(17),
352  };
353  enum EQueryMode {
354  kSync = 0,
355  kAsync = 1
356  };
357  enum EUploadOpt {
358  kAppend = 0x1,
363  kAskUser = 0x0
364  };
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,
392  kDataset = 0x4,
394  };
395 
396 private:
397  enum EUrgent {
399  kPing = 0,
403  };
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  };
456  };
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:
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);
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);
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);
629  Int_t DisablePackage(const char *package);
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; }
661  TList *GetListOfBadSlaves() const { return fBadSlaves; }
662  Int_t GetNumberOfSlaves() 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);
671  void SaveActiveList();
672 
673  Bool_t IsSync() const { return fSync; }
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 
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);
696  void AskForOutput(TSlave *sl);
697 
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 
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 
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 
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);
857  void ShowPackages(Bool_t all = kFALSE, Bool_t redirlog = kFALSE);
858  void ShowEnabledPackages(Bool_t all = kFALSE);
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; }
926 
927  EQueryMode GetQueryMode(Option_t *mode = 0) const;
928  void SetQueryMode(EQueryMode mode);
929 
930  void SetRealTimeLog(Bool_t on = kTRUE);
931 
933  Long64_t GetBytesRead() const { return fBytesRead; }
934  Float_t GetRealTime() const { return fRealTime; }
935  Float_t GetCpuTime() const { return fCpuTime; }
936 
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);
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 = "");
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);
1021  void SendLogToWindow(Bool_t mode) { fLogToWindowOnly = mode; }
1022 
1023  TMacro *GetMacroLog() { return &fMacroLog; }
1024 
1026 
1027  virtual TTree *GetTreeHeader(TDSet *tdset);
1028  TList *GetOutputNames();
1029 
1030  void AddChain(TChain *chain);
1031  void RemoveChain(TChain *chain);
1032 
1036 
1037  void Detach(Option_t *opt = "");
1038 
1039  virtual void SetAlias(const char *alias="");
1040 
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 
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
TList * GetListOfBadSlaves() const
Definition: TProof.h:661
void AddInputData(TObject *obj, Bool_t push=kFALSE)
Add data objects that might be needed during the processing of the selector (see Process()).
Definition: TProof.cxx:9494
Int_t GetNumberOfUniqueSlaves() const
Return number of unique slaves, i.e.
Definition: TProof.cxx:1983
std::map< TString, MD5Mod_t > FileMap_t
Definition: TProof.h:505
Int_t HandleInputMessage(TSlave *wrk, TMessage *m, Bool_t deactonfail=kFALSE)
Analyze the received message.
Definition: TProof.cxx:3077
const Int_t kPROOF_Port
Definition: TProof.h:125
static void AssertMacroPath(const char *macro)
Make sure that the directory path contained by macro is in the macro path.
Definition: TProof.cxx:8571
virtual void ShowData()
List contents of the data directory in the sandbox.
Definition: TProof.cxx:7368
void AddFeedback(const char *name)
Add object to feedback list.
Definition: TProof.cxx:9961
static void SystemCmd(const char *cmd, Int_t fdout)
Exec system command &#39;cmd&#39;. If fdout &gt; -1, append the output to fdout.
Definition: TProof.cxx:7707
Long64_t fTotal
Definition: TProof.h:167
double par[1]
Definition: unuranDistr.cxx:38
void RecvLogFile(TSocket *s, Int_t size)
Receive the log file of the slave with socket s.
Definition: TProof.cxx:6259
void Interrupt(EUrgent type, ESlaves list=kActive)
Send interrupt to master or slave servers.
Definition: TProof.cxx:2254
This class starts a PROOF session on the local machine: no daemons, client and master merged...
Definition: TProofLite.h:40
void Progress(Long64_t total, Long64_t processed)
Get query progress information.
Definition: TProof.cxx:9173
const Long64_t kPROOF_DynWrkPollInt_s
Definition: TProof.h:142
virtual void SetAlias(const char *alias="")
Set an alias for this session.
Definition: TProof.cxx:10555
TProofInterruptHandler & operator=(const TProofInterruptHandler &)
The PROOF package manager contains tools to manage packages.
Definition: TPackMgr.h:37
TString fPerfTree
Definition: TProof.h:561
const char * GetMsd() const
Definition: TProof.h:234
Int_t UnloadPackages()
Unload all packages.
Definition: TProof.cxx:8119
const char *const kGUNZIP
Definition: TProof.h:151
void ActivateAsyncInput()
Activate the a-sync input handler.
Definition: TProof.cxx:4382
Bool_t IsWaiting() const
Definition: TProof.h:945
TMergerInfo & operator=(const TMergerInfo &)
void AskParallel()
Ask the for the number of parallel slaves.
Definition: TProof.cxx:2055
virtual TFileCollection * GetStagingStatusDataSet(const char *dataset)
Obtains a TFileCollection showing the staging status of the specified dataset.
Definition: TProof.cxx:11045
static Bool_t GetFileInCmd(const char *cmd, TString &fn)
Static method to extract the filename (if any) form a CINT command.
Definition: TProof.cxx:6467
Bool_t fIsWaiting
Definition: TProof.h:512
EProofDataSetCommands
Definition: TProof.h:427
Int_t ClearPackages()
Remove all packages.
Definition: TProof.cxx:7812
Internal class steering processing in PROOF.
Definition: TProofPlayer.h:60
TMonitor * fAllUniqueMonitor
Definition: TProof.h:490
void MarkBad(TSlave *wrk, const char *reason=0)
Add a bad slave server to the bad slave list and remove it from the active list and from the two moni...
Definition: TProof.cxx:4493
long long Long64_t
Definition: RtypesCore.h:69
void Activate(TList *slaves=0)
Activate slave server list.
Definition: TProof.cxx:2367
void RemoveChain(TChain *chain)
Remove chain from data set.
Definition: TProof.cxx:10203
const char * GetDataDir() const
Definition: TProof.h:233
virtual Bool_t ExistsDataSet(const char *dataset)
Returns kTRUE if &#39;dataset&#39; exists, kFALSE otherwise.
Definition: TProof.cxx:10840
void FinalizationDone()
Definition: TProof.h:698
virtual ~TProof()
Clean up PROOF environment.
Definition: TProof.cxx:649
Bool_t IsValid() const
Definition: TProof.h:941
void PrepareInputDataFile(TString &dataFile)
Prepare the file with the input data objects to be sent the master; the objects are taken from the de...
Definition: TProof.cxx:9611
Int_t EnablePackage(const char *package, Bool_t notOnClient=kFALSE, TList *workers=0)
Enable specified package.
Definition: TProof.cxx:8147
void ClearData(UInt_t what=kUnregistered, const char *dsname=0)
Remove files for the data directory.
Definition: TProof.cxx:7384
void SetPerfTree(const char *pf="perftree.root", Bool_t withWrks=kFALSE)
Enable/Disable saving of the performance tree.
Definition: TProof.cxx:12597
virtual Bool_t RegisterDataSet(const char *name, TFileCollection *dataset, const char *optStr="")
Register the &#39;dataSet&#39; on the cluster under the current user, group and the given &#39;dataSetName&#39;...
Definition: TProof.cxx:10679
virtual Long64_t DrawSelect(TDSet *dset, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Execute the specified drawing action on a data set (TDSet).
Definition: TProof.cxx:6118
void SetRealTimeLog(Bool_t on=kTRUE)
Switch ON/OFF the real-time logging facility.
Definition: TProof.cxx:7068
TString fConfDir
Definition: TProof.h:573
EUrgent
Definition: TProof.h:397
ERunStatus
Definition: TProof.h:374
const char *const kCP
Definition: TProof.h:145
const char *const kLS
Definition: TProof.h:147
Int_t fOtherQueries
Definition: TProof.h:527
Int_t Compare(const TObject *obj) const
Used to sort slaveinfos by ordinal.
Definition: TProof.cxx:180
float Float_t
Definition: RtypesCore.h:53
Long64_t fBytesRead
Definition: TProof.h:169
Int_t fWorkersToMerge
Definition: TProof.h:555
virtual TVirtualProofPlayer * MakePlayer(const char *player=0, TSocket *s=0)
Construct a TProofPlayer object.
Definition: TProof.cxx:10183
Int_t GetRemoteProtocol() const
Definition: TProof.h:917
Float_t fCpuTime
Definition: TProof.h:494
const char Option_t
Definition: RtypesCore.h:62
Bool_t fSync
Definition: TProof.h:510
virtual void Print(Option_t *option="") const
Print status of PROOF cluster.
Definition: TProof.cxx:4775
void SetMonitor(TMonitor *mon=0, Bool_t on=kTRUE)
Activate (on == TRUE) or deactivate (on == FALSE) all sockets monitored by &#39;mon&#39;. ...
Definition: TProof.cxx:2386
void InterruptCurrentMonitor()
If in active in a monitor set ready state.
Definition: TProof.cxx:11307
TList * fWrksOutputReady
Definition: TProof.h:563
virtual Bool_t StartSlaves(Bool_t attach=kFALSE)
Start up PROOF slaves.
Definition: TProof.cxx:1638
virtual void ShowDataSetCache(const char *dataset=0)
Display the content of the dataset cache, if any (matching &#39;dataset&#39;, if defined).
Definition: TProof.cxx:10886
void ShowParameters(const char *wildcard="PROOF_*") const
Show the input list parameters specified by the wildcard.
Definition: TProof.cxx:9930
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
void SetupWorkersEnv(TList *wrks, Bool_t increasingpool=kFALSE)
Set up packages, loaded macros, include and lib paths ...
Definition: TProof.cxx:1512
TList * GetWorkers()
Definition: TProof.h:276
void SetPlayer(TVirtualProofPlayer *player)
Set a new PROOF player.
Definition: TProof.cxx:10171
This class implements a data set to be used for PROOF processing.
Definition: TDSet.h:151
TList * GetOutputNames()
FIXME: to be written.
Definition: TProof.cxx:10090
TProofMgr * GetManager()
Definition: TProof.h:1041
void TerminateWorker(TSlave *wrk)
Ask an active worker &#39;wrk&#39; to terminate, i.e. to shutdown.
Definition: TProof.cxx:4668
#define BIT(n)
Definition: Rtypes.h:75
TSlave * GetMerger()
Definition: TProof.h:278
virtual void FindUniqueSlaves()
Add to the fUniqueSlave list the active slaves that have a unique (user) file system image...
Definition: TProof.cxx:1890
Int_t FindNextFreeMerger()
Return a merger, which is both active and still accepts some workers to be assigned to it...
Definition: TProof.cxx:4276
void SetParameter(const char *par, const char *value)
Set input list parameter.
Definition: TProof.cxx:9794
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
static const TList * GetEnvVars()
Get environemnt variables.
Definition: TProof.cxx:11723
virtual TFileCollection * GetDataSet(const char *dataset, const char *optStr="")
Get a list of TFileInfo objects describing the files of the specified dataset.
Definition: TProof.cxx:10909
ERunStatus GetRunStatus() const
Definition: TProof.h:947
TList * fAllUniqueSlaves
Definition: TProof.h:486
TList * GetOutputList()
Get list with all object created during processing (see Process()).
Definition: TProof.cxx:9780
Int_t DisablePackage(const char *package)
Remove a specific package.
Definition: TProof.cxx:7857
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
TFileCollection * GetMissingFiles(TQueryResult *qr=0)
Get a TFileCollection with the files missing in the query described by &#39;qr&#39; or the last query if qr i...
Definition: TProof.cxx:12554
Int_t GetStatus() const
Definition: TProof.h:919
TSlave * FindSlave(TSocket *s) const
Find slave that has TSocket s. Returns 0 in case slave is not found.
Definition: TProof.cxx:1869
TString fLogFileName
Definition: TProof.h:515
const char * GetConfFile() const
Definition: TProof.h:909
Int_t fPerfIndex
Definition: TProof.h:224
Class supporting a collection of lines with C++ code.
Definition: TMacro.h:31
Float_t fEvtRateI
Definition: TProof.h:172
const char * GetOrdinal() const
Definition: TProof.h:236
TList * fQueries
Definition: TProof.h:526
Basic string class.
Definition: TString.h:129
const char * GetSessionTag() const
Definition: TProof.h:913
void SetDSet(TDSet *dset)
Definition: TProof.h:741
TString fGroup
Definition: TProof.h:472
TString fDataDir
Definition: TProof.h:223
Version of TSlave for local worker servers.
Definition: TSlaveLite.h:31
Bool_t IsFolder() const
Returns kTRUE in case object contains browsable objects (like containers or lists of other objects)...
Definition: TProof.h:939
virtual void SaveWorkerInfo()
Save information about the worker set in the file .workers in the working dir.
Definition: TProof.cxx:11780
int Int_t
Definition: RtypesCore.h:41
TProofInputHandler & operator=(const TProofInputHandler &)
bool Bool_t
Definition: RtypesCore.h:59
void RemoveFeedback(const char *name)
Remove object from feedback list.
Definition: TProof.cxx:9972
TList * fUniqueSlaves
Definition: TProof.h:485
void SetProgressDialog(Bool_t on=kTRUE)
Enable/Disable the graphic progress dialog.
Definition: TProof.cxx:12482
void LogMessage(const char *msg, Bool_t all)
Log a message into the appropriate window by emitting a signal.
Definition: TProof.cxx:6386
void SetQueryMode(EQueryMode mode)
Change query running mode to the one specified by &#39;mode&#39;.
Definition: TProof.cxx:6079
Bool_t IsProofd() const
Definition: TProof.h:938
TList * fWaitingSlaves
Definition: TProof.h:525
Int_t Broadcast(const TMessage &mess, TList *slaves)
Broadcast a message to all slaves in the specified list.
Definition: TProof.cxx:2453
const char *const kRM
Definition: TProof.h:146
Int_t GetNumberOfBadSlaves() const
Return number of bad slaves.
Definition: TProof.cxx:1992
void ShowLog(Int_t qry=-1)
Display on screen the content of the temporary log file.
Definition: TProof.cxx:10343
const char *const kPROOF_PackageLockFile
Definition: TProof.h:136
TMacro * GetMacroLog()
Definition: TProof.h:1023
void SetMaxDrawQueries(Int_t max)
Set max number of draw queries whose results are saved.
Definition: TProof.cxx:2093
TSlave * fMerger
Definition: TProof.h:254
TProofInterruptHandler(const TProofInterruptHandler &)
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
Bool_t Notify()
Handle input.
Definition: TProof.cxx:166
This is the version of TSlave for workers servers based on XProofD.
Definition: TXSlave.h:32
Int_t ModifyWorkerLists(const char *ord, Bool_t add, Bool_t save)
Modify the worker active/inactive list by making the worker identified by the ordinal number &#39;ord&#39; ac...
Definition: TProof.cxx:11361
Bool_t IsEqual(const TObject *obj) const
Used to compare slaveinfos by ordinal.
Definition: TProof.cxx:208
Int_t fWorkersToMerge
Definition: TProof.h:258
void PutLog(TQueryResult *qr)
Display log of query pq into the log window frame.
Definition: TProof.cxx:10293
Int_t GetWorkersToMerge()
Definition: TProof.h:281
void CloseProgressDialog()
Close progress dialog.
Definition: TProof.cxx:9255
Bool_t IsSync() const
Definition: TProof.h:673
Int_t GetNumberOfQueries()
Number of queries processed by this session.
Definition: TProof.cxx:2083
void operator=(const TProof &)
Int_t AddIncludePath(const char *incpath, Bool_t onClient=kFALSE, TList *wrks=0, Bool_t doCollect=kTRUE)
Add &#39;incpath&#39; to the inc path search.
Definition: TProof.cxx:8860
Long64_t GetBytesRead() const
Definition: TProof.h:933
TDSet * fDSet
Definition: TProof.h:507
virtual void ClearCache(const char *file=0)
Remove file from all file caches.
Definition: TProof.cxx:7686
void DisableGoAsyn()
Signal to disable related switches.
Definition: TProof.cxx:6231
Int_t fActWorkers
Definition: TProof.h:174
TList * fInputData
Definition: TProof.h:539
Int_t SendObject(const TObject *obj, ESlaves list=kActive)
Send object to master or slave servers.
Definition: TProof.cxx:7026
Int_t SendCurrentState(ESlaves list=kActive)
Transfer the current state of the master to the active slave servers.
Definition: TProof.cxx:6730
Int_t BroadcastRaw(const void *buffer, Int_t length, TList *slaves)
Broadcast a raw buffer of specified length to all slaves in the specified list.
Definition: TProof.cxx:2545
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
TList * fWorkers
Definition: TProof.h:263
const char * GetGroup() const
Definition: TProof.h:911
EQueryMode
Definition: TProof.h:353
static TProofMgr * Mgr(const char *url)
Get instance of the effective manager for &#39;url&#39; Return 0 on failure.
Definition: TProof.cxx:11696
EUploadPackageOpt
Definition: TProof.h:370
Bool_t fMasterServ
Definition: TProof.h:570
Int_t RemoveIncludePath(const char *incpath, Bool_t onClient=kFALSE)
Remove &#39;incpath&#39; from the inc path search.
Definition: TProof.cxx:8939
Int_t SavePerfTree(const char *pf=0, const char *qref=0)
Save performance information from TPerfStats to file &#39;pf&#39;.
Definition: TProof.cxx:12619
Bool_t fFinalizationRunning
Definition: TProof.h:558
void NotifyLogMsg(const char *msg, const char *sfx="\n")
Notify locally &#39;msg&#39; to the appropriate units (file, stdout, window) If defined, &#39;sfx&#39; is added after...
Definition: TProof.cxx:6330
This class generates packets to be processed on PROOF worker servers.
Definition: TPacketizer.h:39
const char * Data() const
Definition: TString.h:344
Int_t GetMergedObjects()
Definition: TProof.h:283
TSignalHandler * fIntHandler
Definition: TProof.h:495
Int_t GetPort() const
Definition: TProof.h:916
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
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
virtual Bool_t CancelStagingDataSet(const char *dataset)
Cancels a dataset staging request.
Definition: TProof.cxx:11018
const char * Export(Bool_t &changed)
Definition: TProof.h:308
EProofWrkListAction
Definition: TProof.h:453
void StopProcess(Bool_t abort, Int_t timeout=-1)
Send STOPPROCESS message to master and workers.
Definition: TProof.cxx:6196
#define ClassDef(name, id)
Definition: Rtypes.h:297
void UpdateDialog()
Final update of the progress dialog.
Definition: TProof.cxx:4325
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
TSlave * CreateSlave(const char *url, const char *ord, Int_t perf, const char *image, const char *workdir)
Create a new TSlave of type TSlave::kSlave.
Definition: TProof.cxx:1831
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
void SetLogLevel(Int_t level, UInt_t mask=TProofDebug::kAll)
Set server logging level.
Definition: TProof.cxx:7051
Int_t DownloadPackage(const char *par, const char *dstdir=0)
Download a PROOF archive (PAR file) from the master package repository.
Definition: TProof.cxx:8306
EQueryMode GetQueryMode(Option_t *mode=0) const
Find out the query mode based on the current setting and &#39;mode&#39;.
Definition: TProof.cxx:6091
void DeActivateAsyncInput()
De-activate a-sync input handler.
Definition: TProof.cxx:4395
const char *const kPROOF_QueryDir
Definition: TProof.h:132
TString fOrdinal
Definition: TProof.h:220
virtual void ShowCache(Bool_t all=kFALSE)
List contents of file cache.
Definition: TProof.cxx:7663
Int_t fRedirectNext
Definition: TProof.h:559
const char *const kPROOF_WorkerIdleTO
Definition: TProof.h:139
void SetInputDataFile(const char *datafile)
Set the file to be used to optimally distribute the input data objects.
Definition: TProof.cxx:9557
TProofInterruptHandler(TProof *p)
Definition: TProof.h:196
void ShowDataSet(const char *dataset="", const char *opt="filter:SsCc")
display meta-info for given dataset usi
Definition: TProof.cxx:10949
TVirtualProofPlayer * GetPlayer() const
Definition: TProof.h:720
const char * GetMaster() const
Definition: TProof.h:907
Int_t Collect(const TSlave *sl, Long_t timeout=-1, Int_t endtype=-1, Bool_t deactonfail=kFALSE)
Collect responses from slave sl.
Definition: TProof.cxx:2647
static void LogViewer(const char *url=0, Int_t sessionidx=0)
Start the log viewer window usign the plugin manager.
Definition: TProof.cxx:12443
void Deactivate()
Definition: TProof.h:291
void ResetMergePrg()
Reset the merge progress notificator.
Definition: TProof.cxx:2443
virtual TMap * GetDataSets(const char *uri="", const char *optStr="")
Lists all datasets that match given uri.
Definition: TProof.cxx:10781
Int_t GoMoreParallel(Int_t nWorkersToAdd)
Add nWorkersToAdd workers to current list of workers.
Definition: TProof.cxx:7142
Int_t Init(const char *masterurl, const char *conffile, const char *confdir, Int_t loglevel, const char *alias=0)
Start the PROOF environment.
Definition: TProof.cxx:745
EProofShowQuotaOpt
Definition: TProof.h:463
virtual void ShowDataSets(const char *uri="", const char *optStr="")
Shows datasets in locations that match the uri.
Definition: TProof.cxx:10818
TString fConfFile
Definition: TProof.h:572
virtual Int_t PollForNewWorkers()
Asks the PROOF Serv for new workers in Dynamic Startup mode and activates them.
Definition: TProof.cxx:2942
ESlaveStatus fStatus
Definition: TProof.h:226
void ShowFeedback() const
Show items in feedback list.
Definition: TProof.cxx:9992
TSlave * CreateSubmaster(const char *url, const char *ord, const char *image, const char *msd, Int_t nwk=1)
Create a new TSlave of type TSlave::kMaster.
Definition: TProof.cxx:1853
void ClearDataProgress(Int_t r, Int_t t)
Progress bar for clear data.
Definition: TProof.cxx:7642
const char * GetUser() const
Definition: TProof.h:910
TQueryResult * GetQueryResult(const char *ref=0)
Return pointer to the full TQueryResult instance owned by the player and referenced by &#39;ref&#39;...
Definition: TProof.cxx:2126
static TProof * Open(const char *url=0, const char *conffile=0, const char *confdir=0, Int_t loglevel=0)
Start a PROOF session on a specific cluster.
Definition: TProof.cxx:11555
Bool_t IsParallel() const
Definition: TProof.h:943
TList * fSlaves
Definition: TProof.h:576
Int_t fNotIdle
Definition: TProof.h:509
Int_t UploadDataSet(const char *, TList *, const char *=0, Int_t=0, TList *=0)
*** This function is deprecated and will disappear in future versions *** *** It is just a wrapper ar...
Definition: TProof.cxx:10607
TList * GetListOfInactiveSlaves() const
Definition: TProof.h:659
TProofMergePrg()
Definition: TProof.h:306
Int_t fMergedObjects
Definition: TProof.h:256
Int_t fNWrks
Definition: TProof.h:302
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
TList * GetQueryResults()
Return pointer to the list of query results in the player.
Definition: TProof.cxx:2117
Int_t ActivateWorker(const char *ord, Bool_t save=kTRUE)
Make sure that the worker identified by the ordinal number &#39;ord&#39; is in the active list...
Definition: TProof.cxx:11325
PrintProgress_t fPrintProgress
Definition: TProof.h:544
Int_t fCollectTimeout
Definition: TProof.h:587
Bool_t IsSortable() const
Definition: TProof.h:243
TList * GetListOfSlaveInfos()
Returns list of TSlaveInfo&#39;s. In case of error return 0.
Definition: TProof.cxx:2299
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
void HandleLibIncPath(const char *what, Bool_t add, const char *dirs)
Handle lib, inc search paths modification request.
Definition: TProof.cxx:8970
virtual TList * GetListOfQueries(Option_t *opt="")
Ask the master for the list of queries.
Definition: TProof.cxx:2066
void SetManager(TProofMgr *mgr)
Set manager and schedule its destruction after this for clean operations.
Definition: TProof.cxx:1285
Bool_t IsLite() const
Definition: TProof.h:937
TObject * GetParameter(const char *par) const
Get specified parameter.
Definition: TProof.cxx:9890
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
void ParseConfigField(const char *config)
The config file field may contain special instructions which need to be parsed at the beginning...
Definition: TProof.cxx:1031
Bool_t fIsPollingWorkers
Definition: TProof.h:479
TProof()
Protected constructor to be used by classes deriving from TProof (they have to call Init themselves a...
Definition: TProof.cxx:510
A doubly linked list.
Definition: TList.h:43
Bool_t fIsActive
Definition: TProof.h:264
void SetDataPoolUrl(const char *url)
Definition: TProof.h:1048
This class implements the XProofD version of TProofServ, with respect to which it differs only for th...
Definition: TXProofServ.h:30
Int_t CleanupSession(const char *sessiontag)
Send cleanup request for the session specified by tag.
Definition: TProof.cxx:6064
Bool_t fRedirLog
Definition: TProof.h:514
virtual void SetMssUrl(const char *mss)
Definition: TProofMgr.h:105
void AddChain(TChain *chain)
Add chain to data set.
Definition: TProof.cxx:10195
TMonitor * fUniqueMonitor
Definition: TProof.h:489
void SetMergedWorker()
Increase number of already merged workers by 1.
Definition: TProof.cxx:295
const char *const kPROOF_ConfFile
Definition: TProof.h:126
Int_t RestoreActiveList()
Restore saved list of active workers.
Definition: TProof.cxx:11529
FileMap_t fFileMap
Definition: TProof.h:506
void cd(Int_t id=-1)
Set session with &#39;id&#39; the default one.
Definition: TProof.cxx:10468
const char *const kPROOF_QueryLockFile
Definition: TProof.h:137
Int_t Remove(Int_t query, Bool_t all=kFALSE)
Send remove request for the qry-th query in fQueries.
Definition: TProof.cxx:5985
Int_t UploadPackage(const char *par, EUploadPackageOpt opt=kUntar, TList *workers=0)
Upload a PROOF archive (PAR file).
Definition: TProof.cxx:8413
Int_t GetNumberOfActiveSlaves() const
Return number of active slaves, i.e.
Definition: TProof.cxx:1965
TMonitor * fAllMonitor
Definition: TProof.h:579
Int_t GetPort() const
Definition: TUrl.h:81
Int_t Archive(Int_t query, const char *url)
Send archive request for the qry-th query in fQueries.
Definition: TProof.cxx:6029
Using a TBrowser one can browse all ROOT objects.
Definition: TBrowser.h:37
void InitMembers()
Default initializations.
Definition: TProof.cxx:524
static void Reset(const char *url, Bool_t hard=kFALSE)
Wrapper around TProofMgr::Reset(...).
Definition: TProof.cxx:11708
Int_t fLogLevel
Definition: TProof.h:473
TProofMgr * fManager
Definition: TProof.h:591
void DeleteDrawFeedback(TDrawFeedback *f)
Delete draw feedback object.
Definition: TProof.cxx:10082
const char *const kPROOF_TerminateWorker
Definition: TProof.h:138
TList * fActiveSlaves
Definition: TProof.h:481
void QueryResultReady(const char *ref)
Notify availability of a query result.
Definition: TProof.cxx:9341
Bool_t fSaveLogToMacro
Definition: TProof.h:520
void SendDataSetStatus(const char *msg, UInt_t n, UInt_t tot, Bool_t st)
Send or notify data set status.
Definition: TProof.cxx:9308
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
void Touch()
Ping PROOF slaves. Returns the number of slaves that responded.
Definition: TProof.cxx:4754
Int_t DisablePackages()
Remove all packages.
Definition: TProof.cxx:7914
TRandom2 r(17)
SysInfo_t fSysInfo
Definition: TProof.h:225
virtual Bool_t RequestStagingDataSet(const char *dataset)
Allows users to request staging of a particular dataset.
Definition: TProof.cxx:10992
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
Int_t GetQueryReference(Int_t qry, TString &ref)
Get reference for the qry-th query in fQueries (as displayed by ShowQueries).
Definition: TProof.cxx:5829
const char *const kPROOF_DataSetDir
Definition: TProof.h:133
void ShowDataSetQuota(Option_t *opt=0)
shows the quota and usage of all groups if opt contains &quot;U&quot; shows also distribution of usage on user-...
Definition: TProof.cxx:11281
TList * GetListOfSlaves() const
Definition: TProof.h:658
TMonitor * fCurrentMonitor
Definition: TProof.h:491
Int_t BroadcastObject(const TObject *obj, Int_t kind, TList *slaves)
Broadcast an object to all slaves in the specified list.
Definition: TProof.cxx:2521
const char * GetDataPoolUrl() const
Definition: TProof.h:1047
Int_t GetLogLevel() const
Definition: TProof.h:920
Input handler for XProofD sockets.
void ShowPackages(Bool_t all=kFALSE, Bool_t redirlog=kFALSE)
List contents of package directory.
Definition: TProof.cxx:7742
const char *const kPROOF_ConfDir
Definition: TProof.h:127
void SaveActiveList()
Save current list of active workers.
Definition: TProof.cxx:11514
High level handler of connections to XProofD.
Definition: TXSocket.h:59
TPluginHandler * GetProgressDialog() const
Definition: TProof.h:746
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
Int_t BuildPackage(const char *package, EBuildPackageOpt opt=kBuildAll, Int_t chkveropt=TPackMgr::kCheckROOT, TList *workers=0)
Build specified package.
Definition: TProof.cxx:7962
TList * GetLoadedMacros() const
Definition: TProof.h:948
SysInfo_t GetSysInfo() const
Definition: TProof.h:237
virtual void ClearDataSetCache(const char *dataset=0)
Clear the content of the dataset cache, if any (matching &#39;dataset&#39;, if defined).
Definition: TProof.cxx:10868
void GetMaxQueries()
Get max number of queries whose full results are kept in the remote sandbox.
Definition: TProof.cxx:2106
virtual Int_t VerifyDataSet(const char *dataset, const char *optStr="")
Verify if all files in the specified dataset are available.
Definition: TProof.cxx:11102
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
bool verbose
Int_t GetPort()
Definition: TProof.h:279
TObject * GetOutput(const char *name)
Get specified object that has been produced during the processing (see Process()).
Definition: TProof.cxx:9734
Bool_t IsDataReady(Long64_t &totalbytes, Long64_t &bytesready)
See if the data is ready to be analyzed.
Definition: TProof.cxx:2218
const char * GetWorkDir() const
Definition: TProof.h:912
void IncreaseIdx()
Definition: TProof.h:315
virtual Int_t Echo(const TObject *obj)
Sends an object to master and workers and expect them to send back a message with the output of its T...
Definition: TProof.cxx:7000
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
virtual const char * GetName() const
Returns name of object.
Definition: TNamed.h:47
Long64_t fProcessed
Definition: TProof.h:168
static void AddEnvVar(const char *name, const char *value)
Add an variable to the list of environment variables passed to proofserv on the master and slaves...
Definition: TProof.cxx:11732
static void ResetEnvVars()
Clear the list of environment variables passed to proofserv on the master and slaves.
Definition: TProof.cxx:11768
Bool_t CheckFile(const char *file, TSlave *sl, Long_t modtime, Int_t cpopt=(kCp|kCpBin))
Check if a file needs to be send to the slave.
Definition: TProof.cxx:6771
EProofClearData
Definition: TProof.h:389
virtual Long64_t Process(TDSet *dset, const char *selector, Option_t *option="", Long64_t nentries=-1, Long64_t firstentry=0)
Process a data set (TDSet) using the specified selector (.C) file or Tselector object Entry- or event...
Definition: TProof.cxx:5275
Bool_t fProgressDialogStarted
Definition: TProof.h:497
const Int_t kPROOF_Protocol
Definition: TProof.h:124
Int_t SendGroupView()
Send to all active slaves servers the current slave group size and their unique id.
Definition: TProof.cxx:6432
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
Int_t Exec(const char *cmd, ESlaves list, Bool_t plusMaster)
Send command to be executed on the PROOF master and/or slaves.
Definition: TProof.cxx:6505
void SetStatus(ESlaveStatus stat)
Definition: TProof.h:238
Int_t RemoveWorkers(TList *wrks)
Used for shuting down the workres after a query is finished.
Definition: TProof.cxx:1575
FILE * fLogFileR
Definition: TProof.h:517
Int_t fProtocol
Definition: TProof.h:575
const char * GetUrl()
Definition: TProof.h:915
Int_t SendFile(const char *file, Int_t opt=(kBinary|kForward|kCp|kCpBin), const char *rfile=0, TSlave *sl=0)
Send a file to master or slave servers.
Definition: TProof.cxx:6866
Float_t fEffSessions
Definition: TProof.h:176
TString fExp
Definition: TProof.h:300
void RedirectWorker(TSocket *s, TSlave *sl, Int_t output_size)
Redirect output of worker sl to some merger.
Definition: TProof.cxx:4230
void PrintProgress(Long64_t total, Long64_t processed, Float_t procTime=-1., Long64_t bytesread=-1)
Print a progress bar on stderr. Used in batch mode.
Definition: TProof.cxx:9112
Bool_t fLogToWindowOnly
Definition: TProof.h:518
void ReleaseMonitor(TMonitor *mon)
Release the used monitor to be used, making sure to delete newly created monitors.
Definition: TProof.cxx:2632
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
void DataSetStatus(const char *msg, Bool_t status, Int_t done, Int_t total)
Send dataset preparation status.
Definition: TProof.cxx:9296
void AddInput(TObject *obj)
Add objects that might be needed during the processing of the selector (see Process()).
Definition: TProof.cxx:9706
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
virtual void ValidateDSet(TDSet *dset)
Validate a TDSet.
Definition: TProof.cxx:9352
Float_t fPrepTime
Definition: TProof.h:598
Int_t GetSeqNum() const
Definition: TProof.h:922
TList * fRunningDSets
Definition: TProof.h:585
TList * GetFeedbackList() const
Return feedback list.
Definition: TProof.cxx:10005
const Bool_t kFALSE
Definition: RtypesCore.h:92
const char * GetUrl(Bool_t withDeflt=kFALSE) const
Return full URL.
Definition: TUrl.cxx:387
TMacro * GetLastLog()
Fill a TMacro with the log lines since the last reading (fLogFileR) Return (TMacro *)0 if no line was...
Definition: TProof.cxx:10229
Int_t VerifyDataSetParallel(const char *uri, const char *optStr)
Internal function for parallel dataset verification used TProof::VerifyDataSet and TProofLite::Verify...
Definition: TProof.cxx:11153
Int_t RemoveDynamicPath(const char *libpath, Bool_t onClient=kFALSE)
Remove &#39;libpath&#39; from the lib path search.
Definition: TProof.cxx:8905
Bool_t fDynamicStartup
Definition: TProof.h:593
void GoAsynchronous()
Send GOASYNC message to the master.
Definition: TProof.cxx:6239
void ClearInputData(TObject *obj=0)
Remove obj form the input data list; if obj is null (default), clear the input data info...
Definition: TProof.cxx:9510
static unsigned int total
Int_t SendCommand(const char *cmd, ESlaves list=kActive)
Send command to be executed on the PROOF master and/or slaves.
Definition: TProof.cxx:6603
Int_t AssertPath(const char *path, Bool_t writable)
Make sure that &#39;path&#39; exists; if &#39;writable&#39; is kTRUE, make also sure that the path is writable...
Definition: TProof.cxx:1253
void Print(Option_t *option="") const
Print slave info.
Definition: TProof.cxx:222
Int_t LoadPackage(const char *package, Bool_t notOnClient=kFALSE, TList *loadopts=0, TList *workers=0)
Load specified package.
Definition: TProof.cxx:8041
long Long_t
Definition: RtypesCore.h:50
Float_t GetRealTime() const
Definition: TProof.h:934
The packetizer is a load balancing object created for each query.
TList * GetInputList()
Get input list.
Definition: TProof.cxx:9725
Int_t HandleOutputOptions(TString &opt, TString &target, Int_t action)
Extract from opt information about output handling settings.
Definition: TProof.cxx:4909
Bool_t AreAllWorkersAssigned()
Return if the determined number of workers has been already assigned to this merger.
Definition: TProof.cxx:328
R__EXTERN TProof * gProof
Definition: TProof.h:1081
void SendLogToWindow(Bool_t mode)
Definition: TProof.h:1021
Bool_t fEndMaster
Definition: TProof.h:534
TList * GetListOfUniqueSlaves() const
Definition: TProof.h:660
void Close(Option_t *option="")
Close all open slave servers.
Definition: TProof.cxx:1776
TList * GetListOfActiveSlaves() const
Definition: TProof.h:727
void SetFeedback(TString &opt, TString &optfb, Int_t action)
Extract from opt in optfb information about wanted feedback settings.
Definition: TProof.cxx:5204
double f(double x)
const char *const kPROOF_InputDataFile
Definition: TProof.h:140
TDrawFeedback * CreateDrawFeedback()
Draw feedback creation proxy.
Definition: TProof.cxx:10066
ERegisterOpt
Definition: TProof.h:365
void SetSysInfo(SysInfo_t si)
Setter for fSysInfo.
Definition: TProof.cxx:265
void DeleteParameters(const char *wildcard)
Delete the input list parameters specified by a wildcard (e.g.
Definition: TProof.cxx:9905
Int_t SetParallelSilent(Int_t nodes, Bool_t random=kFALSE)
Tell PROOF how many slaves to use in parallel.
Definition: TProof.cxx:7084
Long64_t fBytesRead
Definition: TProof.h:492
Int_t GoParallel(Int_t nodes, Bool_t accept=kFALSE, Bool_t random=kFALSE)
Go in parallel mode with at most &quot;nodes&quot; slaves.
Definition: TProof.cxx:7245
Int_t fMergersCount
Definition: TProof.h:554
double Double_t
Definition: RtypesCore.h:55
ESlaves
Definition: TProof.h:568
static void * SlaveStartupThread(void *arg)
Int_t fPort
Definition: TProof.h:255
static Int_t GetInputData(TList *input, const char *cachedir, TString &emsg)
Get the input data from the file defined in the input list.
Definition: TProof.cxx:12386
Bool_t UseDynamicStartup() const
Definition: TProof.h:925
void ClearInput()
Clear input object list.
Definition: TProof.cxx:9714
TList * fEnabledPackages
Definition: TProof.h:584
EStatusBits
Definition: TObject.h:57
Int_t GetNumberOfDrawQueries()
Definition: TProof.h:983
void Feedback(TList *objs)
Get list of feedback objects.
Definition: TProof.cxx:9240
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
virtual void SendInputDataFile()
Send the input data objects to the master; the objects are taken from the dedicated list and / or the...
Definition: TProof.cxx:9584
TList * fEnabledPackagesOnCluster
Definition: TProof.h:537
This class controls a Parallel ROOT Facility, PROOF, cluster.
Definition: TProof.h:320
void Detach(Option_t *opt="")
Detach this instance to its proofserv.
Definition: TProof.cxx:10490
int nentries
Definition: THbookFile.cxx:89
const char *const kPROOF_MissingFiles
Definition: TProof.h:141
void SetNWrks(Int_t n)
Definition: TProof.h:317
void(* PrintProgress_t)(Long64_t tot, Long64_t proc, Float_t proctime, Long64_t bytes)
Definition: TProof.h:162
Bool_t IsMaster() const
Definition: TProof.h:940
EBuildPackageOpt
Definition: TProof.h:457
void SetRunStatus(ERunStatus rst)
Definition: TProof.h:676
virtual TTree * GetTreeHeader(TDSet *tdset)
Creates a tree header (a tree with nonexisting files) object for the DataSet.
Definition: TProof.cxx:10014
void ShowMissingFiles(TQueryResult *qr=0)
Show information about missing files during query described by &#39;qr&#39; or the last query if qr is null (...
Definition: TProof.cxx:12495
Int_t GetSandbox(TString &sb, Bool_t assert=kFALSE, const char *rc=0)
Set the sandbox path from &#39; Proof.Sandbox&#39; or the alternative var &#39;rc&#39;.
Definition: TProof.cxx:1004
void ShowQueries(Option_t *opt="")
Ask the master for the list of queries.
Definition: TProof.cxx:2143
Int_t AddWorkers(TList *wrks)
Works on the master node only.
Definition: TProof.cxx:1304
Bool_t AreAllWorkersMerged()
Return if merger has already merged all workers, i.e. if it has finished its merging job...
Definition: TProof.cxx:320
Long64_t Finalize(Int_t query=-1, Bool_t force=kFALSE)
Finalize the qry-th query in fQueries.
Definition: TProof.cxx:5855
EQueryMode fQueryMode
Definition: TProof.h:592
const char * GetName() const
Returns name of object.
Definition: TProof.h:235
TString Getenv(const char *env, const char *ord="0")
Get value of environment variable &#39;env&#39; on node &#39;ord&#39;.
Definition: TProof.cxx:6616
Int_t UnloadPackage(const char *package)
Unload specified package.
Definition: TProof.cxx:8086
EUploadOpt
Definition: TProof.h:357
FILE * fLogFileW
Definition: TProof.h:516
Mother of all ROOT objects.
Definition: TObject.h:37
Float_t GetCpuTime() const
Definition: TProof.h:935
#define R__EXTERN
Definition: DllImport.h:27
TPackMgr * fPackMgr
Definition: TProof.h:536
typedef void((*Func_t)())
TSelector * fSelector
Definition: TProof.h:595
void CleanGDirectory(TList *ol)
Remove links to objects in list &#39;ol&#39; from gDirectory.
Definition: TProof.cxx:3018
Int_t GetNumberOfSlaves() const
Return number of slaves as described in the config file.
Definition: TProof.cxx:1956
void ResetProgressDialogStatus()
Definition: TProof.h:1025
TList * GetListOfEnabledPackages()
Get from the master the list of names of the packages enabled.
Definition: TProof.cxx:9096
TString fActiveSlavesSaved
Definition: TProof.h:482
TProofInputHandler(const TProofInputHandler &)
Bool_t SendingLogToWindow() const
Definition: TProof.h:1020
TMergerInfo(const TMergerInfo &)
void ShowEnabledPackages(Bool_t all=kFALSE)
List which packages are enabled.
Definition: TProof.cxx:7790
Int_t GetRC(const char *RCenv, Int_t &env, const char *ord="0")
Get into &#39;env&#39; the value of integer RC env variable &#39;rcenv&#39; on node &#39;ord&#39;.
Definition: TProof.cxx:6637
Bool_t IsIdle() const
Definition: TProof.h:944
ESlaveStatus
Definition: TProof.h:218
Bool_t IsTty() const
Definition: TProof.h:942
Int_t UploadDataSetFromFile(const char *, const char *, const char *=0, Int_t=0, TList *=0)
*** This function is deprecated and will disappear in future versions *** *** It is just a wrapper ar...
Definition: TProof.cxx:10656
Int_t fLastNWrks
Definition: TProof.h:303
static TList * GetDataSetSrvMaps(const TString &srvmaps)
const char * GetConfDir() const
Definition: TProof.h:908
Class that contains a list of TFileInfo&#39;s and accumulated meta data information about its entries...
TMap * GetDataSetQuota(const char *optStr="")
returns a map of the quotas of all groups
Definition: TProof.cxx:11248
Utility class to draw objects in the feedback list during queries.
Definition: TDrawFeedback.h:35
Int_t GetActiveMergersCount()
Get the active mergers count.
Definition: TProof.cxx:4408
TProofOutputList fOutputList
Definition: TProof.h:542
Int_t Ping()
Ping PROOF. Returns 1 if master server responded.
Definition: TProof.cxx:4716
Int_t GetSessionID() const
Definition: TProof.h:923
static char fgCr[4]
Definition: TProof.h:304
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
void AskStatistics()
Ask the for the statistics of the slaves.
Definition: TProof.cxx:2000
const char *const kUNTAR
Definition: TProof.h:148
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 GetNumberOfInactiveSlaves() const
Return number of inactive slaves, i.e.
Definition: TProof.cxx:1974
static Int_t SaveInputData(TQueryResult *qr, const char *cachedir, TString &emsg)
Save input data file from &#39;cachedir&#39; into the sandbox or create a the file with input data objects...
Definition: TProof.cxx:12284
Int_t fStatus
Definition: TProof.h:474
void ClearFeedback()
Clear feedback list.
Definition: TProof.cxx:9984
Int_t SetParallel(Int_t nodes=-1, Bool_t random=kFALSE)
Tell PROOF how many slaves to use in parallel.
Definition: TProof.cxx:7112
void AddWorker(TSlave *sl)
Add new worker to the list of workers to be merged by this merger.
Definition: TProof.cxx:306
Int_t GetClientProtocol() const
Definition: TProof.h:918
Int_t AddDynamicPath(const char *libpath, Bool_t onClient=kFALSE, TList *wrks=0, Bool_t doCollect=kTRUE)
Add &#39;libpath&#39; to the lib path search.
Definition: TProof.cxx:8815
TList * GetListOfPackages()
Get from the master the list of names of the packages available.
Definition: TProof.cxx:9080
Bool_t IsActive()
Definition: TProof.h:292
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
void SetDrawFeedbackOption(TDrawFeedback *f, Option_t *opt)
Set draw feedback option.
Definition: TProof.cxx:10074
Long64_t fTotalBytes
Definition: TProof.h:582
Float_t fMBRateI
Definition: TProof.h:173
Int_t SendInitialState()
Transfer the initial (i.e.
Definition: TProof.cxx:6746
Int_t Retrieve(Int_t query, const char *path=0)
Send retrieve request for the qry-th query in fQueries.
Definition: TProof.cxx:5920
TProofMgr::EServType fServType
Definition: TProof.h:590
TList * GetEnabledPackages() const
Definition: TProof.h:739
TList * fTerminatedSlaveInfos
Definition: TProof.h:577
Abstract interface for the PROOF player.
Int_t BroadcastGroupPriority(const char *grp, Int_t priority, ESlaves list=kAllUnique)
Broadcast the group priority to all workers in the specified list.
Definition: TProof.cxx:2429
void GetStatistics(Bool_t verbose=kFALSE)
Get statistics about CPU time, real time and bytes read.
Definition: TProof.cxx:2013
TProof * fProof
Definition: TProof.h:205
const char * GetImage() const
Definition: TProof.h:914
TList * FindDataSets(const char *searchString, const char *optStr="")
Find datasets, returns in a TList all found datasets.
Definition: TProof.cxx:10982
Bool_t Prompt(const char *p)
Prompt the question &#39;p&#39; requiring an answer y,Y,n,N Return kTRUE is the answer was y or Y...
Definition: TProof.cxx:7621
virtual void ShowStagingStatusDataSet(const char *dataset, const char *optStr="filter:SsCc")
Like GetStagingStatusDataSet, but displays results immediately.
Definition: TProof.cxx:11088
TList * fLoadedMacros
Definition: TProof.h:548
virtual Int_t RemoveDataSet(const char *dataset, const char *optStr="")
Remove the specified dataset from the PROOF cluster.
Definition: TProof.cxx:10963
void AskForOutput(TSlave *sl)
Master asks for output from worker sl.
Definition: TProof.cxx:4306
virtual Int_t Load(const char *macro, Bool_t notOnClient=kFALSE, Bool_t uniqueOnly=kTRUE, TList *wrks=0)
Load the specified macro on master, workers and, if notOnClient is kFALSE, on the client...
Definition: TProof.cxx:8600
Class describing a PROOF worker server.
Definition: TSlave.h:46
virtual Int_t SetDataSetTreeName(const char *dataset, const char *treename)
Set/Change the name of the default tree.
Definition: TProof.cxx:10738
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
void GetLog(Int_t start=-1, Int_t end=-1)
Ask for remote logs in the range [start, end].
Definition: TProof.cxx:10212
void ResetProgressDialog(const char *sel, Int_t sz, Long64_t fst, Long64_t ent)
Reset progress dialog.
Definition: TProof.cxx:9271
Int_t ClearPackage(const char *package)
Remove a specific package.
Definition: TProof.cxx:7829
virtual ~TMergerInfo()
Destructor.
Definition: TProof.cxx:284
Int_t SendPrint(Option_t *option="")
Send print command to master server.
Definition: TProof.cxx:7040
TString fMaster
Definition: TProof.h:470
Bool_t fTty
Definition: TProof.h:469
void StartupMessage(const char *msg, Bool_t status, Int_t done, Int_t total)
Send startup message.
Definition: TProof.cxx:9284
Int_t DeactivateWorker(const char *ord, Bool_t save=kTRUE)
Remove the worker identified by the ordinal number &#39;ord&#39; from the the active list.
Definition: TProof.cxx:11342
TList * fMergers
Definition: TProof.h:557
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
Int_t GetParallel() const
Returns number of slaves active in parallel mode.
Definition: TProof.cxx:2282
const Int_t n
Definition: legend1.C:16
static void DelEnvVar(const char *name)
Remove an variable from the list of environment variables passed to proofserv on the master and slave...
Definition: TProof.cxx:11754
TMonitor * fActiveMonitor
Definition: TProof.h:488
Int_t fIdx
Definition: TProof.h:301
const char * GetUser() const
Definition: TUrl.h:68
Bool_t Notify()
TProof interrupt handler.
Definition: TProof.cxx:119
TSocket * fSocket
Definition: TProof.h:204
char name[80]
Definition: TGX11.cxx:109
void Browse(TBrowser *b)
Build the PROOF&#39;s structure in the browser.
Definition: TProof.cxx:10151
virtual ~TProofProgressInfo()
Definition: TProof.h:184
friend class TPacketizerDev
Definition: TProof.h:323
Derivation of TList with an overload of ls() and Print() allowing to filter out some of the variables...
Int_t CollectInputFrom(TSocket *s, Int_t endtype=-1, Bool_t deactonfail=kFALSE)
Collect and analyze available input from socket s.
Definition: TProof.cxx:3032
ESendFileOpt
Definition: TProof.h:445
Long64_t fLastPollWorkers_s
Definition: TProof.h:480
Bool_t IsEndMaster() const
Definition: TProof.h:668
Int_t BroadcastFile(const char *file, Int_t opt, const char *rfile, TList *wrks)
Broadcast file to all workers in the specified list.
Definition: TProof.cxx:2588
Int_t fMaxDrawQueries
Definition: TProof.h:529
Int_t Broadcast(Int_t kind, ESlaves list=kActive)
Definition: TProof.h:638
static Int_t SendInputData(TQueryResult *qr, TProof *p, TString &emsg)
Send the input data file to the workers.
Definition: TProof.cxx:12353
void HandleSubmerger(TMessage *mess, TSlave *sl)
Process a message of type kPROOF_SUBMERGER.
Definition: TProof.cxx:3986
void IncreaseNWrks()
Definition: TProof.h:314
const char *const kPROOF_CacheDir
Definition: TProof.h:129
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
static Int_t AssertDataSet(TDSet *dset, TList *input, TDataSetManager *mgr, TString &emsg)
Make sure that dataset is in the form to be processed.
Definition: TProof.cxx:11987
Bool_t CreateMerger(TSlave *sl, Int_t port)
Create a new merger.
Definition: TProof.cxx:4426