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 
29  protected:
30  explicit ServiceTerminationDetectorMessage(std::string name);
31  };
32 
38  public:
39  explicit ServiceHasCrashedMessage(std::shared_ptr<Service> service);
40 
42  std::shared_ptr<Service> service;
43  };
44 
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::SimulationMessage::name
std::string name
The message name.
Definition: SimulationMessage.h:37
wrench::ServiceHasTerminatedMessage
A message sent by the ServiceTerminationDetector to notify some listener that the monitored service h...
Definition: ServiceTerminationDetectorMessage.h:49
wrench::SimulationMessage
Top-level class to describe a message communicated by processes in the simulation.
Definition: SimulationMessage.h:27
wrench::ServiceHasTerminatedMessage::service
std::shared_ptr< Service > service
The service that has terminated.
Definition: ServiceTerminationDetectorMessage.h:54
wrench::ServiceHasCrashedMessage
A message sent by the ServiceTerminationDetector to notify some listener that the monitored service h...
Definition: ServiceTerminationDetectorMessage.h:37
wrench::ServiceHasCrashedMessage::service
std::shared_ptr< Service > service
The service that has crashed.
Definition: ServiceTerminationDetectorMessage.h:42
wrench
Definition: Alarm.cpp:20
wrench::ServiceHasTerminatedMessage::exit_code
int exit_code
The exit code of the service's main.
Definition: ServiceTerminationDetectorMessage.h:56
wrench::ServiceTerminationDetectorMessage::ServiceTerminationDetectorMessage
ServiceTerminationDetectorMessage(std::string name)
Constructor.
Definition: ServiceTerminationDetectorMessage.cpp:19
wrench::ServiceHasCrashedMessage::ServiceHasCrashedMessage
ServiceHasCrashedMessage(std::shared_ptr< Service > service)
Constructor.
Definition: ServiceTerminationDetectorMessage.cpp:29
wrench::ServiceTerminationDetectorMessage
Top-level class for messages received/sent by a ServiceTerminationDetector.
Definition: ServiceTerminationDetectorMessage.h:28
wrench::ServiceHasTerminatedMessage::ServiceHasTerminatedMessage
ServiceHasTerminatedMessage(std::shared_ptr< Service > service, int exit_code)
Constructor.
Definition: ServiceTerminationDetectorMessage.cpp:40