KaliVeda
Toolkit for HIC analysis
KVGELogReader.h
1 
4 #ifndef __KVGELOGREADER_H
5 #define __KVGELOGREADER_H
6 
7 #include "KVLogReader.h"
8 
40 class KVGELogReader : public KVLogReader {
41  virtual Int_t GetByteMultiplier(const KVString& unit);
42  virtual void ReadLine(const KVString& line, Bool_t&);
43  virtual void ReadCPU(const KVString& line);
44  virtual void ReadScratchUsed(const KVString& line);
45  virtual void ReadMemUsed(const KVString& line);
46  virtual void ReadStatus(const KVString& line);
47  virtual Double_t ReadStorage(const KVString& stor);
48  virtual void ReadKVCPU(const KVString& line);
49 
52 
53 public:
56  {}
57  virtual ~KVGELogReader() {}
58  virtual void Reset()
59  {
62  }
63 
64  virtual Bool_t Incomplete() const
65  {
66  return (KVLogReader::Incomplete()
67  ||
68  ((!Killed() && !SegFault()) &&
69  (
70  (fStatus == "Cputime limit exceeded")
71  || (fStatus == "Filesize limit exceeded")
72  )
73  )
74  );
75 
76  }
77 
78  ClassDef(KVGELogReader, 1) //Read GE (Grid Engine) log files
79 };
80 
81 #endif
int Int_t
bool Bool_t
constexpr Bool_t kFALSE
double Double_t
#define ClassDef(name, id)
Read GE (Grid Engine) log files to extract status of batch jobs.
Definition: KVGELogReader.h:40
virtual Double_t ReadStorage(const KVString &stor)
virtual ~KVGELogReader()
Definition: KVGELogReader.h:57
virtual Int_t GetByteMultiplier(const KVString &unit)
virtual void ReadCPU(const KVString &line)
virtual void ReadKVCPU(const KVString &line)
virtual void ReadStatus(const KVString &line)
virtual void Reset()
Definition: KVGELogReader.h:58
virtual Bool_t Incomplete() const
Definition: KVGELogReader.h:64
Bool_t fInRequested
Definition: KVGELogReader.h:50
virtual void ReadScratchUsed(const KVString &line)
virtual void ReadMemUsed(const KVString &line)
Bool_t fInConsumed
Definition: KVGELogReader.h:51
virtual void ReadLine(const KVString &line, Bool_t &)
analyse contents of line read from log file
Base class for reading batch log files at CC-IN2P3.
Definition: KVLogReader.h:16
KVString fStatus
status string
Definition: KVLogReader.h:27
Bool_t Killed() const
Definition: KVLogReader.h:98
virtual void Reset()
reset informations read from file
Definition: KVLogReader.cpp:28
virtual Bool_t Incomplete() const
Bool_t SegFault() const
Definition: KVLogReader.h:102
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
Definition: KVString.h:73
TLine * line