WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
ServiceTerminationDetector.h
1 
10 #ifndef WRENCH_FAILUREDETECTOR_H
11 #define WRENCH_FAILUREDETECTOR_H
12 
13 #include "wrench/services/Service.h"
14 #include "wrench/simgrid_S4U_util/S4U_Daemon.h"
15 
16 namespace wrench {
17 
18  /***********************/
20  /***********************/
21 
26  class ServiceTerminationDetector : public Service {
27 
28  public:
29 
30  explicit ServiceTerminationDetector(std::string host_on_which_to_run, std::shared_ptr<Service> service_to_monitor, std::string mailbox_to_notify, bool notify_on_crash, bool notify_on_termination);
31 
32 
33  private:
34 
35  std::shared_ptr<Service> service_to_monitor;
36  std::string mailbox_to_notify;
37  int main() override;
38  bool notify_on_crash;
39  bool notify_on_termination;
40 
41  };
42 
43  /***********************/
45  /***********************/
46 
47 
48 };
49 
50 
51 
52 
53 #endif //WRENCH_FAILUREDETECTOR_H
wrench
Definition: Alarm.cpp:20