CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
supervisor.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SUPERVISOR_H_
6 #define CVMFS_SUPERVISOR_H_
7 
8 #include "stdint.h"
9 
29 class Supervisor {
30  public:
31  Supervisor(uint64_t max_retries, uint64_t interval_sec);
32  virtual ~Supervisor();
33 
34  virtual bool Task() = 0;
35 
36  bool Run();
37 
38  private:
39  uint64_t max_retries_;
40  uint64_t interval_;
41 };
42 
43 #endif // CVMFS_SUPERVISOR_H_
uint64_t max_retries_
Definition: supervisor.h:39
virtual bool Task()=0
bool Run()
Definition: supervisor.cc:15
Supervisor(uint64_t max_retries, uint64_t interval_sec)
Definition: supervisor.cc:10
virtual ~Supervisor()
Definition: supervisor.cc:13
uint64_t interval_
Definition: supervisor.h:40