WRENCH  1.10
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
ServiceIsDown.h
1 
10 #ifndef WRENCH_SERVICE_IS_DOWN_H
11 #define WRENCH_SERVICE_IS_DOWN_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/workflow/failure_causes/FailureCause.h"
17 #include "wrench/services/Service.h"
18 
19 namespace wrench {
20 
21  class Service;
22 
23  /***********************/
25  /***********************/
26 
30  class ServiceIsDown : public FailureCause {
31  public:
32  /***********************/
34  /***********************/
35  explicit ServiceIsDown(std::shared_ptr<Service> service);
36  /***********************/
38  /***********************/
39 
40  std::shared_ptr<Service> getService();
41  std::string toString() override;
42 
43  private:
44  std::shared_ptr<Service> service;
45  };
46 
47 
48  /***********************/
50  /***********************/
51 };
52 
53 
54 #endif //WRENCH_SERVICE_IS_DOWN_H
wrench
Definition: Alarm.cpp:20
wrench::ServiceIsDown
A "service is down" failure cause.
Definition: ServiceIsDown.h:30
wrench::FailureCause
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
wrench::ServiceIsDown::toString
std::string toString() override
Get the human-readable failure message.
Definition: ServiceIsDown.cpp:39
wrench::ServiceIsDown::getService
std::shared_ptr< Service > getService()
Getter.
Definition: ServiceIsDown.cpp:31
wrench::ServiceIsDown::ServiceIsDown
ServiceIsDown(std::shared_ptr< Service > service)
Constructor.
Definition: ServiceIsDown.cpp:23