4 #ifndef __KVLOGREADER_H
5 #define __KVLOGREADER_H
#define ClassDef(name, id)
Base class for reading batch log files at CC-IN2P3.
KVString fStatus
status string
KVString fFMT
format string used to extract run number from job name
Double_t GetSCRATCHrequest() const
Double_t GetCPUrequest() const
virtual void ReadLine(const KVString &line, Bool_t &)
KVString fJobname
name of job
void ReadStorageReq(const KVString &line)
void ReadJobname(const KVString &line)
Bool_t fOK
job OK or not ?
Double_t GetCPUratio() const
calculate ratio of used CPU to requested CPU
Double_t GetMEMused() const
Double_t fCPUused
normalized used CPU time in seconds
Double_t GetSCRATCHused() const
const Char_t * GetStatus() const
void ReadFile(const Char_t *fname)
Open file 'fname' and read contents.
Double_t fMEMreq
requested memory (VIRTUAL STORAGE) in KB
virtual void Reset()
reset informations read from file
Double_t GetMEMrequest() const
virtual Int_t GetByteMultiplier(const KVString &unit)=0
Double_t GetCPUused() const
virtual void ReadMemUsed(const KVString &line)=0
void SetNameFormat(const Char_t *fmt)
virtual void ReadCPU(const KVString &line)=0
const Char_t * GetJobname() const
virtual Double_t ReadStorage(const KVString &stor)=0
virtual Bool_t Incomplete() const
virtual void ReadScratchUsed(const KVString &line)=0
Int_t GetRunNumber() const
try to get run number from jobname using format string fFMT
Bool_t fGotRequests
set true when disk & memory request has been read
Bool_t fGotStatus
set true when end of job infos have been read
Double_t fMemKB
used memory in KB
Double_t fSCRreq
requested scratch disk space in KB
virtual void ReadStatus(const KVString &line)=0
Double_t fCPUreq
requested CPU time in seconds
Double_t fScratchKB
used disk space in KB
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
const char * Data() const
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const