WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
ServiceTerminationDetectorMessage.h
1 
11 #ifndef WRENCH_FAILUREDETECTORMESSAGE_H
12 #define WRENCH_FAILUREDETECTORMESSAGE_H
13 
14 
15 #include <wrench/simulation/SimulationMessage.h>
16 #include <wrench-dev.h>
17 
18 namespace wrench {
19 
20 
21  /***********************/
23  /***********************/
24 
28  class ServiceTerminationDetectorMessage : public SimulationMessage {
29  protected:
30  explicit ServiceTerminationDetectorMessage(std::string name);
31  };
32 
37  class ServiceHasCrashedMessage : public ServiceTerminationDetectorMessage {
38  public:
39  explicit ServiceHasCrashedMessage(std::shared_ptr<Service> service);
40 
42  std::shared_ptr<Service> service;
43  };
44 
49  class ServiceHasTerminatedMessage : public ServiceTerminationDetectorMessage {
50  public:
51  explicit ServiceHasTerminatedMessage(std::shared_ptr<Service> service, int exit_code);
52 
54  std::shared_ptr<Service> service;
56  int exit_code;
57  };
58 
59  /***********************/
61  /***********************/
62 
63 };
64 
65 #endif //WRENCH_FAILUREDETECTORMESSAGE_H
wrench
Definition: Alarm.cpp:20