WRENCH  1.11
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 
27 
28  public:
29 
30  explicit ServiceTerminationDetector(std::string host_on_which_to_run, std::shared_ptr<Service> service_to_monitor,
31  simgrid::s4u::Mailbox *mailbox_to_notify, bool notify_on_crash, bool notify_on_termination);
32 
33 
34  private:
35 
36  std::shared_ptr<Service> service_to_monitor;
37  simgrid::s4u::Mailbox *mailbox_to_notify;
38  int main() override;
39  bool notify_on_crash;
40  bool notify_on_termination;
41 
42  };
43 
44  /***********************/
46  /***********************/
47 
48 
49 };
50 
51 
52 
53 
54 #endif //WRENCH_FAILUREDETECTOR_H
wrench::ServiceTerminationDetector
A service that immediately detects when some service crashes and then notifies some other service of ...
Definition: ServiceTerminationDetector.h:26
wrench
Definition: Action.cpp:28
wrench::ServiceTerminationDetector::ServiceTerminationDetector
ServiceTerminationDetector(std::string host_on_which_to_run, std::shared_ptr< Service > service_to_monitor, simgrid::s4u::Mailbox *mailbox_to_notify, bool notify_on_crash, bool notify_on_termination)
Constructor.
Definition: ServiceTerminationDetector.cpp:26
wrench::Service
A service that can be added to the simulation and that can be used by a WMS when executing a workflow...
Definition: Service.h:31