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 
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
A service that immediately detects when some service crashes and then notifies some other service of ...
Definition: ServiceTerminationDetector.h:26
Definition: Alarm.cpp:20
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)
Constructor.
Definition: ServiceTerminationDetector.cpp:26
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:26