12 #ifndef ROOT_TProofLite
13 #define ROOT_TProofLite
31 class TQueryResultManager;
32 class TDataSetManager;
35 class TProofQueryResult;
40 class TProofLite :
public TProof {
42 friend class TProofPlayerLite;
51 TServerSocket *fServSock;
54 Int_t fDynamicStartupStep;
55 Int_t fDynamicStartupNMax;
60 TProofLockPath *fCacheLock;
61 TProofLockPath *fQueryLock;
62 TQueryResultManager *fQMgr;
64 TDataSetManager *fDataSetManager;
65 TDataSetManagerFile *fDataSetStgRepo;
67 TPMERegexp *fReInvalid;
69 static Int_t fgWrksMax;
71 TProofLite(
const TProofLite &);
72 void operator=(
const TProofLite &);
74 Int_t CleanupSandbox();
75 Int_t CreateSandbox();
76 void FindUniqueSlaves();
77 void NotifyStartUp(
const char *action, Int_t done, Int_t tot);
78 Int_t SetProofServEnv(
const char *ord);
79 Int_t InitDataSetManager();
81 void ResolveKeywords(TString &s,
const char *ord,
const char *logfile);
83 void SendInputDataFile();
84 void ShowDataDir(
const char *dirname);
87 TProofLite() : TProof() { }
89 Int_t Init(
const char *masterurl,
const char *conffile,
90 const char *confdir, Int_t loglevel,
91 const char *alias = 0);
92 TProofQueryResult *MakeQueryResult(Long64_t nent,
const char *opt,
93 Long64_t fst, TDSet *dset,
95 void SetQueryRunning(TProofQueryResult *pq);
96 Int_t SetupWorkers(Int_t opt = 0, TList *wrks = 0);
97 Int_t CopyMacroToCache(
const char *macro, Int_t headerRequired = 0,
98 TSelector **selector = 0, Int_t opt = 0, TList *wrks = 0);
100 Int_t PollForNewWorkers();
103 TProofLite(
const char *masterurl,
const char *conffile = kPROOF_ConfFile,
104 const char *confdir = kPROOF_ConfDir, Int_t loglevel = 0,
105 const char *alias = 0, TProofMgr *mgr = 0);
106 virtual ~TProofLite();
108 void Print(Option_t *option=
"")
const;
110 Long64_t DrawSelect(TDSet *dset,
const char *varexp,
111 const char *selection =
"",
112 Option_t *option =
"", Long64_t nentries = -1,
113 Long64_t firstentry = 0);
114 Long64_t Process(TDSet *dset,
const char *sel, Option_t *o =
"",
115 Long64_t nent = -1, Long64_t fst = 0);
116 Long64_t Process(TFileCollection *fc,
const char *sel, Option_t *o =
"",
117 Long64_t nent = -1, Long64_t fst = 0)
118 {
return TProof::Process(fc, sel, o, nent, fst); }
119 Long64_t Process(
const char *dsname,
const char *sel, Option_t *o =
"",
120 Long64_t nent = -1, Long64_t fst = 0, TObject *enl = 0)
121 {
return TProof::Process(dsname, sel, o, nent, fst, enl); }
122 Long64_t Process(
const char *sel, Long64_t nent, Option_t *o =
"")
123 {
return TProof::Process(sel, nent, o); }
125 Long64_t Process(TDSet *dset, TSelector *sel, Option_t *o =
"",
126 Long64_t nent = -1, Long64_t fst = 0)
127 {
return TProof::Process(dset, sel, o, nent, fst); }
128 Long64_t Process(TFileCollection *fc, TSelector *sel, Option_t *o =
"",
129 Long64_t nent = -1, Long64_t fst = 0)
130 {
return TProof::Process(fc, sel, o, nent, fst); }
131 Long64_t Process(
const char *dsname, TSelector *sel, Option_t *o =
"",
132 Long64_t nent = -1, Long64_t fst = 0, TObject *enl = 0)
133 {
return TProof::Process(dsname, sel, o, nent, fst, enl); }
134 Long64_t Process(TSelector* sel, Long64_t nent, Option_t *o =
"")
135 {
return TProof::Process(sel, nent, o); }
138 void ShowCache(Bool_t all = kFALSE);
139 void ClearCache(
const char *file = 0);
140 Int_t Load(
const char *macro, Bool_t notOnClient = kFALSE, Bool_t uniqueOnly = kTRUE,
147 TList *GetListOfQueries(Option_t *opt =
"");
148 Int_t Remove(
const char *ref, Bool_t all);
151 Bool_t RegisterDataSet(
const char *dsName, TFileCollection *ds,
const char *opt =
"");
152 Bool_t ExistsDataSet(
const char *uri);
153 TMap *GetDataSets(
const char *uri =
"",
const char * = 0);
154 void ShowDataSets(
const char *uri =
"",
const char * = 0);
155 TFileCollection *GetDataSet(
const char *uri,
const char * = 0);
156 Int_t RemoveDataSet(
const char *uri,
const char * = 0);
157 Bool_t RequestStagingDataSet(
const char *dataset);
158 Bool_t CancelStagingDataSet(
const char *dataset);
159 TFileCollection *GetStagingStatusDataSet(
const char *dataset);
160 Int_t VerifyDataSet(
const char *uri,
const char * = 0);
161 Int_t SetDataSetTreeName(
const char *dataset,
const char *treename);
162 void ShowDataSetCache(
const char *dataset = 0);
163 void ClearDataSetCache(
const char *dataset = 0);
166 TTree *GetTreeHeader(TDSet *tdset);
168 static Int_t GetNumberOfWorkers(
const char *url = 0);
170 ClassDef(TProofLite,0)