83 Error(
"AddLogFile",
"problems lseeking current position on log file (errno: %d)",
errno);
138 Info(
"RemoveQuery",
"removing directory: %s",
qdir.Data());
216 Warning(
"ScanPreviousQueries",
"unable to clone TProofQueryResult '%s:%s'",
217 pqr->GetName(),
pqr->GetTitle());
286 Info(
"ApplyMaxQueries",
"file '%s' cannot be stated: remove it",
fn.Data());
316 TNamed *nm =
dynamic_cast<TNamed *
>(
hl->FindObject(os->GetName()));
326 if (
nq->GetVal() <= 0)
355 Error(
"LockSession",
"locker space undefined");
362 TRegexp re(
"session-.*-.*-.*-.*");
368 stag.ReplaceAll(
"session-",
"");
381 Info(
"LockSession",
"parent still running: do nothing");
392 if (((*lck)->Lock()) < 0) {
393 Error(
"LockSession",
"problems locking query lock file");
410 Error(
"CleanupSession",
"session tag undefined");
421 Info(
"CleanupSession",
"query dir %s does not exist",
qdir.Data());
452 if (!
qr ||
qr->IsDraw())
467 if (!(
qr->IsArchived()))
468 qr->SetResultFile(
ofn);
482 Info(
"RemoveQuery",
"Enter");
501 Info(
"RemoveQuery",
"removing directory: %s",
qdir.Data());
515 Info(
"RemoveQuery",
"Enter");
525 Info(
"RemoveQuery",
"removing directory: %s",
qdir.Data());
571 Info(
"LocateQuery",
"local query: %d",
qry);
577 if (
pqr->GetSeqNum() ==
qry) {
587 Info(
"LocateQuery",
"previously processed query: %s",
queryref.Data());
615 if (!pq || !proof || !
player) {
616 Warning(
"FinalizeQuery",
"bad inputs: query = %p, proof = %p, player: %p ",
631 PDB(kGlobal, 2)
Info(
"FinalizeQuery",
"query #%d",
qn);
641 Info(
"FinalizeQuery",
"query %d has been ABORTED <====",
qn);
647 Info(
"FinalizeQuery",
648 "query %d has been STOPPED: %lld events processed",
qn,
np);
653 Info(
"FinalizeQuery",
654 "query %d has been completed: %lld events processed",
qn,
np);
659 "query %d: unknown exit status (%d)",
qn,
player->GetExitStatus());
666 Info(
"FinalizeQuery",
"cpu: %.4f, saved: %.4f, master: %.4f",
695 if (
qr->IsArchived()) {
696 if (
qr->GetOutputList() && !
farc)
722 emsg.Form(
"Too many saved queries (%d): cannot save %s:%s",
const Bool_t kIterBackward
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t np
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t bytes
R__EXTERN TProofServ * gProofServ
const char *const kPROOF_QueryDir
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual const char * GetClassName() const
void AddAt(TObject *obj, Int_t idx) override
Insert object at position idx in the list.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
The TNamed class is the base class for all named ROOT classes.
const char * GetName() const override
Returns name of object.
const char * GetTitle() const override
Returns title of object.
Collectable string class.
virtual void Warning(const char *method, const char *msgfmt,...) const
Issue warning message.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
TQueryResult version adapted to PROOF neeeds.
void RecordEnd(EQueryStatus status, TList *outlist=0) override
End of query settings.
void SendAsynMessage(const char *msg, Bool_t lf=kTRUE)
Send an asychronous message to the master / client .
This class controls a Parallel ROOT Facility, PROOF, cluster.
Float_t GetCpuTime() const
Long64_t GetBytesRead() const
void SaveQuery(TProofQueryResult *qr, const char *fout=0)
Save current status of query 'qr' to file name fout.
Bool_t FinalizeQuery(TProofQueryResult *pq, TProof *proof, TVirtualProofPlayer *player)
Final steps after Process() to complete the TQueryResult instance.
void RemoveQuery(TQueryResult *qr, Bool_t soft=kFALSE)
Remove everything about query qr.
~TQueryResultManager() override
Cleanup.
Int_t CleanupQueriesDir()
Remove all queries results referring to previous sessions.
Int_t ApplyMaxQueries(Int_t mxq)
Scan the queries directory and remove the oldest ones (and relative dirs, if empty) in such a way onl...
TProofQueryResult * LocateQuery(TString queryref, Int_t &qry, TString &qdir)
Locate query referenced by queryref.
Int_t CleanupSession(const char *sessiontag)
Cleanup query dir qdir.
TQueryResultManager(const char *qdir, const char *stag, const char *sdir, TProofLockPath *lck, FILE *logfile=0)
Constructor.
Int_t LockSession(const char *sessiontag, TProofLockPath **lck)
Try locking query area of session tagged sessiontag.
void AddLogFile(TProofQueryResult *pq)
Add part of log file concerning TQueryResult pq to its macro container.
void ScanPreviousQueries(const char *dir)
Scan the queries directory for the results of previous queries.
A container class for query results.
void AddLogLine(const char *logline)
Fill log file.
virtual void SetProcessInfo(Long64_t ent, Float_t cpu=0., Long64_t siz=-1, Float_t inittime=0., Float_t proctime=0.)
Set processing info.
Float_t GetUsedCPU() const
Regular expression class.
virtual Int_t IndexOf(const TObject *obj) const
Return index of object in collection.
A sorted doubly linked list.
const char * Data() const
TString & Remove(Ssiz_t pos)
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
virtual void FreeDirectory(void *dirp)
Free a directory.
virtual void * OpenDirectory(const char *name)
Open a directory. Returns 0 if directory does not exist.
virtual int MakeDirectory(const char *name)
Make a directory.
virtual Int_t Exec(const char *shellcmd)
Execute a command.
int GetPathInfo(const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
Get info about a file: id, size, flags, modification time.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
virtual const char * GetDirEntry(void *dirp)
Get a directory entry. Returns 0 if no more entries.
virtual TString GetDirName(const char *pathname)
Return the directory name in pathname.
virtual int Unlink(const char *name)
Unlink, i.e.
Abstract interface for the PROOF player.