WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
ServiceIsSuspended.h
1 
10 #ifndef WRENCH_SERVICE_IS_SUSPENDED_H
11 #define WRENCH_SERVICE_IS_SUSPENDED_H
12 
13 #include <set>
14 #include <string>
15 
16 #include "wrench/services/Service.h"
17 #include "FailureCause.h"
18 
19 namespace wrench {
20 
21  class Service;
22 
23  /***********************/
25  /***********************/
26 
31  public:
32  /***********************/
34  /***********************/
35  explicit ServiceIsSuspended(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_SUSPENDED_H
wrench::ServiceIsSuspended
A "service is suspended" failure cause.
Definition: ServiceIsSuspended.h:30
wrench
Definition: Action.cpp:28
wrench::ServiceIsSuspended::getService
std::shared_ptr< Service > getService()
Getter.
Definition: ServiceIsSuspended.cpp:31
wrench::FailureCause
A top-level class to describe all simulation-valid failures that can occur during workflow execution ...
Definition: FailureCause.h:31
wrench::ServiceIsSuspended::toString
std::string toString() override
Get the human-readable failure message.
Definition: ServiceIsSuspended.cpp:39