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  Int_t GetByteMultiplier(const KVString& unit) override;
42  void ReadLine(const KVString& line, Bool_t&) override;
43  void ReadCPU(const KVString& line) override;
44  void ReadScratchUsed(const KVString& line) override;
45  void ReadMemUsed(const KVString& line) override;
46  void ReadStatus(const KVString& line) override;
47  Double_t ReadStorage(const KVString& stor) override;
48  virtual void ReadKVCPU(const KVString& line);
49 
52 
53 public:
56  {}
57  virtual ~KVGELogReader() {}
58  void Reset() override
59  {
62  }
63 
64  Bool_t Incomplete() const override
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  ClassDefOverride(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 ClassDefOverride(name, id)
Read GE (Grid Engine) log files to extract status of batch jobs.
Definition: KVGELogReader.h:40
virtual ~KVGELogReader()
Definition: KVGELogReader.h:57
Double_t ReadStorage(const KVString &stor) override
virtual void ReadKVCPU(const KVString &line)
void ReadLine(const KVString &line, Bool_t &) override
analyse contents of line read from log file
Int_t GetByteMultiplier(const KVString &unit) override
void ReadCPU(const KVString &line) override
void Reset() override
Definition: KVGELogReader.h:58
void ReadScratchUsed(const KVString &line) override
Bool_t Incomplete() const override
Definition: KVGELogReader.h:64
void ReadStatus(const KVString &line) override
Bool_t fInRequested
Definition: KVGELogReader.h:50
void ReadMemUsed(const KVString &line) override
Bool_t fInConsumed
Definition: KVGELogReader.h:51
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